Tweak the default latex settings.
[ibg.git] / index.rst
index a9d678ed80d170d6a344608042c10c4d9d27c77e..4dd8608dc4a04552798aaf3c55b9dfb372e476a3 100644 (file)
--- a/index.rst
+++ b/index.rst
@@ -2,16 +2,26 @@
  The Inform Beginner's Guide
 =============================
 
-Contents:
+.. only:: html
+
+   Contents:
+
+   .. toctree::
+      :maxdepth: 2
+
+      copyright
+      history
 
 .. toctree::
    :maxdepth: 2
 
-   copyright
-   history
    foreword
    about
 
+.. raw:: latex
+
+   \startchapters
+
 .. toctree::
    :maxdepth: 2
    :glob:
@@ -19,21 +29,31 @@ Contents:
 
    chapters/*
 
-Appendices:
+.. only:: html
+
+   Appendices:
+
+.. raw:: latex
+
+   \startappendices
 
 .. toctree::
    :glob:
 
    appendices/*
 
-Indices:
+.. only:: html
+
+   Indices:
 
 * :ref:`genindex`
 * :ref:`search`
 
-End notes:
+.. only:: html
 
-.. toctree::
-   :maxdepth: 2
+   End notes:
+
+   .. toctree::
+      :maxdepth: 2
 
-   endnotes
+      endnotes