4 ms·
Besides native UTF support and fonts what advantages do the XeLaTeX and LuaTeX ecosystems offer over LaTeX? You mention writing a novella as your use case, but
by maksimum 10y ago
Besides native UTF support and fonts what advantages do the XeLaTeX and LuaTeX ecosystems offer over LaTeX?
You mention writing a novella as your use case, but I don't think that's a particularly difficult task for a typesetting engine. If you found typesetting a textbook with "rich" margins, annotations, and figures significantnly easier I would be more inclined to learn about alternatives.
With LaTeX I can transform my research papers to comply with a publisher's template in a few lines of code. Sure there are some annoyances such as compile compile bibtex compile, but the ecosystem is mature enough that most of these are well handled.
- jhanschoo 10y agoFor the use case where your journal/publisher has a desired LaTeX template, it's probably more pain than it's worth. For works that have to handle multiple scripts, and for works wherein you are in control of your own typography, it's more logical and practical to work with XeLaTeX/LuaLaTeX. If you wish to use OpenType or TrueType fonts there's little debate. If you want to go the whole nine yards regarding Unicode, there's recently been some development regarding Unicode math, with the first impetus being Microsoft and its Cambria Math to support mathematical typesetting in Word. Unicode math refers to fonts implementing mathematical symbols as Unicode glyphs, as well as some font-side logic regarding how the font renders math, afaik.
- TheRealPomax 10y agoNot really? XeLaTeX is "the LaTeX API (because it's an API built to be run by a TeX engine. LaTeX is built on TeX the same way jQuery is built on JavaScript) run using XeTeX" (the natively-unicode-aware TeX engine). So if your publisher has a LaTeX template, that's pretty much guaranteed to work just fine when you \usepackage it in XeLaTeX context. Needless to say, except it really does need to be said, that also means full Unicode Maths support (through \setmathfont{A normal font name} without needing TeX metrics nonsense because it's 2017) for any OpenType font with maths support (Cambria Math, XITS Math, etc. etc.)
- jhanschoo 10y agoI was thinking that if you draft a document in XeLaTeX/LuaLaTeX, including a template, then if you don't bother to really learn how font handling with XeTeX/LuaTeX works, you might end up with some fontspec or polyglossia line in your code, etc., and there might be problems with a template that does things oldstyle. Another point is that some packages haven't been updated for Unicode, algorithms2e being one popular package that's still Latin-1, IIRC. Then if your code will be compiled from source by someone using pdfLaTeX, your Unicode characters will cause problems. Hence why I say that it's probably more pain than it's worth, since there are still things you need to understand to avoid incompatibility. I think a more proper analogy would be C and C++, since while XeTeX/LuaTeX is mostly LaTeX compatible, 1) you risk running into sinister incompatibilities and 2) typical XeTeX/LuaTeX code is different from, and incompatible with typical LaTeX code.
- TheRealPomax 10y agoThey still support the LaTeX command set, except they're native Unicode and native OpenType support. That's kind of where the full stop should be satisfactory. If you need to typeset anything, having the LaTeX commands _and_ normal text typesetting for arbitrary languages is literally why base LaTeX with pdftex is now effectively irrelevant. If you need amsmaths or APA citation, you still get those. Except now you get them without insane commands just to type Paul Erdös' name, or citing Лев Семёнович Вы́готский.
- timtadh 10y agoI guess I live in a small world because I have no idea how to type an umlaut on a US Qwerty keyboard but I can easily type Paul Er\"{o}s.
- ibizaman 10y agoHave you tried the setxkbmap -layout us -variant altgr-intl keyboard variant? See https://www.google.com/amp/s/zuttobenkyou.wordpress.com/2011/08/24/xorg-using-the-us-international-altgr-intl-variant-keyboard-layout/amp/ https://www.google.com/amp/s/zuttobenkyou.wordpress.com/2011...
- copperx 10y agoOption-u o
- vostok 10y agoThe irony is that it's Erd\H{o}s
- pvorb 10y agoIt's Erdős, not Erdös btw.
- TheRealPomax 10y agoI was kind of hoping someone would point that out.