[OS X TeX] Multiple Search/Replace in one script?
Steffen Wolfrum
mactex_aa at st.estfiles.de
Sat Jun 2 15:58:40 EDT 2007
Yes, I know. That's why I am looking for it!!
No, seriously: I worked with AlpaX/Tk quite some years.
When TeXShop came up with its very precise PDF/source-jump I switched to TeXShop.
All the time then I was waiting for AlphaX to be further developed.
Especially the fact that there was no way to avoid a "forced line wrap" was one of the things that kept me away from AlphaX to TeXShop.
Just this great idea of "Filters" I did really miss very much!!
But, obviously. you can't have "the best of both world"...
It's either or.
Steffen
On Thu, 31 May 2007 09:43:51 +0200, Joachim Kock wrote:
>> I am looking for a way to automate (and also archive) my most
>> common ten or twenty search/replace runs.
>>
>> I have to admit, I have no idea about scripting. But I guess there
>> should be a way in Applecript/Perl/Rupy/Whatever to write down
>> several entries with...
>>
>> ... what should be the search string
>> ... what should be the replace string
>> ... what kind of search should be opeated (regulr expression, case
>> sensitive, etc.)
>>
>> Any recommendations?
>
> Alpha has precisely this functionality, through what it calls
> Filters. A filter is a file with a search-and-replace pattern per
> line, each pattern being represented by a search string, then a
> replace string, and then a flag to control whether the search is
> regexp, literal, case insensitive, etc.
>
> There is ample support for manipulating and applying such filters,
> but the Filters Menu is not activated by default. To turn it on,
> go to "Config -> Global Setup -> Menus" and check the Filters
> checkbox.
>
> Alternatively, the usual Search dialogue (cmd-F) has a popup menu
> that allows you to save search-and-replace patterns.
>
> Cheers,
> Joachim.
>
> ------------------------- Helpful Info -------------------------
> Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
> TeX FAQ: http://www.tex.ac.uk/faq
> List Archive: http://tug.org/pipermail/macostex-archives/
> List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
>
>
------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/
More information about the MacOSX-TeX
mailing list