From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,32178b9acf403f40,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-22 10:16:01 PST Path: supernews.google.com!sn-xit-03!supernews.com!freenix!teaser.fr!fr.clara.net!heighliner.fr.clara.net!grolier!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!blackbush.xlink.net!connemara.xlink.net!news.erfurt.thur.de!eastside.erfurt.thur.de!drcomp.erfurt.thur.de!not-for-mail From: Adrian Knoth Newsgroups: comp.lang.ada Subject: Regex and/or LaTeX Date: 22 Feb 2001 11:01:08 GMT Organization: Modern Electronics Message-ID: <972rhk$a13$1@drcomp.erfurt.thur.de> NNTP-Posting-Host: drcomp.erfurt.thur.de X-Server-Date: 22 Feb 2001 11:01:08 GMT User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (Linux/2.4.1 (i586)) Xref: supernews.google.com comp.lang.ada:5445 Date: 2001-02-22T11:01:08+00:00 List-Id: Hi! I'm facing the problem to escape some special characters before outputting them to a LaTeX-file, i.e. '&' should be replaced by "\&". There is no difficulty in implementing this directly, but in order to avoid unnecessary work I ask if there is already a package which provides all the LaTeX-functionality I might need. If not, perhaps a sed-like function exists to perform something like this: sed -e 's/\([&%]\)/\\\1/g' -- mail: adi@thur.de http://adi.thur.de PGP: v2-key via keyserver Lieber alternativ als alt und naiv.