Thanks for this.
What I ended up doing is running pdflatex myself with -output-directory
and then moving the pdf back to the source directory.
On 4 Nov 2023, at 2:19, Bastien DUMONT wrote:
To do this, you can replace `pdflatex myfile` with `latexmk -pdf -auxdir=tmp myfile`. Then you can remove tmp/ if you are sure that you will not need it. You can even set `auxdir` to a directory under /tmp (e.g. /tmp/pdflatex).
Le Friday 03 November 2023 à 11:29:58PM, oliver a écrit :
Well, I really like was Pandoc does when it runs pdflatex internally: Hiding all the auxiliary files from a TeX run in a temp directory and I would like to emulate this for a single pdflatex run.
On 3 Nov 2023, at 19:11, Bastien DUMONT wrote:
Doesn't it just work if you type `pandoc -o myfile.tex myfile.md && pdflatex myfile`? myfile.tex will include the paths to the image files as indicated in myfile.md
Le Friday 03 November 2023 à 06:19:15PM, Oliver a écrit :
_Sorry, I have posted the follwoing before, but under the wrong subject, so here with the correct subject line_:
Hi there
I want to copy all the sources of a markdown file (like its images) into a temp folder and then generate its `.tex` file there and run `(pdf)latex`over it.
Can Pandoc help me with copying the referenced sources? It clearly does the same when running `pdflatex` itself: The verbose output shows that it gathers all the images.
Thanks for any help.
Oliver
(PS: The reason I don’t want to use Pandoc’s mechanism to run `pdflatex` directly is that Pando alwyas does _two_ latex runs, even though sometiems I want only one run the most.)
--
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/8DFE8EAF-7206-4EC5-88F8-4A727EEE2631%40halloleo.hailmail.net.--
You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/gj_gF7O9Gt0/unsubscribe.
To unsubscribe from this group and all its topics, 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/ZUSrMb3iTpo5idpI%40localhost.--
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/E329D815-20A8-4E88-9A7F-4598736B07D6%40halloleo.hailmail.net.--
You received this message because you are subscribed to a topic in the Google Groups "pandoc-discuss" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pandoc-discuss/gj_gF7O9Gt0/unsubscribe.
To unsubscribe from this group and all its topics, 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/ZUUPd467a4CZZZ5E%40localhost.