The author misses one very important feature of LaTeX that is the reason why I keep a lot of my notes in it. LaTeX exposes two mechanisms for easily making replacements all across a document. One is with macros, which you can change the definition of when necessary. The other is the simple search-and-replace, which is very powerful since you can involve macro and formatting syntax in it. Traditional word-processing a…
Probably word processors don't have an analgoue to LaTeX macros, but surely they do have search and replace, don't they?
The LaTeX Fetish (2016)
11–20 of 185 posts
Re: The LaTeX Fetish (2016)
#12But, ultimately my beef is the straw man that markup is bad because it is harder to read. That a graphical editor is superior because it is more readable. Instead, the advantage is that in the one you are only writing text and you are indicating special instructions to the computer. In the other, you only see what the computer is letting you see. Note that in both cases, all of those special instructions are still there. You just can't necessarily see them.
And this might sound like not a big deal. But the first time you find yourself unable to change the bold of one section of text (or centering/whatever), you will really wish you could just drop into a view that showed you why it was doing what it was doing. Which is ultimately just a markup language.
And heaven help you if you decide to upgrade word processor mid paper. Or go back and try to touch up a previous one. Markup wins because it is just plain text. And plain text wins because it is ubiquitous.
Re: The LaTeX Fetish (2016)
#13One of the best article titles I've ever seen on HN! I actually L'd OL. I think the author's thesis could be summed up as 'I like WYSIWYG more than markup', which is purely a matter of preference. I also know there are several tools which let you do this (to varying degrees of success) with LaTeX as an output. My own preference is having a complete understanding of why everything is where it is in a layout. In my exp…
It largely comes down to a ease-of-use vs power and clarity trade-off.
Re: The LaTeX Fetish (2016)
#14Earlier quoted context omitted.
Probably word processors don't have an analgoue to LaTeX macros, but surely they do have search and replace, don't they?
Is there really a WYSIWYG word processor supporting search and replace for formatting?
I'd also be surprised if word's implementation was anywhere near as powerful as a full-on search replace on latex using regexps.
Re: The LaTeX Fetish (2016)
#15I think many academics write in LaTeX because it is easier to switch between document formatting styles. If you submit to multiple journals that all have their own poorly made Word 2007 templates, even the pain of LaTeX is not so bad.
Re: The LaTeX Fetish (2016)
#16Earlier quoted context omitted.
Probably word processors don't have an analgoue to LaTeX macros, but surely they do have search and replace, don't they?
But in WYSIWYG editors, you can only search for raw text correct? For instance, if I want to search for all bold text, its trivial to do so using a markup language, but I don't think there is really a way to do that with conventional word processors.
In Microsoft Word for Windows it's the "Styles" bar, and on MacOS it's the "Styles Pane".
Re: The LaTeX Fetish (2016)
#17- Interacts well with version control: it is trivial to maintain a LaTeX document in a git repo, and the diffs are readable (especially with --color-words)
- Makes it possible to programmatically generate formatted text, tables, graphs, possibly from external data sources, either with the internal macro language or through an external scripting language
- Has reasonable separation of content and formatting. For example when submitting the same document to multiple conferences it is almost trivial to adapt the content to the required formats.
If writing mostly prose, these may not matter much, but for technical writing I would rather not do without them.
Re: The LaTeX Fetish (2016)
#18I had a few things about TeX versus LaTeX. I think the reality is nobody really tries writing TeX. But, ultimately my beef is the straw man that markup is bad because it is harder to read. That a graphical editor is superior because it is more readable. Instead, the advantage is that in the one you are only writing text and you are indicating special instructions to the computer. In the other, you only see what the c…
Re: The LaTeX Fetish (2016)
#19I mean look at the title on the screenshot rendered by Writer! It's horrific! I've found things improve when you move to a 15" 4k screen, but on my 1080p desktop monitors at work Writer is barely readable. You seem to be in luck you're using a Mac, since it's even worse on Linux in my experience.
> I know where it is because I put it there, but looking for it is hurting my eyes.
Perchance the fault is with your text editor. It hurts my eyes, too, but the problem disappears when I use my local editor.
Re: The LaTeX Fetish (2016)
#20Earlier quoted context omitted.
Probably word processors don't have an analgoue to LaTeX macros, but surely they do have search and replace, don't they?
But in WYSIWYG editors, you can only search for raw text correct? For instance, if I want to search for all bold text, its trivial to do so using a markup language, but I don't think there is really a way to do that with conventional word processors.