-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
markdown -> pdf: error; math in \href description fails, latex writer bug? #583
Comments
+++ Viktor Qvarfordt [Aug 13 12 00:10 ]:
No, it's not a bug in pandoc. In LaTeX, the macro
in the body. It will crash just as above. With
it works fine. So, you can change your source to
Note, however, that this won't work in HTML, since you're using |
Hmm I see. Can this not be solved in some nice way? Pandoc is really great for writing documents in a syntax that is nice looking and manageable, like markdown, and still being able to output to a nice looking and powerful format, like html and latex. But in this case I need to modify the source each time I want another output format. Can I not get around this? |
If you are just targetting HTML and PDF, you can do the following.
The raw LaTeX will only appear in latex/PDF. The raw HTML will only appear +++ Viktor Qvarfordt [Aug 13 12 12:26 ]:
|
@jgm However, I don't know how I should do it, the link in Your comment seems broken. Could You please repeat the correct way of configuring pandoc to display the latex command in both html and pdf at the same time? Furthermore, below command that has
However, if I change I used this section on markdown variants from pandoc documentation, and I subtracted all the extensions from the variant, like so:
But, even when I substract all the extensions from So, in summary, I'd like to ask whether there is a way for me, to be able to use |
@jgm There does seem to be a problem with your post of Aug 13 2012. Any chance you could repost this? I tried using |
I updated the comment. |
Thanks @jgm that works, in principle. In practice, the image now has to be scaled to some target size so it can appear inline. Can't do html width/height adjustment as those cannot be made relative to the size of the text AFAIK. My output formats are PDF or epub, hence the need to worry about multiple font sizes. |
Reproducing:
This does with html writer, so I assume this is a bug in the LaTeX writer.
The text was updated successfully, but these errors were encountered: