From: oliver <news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
Subject: Re: How to copy all (image) source files of a markdown file into a temp folder
Date: Mon, 06 Nov 2023 15:40:21 +1100 [thread overview]
Message-ID: <EE59CCA3-44E5-4206-BAEF-2CF719409370@halloleo.hailmail.net> (raw)
In-Reply-To: <ZUUPd467a4CZZZ5E@localhost>
[-- Attachment #1: Type: text/plain, Size: 4222 bytes --]
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.
--
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/EE59CCA3-44E5-4206-BAEF-2CF719409370%40halloleo.hailmail.net.
[-- Attachment #2: Type: text/html, Size: 6325 bytes --]
next prev parent reply other threads:[~2023-11-06 4:40 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-10-26 11:40 Simple documents do multiple LaTeX runs news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
[not found] ` <f1950468-445b-4886-8b1b-66105bbf7cae-fsFgPW9xikU7lZ9V/NTDHw@public.gmane.org>
2023-10-26 16:29 ` John MacFarlane
[not found] ` <E6504425-9F1C-422A-9416-F8E87EC2B769-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-10-27 1:44 ` Oliver Baumann
2023-10-30 7:32 ` How to pass to latexmk options which have a space-separated argument oliver
[not found] ` <4B28A474-F723-477A-8ADB-510FA6D0DDC4-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
2023-10-30 7:45 ` 'William Lupton' via pandoc-discuss
[not found] ` <CAEe_xxih=XEY4qYAQn8_TWUf+9tDSQ5SZ7ng=NUcGWAn9n-a-Q-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2023-10-30 15:21 ` BP Jonsson
2023-10-31 12:14 ` news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA
2023-11-03 6:56 ` Oliver
2023-11-03 7:19 ` How to copy all (image) source files of a markdown file into a temp folder Oliver
[not found] ` <8DFE8EAF-7206-4EC5-88F8-4A727EEE2631-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
2023-11-03 8:11 ` Bastien DUMONT
2023-11-03 12:29 ` oliver
[not found] ` <E329D815-20A8-4E88-9A7F-4598736B07D6-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org>
2023-11-03 15:19 ` Bastien DUMONT
2023-11-06 4:40 ` oliver [this message]
2023-11-03 15:49 ` Simple documents do multiple LaTeX runs Ulrike Fischer
[not found] ` <udtggqf79vlx$.dlg-bMiYgyzgJ3Ab1SvskN2V4Q@public.gmane.org>
2023-11-03 17:01 ` John MacFarlane
[not found] ` <1B830352-6696-4F37-A61B-6FBD53CB57DE-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-11-03 17:43 ` John MacFarlane
[not found] ` <4091673D-F656-4EAC-81E4-B0F8F7D5E999-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2023-11-06 4:41 ` oliver
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=EE59CCA3-44E5-4206-BAEF-2CF719409370@halloleo.hailmail.net \
--to=news-wptjrydoupgeaopm6fajmqkbcandltla@public.gmane.org \
--cc=pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).