News for hackers. Stuff that matters.
Re:LaTeX Tooling Guide by maksimum on Wednesday March 29, 2017 @08:17PM (#13991865)
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.

Re:LaTeX Tooling Guide by TheRealPomax on Wednesday March 29, 2017 @09:40PM (#13992211)
They 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 Лев Семёнович Вы́готский.

Re:LaTeX Tooling Guide by timtadh on Thursday March 30, 2017 @12:00AM (#13992771)
I 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.
Re:LaTeX Tooling Guide by vostok on Thursday March 30, 2017 @04:40AM (#13993816)
The irony is that it's Erd\H{o}s
Re:LaTeX Tooling Guide by ibizaman on Thursday March 30, 2017 @01:15AM (#13993098)
Have you tried the setxkbmap -layout us -variant altgr-intl keyboard variant? See https://www.google.com/amp/s/zuttobenkyou.wordpress.com/2011...
Re:LaTeX Tooling Guide by copperx on Thursday March 30, 2017 @01:42AM (#13993204)
Option-u o
Re:LaTeX Tooling Guide by pvorb on Thursday March 30, 2017 @03:08AM (#13993506)
It's Erdős, not Erdös btw.
Re:LaTeX Tooling Guide by TheRealPomax on Thursday March 30, 2017 @09:22PM (#14000519)
I was kind of hoping someone would point that out.
Re:LaTeX Tooling Guide by pvorb on Friday March 31, 2017 @02:59AM (#14001702)
You're welcome.
Re:LaTeX Tooling Guide by jclos on Thursday March 30, 2017 @08:39AM (#13994807)
Greek characters require a few manipulations (loading babel and using \textgreek{}), but for accents you literally just need to add two lines to your preamble:

     \usepackage[utf8]{inputenc}
     \usepackage[T1]{fontenc}
Re:LaTeX Tooling Guide by TheRealPomax on Thursday March 30, 2017 @09:23PM (#14000524)
Or you use XeLaTeX and you don't do those things. You just write Greek and say you want to use whatever normal font you like best for typesetting English and Greek at the same time. Because the "inputenc" package shouldn't be necessary in 2017. For more than obvious reasons, _everything_ is now utf8 encoded, including ascii files. Unless you live in a CJK country. Then you might have a reason to still use BIG5 or JIS... although that reason is slowly eroding in favour of UTF8 too.
Re:LaTeX Tooling Guide by jhanschoo on Wednesday March 29, 2017 @09:21PM (#13992140)
For 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.

Re:LaTeX Tooling Guide by TheRealPomax on Thursday March 30, 2017 @09:29PM (#14000545)
Not 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.)

Re:LaTeX Tooling Guide by jhanschoo on Friday March 31, 2017 @10:46AM (#14004314)
I 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.