[OS X TeX] Search and replace in many files

Giovanni Dore giovanni.dore at unibo.it
Fri Sep 7 11:18:57 CEST 2012


Il giorno 07/set/2012, alle ore 03.48, Alain Schremmer ha scritto:

> 
> On Sep 6, 2012, at 4:13 PM, Peter Dyballa wrote:
> 
> >
> > Am 06.09.2012 um 01:14 schrieb Alain Schremmer:
> >
> >> Here are the four search and replace that I need to make and that  
> >> the Ogrekit does very nicely:
> >>
> >> =========================
> >> 1    Search string: (Copy full line)
> >>
> >> \ifthenelse{\boolean{Quiz?}}%
> >>
> >>       Replace string: (Copy two full lines)
> >>
> >> %SSSSSSSSSSSS
> >> \ifthenelse{\boolean{Quiz?}}%
> >>
> >>
> >> =========================
> >> =========================
> >> 3    Search string: (Copy two full lines)
> >>
> >> %SSSSSSSSSSSS
> >> \ifthenelse{\boolean{Quiz?}}%
> >>
> >>       Replace string: (Copy all full lines)
> >>
> >> %SSSSSSSSSSSS
> >> \ifthenelse{\boolean{Workout?}}%
> >> {%begin Workout? true
> >> %ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 
> >>  - Begin WORKOUT
> >> \UseProblem{\CheckableItem-w}%
> >>               {%
> >> WORKOUTtext%
> >>               }{%
> >>                       $a$%
> >>                       }{%
> >>                       $b$%
> >>                       }{%
> >>                       $c$%
> >>                       }{%
> >>                       $d$%
> >>               }{%
> >>                       x%
> >>               }{%
> >> WORKOUTdiscussion%
> >>               }%
> >> %ssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss 
> >>  - End WORKOUT
> >> }%end Workout? true
> >> {%begin Workout? false
> >> \ifthenelse{\boolean{Quiz?}}%
> >>
> >>
> >> =========================

You can try AlphaX, see http://bdesgraupes.pagesperso-orange.fr/alphabinaries.html

Best regards

Giovanni Dore


More information about the macostex-archives mailing list