Hi Matteo, * Matteo Ghetta <[email protected]> [12.01.2016 05:21]: > I have set up a sphinx project and I need to compile the files with latexpdf. > The first page of this *book* should be taken from an already one-page pdf > file (in case I can prepare it as a rst single page).
if you're working with Linux, you could use pdftk to do this.
(Type sudo aptitude install pdftk, if it's not installed yet.)
Open the Makefile in your project folder, and add the following line to the
latexpdf-part:
.. code-block:: sh
pdftk $(BUILDDIR)/latex/myfilename.pdf cat 2-end output tmp.pdf && \
pdftk titlepage.pdf tmp.pdf cat output $(BUILDDIR)/latex/myfilename.pdf
You have to put the real filename of your project here, since in the Makefile
there is no variable corresponding to this (you also could define one).
Hope this helps,
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sphinx-users.
For more options, visit https://groups.google.com/d/optout.
signature.asc
Description: Digital signature
