From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/11994 Path: news.gmane.org!not-for-mail From: =?UTF-8?Q?David_Haberth=C3=BCr?= Newsgroups: gmane.text.pandoc Subject: Re: Escape double period in image file name Date: Fri, 13 Feb 2015 01:04:52 -0800 (PST) Message-ID: <390d4c87-877c-4957-80e9-5fbd489d4828@googlegroups.com> References: <34fbef04-8125-480a-91ec-4fe08c90e69c@googlegroups.com> <20150123220941.GD67331@dhcp-128-32-252-9.lips.berkeley.edu> <140EDD43-9160-4964-B9E4-3230B151DBF7@davidhaberthuer.ch> Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_2315_668431813.1423818292773" X-Trace: ger.gmane.org 1423818304 15446 80.91.229.3 (13 Feb 2015 09:05:04 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 13 Feb 2015 09:05:04 +0000 (UTC) To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBCHLFHNKREARBNP462TAKGQECKJKQJY-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Feb 13 10:04:56 2015 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane.org Original-Received: from mail-pd0-f191.google.com ([209.85.192.191]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YMCBC-0006RP-FU for gtp-pandoc-discuss@m.gmane.org; Fri, 13 Feb 2015 10:04:54 +0100 Original-Received: by pdbfp1 with SMTP id fp1sf3121803pdb.6 for ; Fri, 13 Feb 2015 01:04:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20120806; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:sender:list-subscribe :list-unsubscribe; bh=HyTHFFDpKkrPsVW442kLT1U+AuRsFBunir4MNdYPCGo=; b=RWlrJTcNgJL5TXY51y7cRW27cziP4w0ikjh7rg0CKdhPrbszZvU3Ic7vupTElfSOTf leklJPBbuo/guaDa5FNjLretL5XB4BT7agTupzh3nXfiIhEBYnMPUpVblv3qgRsLGSIO LO0bIqjZn+n+OsgtwkTnlLzD8rA1St+LltuXtq8GyX168/DTZJsK0fuQzpoHj4jiyrV/ YRwC4pJLDa702ftEoLrVIKMg0DIn0r/xl0W98ZgRf52ooS957WNtipuQobVejvsq1Jrz 0Y+dDk4W/UhM+YqikcX8UYWyasd8sHJ4uTbXyD/l0hJpInYHTDaRxyxF32Efz/4qPnCk 3HbA== X-Received: by 10.140.104.174 with SMTP id a43mr107278qgf.2.1423818293573; Fri, 13 Feb 2015 01:04:53 -0800 (PST) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 10.140.34.131 with SMTP id l3ls1170577qgl.5.gmail; Fri, 13 Feb 2015 01:04:53 -0800 (PST) X-Received: by 10.140.16.55 with SMTP id 52mr104615qga.31.1423818293200; Fri, 13 Feb 2015 01:04:53 -0800 (PST) In-Reply-To: <140EDD43-9160-4964-B9E4-3230B151DBF7-32snws64Z+43qbniVyZh5nIPMjoJpjVV@public.gmane.org> X-Original-Sender: email-32snws64Z+43qbniVyZh5nIPMjoJpjVV@public.gmane.org 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.org gmane.text.pandoc:11994 Archived-At: ------=_Part_2315_668431813.1423818292773 Content-Type: multipart/alternative; boundary="----=_Part_2316_846523634.1423818292773" ------=_Part_2316_846523634.1423818292773 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Ciao a tutti. On Sunday, February 1, 2015 at 8:52:54 PM UTC+1, David Haberth=C3=BCr wrote= : > > Dear John=20 > > > On 23 Jan 2015, at 23:09, John MacFarlane wrote:=20 > >=20 > > What is your Markdown source here?=20 > >=20 > > When I try:=20 > >=20 > > ![alt](9078505.image.corrected.stretched.png)=20 > >=20 > > I get=20 > >=20 > > \includegraphics{9078505.image.corrected.stretched.png}=20 > >=20 > > which has the .png extension, not=20 > >=20 > > \includegraphics{9078505.image.corrected.stretched}=20 > >=20 > > as you reported.=20 > > I=E2=80=99m so used to leave out the file ending in LaTeX, that this slip= ped my=20 > proofreading.=20 > I wanted to say that=20 > > > ![alt](folder/9078505.image.corrected.stretched.png)=20 > > in Markdown should be converted into either=20 > > > \includegraphics{folder/{{9078505.image.corrected.stretched}.png}}=20 > > or=20 > > > \includegraphics{folder/{{9078505.image.corrected.stretched}}}=20 > > which both work in (pdf)LaTeX=20 > > It seems that the first try (with an attachment) did not go through to th= e=20 > mailing list.=20 > You can find a small test-case in a zip file one can download here:=20 > http://cl.ly/ZZ72=20 > > The Markdown source works as expected.=20 > The LaTeX source generated with =E2=80=9Cpandoc -s test.md -o test.tex" c= omplains=20 > about not being able to find the image with the multiple periods in it on= =20 > compiling it with =E2=80=9Clatexmk -pdf".=20 > I manually edited the LaTeX source (after line 77) to show two correctly= =20 > escaped file paths.=20 > If the first error is ignored, the document can be compiled. > =20 In the end I resorted to `pandoc -s input.md -o output.tex` and manually=20 editing the file. Have a great day, David --=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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/= pandoc-discuss/390d4c87-877c-4957-80e9-5fbd489d4828%40googlegroups.com. For more options, visit https://groups.google.com/d/optout. ------=_Part_2316_846523634.1423818292773 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Ciao a tutti.

On Sunday, February 1, 2015 at 8:52:5= 4 PM UTC+1, David Haberth=C3=BCr wrote:
Dear John

> On 23 Jan 2015, at 23:09, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote:
>=20
> What is your Markdown source here?
>=20
> When I try:
>=20
>  ![alt](9078505.image.corrected.stretched.png)
>=20
> I get
>=20
>  \includegraphics{9078505.image.corrected.stretched.png}
>=20
> which has the .png extension, not
>=20
>  \includegraphics{9078505.image.corrected.stretched}
>=20
> as you reported.

I=E2=80=99m so used to leave out the file ending in LaTeX, that this sl= ipped my proofreading.
I wanted to say that

> ![alt](folder/9078505.image.corrected.stretched.png)

in Markdown should be converted into either

> \includegraphics{folder/{{9078505.image.corrected.stretc= hed}.png}}

or

> \includegraphics{folder/{{9078505.image.corrected.stretc= hed}}}

which both work in (pdf)LaTeX

It seems that the first try (with an attachment) did not go through to = the mailing list.
You can find a small test-case in a zip file one can download here: http://cl.ly/ZZ72

The Markdown source works as expected.
The LaTeX source generated with =E2=80=9Cpandoc -s test.md -o test.t= ex" complains about not being able to find the image with the multiple peri= ods in it on compiling it with =E2=80=9Clatexmk -pdf".
I manually edited the LaTeX source (after line 77) to show two correctl= y escaped file paths.
If the first error is ignored, the document can be compiled.
 
In the end I resorted to `pandoc -s input.md -o output.tex` an= d manually editing the file.

Have a great day,
David

--
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 post to this group, send email to pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://groups.google.com/d/= msgid/pandoc-discuss/390d4c87-877c-4957-80e9-5fbd489d4828%40googlegroups.co= m.
For more options, visit http= s://groups.google.com/d/optout.
------=_Part_2316_846523634.1423818292773-- ------=_Part_2315_668431813.1423818292773--