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

XeLaTeX support #291

Merged
merged 3 commits into from
May 10, 2022
Merged

XeLaTeX support #291

merged 3 commits into from
May 10, 2022

Conversation

zhiyuanzhai
Copy link
Contributor

Related to #290.

@tpapp
Copy link
Collaborator

tpapp commented Apr 27, 2022

LGTM, apologies for the delayed review.

Please also update the Choosing the LaTeX engine used part of docs/src/man/save.md accordingly, then this should be good to go.

@zhiyuanzhai
Copy link
Contributor Author

Also, apologies for the delayed reaction. Didn't see the review last week.


"""
The active LaTeX engine. Initialized the first time [`latexengine`](@ref) is called.
"""
const ACTIVE_LATEX_ENGINE = Ref{Union{Nothing, LaTeXEngine}}(nothing)
function latexengine()
if ACTIVE_LATEX_ENGINE[] === nothing
for (engine, enum) in zip(("lualatex", "pdflatex"), (LUALATEX, PDFLATEX))
for (engine, enum) in zip(("lualatex", "pdflatex", "xelatex"), (LUALATEX, PDFLATEX, XELATEX))
Copy link
Owner

Choose a reason for hiding this comment

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

Do we want to pick xelatex over pdflatex if we find it?

Copy link
Collaborator

Choose a reason for hiding this comment

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

I don't know much about XeLaTeX, so I would stick with the ordering above and leave it to the user to request something else.

Co-authored-by: Kristoffer Carlsson <[email protected]>
@KristofferC KristofferC merged commit a03ac8e into KristofferC:master May 10, 2022
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.

3 participants