13 Jul 2012 23:53
rst-compile to PDF using emacs rst-mode
Adam J. Morrison <adam.morrison <at> sportplanedesign.com>
2012-07-13 21:53:31 GMT
2012-07-13 21:53:31 GMT
I am not subscribed to Docutils-users. I trying to start learning Emacs to write my rst documents. So far, I am enjoying it. However, I'm struggling to compile the rst file to a PDF format. I set PDF as the primary toolset in rst.el. It appears that this uses rst2pdf, which I am familiar with using. However, it seems that the default command from Emacs does not include the required '-o <outputfile>' format. I've tried adding the '-o' option to the rst-compile-toolsets listing for PDF, but the rst-compile command then puts the option immediately after the rst2pdf command like 'rst2pdf -o <inputfile> <outputfile>'. I'm limited in my knowledge of both Emacs and Lisp (I'm much more familiar with Python), so I very well could be doing something wrong. If someone could point me in the right direction, I would appreciate it. Thank you, Adam ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> I set PDF as the primary toolset in rst.el. It appears that this uses
> rst2pdf, which I am familiar with using. However, it seems that the
> default command from Emacs does not include the required '-o
> <outputfile>' format.
I didn't wrote that code and I'm personally not (yet) using `rst2pdf`.
Can you give me a (minimal) command line which should work?
> I've tried adding the '-o' option to the
> rst-compile-toolsets listing for PDF, but the rst-compile command then
> puts the option immediately after the rst2pdf command like 'rst2pdf -o
> <inputfile> <outputfile>'.
`rst.el` may be simply wrong here. I never tried it.
Grüße
Stefan
. The one I tried follows the normal rst2* conventions and
> uses `-o` for specifying an output encoding:
>
> --output-encoding=<name[:handler]>, -o <name[:handler]>
> Specify the text encoding and optionally the error
> handler for output. Default: UTF-8:strict.
>
> It seems that the rst2pdf you are talking about is not in the Docutils
> SVN.
>
> <at> Developers: Any idea what is going on here?
Ah, I think I found out. Robert Alsina seems to prefer to maintain an
own project at
RSS Feed