July 20th, 2024

Efficient LaTeX Editing with Emacs

Michael Neuper's blog post delves into optimizing LaTeX editing in Emacs. It covers AUCTeX, live preview, symbols, text folding, CDLaTeX, abbreviations, math symbols, accents, fonts, LatexMk, LSP, Xenops, YASnippet, GNU Calc, and evil-tex.

Read original articleLink Icon
Efficient LaTeX Editing with Emacs

This blog post by Michael Neuper discusses efficient LaTeX editing with Emacs, focusing on customizing the setup using various packages. The post covers enabling AUCTeX for LaTeX editing, live preview features, pretty symbols display, text folding with TeX-fold-mode, and CDLaTeX for fast insertion of templates and math content. It also explains abbreviations, mathematical symbols insertion, accents, and font changes. LatexMk for automating LaTeX document compilation and LSP for language-specific analysis are highlighted. Xenops, a LaTeX editing environment for mathematical documents, is introduced for rendering maths, tables, and TikZ diagrams, as well as pasting images from the clipboard. YASnippet for template expansion, GNU Calc for calculations, and evil-tex for evil users are also mentioned. The post provides detailed instructions on setting up and using these tools within Emacs for efficient LaTeX editing.

Link Icon 4 comments
By @welkinSL - 4 months
I love Emacs but I just don't find editing LaTeX on Emacs an enjoyable.

I am mostly using Overleaf (overleaf.com) which is free for individual use. They only charge for collaboration features and integration with bibliography management software. Free for universities and institutions back then when I was using it a lot, not sure about it now.

Now I find that writing in org-mode then export to LaTeX is the best experience you can have on Emacs. I can do pretty much everything I wanted to do, math typsetting, and even Beamer.

A big warning though, is that you still need some configuration and you will need to be aware of that you are writing for LaTeX export in order for a smooth experience. Especially when you have code blocks with long lines.

Maybe I should write up an article on this some day as tutorials, such as the one for Beamer (https://orgmode.org/worg/exporters/beamer/tutorial.html) does NOT completely cover all the issues that you will face during writing.

By @LightFog - 4 months
I didn’t get to read the article yet - but loading it is crashing Firefox and Safari on my IPhone - haven’t seen that happen in a while!