Ok, so I often have to type large documents with a lot of nested environments.
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.
General ⇒ begin{...} end {...} pair matching & highlighting in editors
begin{...} end {...} pair matching & highlighting in editors
OS info: Win XP | Debian 6.0 | Ubuntu 10.04
Latex editor of choice: TexWorks (for dual view feature)
Latex editor of choice: TexWorks (for dual view feature)
NEW: TikZ book now 40% off at Amazon.com for a short time.
- Stefan Kottwitz
- Site Admin
- Posts: 10321
- Joined: Mon Mar 10, 2008 9:44 pm
begin{...} end {...} pair matching & highlighting in editors
Hi,
you could have a look at the small Ruby script match_parens. Perhaps you can extend it by \begin ... \end pairs.
Stefan
you could have a look at the small Ruby script match_parens. Perhaps you can extend it by \begin ... \end pairs.
Stefan
LaTeX.org admin
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.
OS info: Win XP | Debian 6.0 | Ubuntu 10.04
Latex editor of choice: TexWorks (for dual view feature)
Latex editor of choice: TexWorks (for dual view feature)