From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/33262 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: oliver Newsgroups: gmane.text.pandoc 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 Message-ID: References: <8DFE8EAF-7206-4EC5-88F8-4A727EEE2631@halloleo.hailmail.net> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="=_MailMate_216EC48A-0DC1-4089-9451-0835D4833657_=" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38747"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCEMPL7DTEMRBP64UGVAMGQENDVPKVY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mon Nov 06 05:40:36 2023 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-yb1-f184.google.com ([209.85.219.184]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1qzrPg-0009ui-Cw for gtp-pandoc-discuss@m.gmane-mx.org; Mon, 06 Nov 2023 05:40:36 +0100 Original-Received: by mail-yb1-f184.google.com with SMTP id 3f1490d57ef6-da040c021aesf4632978276.3 for ; Sun, 05 Nov 2023 20:40:36 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1699245635; cv=pass; d=google.com; s=arc-20160816; b=PK0jlZLOTqycFms3dpSpT5ETSQS13EfG7SwI+FkxjD3j+RmMSeDErEuNTbVkydJQC/ wFW9DKax0oIQdveO0ZUYSmNq9eKigIc5owSdxDceUSw1x7QgpSIqTZ0nb4E29aRpff+1 6YiRC2u3IpVMIyqetA0sFbnNWcYkYCptOzKvAZ5L5Tc4mVF2QC7indciuTsSmh1wb+Mi d7+1Niwcctiz1tbIno9kGeNDm2Ykj1TUqAPNr+urN1gJtlK2e0j01TbVSsDkc2cp0yt0 KbbD2CjK8BVDuENfyH5zpwphZfygE1nJUGPeUhfEN1nAzHWZklDHTwqtlkZVJCHoFdsc 6xKw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:mime-version:references :in-reply-to:message-id:date:subject:to:from:feedback-id:sender :dkim-signature; bh=ZEqAyAImNMhB/QahSkdVxuTVblQsLKPijuCr6HuVF3o=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=qPzShGVBoFoKl2c5y5gLqxLTIt+I8E1/KiwPhC6WyCqd9iOcSJyLqKPe3abEfQI+4j KXSdHxR8EXtEwIhN4YBKGj4q552Ep9F86M0vS8zKyHtRwPfLv7e2YUdT4I9/QFDdQ3jh XiuK129okNtrHrUVsl+JxQyd0TmRVhY+Qh7FjXkNEuMAbQH5SMbc4Xek6D+2SCpxAZAF abnl/KCDlanY8+D7Nbn/eBPb3eGWo6ataUnaoBLadPUJgJkedYXIZ5oyAdwEeNrVV4d/ 3Sy9nPZrYiizAHnh+4kHdLDk+Gn5Cppej6OsftQKtLjspLjfc+PAhKvKAWK7BQBuddhH EkkQ== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm3 header.b=XoVvjMJW; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=hzM26o7R; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 64.147.123.19 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20230601; t=1699245635; x=1699850435; darn=m.gmane-mx.org; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:to:from:feedback-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=ZEqAyAImNMhB/QahSkdVxuTVblQsLKPijuCr6HuVF3o=; b=cFAjdjqedUNXo6/SexNUJwQkiE8sNdyHCgBSAaSUDtns/vKAFBGIE9TBJ93IMzXAfo dRCCmYfqHwTo20aws8yfJ70prPaLiA1M1sUbLF4mYNt20hWdjJGt8YwvAyuLWwoF77PM 0+yKAygbl/DWBnMG/M1MXMOOd4NwVHfXi6n+pEm6prE1hvnCmfI/bYafrFjhwmx4M2KL rFoFcb7z0iUsknJ88+v8ST04mP/t4PIrNo1GpPUiAsgCQcCIYKopv2VLl0iTMp/aYib7 T/IIummuL50ScX7RecyNTCt8YLqpzndPTmowfZ7f X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1699245635; x=1699850435; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :x-spam-checked-in-group:list-id:mailing-list:precedence:reply-to :x-original-authentication-results:x-original-sender:mime-version :references:in-reply-to:message-id:date:subject:to:from:feedback-id :x-beenthere:x-gm-message-state:sender:from:to:cc:subject:date :message-id:reply-to; bh=ZEqAyAImNMhB/QahSkdVxuTVblQsLKPijuCr6HuVF3o=; b=nQsWgvIHZHM5HUiaFrGEJ7JJXE3H4JQKVKXjEG8E8Nu4ZBpxKL4q6iXthavL3kiAIA 1eefT90n7T6RuXbdmT8PGOCdfQJ2l+J4rcejQpNl4MW1933QLMYjC6DJ0DpT3ZVCK2ee Y6ZJp3utYAfxlTEhvZPGdYUCGkOcc3XgBLuvx93+at6BYo8KEvzfsLENnYkxOqm+QbGE rL7vFQOF5iUdPT7URG718tyogBy5z0n8QOYIHGdpVYAY/tvY1YOXQkZcUCqd6wBJeIie Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOJu0Yx47xPA2dn6BZKPbVLpDslQw2Um+G2BRpzrPT0eYX1Ar/DLVGJK L5sugYBbidxqjdxR5+atYHk= X-Google-Smtp-Source: AGHT+IH4aTJv9Uo85K2h5cmqiQEkwmhnybXryPN5HsA3lCbMzL4YQNaYf5QEiwGM7mDAePMVdAxiYA== X-Received: by 2002:a25:ec03:0:b0:d9a:66a1:a957 with SMTP id j3-20020a25ec03000000b00d9a66a1a957mr26820981ybh.13.1699245635260; Sun, 05 Nov 2023 20:40:35 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a25:7611:0:b0:d86:8d6e:b575 with SMTP id r17-20020a257611000000b00d868d6eb575ls13001ybc.1.-pod-prod-06-us; Sun, 05 Nov 2023 20:40:31 -0800 (PST) X-Received: by 2002:a81:840e:0:b0:591:15a6:c11f with SMTP id u14-20020a81840e000000b0059115a6c11fmr9402246ywf.50.1699245630894; Sun, 05 Nov 2023 20:40:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1699245630; cv=none; d=google.com; s=arc-20160816; b=RcOlyc+5jf45UKic+lQo424lBL7U6TB3TFwKMw/X0bBOVdzqCAM5IooPxrYgZON04Y L4qVyluIeBOWJWrd25rsgFbyBpYyP/tJMxGs4pfHZXoIOJkR9Ia50AcLTZDOmpfHU5Yk TQvLmDBD2ErC5sZSWjCLSUBPdx9we4vGMZRA5nJfmXOpvsSe2iRnSw5FLOC2x5oh+erH Ycbfx8CQkK2S0m3snUSjeMZ/WLrRR4vhCeZSUSg7BWJwN31huJzQGERtk3b1sIhAWXoD eEpuHY3YCf9naeGYeordUtUJFNj5WbtZHqhYBBkKEnvxouvl+fvAEzwg9Sk+QIfFSUnC GMfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:references:in-reply-to:message-id:date:subject:to:from :feedback-id:dkim-signature:dkim-signature; bh=gnrh4LBT3PojrfPxZQCfFMryIXOPbINGtqGbXPcvYYk=; fh=m01AhCNo7xUywHldCVYouaJypLlN7JgtNYbImzBf4N4=; b=rlXlOIpBXSibzPyLmoUvwbl4haPDPRJxBi31j3jj+O194L06AVCHBTUuqFlPftezlL X43NZ0w4ahuQDHrInT8zK5gtImWmAmlEM0YYax4IIqX6uNu2vtnMW0sSvteT6gn62aUO wTJblo28Qo/XDTGlwJS+L8keOvdb97SCCmcRGCvNej99/8tZhBLkxi0Nsg8YQG3ZKhJh NCUW/t/bc9mwSiw58q45VlPwOxjg1ALaXlg+uCEIKBlELWh7br47xH0lTsYojdAbp8Uz aL4ibArlyl0L1UzD2/Xs2IRfnSVciSV/VcensSTnvlY9bdO4hkw8kw0IzCd8Kmw35Wnd SmcA== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm3 header.b=XoVvjMJW; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=hzM26o7R; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 64.147.123.19 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net Original-Received: from wout3-smtp.messagingengine.com (wout3-smtp.messagingengine.com. [64.147.123.19]) by gmr-mx.google.com with ESMTPS id bc9-20020a05690c000900b005a7d90c26a7si456681ywb.1.2023.11.05.20.40.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 05 Nov 2023 20:40:30 -0800 (PST) Received-SPF: pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 64.147.123.19 as permitted sender) client-ip=64.147.123.19; Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 4F2923200488 for ; Sun, 5 Nov 2023 23:40:29 -0500 (EST) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Sun, 05 Nov 2023 23:40:29 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedruddufedgjeegucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucgoufhushhpvggtthffohhmrghinhculdegledmne cujfgurhephffvufffoffkjghfgggtsegrtdhmreertdejnecuhfhrohhmpeholhhivhgv rhcuoehnvgifsheshhgrlhhlohhlvghordhhrghilhhmrghilhdrnhgvtheqnecuggftrf grthhtvghrnhepudeigfefveejkeefueeigeefgfefteekuedttdfggfduudetueeujeeh veegffeinecuffhomhgrihhnpehgohhoghhlvgdrtghomhenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehnvgifsheshhgrlhhlohhlvghordhh rghilhhmrghilhdrnhgvth X-ME-Proxy: Feedback-ID: i02894466:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 5 Nov 2023 23:40:27 -0500 (EST) X-Mailer: MailMate (1.14r5937) In-Reply-To: X-Original-Sender: news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@hailmail.net header.s=fm3 header.b=XoVvjMJW; dkim=pass header.i=@messagingengine.com header.s=fm3 header.b=hzM26o7R; spf=pass (google.com: domain of news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org designates 64.147.123.19 as permitted sender) smtp.mailfrom=news-WPTjrydoUPgeaOpM6FAJmQkbCANdLtlA@public.gmane.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=hailmail.net Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:33262 Archived-At: --=_MailMate_216EC48A-0DC1-4089-9451-0835D4833657_= Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable Thanks for this. What I ended up doing is running pdflatex myself with=20 `-output-directory` and then moving the pdf back to the source=20 directory. On 4 Nov 2023, at 2:19, Bastien DUMONT wrote: > To do this, you can replace `pdflatex myfile` with `latexmk -pdf=20 > -auxdir=3Dtmp myfile`. Then you can remove tmp/ if you are sure that you= =20 > will not need it. You can even set `auxdir` to a directory under /tmp=20 > (e.g. /tmp/pdflatex). > > Le Friday 03 November 2023 =C3=A0 11:29:58PM, oliver a =C3=A9crit : >> Well, I really like was Pandoc does when it runs pdflatex internally:=20 >> Hiding all the auxiliary files from a TeX run in a temp directory and=20 >> 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 &&=20 >>> pdflatex myfile`? myfile.tex will include the paths to the image=20 >>> files as indicated in myfile.md >>> >>> Le Friday 03 November 2023 =C3=A0 06:19:15PM, Oliver a =C3=A9crit : >>>> _Sorry, I have posted the follwoing before, but under the wrong=20 >>>> subject, so here with the correct subject line_: >>>> >>>> Hi there >>>> >>>> I want to copy all the sources of a markdown file (like its images)=20 >>>> into a temp folder and then generate its `.tex` file there and run=20 >>>> `(pdf)latex`over it. >>>> >>>> Can Pandoc help me with copying the referenced sources? It clearly=20 >>>> does the same when running `pdflatex` itself: The verbose output=20 >>>> shows that it gathers all the images. >>>> >>>> Thanks for any help. >>>> >>>> Oliver >>>> >>>> (PS: The reason I don=E2=80=99t want to use Pandoc=E2=80=99s mechanism= to run=20 >>>> `pdflatex` directly is that Pando alwyas does _two_ latex runs,=20 >>>> even though sometiems I want only one run the most.) >>>> >>>> --=20 >>>> You received this message because you are subscribed to the Google=20 >>>> Groups "pandoc-discuss" group. >>>> To unsubscribe from this group and stop receiving emails from it,=20 >>>> send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>>> To view this discussion on the web visit=20 >>>> https://groups.google.com/d/msgid/pandoc-discuss/8DFE8EAF-7206-4EC5-88= F8-4A727EEE2631%40halloleo.hailmail.net. >>> >>> --=20 >>> You received this message because you are subscribed to a topic in=20 >>> the Google Groups "pandoc-discuss" group. >>> To unsubscribe from this topic, visit=20 >>> https://groups.google.com/d/topic/pandoc-discuss/gj_gF7O9Gt0/unsubscrib= e. >>> To unsubscribe from this group and all its topics, send an email to=20 >>> pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >>> To view this discussion on the web visit=20 >>> https://groups.google.com/d/msgid/pandoc-discuss/ZUSrMb3iTpo5idpI%40loc= alhost. >> >> --=20 >> You received this message because you are subscribed to the Google=20 >> Groups "pandoc-discuss" group. >> To unsubscribe from this group and stop receiving emails from it,=20 >> send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> To view this discussion on the web visit=20 >> https://groups.google.com/d/msgid/pandoc-discuss/E329D815-20A8-4E88-9A7F= -4598736B07D6%40halloleo.hailmail.net. > > --=20 > You received this message because you are subscribed to a topic in the=20 > Google Groups "pandoc-discuss" group. > To unsubscribe from this topic, visit=20 > https://groups.google.com/d/topic/pandoc-discuss/gj_gF7O9Gt0/unsubscribe. > To unsubscribe from this group and all its topics, send an email to=20 > pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To view this discussion on the web visit=20 > https://groups.google.com/d/msgid/pandoc-discuss/ZUUPd467a4CZZZ5E%40local= host. --=20 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 e= mail 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= . --=_MailMate_216EC48A-0DC1-4089-9451-0835D4833657_= Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable

