[OS X TeX] TeXShop 2.09a
Claus Gerhardt
gerhardt at math.uni-heidelberg.de
Tue Feb 7 02:06:51 CET 2006
If you place in BBEdit the cursor before the starting $ sign, then
the search command (using grep)
\$((.|\r)+?[^\\$])\$
will find (and highlight) anything between the starting $ sign and
the next forward positioned $ sign (including the $ signs), and not
get irritated by an escaped \$.
I think the solution is fairly easy and obvious unless you want to
make it really foolproof; but if this maxime would rule the world
than we had no cars, no wine, and certainly no tex.
Claus
On Feb 7, 2006, at 0:46, Herbert Schulz wrote:
>
> On Feb 6, 2006, at 10:03 AM, Claus Gerhardt wrote:
>
>> Well Bruno, there is no solution a fool can't break, but one
>> should care for the majority (?) of those who do have a brain.
>>
>> Claus
>
> Howdy,
>
> 1)But how should TeXShop ``know'' to search forward (i.e., it's the
> start of an equation) or backward (i.e., it is the end of the in-
> line equation)?
>
> 2)You also have to worry about literal $'s, \$.
>
> PS: literal \} or \{ aren't dealt with correctly now! It's a
> difficult problem since they don't have to match but it would be
> nice if you could check \left\{ and \right\}.
>
> Good Luck,
>
> Herb Schulz
> (herbs at wideopenwest.com)
>
>
> ------------------------- Info --------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> & FAQ: http://latex.yauh.de/faq/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
>
------------------------- Info --------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
More information about the macostex-archives
mailing list