by miguelmurca on 5/24/22, 10:12 AM with 236 comments
by tunesmith on 5/24/22, 5:38 PM
Ultimately, I think wrestling with LaTeX is kind of like wrestling with programming. Over time, you just have to develop that sense of radar that tells you when you are over-implementing. In programming, it's the choice of whether to write custom or hunt for a library, or at a higher level, the build-vs-buy question. For LaTeX, it's whether to wrestle with custom commands or just search its stack exchange or hunt for a package. It's still easy to go down the wrong rabbit hole - last time it happened to me it was because I got obsessed with wondering if I could create nomographs in LaTeX, but luckily I discovered pynomo instead.
by patrickg on 5/24/22, 12:09 PM
See http://wiki.luatex.org/index.php/TeX_without_TeX for an introduction.
I have (shameless plug) created a database publishing software using this technique (https://github.com/speedata/publisher/). Once in a while I have to use LaTeX and it feels a bit old school to do the macro programming.
My next project is to rewrite the TeX algorithms in Go - see https://github.com/speedata/boxesandglue. Already usable but not TeX like in any way (this is just a library, not a frontend software like TeX)
by akavel on 5/24/22, 12:35 PM
edit: for some attempt at an explicit discussion of pros & cons & history vs. TeX, see: https://sile-typesetter.org/what-is/#sile-versus-tex
by shp0ngle on 5/24/22, 5:23 PM
Sure, it might be marginally better than just using Word, although - not that much; and it’s horrible to debug, it’s horrible to actually automate, it’s horrible to actually “separate content from style”…
I thought that maybe something is wrong with me and over time it will “click”… it never did.
But, this article made it click. (but that’s after I already got my degree…)
http://www.danielallington.net/2016/09/the-latex-fetish/
LaTeX is not actually good for writing papers.
It’s good for typesetting. And that’s it. It’s good as a type-setting program, that’s what it is meant to be. It’s definitely not good for separating content from style, or some kind of meta-automation or macros.
by Pinus on 5/24/22, 12:11 PM
(Plain)TeX always seems the opposite of this. There is never a keyword that does what you want, but you can always do it by using five different mechanisms in concert. You always feel like you are trying to trick the system into doing something it was not designed for.
by ttul on 5/24/22, 2:07 PM
It suffices to say that I hastily hired a friend in school to work over the weekend converting the beautiful LaTeX into Word.
by dreamcompiler on 5/25/22, 5:28 AM
The offensively inelegant point is purely a matter of taste so I won't belabor it. The second point means that every author writes their document with their own particular suite of LaTeX add-ons, and if you don't have all of them you have no hope of compiling the document. There's Joe's LaTeX and Sally's LaTeX and Jennifer's LaTeX but nobody uses "vanilla LaTeX." So even after I download "LaTeX" (which is itself multiple gigabytes in size), I still have very little hope of compiling documentation that comes in LaTeX form. I hate LaTeX with the heat of a thousand suns and I'm embarrassed for my profession when I find it still in use.
The one thing LaTeX does well is math; if I had to write math papers I'd probably force myself to learn it, but fortunately I don't.
I tend to use org-mode for everything now. I don't use markdown because it has the same problem as LaTeX: There's really no such thing as "markdown" and the vanilla Daring Fireball version isn't facile enough for real work.
by wesleywt on 5/24/22, 1:49 PM
by leephillips on 5/24/22, 12:42 PM
by singhrac on 5/24/22, 8:47 PM
Very honestly, part of the reason I don't bother with any new "LaTeX reimagined" projects is because either (a) they are written by LaTeX nonbelievers who don't understand the complexity of beautiful typesetting, or (b) I don't want to learn another markup+ language or mental model. The latter is increasingly annoying to me.
Out of curiosity, is LaTeX compilation benchmarked on the M1 processors? Is it better? Has anyone experimented with magic Raph Levien-style SIMD magic (a la stack monoid) compilation for LaTeX? I just want LaTeX but really really fast.
by teleforce on 5/24/22, 12:48 PM
TeXmacs is WYSIWYG scientific editing platform. Documents created can be saved in TeXmacs, Xml, Scheme, PDF or Postscript. Converters exist for TeX/LaTeX and HTML/MathML. It can also be used as a graphical front-end for other computer algebra, numerical analysis, statistics software[1].
by dontbenebby on 5/24/22, 12:17 PM
I actually used to use TexMaxer:
https://en.wikipedia.org/wiki/Texmaker
It's on my list of things I want to deploy a fuzzer on when I get around to learning that -- I've been focused more on data visualization lately.
by camel-cdr on 5/24/22, 12:52 PM
I'd really like to get to know plain TeX a bit better, but I've got no idea where to start.
by giraffe_lady on 5/24/22, 12:45 PM
It doesn't shield you from much of the pain, initially at least. But you can separate it from the document and treat it as markup, and reuse bits more easily.
Of course pollen itself is a thing to learn. But if you work with text a lot and like lisp it might be worth it. It's been good to me.
by jonpalmisc on 5/24/22, 12:16 PM
LaTeX will work excellently for you, so long as your use case was envisioned by the original authors.
I can't say that the original authors of LaTeX didn't envision using it for creating slideshows/presentations, but I can say that making a beamer theme is uniquely complicated. I wish that LaTeX had something as flexible as CSS for styling documents rather than the awkward commands, etc. used now—so much so that I attempted to replace LaTeX with a HTML & CSS -> PDF workflow in the past [0]. It is still an idea I want to revisit someday when I have more time.
[0] https://github.com/jonpalmisc/pmt (no longer actively maintained)
by kkfx on 5/24/22, 1:04 PM
As far as I do not find something with equivalent or better typesetting quality I'm stick with LaTeX :-)
To those who hate it: try to learn some tangible "alternatives" like *roff or TeXinfo and than you'll see LaTeX syntax is not that horrid or difficult, then try to learn some modern typesetting tools like those from Adobe. LaTeX win easily, that's is. Said that IF someone can offer something equivalent with a far simpler/nicer markup as I said before my love is just to the quality of the output!
by funnym0nk3y on 5/24/22, 12:39 PM
by zuzun on 5/24/22, 2:34 PM
I would create a counter for the affiliations, let the \affiliation command define macros that contain the name of the affiliation and the value of the counter and then append the output to two different helper macros, one for authors and one for affiliations, whose contents I dump in \maketitle.
by WolfOliver on 5/24/22, 12:04 PM
by Tepix on 5/24/22, 2:02 PM
Maybe in another life...
by wmwmwm on 5/25/22, 8:20 AM
However, it's still an effort to squint at all of LaTeX's curly brackets and long form symbol names, and LaTeX doesn't grok the equation of course.
Has anyone come across any tools out there that offer a similar experience for manually rearranging equations and somehow 'linting' as you go along? i.e. something that knows a bit more about precedence/structure etc? Even a intellij ctrl-W style shortcut (highlights chunks with increasing scope) would make it easier/quicker to do what I'm talking about.
by gus_massa on 5/24/22, 12:12 PM
I made something implementing fake vectors using \csname . I think that a similar approach can be used for this problem, but I prefer to never see my old code again. IWIMM
\newcommand{\defwithindex}[3]{%
\expandafter\def\csname #1@#2\endcsname{#3}%
}
\newcommand{\getwithindex}[2]{%
\csname #1@#2\endcsname%
}
(You probably need the two dimensional version.)by ivan_ah on 5/25/22, 12:42 PM
% Save to fizzbuzz.tex and compile with pdftex, not pdflatex
\def\modulo#1#2{(#1-(#1/#2)*#2)} % a mod n = a-(a/n)*n where / is integer division
\newcount\X
\X=1
\loop
\ifnum \numexpr\modulo{\X}{15} = 0
FizzBuzz
\else
\ifnum \numexpr\modulo{\X}{3} = 0
Fizz
\else
\ifnum \numexpr\modulo{\X}{5} = 0
Buzz
\else
\the\X
\fi
\fi
\fi
\endgraf
\advance \X by 1
\unless \ifnum \X>100
\repeat
\bye
by cuteboy19 on 5/24/22, 2:54 PM
by rq1 on 5/24/22, 1:09 PM
I don't understand why they encode these expressions f^{(2)}(x) like so. They should be written like a regular function: f 2 x. Then you apply your styling depending on eg. the domain definitions. Eg. for f : N x R -> R, then the first argument is sub/super-scripted... etc.
Another eg. In python, we would render this expression: sum([i*2 for i in range(0, n)]) with sigma expression... etc.
by mhh__ on 5/24/22, 12:07 PM
LateX's successor should be opinionated, safe, easy to build in parallel, and also good at integrating with other tooling:
Let a CAS generate the next equation for you, for example.
Make sure that figure is never out of date (e.g. a build system rather than relying on a web of files and button clicks)
Etc.
This will likely never happen because latex is still very good at what people want it to do push comes to shove, but we could have a much better document format and publishing system around it.
by ahmadmijot on 5/24/22, 1:17 PM
by yingbo on 5/24/22, 1:35 PM
by mgubi on 5/25/22, 6:09 AM
by graycat on 5/24/22, 1:58 PM
LaTeX is just TeX but with a lot of new macros. The intent is different: With TeX, you just say in detail what steps you want the software to do. With LaTeX you say what you want in general terms and f'get about the details.
by JaneYe on 5/27/22, 1:34 AM
by jum1p on 5/24/22, 3:23 PM
by dash2 on 5/24/22, 12:53 PM
I mean, look at this abhorrence. And look at what you open up in a TeX file, which again is meant to represent English prose.
% Options for packages loaded elsewhere
\PassOptionsToPackage{unicode}{hyperref}
\PassOptionsToPackage{hyphens}{url}
%
\documentclass[
]{article}
\usepackage{amsmath,amssymb}
\usepackage{lmodern}
\usepackage{iftex}
\ifPDFTeX
... and more and more of this dross ...
I want to get stuck into the article. At least show me my abstract. But no. It's just more and more backslashes.It's just vile. And the people who use it have Stockholm syndrome, and they pass it on to their PhD students who spend nights before their presentation at 2am, trying to align a table and crying. Then they have Stockholm syndrome too, and they tell you "it's pronounced LARTECH" and give themselves a little pat on the back.
And here's an equation:
\sigma _{I}^{2}=a^{2}s^{2}+\left( 1-a\right)^{2}S^{2}+2a\left( 1-a\right)\sigma.
How are you supposed to manipulate that? I can open up a WYSIWYG editor and literally do maths by just copy-pasting parts from one side to another. But this, I can't even read, let alone intuit.TeX. It's the worst.
by ProfXponent on 5/24/22, 12:22 PM
I’m not trying to flame, I just have no idea why anyone would choose to use it over html/css or just a word processor.