Thanks for this.

What I ended up doing is running pdflatex myself with -output-directory<= /code> 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 myf= ile` with `latexmk -pdf -auxdir=3Dtmp myfile`. Then you can remove tmp/ if = you are sure that you will not need it. You can even set `auxdir` to a dire= ctory under /tmp (e.g. /tmp/pdflatex).

Le Friday 03 November 2023 =C3=A0 11:29:58PM, oliver a =C3= =A9crit :

= Well, I really like was Pandoc does when it runs pdflatex internally: Hidin= g all the auxiliary files from a TeX run in a temp directory and I would li= ke 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 =C3=A0 06:19:15PM, Oliver a =C3= =A9crit :

= _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 sh= ows that it gathers all the images.

Thanks for any help.

Oliver

(PS: The reason I don=E2=80=99t want to use Pandoc=E2=80=99= s mechanism to run `pdflatex` directly is that Pando alwyas does _two_ late= x runs, even though sometiems I want only one run the most.)

--=20
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 e= mail 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.

--=20
You received this message because you are subscribed to a topic in the Goog= le 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.goog= le.com/d/msgid/pandoc-discuss/ZUSrMb3iTpo5idpI%40localhost.

--=20
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 e= mail 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.

--=20
You received this message because you are subscribed to a topic in the Goog= le 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

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to
pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.c= om/d/msgid/pandoc-discuss/EE59CCA3-44E5-4206-BAEF-2CF719409370%40halloleo.h= ailmail.net.
--=_MailMate_216EC48A-0DC1-4089-9451-0835D4833657_=--