-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Symbol-based escape codes for special characters in markdown to TeX #2880
Comments
This isn't a bug, I think. Pandoc's Markdown tries to pass on things it recognizes as If you want to force interpretation as LaTeX, you can create
Though I suspect it's less work simply to use the unicode +++ Alexey Shiklomanov [Apr 27 16 20:42 ]:
|
Thanks for the quick reply! I didn't realize Pandoc automatically switches to xelatex if it detects unicode characters (at least, I think it does?) -- that's pretty awesome! 👍 I assumed I had to set it manually as an argument. I'm also satisfied with the newcommand workaround -- that also worked like a charm! I'll go ahead and close this, but mention your response in my related Stack Overflow question in case other people come across the same edge case. |
+++ Alexey Shiklomanov [Apr 27 16 21:27 ]:
No, it doesn't. It just emits a warning suggesting you try |
LaTeX special character escape codes don't work if the codes are based on symbols rather than letters in the conversion of Markdown to TeX.
In other words, the following Markdown...
...produces the following TeX output...
Note that escape codes based on letters are always interpreted correctly, while escape codes based on symbols always fail.
This also naturally propagates to PDFs generated by the default latex engine.
The text was updated successfully, but these errors were encountered: