Tuesday, February 4, 2025

My LaTeX "ide"

I haven’t found a LaTeX IDE that I am happy with (texmaker comes close, but I don’t like the fact that it doesn’t properly underline the trigger letter in menus, even if Windows is set to do that), and so I ended up defaulting to just editing my book and papers with notepad++ and running pdflatex manually. But it’s a bit of a nuisance to get the preview: ctrl-s to save, alt-tab to command-line, up-arrow and enter to re-run pdflatex, alt-tab to pdf viewer. So I wrote a little python script that watches my current directory and if any .tex file changes in it, it re-runs pdflatex. So now it’s just ctrl-s, alt-tab to get the preview. I guess it’s only four keystrokes saved, but it feels more seamless and straightforward. The script also launches notepad++ and my pdf viewer at the start of the session to save me some typing.

2 comments:

skip said...

Emacs + orgmode is the most efficient, featureful LaTeX ide.

Alexander R Pruss said...

There is a lot to learn there, as opposed to just a simple editor and a commandline. Maybe it would be worth it, but I managed to go through most of life with vi and simple DOS/Windows text editors like Brief, SemWare, context and now notepad++, apart from a detour where I used a commercial LaTeX IDE.