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

[QUESTION] Run with xelatex or lualatex? #6

Closed
albertodiazdorado opened this issue Oct 7, 2024 · 3 comments
Closed

[QUESTION] Run with xelatex or lualatex? #6

albertodiazdorado opened this issue Oct 7, 2024 · 3 comments

Comments

@albertodiazdorado
Copy link

Hi!

I have read through the docs but could not find and answer. Is it possible to configure the dev container to use xelatex or lualatex as an engine? I would like to use fontspec but pdflatex does not support it.

/usr/share/texlive/texmf-dist/tex/latex/fontspec/fontspec.sty:45: Fatal Package fontspec Error: The fontspec package requires either XeTeX or
(fontspec)                      LuaTeX.
(fontspec)                      
(fontspec)                      You must change your typesetting engine to,
(fontspec)                      e.g., "xelatex" or "lualatex" instead of
(fontspec)                      "latex" or "pdflatex".
Copy link

github-actions bot commented Oct 7, 2024

Hi, thank for reporting an issue, we will check it out very soon

@hegerdes
Copy link
Owner

hegerdes commented Oct 7, 2024

Hi, thanks for opening this.

If you use the VSCode integration of this dev container, then you are using the LaTeX Workshop extension under the hood.
Depending on your configuration it may have added a LaTeX symbol to your left sidebar.
The extension uses "recipes" to complete your document. Several predifined recipes are already present, including xelatex. You can try some of them or build your own.

You might want to check out the docs of LaTeX workshop and the default recipe for more info: https://github.com/James-Yu/LaTeX-Workshop/wiki/Compile#building-the-document

@albertodiazdorado
Copy link
Author

Thank you very much! I was able to make it work using the LaTeX workshop recipes setting

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

No branches or pull requests

2 participants