LaTeX: Difference between revisions
| (2 intermediate revisions by the same user not shown) | |||
| Line 9: | Line 9: | ||
** It is only partially supported outside of pdflatex; LuaTex supports it better than XeTeX as of 2023-10 (see the table in the documentation, page 6). | ** It is only partially supported outside of pdflatex; LuaTex supports it better than XeTeX as of 2023-10 (see the table in the documentation, page 6). | ||
* Use the [https://ctan.org/pkg/realscripts realscripts] package for most documents. It improves sub- and superscripts when using OpenType fonts with appropriate features (normally the glyphs are simply drawn at a smaller size). It doesn't work well in certain environments or in certain cases, in which case use a '*' suffix to revert to the previous definitions. It's best to use this from the beginning of a document so that you check each placement. | * Use the [https://ctan.org/pkg/realscripts realscripts] package for most documents. It improves sub- and superscripts when using OpenType fonts with appropriate features (normally the glyphs are simply drawn at a smaller size). It doesn't work well in certain environments or in certain cases, in which case use a '*' suffix to revert to the previous definitions. It's best to use this from the beginning of a document so that you check each placement. | ||
** As of late 2023, it does not work well with [https://ctan.org/pkg/siunitx?lang=en siunitx] in my experience. | ** As of late 2023, it does not work well with [https://ctan.org/pkg/siunitx?lang=en siunitx] in my experience. You'll want to define <tt>text-subscript-command</tt> and <tt>text-superscript-command</tt> to be commands which use <tt>\textsuperscript*</tt> etc., though this does seem to work. | ||
* 72.27 points equals 1 inch equals 25.4 millimeter | * 72.27 points equals 1 inch equals 25.4 millimeter | ||
* Invoke with <tt>-halt-on-error</tt> for better life quality | * Invoke with <tt>-halt-on-error</tt> for better life quality | ||
** You probably want <tt>-shell-escape</tt> as well. I've never found a situation where it's bad. | ** You probably want <tt>-shell-escape</tt> as well. I've never found a situation where it's bad. | ||
===LuaLaTeX/XeTeX notes=== | |||
* LuaLaTeX needs the Harfbuzz renderer to handle complex languages, and it's superior in any case. | |||
** I think this is the default as of 2020 ("LuaHBTex") | |||
==Punctuation== | ==Punctuation== | ||