Hi, * Aladdin Mhaimeed <admhe...@gmail.com> [16.02.2017 11:39]: > I could use sphinx-build to export all docs to one pdf, > but my target is to export each rst file to a separate pdf file in a > similar tree like rst tree, > any ideas?
You could use docutils to do that; sphinx makes heavy use of it. http://docutils.sourceforge.net/docs/ Under Debian/Ubuntu/Linux Mint, you can install it via the package python3-docutils (or python-docutils for the legacy version). This package includes the program ``rst2latex``, which converts a single rst file into a pdf file. Most of Sphinx's features are supported, some are not (for example the :ref:-Role). Personally, I use the rst2latex converter in combination with the following Makefile: # rst2latex-Makefile: %: %.rst rst2latex $< > $*.tex pdflatex $*.tex rm $*.aux $*.log $*.out You can configure rst2latex via the file ~/.docutils, which could for example look like this: # File ~/.docutils: [latex2e writer] latex_preamble: \usepackage{units, amsmath, amsfonts, amssymb, textcomp, gensymb, marvosym, wasysym} \usepackage[left=2cm,right=2cm,top=1cm,bottom=1.5cm]{geometry} \usepackage{array} \pagestyle{empty} Surely, this is only a workaround, but for me it works quite well. Greeting, Bernhard -- 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 sphinx-users+unsubscr...@googlegroups.com. To post to this group, send email to sphinx-users@googlegroups.com. Visit this group at https://groups.google.com/group/sphinx-users. For more options, visit https://groups.google.com/d/optout.