Skip to content
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

Merged
merged 11 commits into from Apr 15, 2017

Conversation

felixfontein
Copy link
Contributor

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.

@@ -89,6 +89,7 @@ def __init__(self):
super(LatexImageFormulaRenderer, self).__init__()
self.__formula_scale = 1.25
Copy link
Member

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.

Copy link
Contributor Author

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?

Copy link
Member

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}
Copy link
Member

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.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good idea.

@Kwpolska
Copy link
Member

(Merge at will, since plugins do not require reviews.)

@felixfontein felixfontein merged commit 644f70b into master Apr 15, 2017
@felixfontein felixfontein deleted the improve-latex-formula-renderer branch April 15, 2017 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants