-
Notifications
You must be signed in to change notification settings - Fork 26
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
Prevent substitutions for certain sequences on which LaTeX chokes #2
Comments
Any HTML entity I would recommend a two-step solution:
|
I am making some progress on this. There is now set of tests in The LaTeX converter uses |
Various fixes
Let
Run
No problems. |
The following characters or sequences of characters are mapped to entities which cause LaTeX
to choke (pdflatex crashes or misbehaves), xelatex proceeds, but leaves ugly entity traces in the rendered output.
The list:
--
, which maps to —'
(apostrophe), which maps to ’>
which maps to>
<
which mspd to<
I will add to this as I test more docs.
For the moment I run the output of asciidoctor-latex-converter through the filter below before running latex:
cat foo.tex | sed 's/ — /--/g' | sed "s/’/'/g" | sed 's/>/>/g' | sed 's/</</g' > foo2.tex
The text was updated successfully, but these errors were encountered: