Hi, Randy
Unfortunately there is no way for a regular expression match to gain
consciousness of the number of its incarnation. This would require
some scripting interference.
A simple workaround would be to add a comment to each \begin{theorem}
so it looks something like this:
\begin{theorem} % 1
Then search
\\begin{theorem} % (.+)
and mark with
thm\1
Depending on how many occurences you need to mark this might be
cumbersome as you have to add the comments by hand in the first place.
Hope that helps
Roland
Am 09.11.2006 um 13:07 schrieb Randy Silvers:
I'd like to be able to create markers that are consecutively numbered.
For example, in a LaTeX document, I will have several lines that
are all
\begin{theorem}
At some point, it would be useful to choose "Find and Mark All"
then enter \\begin{theorem}
and have the marker label be
thm1 for the first instance, thm2 for the second instance, thm3 for
the third instance, and so on.
What grep do I use so that the markers are labelled with
consecutive numbers after specified text?
"thm\#" does not work and neither does "thm\1"
Thanks,
Randy
"And in the end, the love you take is equal to the love you make."
The End, Abbey Road, The Beatles, 1969.
Randolph Silvers, Lecturer
Deakin University 221 Burwood Highway, Burwood, VIC 3125 Australia.
Phone: 03 9251 7376 International: +61 3 9251 7376
Fax: 03 9244 6283 International: +61 3 9244 6283
Email: [EMAIL PROTECTED]
Website: http://www.deakin.edu.au
Deakin University CRICOS Provider Code 00113B (Vic)
--
------------------------------------------------------------------
Have a feature request? Not sure the software's working correctly?
If so, please send mail to <[EMAIL PROTECTED]>, not to the list.
List FAQ: <http://www.barebones.com/support/lists/bbedit_talk.shtml>
List archives: <http://www.listsearch.com/BBEditTalk.lasso>
To unsubscribe, send mail to: <[EMAIL PROTECTED]>