Hi,
Thanks for the \appendix, it was a good way :)
I've added symbolic links to the projects I had to include and set a new
toctree for the appendices.
This is a more LaTex dependent way than using the latex_appendices field
in the configuration file, but it allows way more control on the output.
My main index file now looks like this :
.. toctree::
:numbered:
:maxdepth: 3
content/abstract
.. and other stuffs
.. raw:: latex
% Set up the appendix mode and modify the LaTex toc behavior
\appendix
\noappendicestocpagenum
\addappheadtotoc
\settocdepth{chapter}
.. toctree::
:numbered:
:maxdepth: 1
Doc1/index
Doc2/index
...
glossary
bibliography
And it's a "Sphinx-full" way to do :)
Thomas
Le 22/08/2011 12:04, Guenter Milde a écrit :
On 2011-08-20, Thomas wrote:
I have to make a summary of multiple works which have all been
documented using Sphinx, with a LaTex output.
Those documentations must be inserted in my summary as appendices, but
can't find a way to do that correctly.
Is there a simple way to insert those documents as appendices ?
I don't know.
If not, is there a simple way to create the appendices manually, by
inserting a cleaned version of generated LaTex files to the summary
one ?
You might try this kind of post processing:
* in the generated *.tex files, strip all lines before and including
``\begin{document}`` and the line with ``\end{document}``
* in the "master file", add commands like::
\input{firstappendix.tex}
\input{secondappendix.tex}
...
at the place the appendices should appear. Either as raw latex in the
source or in a post-processing step.
I've also thought about inserting those files in the toctree of my
summary, but how can I indicate they should have a roman chapter
number (A, B, ...) ?
Insert ``\appendix`` (as raw LaTeX) just before the \includes.
Thanks for answers.
Thomas
--
You received this message because you are subscribed to the Google Groups
"sphinx-dev" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sphinx-dev?hl=en.