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