texworks
texworks copied to clipboard
Tags dock incorrectly stops when encountering a } even if it is not the matching }
What steps will reproduce the problem?
1. Create sections that incorporate a command. Example:
\section{\prefix{a_number} the title }
The expected result in the dock should be:
"\prefix{a_number} the title"
Instead the result is:
"\prefix{a_number"
This is probably caused beceause the opening bracket is matched by the
first bracket encountered which is not always the bracket that should be
matched.
I am using TexWorks v0.2.3 on Windows XP.
Original issue reported on code.google.com by [email protected] on 12 Apr 2010 at 12:58
This is a limitation of scanning for "tags" (section headings, etc) using a
simple regular expression, rather than
actually parsing the code. (But TW deliberately does not try to really parse
LaTeX source - that would make it too
dependent on one particular dialect of TeX, and/or would make the feature too
complex to configure.)
Original comment by [email protected] on 12 Apr 2010 at 10:22