[OS X TeX] Return

Herb Schulz herbs at wideopenwest.com
Sun Jan 9 21:51:38 EST 2005


On 1/9/05 2:32 PM, "Alain Schremmer" <Schremmer.Alain at verizon.net> wrote:

> 1. I tried Schultz's solution but, if it works with
> Find
> semantic\n
> and Replace by
> semantic\n\n
> it does not work with
> Find
> %end semantic\n%begin syntactic
> and Replace by
> %end semantic\n\n%begin syntactic
> So, I used what worked and eyeballed the source to hit either "Next" or
> "Replace & Find". So, it's done, at least more ot less.
> 
> It looks as if it might have to do with anyone of,
> %
> the space between "end" and "semantic"
> the indentations.
> 
> 2. I tried Maxwell's solution (option return) but it didn't work even
> though option return does have an effect in the fields of the Find
> window. Possibly for the same reasons as above.
> 
> 3. The first thing I had tried (all by myself) was Font's solution
> (copy-paste) and it didn't work but that might be because I had not
> turned on Regular Expressions (which scares me Š). Or else perhaps
> because of any one(s) of the three things listed above.
> 
> Very grateful regards to all for such prompt responses.
> --schremmer
> 
> 
> 
> 
> Adam R. Maxwell wrote:
> 
>> 
>> On Jan 9, 2005, at 08:54, Josep M.Font wrote:
>> 
>>> El 09 ene 2005, a las 16:44, Alain Schremmer escribió:
>>> 
>>>> How do I insert a Return using Find and Replace (in TeXshop 1.35e)?
>>>> 
>>>> Specifically, I need to
>>>> Find
>>>> %end semantic
>>>> %begin syntactic
>>>> and Replace by
>>>> %end semantic
>>>> 
>>>> %begin syntactic
>>> 
>>> 
>>> The poor man's solution: Write the wanted replacement text in some
>>> free place in your file. Copy it. Paste it in the corresponding
>>> fields of the "Find" panel. Go ahead... In your example, the
>>> replacement text can also be copied into the "find" field, and remove
>>> the extra return afterwards.
>> 
>> 
>> Herb and Josep's suggestions ought to work, but here's another one:
>> type option-return in the appropriate Find/Replace field. This also
>> works with tab characters.
>> 

Howdy,

Try putting a \ in front of the %, i.e., \% to ``escape'' the %.

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 Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the MacOSX-TeX mailing list