General ⇒ begin{...} end {...} pair matching & highlighting in editors
begin{...} end {...} pair matching & highlighting in editors
I was hoping that latex editors would match and highlight begin{...} end {...} pairs but so far to my knowledge none offer this feature.
Now that I've created a mess of nesting and have lost track of my pairs, I'm in particular need of it. Latex at this level of usage is just not human-readable. Suggestions?
PS, I found this http://www.cs.stir.ac.uk/~kjt/software/ ... hktex.html script written in 1992, but I don't know how to use it in Debian 6 Linux. Do I have to make it executable and then how do I use it? Either way, I did what it says in a terminal but command not found.
Latex editor of choice: TexWorks (for dual view feature)
NEW: TikZ book now 40% off at Amazon.com for a short time.
And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p
- Stefan Kottwitz
- Site Admin
- Posts: 10324
- Joined: Mon Mar 10, 2008 9:44 pm
begin{...} end {...} pair matching & highlighting in editors
you could have a look at the small Ruby script match_parens. Perhaps you can extend it by \begin ... \end pairs.
Stefan
begin{...} end {...} pair matching & highlighting in editors
Great suggestion - only I'm a bit timid when it comes to programming - I must confess, I'm not a programmer.Stefan_K wrote:Hi,
you could have a look at the small Ruby script match_parens. Perhaps you can extend it by \begin ... \end pairs.
Stefan

Since the script quoted in the original post seems to be specifically written for checking begin/end pairs, do you or someone else think they could give it a go and tell me how they got it to work? I would've thought just chmod +x and run the command, but that didn't work for me unless I did something wrong.
Latex editor of choice: TexWorks (for dual view feature)