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)
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Stefan Kottwitz
- Site Admin
- Posts: 10360
- 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)