Hi Georg,

On Tuesday, March 25, 2014 5:55:23 PM UTC+1, Georg Brandl wrote:

All files referenced by "toctree" must be within the project, i.e. the 
> directory 
> containing conf.py and its subdirs.  Within that, relative paths like 
> "../common/Filename.rst" are possible. 
>
> Note that Sphinx can already produce multiple .tex (and then .pdf) files 
> from a 
> single project: the "latex_documents" config value is a list. 
>
> If you export to HTML, it is not advisable to have a single .rst file in 
> two 
> different "toctree"s, since each .rst document can only have one set of 
> parent/predecessor/successor in the TOC tree. 
>
> But if you export only to LaTeX, it should work perfectly. 
>
> Otherwise, Jan Ulrich's suggestion with "include" is what you want. 
>

Thanks a lot for your help - the hint about setting up multiple 
latex_documents was the key to success :)
I now have a conf.py, Makefile and contents.rst file in the toplevel 
directory (above the document directories). The toctree in contents.rst 
only contains references to the table of contents in each document's 
subdirectory. Shared chapters are in a "common" directory, which can now be 
referenced using "../common/" in the documents' toctrees. I created two 
separate documents in the latex_documents configuration, which generates 
independent PDFs.

Lenz

-- 
You received this message because you are subscribed to the Google Groups 
"sphinx-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to