public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Re: How does pandoc invoke the various PDF engines?
       [not found] <f6da475f-798b-4217-b8e5-e17208666b23@googlegroups.com>
@ 2020-01-17  6:19 ` John MacFarlane
       [not found]   ` <m2sgkesiya.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: John MacFarlane @ 2020-01-17  6:19 UTC (permalink / raw)
  To: Shane Liesegang, pandoc-discuss



It does show the arguments with --verbose.  There should be
a line like

[makePDF] Command line:
pdflatex "-halt-on-error" "-interaction" "nonstopmode"
"-output-directory"
"/private/var/folders/l0/2t_cldbj26j_vsd9_q2tsf400000gn/T/tex2pdf.-e002e67b30f1e34e"
"/private/var/folders/l0/2t_cldbj26j_vsd9_q2tsf400000gn/T/tex2pdf.-e002e67b30f1e34e/input.tex"

Note that pandoc does some image conversions (e.g. putting
things in formats acceptable to LaTeX) before running the
command.

Shane Liesegang <liesegang@gmail.com> writes:

> I've run into a few instances where I'd like to apply some transformations 
> to Pandoc's generated .tex file before turning it into a PDF. (I'm sure I 
> could accomplish these with Lua filters or more clever templating, but it's 
> far more straightforward for me to just run the file through sed or 
> something.) 
>
> Where I'm running into problems is that generating the PDF does not appear 
> to be as straightforward as just running "xelatex out.tex"... When I run 
> pandoc with --verbose, I can see it references running makePDF 3 times, but 
> I can't tell what parameters it's passing. 
>
> When I try to run the the pdf-engine manually, it stalls out, in my 
> particular case, being unable to find the size of an image. When I let 
> pandoc make the PDF itself, this doesn't seem to be a problem, or pandoc 
> has a clever way around it. 
>
> Is there any way to see exactly what parameters pandoc passes to the 
> pdf-engine so I could reproduce it myself, or is what I'm asking more 
> complicated than I think? 
>
> -- 
> You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/f6da475f-798b-4217-b8e5-e17208666b23%40googlegroups.com.

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/m2sgkesiya.fsf%40johnmacfarlane.net.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How does pandoc invoke the various PDF engines?
       [not found]   ` <m2sgkesiya.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
@ 2020-01-17 12:41     ` Shane Liesegang
  0 siblings, 0 replies; 2+ messages in thread
From: Shane Liesegang @ 2020-01-17 12:41 UTC (permalink / raw)
  To: pandoc-discuss


[-- Attachment #1.1: Type: text/plain, Size: 2863 bytes --]

Ah, I'm sorry I missed that obvious thing at the very top of the log. :) I 
was looking down by the "Run #1", "Run #2", etc. thinking that there would 
be different parameters would be around the different runs. 

My bad! Thanks for the help. 

On Friday, January 17, 2020 at 1:20:15 AM UTC-5, John MacFarlane wrote:
>
>
> It does show the arguments with --verbose.  There should be 
> a line like 
>
> [makePDF] Command line: 
> pdflatex "-halt-on-error" "-interaction" "nonstopmode" 
> "-output-directory" 
> "/private/var/folders/l0/2t_cldbj26j_vsd9_q2tsf400000gn/T/tex2pdf.-e002e67b30f1e34e" 
>
> "/private/var/folders/l0/2t_cldbj26j_vsd9_q2tsf400000gn/T/tex2pdf.-e002e67b30f1e34e/input.tex" 
>
>
> Note that pandoc does some image conversions (e.g. putting 
> things in formats acceptable to LaTeX) before running the 
> command. 
>
> Shane Liesegang <lies...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org <javascript:>> writes: 
>
> > I've run into a few instances where I'd like to apply some 
> transformations 
> > to Pandoc's generated .tex file before turning it into a PDF. (I'm sure 
> I 
> > could accomplish these with Lua filters or more clever templating, but 
> it's 
> > far more straightforward for me to just run the file through sed or 
> > something.) 
> > 
> > Where I'm running into problems is that generating the PDF does not 
> appear 
> > to be as straightforward as just running "xelatex out.tex"... When I run 
> > pandoc with --verbose, I can see it references running makePDF 3 times, 
> but 
> > I can't tell what parameters it's passing. 
> > 
> > When I try to run the the pdf-engine manually, it stalls out, in my 
> > particular case, being unable to find the size of an image. When I let 
> > pandoc make the PDF itself, this doesn't seem to be a problem, or pandoc 
> > has a clever way around it. 
> > 
> > Is there any way to see exactly what parameters pandoc passes to the 
> > pdf-engine so I could reproduce it myself, or is what I'm asking more 
> > complicated than I think? 
> > 
> > -- 
> > You received this message because you are subscribed to the Google 
> Groups "pandoc-discuss" group. 
> > To unsubscribe from this group and stop receiving emails from it, send 
> an email to pandoc-...-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org <javascript:>. 
> > To view this discussion on the web visit 
> https://groups.google.com/d/msgid/pandoc-discuss/f6da475f-798b-4217-b8e5-e17208666b23%40googlegroups.com. 
>
>

-- 
You received this message because you are subscribed to the Google Groups "pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/a953e88d-f621-48ae-a939-f7aae5f37f27%40googlegroups.com.

[-- Attachment #1.2: Type: text/html, Size: 4493 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-01-17 12:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <f6da475f-798b-4217-b8e5-e17208666b23@googlegroups.com>
2020-01-17  6:19 ` How does pandoc invoke the various PDF engines? John MacFarlane
     [not found]   ` <m2sgkesiya.fsf-pgq/RBwaQ+zq8tPRBa0AtqxOck334EZe@public.gmane.org>
2020-01-17 12:41     ` Shane Liesegang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).