-
Notifications
You must be signed in to change notification settings - Fork 968
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error if there is an underscore in logo file name #100
Comments
Pandoc interprets every metadata value as Markdown and converts it to the output format before inserting it in the document. Unfortunately the underscore gets converted to \includegraphics[width=120pt, left]{logo\_underscore.pdf} with the following error message:
This is a known and documented behaviour (see jgm/pandoc#3504 or jgm/pandoc#1685).
You can tell pandoc that you want to pass the metadata value to LaTeX unparsed (as raw LaTeX) so the following code should work:
|
I am having similar issue, but in my case I am trying to add the logo in the command line using
The .tex file produced will have
which does not work. However, if I edit the lines into
the .pdf is produced without errors. I saw there is a workaround when using the YAML metadata in the .md files, but how would one make it work using the command line arguments? |
I don't know how to pass raw latex via the
I think it is worth a question on pandoc-discuss or in the pandoc issue tracker. |
If I add a logo file name with underscore it gives error:
File not found:
\T1\textunderscore
The text was updated successfully, but these errors were encountered: