GithubHelp home page GithubHelp logo

Comments (4)

aaannestad avatar aaannestad commented on September 27, 2024

(I didn't intend to open this as a bug - it's probably some config issue on my end - but now that it is a bug I see no way to change it)

from vimtex.

lervag avatar lervag commented on September 27, 2024

I'm trying to compile a file that uses the fontspec package, which requires xelatex or lualatex to run. My latexmkrc is set up to trigger that:

$latex = 'lualatex %O %S';

and indeed, the file compiles perfectly well if I run latexmk file.tex from the terminal …

Yes. latexmk by default will use the latex option here, and you changed that to run lualatex.

However:

(I didn't intend to open this as a bug - it's probably some config issue on my end - but now that it is a bug I see no way to change it)

Correct. The problem is that it is not the correct way to specify by .latexmkrc to use lualatex. Instead, you should do this:

# This specifies to use lualatex
$pdf_mode = 4;

# This is typically also useful (and will be used both for latex, xelatex,
# pdflatex and lualatex)
set_tex_cmds('-synctex=1 -interaction=nonstopmode --shell-escape %O %S');

You can find details in the latexmk manual.

Notice that VimTeX will recognize the pdf_mode setting from your .latexmkrc file.

from vimtex.

aaannestad avatar aaannestad commented on September 27, 2024

Thank you! That was remarkably difficult information to find just by googling.

from vimtex.

lervag avatar lervag commented on September 27, 2024

Heh, yes; it's much easier if you already know it. ;)

The main things to know here is how latexmk works and how VimTeX is running it. Still, it's easy to see how this is hard-to-build knowledge.

from vimtex.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.