xah talk show highlight, why Donald Knuth's TeX (and LaTeX) suck, at 1:08:20 youtu.be/dyCyPhU6reY?t=4101

@xahlee Haven't watched but however (La)TeX sucks, it sucks so much less than any other alternative.

@_emacsomancer hard to reply. Mathematica for example is better. But one has to pay... but maybe watch the video and maybe that'll change your mind. :D

@xahlee Ok, I had a look.

1) (La)TeX is not just about typesetting formulae. Yes, it does that, but it does a lot more. Essentially almost everything I do is produced in LaTeX, from articles to lecture slides. It handles keeping track of numbered examples, references, glossing from other languages, typesetting non-roman fonts, drawing syntax trees, and so on and so forth. Mathematica doesn't do that.

2) Yes, the syntax isn't great, but you can define your own functions and fix that.

@_emacsomancer
About type setting non Roman fonts.

I have not been able to get Hebrew working. I am exporting from orgmode so that just makes it a bit more complicated.
@xahlee

@yisraeldov @xahlee You'll probably want to use XeLaTeX or LuaLaTeX. It's easy to set Hebrew or Arabic or the like.

@_emacsomancer
Do you have an example of getting it to work with orgmode? I really appreciate it.

I got emacs to print Hebrew but it comes out backwards, better than nothing.
@xahlee

@yisraeldov Try this:

1) eval/use in your init.el:

(setq org-latex-compiler "xelatex")

2) Add the following to the header of your org file (or set your default LaTeX packages and header information in init.el):

#+LATEX_HEADER: \usepackage{fontspec}
#+LATEX_HEADER: \setmainfont{Noto Sans Hebrew}

@xahlee

@yisraeldov @xahlee (Or choose some other font in place of 'Noto Sans Hebrew')

@yisraeldov @xahlee Hmm... actually you may need a few other packages. Try:

#+LATEX_HEADER: \usepackage{fontspec}
#+LATEX_HEADER: \usepackage{polyglossia}
#+LATEX_HEADER: \setdefaultlanguage{hebrew}
#+LATEX_HEADER: \usepackage{bidi}
#+LATEX_HEADER: \setmainfont{Noto Sans Hebrew}

for headers (I'm not used to working with RtL scripts).

@_emacsomancer
This is so awesome! As soon as I get a chance I'm going to try it out. You sir are a scholar and a gentleman!
@xahlee

Sign in to participate in the conversation
LinuxRocks.Online

Linux Geeks doing what Linux Geeks do..