Where texlode differs
from LaTeX by design
For authors who know LaTeX: the few places where texlode typesets your source differently from LuaLaTeX, and why.
What this page covers
texlode typesets your document with LuaLaTeX. The print view and Build PDF come from texlode’s own engine, which sets each paragraph with LuaLaTeX as you type. The LaTeX PDF tab of the Publish dialog runs LuaLaTeX over your whole source, and the .tex export is your source as it is.
In a few places texlode does something other than LaTeX because we decided the result is better for a book. This page lists them, so a texlode PDF that differs from one you built yourself does not surprise you. Any other difference between the print view and LuaLaTeX is a bug. Report it through Help → Chat Support.
Every table starts its row stripes afresh
In LaTeX: \rowcolors from xcolor shades rows by a row counter that runs through the whole document. If your preamble calls \rowcolors once, the counter keeps going from one table to the next and through every eqnarray in between. Whether a table’s first row is shaded then depends on how many rows came before it, possibly chapters earlier.
In texlode: the counter starts again at every table, so the same \rowcolors setting gives every table the same pattern. This holds in the print view, in Build PDF and in the full typesetting run. The texlode templates already call \rowcolors at the start of each table, so their tables look the same either way.
Why: with a document-wide count, adding one row to a table in chapter 2 would swap the stripes of every table after it.
Code is coloured by Shiki, not Pygments
In LaTeX: minted colours code by calling Pygments, a program outside TeX. That only works when LuaLaTeX runs with shell escape.
In texlode: shell escape is off for every typesetting run, because on a shared server it would let a document run any program. texlode colours code itself with Shiki, which uses the same TextMate grammars as VS Code. A minted block is coloured by its language argument and an lstlisting block by its language= option. The colours follow Shiki’s theme, so they differ from the Pygments colours you may know.
Inline code written with \mintinline is not coloured. texlode sets it like \Verb, so it breaks across lines where your \fvset settings let LuaLaTeX break \Verb. Pygments, which minted calls, can also put a frame around a token it does not recognise and move a line break to the edge of a token. texlode runs no Pygments, so neither happens.
Every PDF shows these colours: the print view, Build PDF, the print check, and the full typesetting run behind a release (PDF/A, PDF/X, editions). The code stays in your own environments, so your template keeps its frame, line numbers and layout. If your book loads listings, Shiki’s colours replace the keyword, string and comment styling of listings in lstlisting blocks.
Related guides
- Templates, packages and your own macros explains what the templates load and what the Print View needs from your code.
- How texlode works explains the Print View, the Inspector and export.