Comments (4)
(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.
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.
Thank you! That was remarkably difficult information to find just by googling.
from vimtex.
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)
- Error detected while processing function callback HOT 1
- ClassWarning is not detected HOT 1
- Lag due to fontawesome5 package HOT 18
- Add conceal for corners HOT 1
- Poor error output in bibliography issue HOT 3
- Autocompletion using '\' instead of '/' in paths (Windows 10) HOT 7
- Cannot call zathura from vimtex HOT 4
- An option to deal with dot when toggling inline and displaymath with `ts$` HOT 1
- Real-time scrolling output of latexmk (or compiler) HOT 4
- Runtime compiler not using xelatex using `vimtex_compiler_latexmk`? HOT 2
- Highlight illegal characters HOT 10
- Implement a .lua configuration HOT 3
- how do I unmap just some mappings? HOT 4
- Inconsistent syntax highlighting in subscript and superscript HOT 1
- Help Add custom concealing rule for VimTeX on neovim HOT 3
- How do I get rid of a "latexmk is not executable" error? HOT 4
- supertab completion takes 20 seconds to complete a word when using many latex packages HOT 5
- Inverse search does not work with sioyek HOT 10
- Magic comment for compiler fails if there are trailing spaces HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vimtex.