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
Improve latex formula renderer (bugfixes, refactoring, adding support for other TeX engines) #224
Conversation
@@ -89,6 +89,7 @@ def __init__(self): | |||
super(LatexImageFormulaRenderer, self).__init__() | |||
self.__formula_scale = 1.25 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS. I really dislike those double underscores.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because they look ugly, because they don't really give privacy, or because of something else?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That, and they may mess up in some situations where you never expect it. This probably won’t happen in a Nikola plugin that doesn’t get inherited though.
'programs': ['lualatex'], | ||
'head': R"""\RequirePackage{luatex85} | ||
\documentclass{standalone} | ||
\usepackage[T1]{fontenc} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
\usepackage{fontspec}
would be a better choice for LuaTeX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good idea.
(Merge at will, since plugins do not require reviews.) |
The new version should be backwards compatible to old instances of the latex compiler plugin (and other plugins).
Also includes a fix for the latex compiler plugin to allow setting the TeX engine for formula rendering.