public inbox archive for pandoc-discuss@googlegroups.com
 help / color / mirror / Atom feed
* Escape double period in image file name
@ 2015-01-22 16:46 David Haberthür
  0 siblings, 0 replies; 6+ messages in thread
From: David Haberthür @ 2015-01-22 16:46 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

I use pandoc to make pdf files from my markdown source files.
Generally that works nicely, today I stumbled over a problem when my image 
files contain multiple periods (like 9078505.image.corrected.stretched.png).
In LaTeX I can just "escape" these multiple dots with enclosing the 
filename in two sets of curly brackets.

Now, when I call

https://github.com/habi/GlobalDiagnostiX/tree/master/Analysis



-- 
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 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/92c53168-6ccf-43ef-bbcc-a4baeebb6a67%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

* Re: Escape double period in image file name
       [not found]         ` <140EDD43-9160-4964-B9E4-3230B151DBF7-32snws64Z+43qbniVyZh5nIPMjoJpjVV@public.gmane.org>
@ 2015-02-13  9:04           ` David Haberthür
  0 siblings, 0 replies; 6+ messages in thread
From: David Haberthür @ 2015-02-13  9:04 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

Ciao a tutti.

On Sunday, February 1, 2015 at 8:52:54 PM UTC+1, David Haberthür wrote:
>
> Dear John 
>
> > On 23 Jan 2015, at 23:09, John MacFarlane <jgm-TVLZxgkOlNX2fBVCVOL8/A@public.gmane.org> wrote: 
> > 
> > What is your Markdown source here? 
> > 
> > When I try: 
> > 
> >  ![alt](9078505.image.corrected.stretched.png) 
> > 
> > I get 
> > 
> >  \includegraphics{9078505.image.corrected.stretched.png} 
> > 
> > which has the .png extension, not 
> > 
> >  \includegraphics{9078505.image.corrected.stretched} 
> > 
> > as you reported. 
>
> I’m so used to leave out the file ending in LaTeX, that this slipped 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.stretched}.png}} 
>
> or 
>
> > \includegraphics{folder/{{9078505.image.corrected.stretched}}} 
>
> 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 “pandoc -s test.md -o test.tex" complains 
> about not being able to find the image with the multiple periods in it on 
> compiling it with “latexmk -pdf". 
> I manually edited the LaTeX source (after line 77) to show two correctly 
> 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` and manually 
editing the file.

Have a great day,
David

-- 
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 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.

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

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

* Re: Escape double period in image file name
       [not found]     ` <20150123220941.GD67331-0VdLhd/A9Pm0ooXD8Eul3dn5441T/ExBaxvHy9gZ5WyVc3sceRu5cw@public.gmane.org>
  2015-01-24  9:35       ` David Haberthür
@ 2015-02-01 19:52       ` David Haberthür
       [not found]         ` <140EDD43-9160-4964-B9E4-3230B151DBF7-32snws64Z+43qbniVyZh5nIPMjoJpjVV@public.gmane.org>
  1 sibling, 1 reply; 6+ messages in thread
From: David Haberthür @ 2015-02-01 19:52 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

Dear John

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

I’m so used to leave out the file ending in LaTeX, that this slipped 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.stretched}.png}}

or

> \includegraphics{folder/{{9078505.image.corrected.stretched}}}

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 “pandoc -s test.md -o test.tex" complains about not being able to find the image with the multiple periods in it on compiling it with “latexmk -pdf".
I manually edited the LaTeX source (after line 77) to show two correctly escaped file paths.
If the first error is ignored, the document can be compiled.

Thanks for any insight.
David

-- 
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 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/140EDD43-9160-4964-B9E4-3230B151DBF7%40davidhaberthuer.ch.
For more options, visit https://groups.google.com/d/optout.


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

* Re: Escape double period in image file name
       [not found]     ` <20150123220941.GD67331-0VdLhd/A9Pm0ooXD8Eul3dn5441T/ExBaxvHy9gZ5WyVc3sceRu5cw@public.gmane.org>
@ 2015-01-24  9:35       ` David Haberthür
  2015-02-01 19:52       ` David Haberthür
  1 sibling, 0 replies; 6+ messages in thread
From: David Haberthür @ 2015-01-24  9:35 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

Dear John

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

I’m so used to leave out the file ending in LaTeX, that this slipped 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.stretched}.png}}

or

> \includegraphics{folder/{{9078505.image.corrected.stretched}}}

which both work in (pdf)LaTeX

I don’t know if that’s useful or even allowed in this group, but attached is a zip file including a tiny test document.
The Markdown source works as expected.
The LaTeX source generated with “pandoc -s test.md -o test.tex" complains about not being able to find the image with the multiple periods in it on compiling it with “latexmk -pdf".
I manually edited the LaTeX source (after line 77) to show two correctly escaped file paths.
If the first error is ignored, the document can be compiled.

Thanks for any insight.
David

-- 
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 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/860C2CB0-AC8E-4AF5-BCE7-5DB152BDADDE%40davidhaberthuer.ch.
For more options, visit https://groups.google.com/d/optout.

[-- Attachment #1.2: testcase.zip --]
[-- Type: application/zip, Size: 17594 bytes --]

[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 526 bytes --]

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

* Re: Escape double period in image file name
       [not found] ` <34fbef04-8125-480a-91ec-4fe08c90e69c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
@ 2015-01-23 22:09   ` John MacFarlane
       [not found]     ` <20150123220941.GD67331-0VdLhd/A9Pm0ooXD8Eul3dn5441T/ExBaxvHy9gZ5WyVc3sceRu5cw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: John MacFarlane @ 2015-01-23 22:09 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw

What is your Markdown source here?

When I try:

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

I get

    \includegraphics{9078505.image.corrected.stretched.png}

which has the .png extension, not

    \includegraphics{9078505.image.corrected.stretched}

as you reported.

+++ David Haberthür [Jan 22 15 08:52 ]:
>Dear all
>
>I use pandoc 1.13.1 on Ubuntu 12.04 to make pdf files from my markdown
>source files.
>
>Generally that works nicely, today I stumbled over a problem when my image
>files contain multiple periods (like 9078505.image.corrected.stretched.png).
>In LaTeX I can just "escape" these multiple dots with enclosing the
>filename in two sets of curly brackets.
>
>Now, when I call
>
>> pandoc -s input.md -o output.pdf
>
>TeX complains about an unknown graphic extension (rightfully so).
>
>When I call
>
>> pandoc -s input.md -o output.tex
>
>I see that the call to the image is correct per se, but should be escaped
>by two sets of curly braces to something like
>"\includegraphics{img/{{9078505.image.corrected.stretched}}}".
>
>Is there some way I can tell pandoc to escape my image paths, do I have to
>rename all my images or edit the resulting .tex file?
>
>Thanks for any insight (and pandoc!)
>David
>
>-- 
>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 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/34fbef04-8125-480a-91ec-4fe08c90e69c%40googlegroups.com.
>For more options, visit https://groups.google.com/d/optout.

-- 
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 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/20150123220941.GD67331%40dhcp-128-32-252-9.lips.berkeley.edu.
For more options, visit https://groups.google.com/d/optout.


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

* Escape double period in image file name
@ 2015-01-22 16:52 David Haberthür
       [not found] ` <34fbef04-8125-480a-91ec-4fe08c90e69c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
  0 siblings, 1 reply; 6+ messages in thread
From: David Haberthür @ 2015-01-22 16:52 UTC (permalink / raw)
  To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw


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

Dear all

I use pandoc 1.13.1 on Ubuntu 12.04 to make pdf files from my markdown 
source files.

Generally that works nicely, today I stumbled over a problem when my image 
files contain multiple periods (like 9078505.image.corrected.stretched.png).
In LaTeX I can just "escape" these multiple dots with enclosing the 
filename in two sets of curly brackets.

Now, when I call

> pandoc -s input.md -o output.pdf

TeX complains about an unknown graphic extension (rightfully so).

When I call 

> pandoc -s input.md -o output.tex

I see that the call to the image is correct per se, but should be escaped 
by two sets of curly braces to something like 
"\includegraphics{img/{{9078505.image.corrected.stretched}}}".

Is there some way I can tell pandoc to escape my image paths, do I have to 
rename all my images or edit the resulting .tex file?

Thanks for any insight (and pandoc!)
David

-- 
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 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/34fbef04-8125-480a-91ec-4fe08c90e69c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

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

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

end of thread, other threads:[~2015-02-13  9:04 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-01-22 16:46 Escape double period in image file name David Haberthür
2015-01-22 16:52 David Haberthür
     [not found] ` <34fbef04-8125-480a-91ec-4fe08c90e69c-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org>
2015-01-23 22:09   ` John MacFarlane
     [not found]     ` <20150123220941.GD67331-0VdLhd/A9Pm0ooXD8Eul3dn5441T/ExBaxvHy9gZ5WyVc3sceRu5cw@public.gmane.org>
2015-01-24  9:35       ` David Haberthür
2015-02-01 19:52       ` David Haberthür
     [not found]         ` <140EDD43-9160-4964-B9E4-3230B151DBF7-32snws64Z+43qbniVyZh5nIPMjoJpjVV@public.gmane.org>
2015-02-13  9:04           ` David Haberthür

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).