Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Debugging Options] For converting to PDF: improve debugging options #1653

Closed
KurtPfeifle opened this issue Sep 28, 2014 · 5 comments
Closed

Comments

@KurtPfeifle
Copy link

When converting to PDF, pandoc should allow (via a commandline switch such as --pdfdebug or similar) to preserve (or dump) the intermediate LaTeX code somewhere on the harddisk and issue a message where the *.tex (and maybe other log and auxiliary files from {pdf,lua,xe}latex runs) may be found.

@mszep
Copy link
Contributor

mszep commented Sep 28, 2014

Why not just output to latex format? -t latex -o file.tex should do what you want.

@mpickering
Copy link
Collaborator

You would want the -s flag as well.
On 28 Sep 2014 12:31, "Mark Szepieniec" notifications@github.com wrote:

Why not just output to latex format? -t latex -o file.tex should do what
you want.


Reply to this email directly or view it on GitHub
#1653 (comment).

@KurtPfeifle
Copy link
Author

@mszep: That's what I usually do. But it takes more time to match the exact settings when using longer, komplex command line options with PDF conversion. It would be faster to immediately have Pandoc telling me the location of the intermediate files by adding a simple additional flag to the command...

@mszep
Copy link
Contributor

mszep commented Sep 28, 2014

I know where you're coming from; in practice I tend to use use makefiles containing a call to pdflatex instead of using pandoc's pdf export functinality directly.

My feeling is that pandoc's direct pdf export is geared towards people who don't know and don't want to learn latex. Anyone else is probably better off exporting to latex, and taking care of compilation to pdf themselves.

@jgm jgm closed this as completed in e3422dc Dec 26, 2014
@KurtPfeifle
Copy link
Author

Great! Thanks a lot, John.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants