[OS X TeX] Find in texshop

Themis Matsoukas matsoukas at psu.edu
Sun Dec 18 10:32:42 EST 2005

But would the space in front of figure find things like "blah blah.  
Figure 2 shows ..." ?
BTW, I normally say "see figure \ref{...}" without a forced "~"  
space. And of course, "figure" in my posting is only an example; the  
question is how to find a whole word, excluding from the search long  
strings that contain the word. The problem with regular expressions  
is that I have to think of all possible characters that could  
surround my string (and if I had the time to do that, I'd rather be  
doing something else!)


On Dec 18, 2005, at 9:53 AM, Maarten Sneep wrote:

> On 18 Dec 2005, at 15:45, Christopher Allen wrote:
>>> When I search for `figure' in texshop, it finds among other  
>>> things \figurename, \includefigure etc. How can I search for the  
>>> _word_ "figure"?
>> If you want the word itself, without being part of a command, you  
>> could use " figure" (notice the space) instead of "figure" for the  
>> search. That should do what you've asked, though it may miss  
>> something if, for example, there are quotation marks preceding the  
>> word.
> Common usage for a word like figure is "see figure~\ref{fig:blah}",  
> so just adding the spaces probably won't be enough. You can try to  
> use regular expressions:
> \sfigure[\s~]
> (search for whitespace (space, tab, return), figure (not case- 
> sensitive, if you want) followed by whitespace or a tilde).
> Maarten
------------------------- 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 MacOSX-TeX mailing list