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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-02-23 19:00:03 PST Path: supernews.google.com!sn-xit-03!supernews.com!nntp.cs.ubc.ca!newsfeed.direct.ca!look.ca!wn1feed!worldnet.att.net!135.173.83.71!wnfilter1!worldnet-localpost!bgtnsc06-news.ops.worldnet.att.net.POSTED!not-for-mail From: "Rajagopalan Srinivasan" Newsgroups: comp.lang.ada References: <972rhk$a13$1@drcomp.erfurt.thur.de> Subject: Re: Regex and/or LaTeX X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2919.6700 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700 Message-ID: <1sFl6.2330$mX4.169381@bgtnsc06-news.ops.worldnet.att.net> Date: Sat, 24 Feb 2001 02:59:09 GMT NNTP-Posting-Host: 12.77.88.4 X-Complaints-To: abuse@worldnet.att.net X-Trace: bgtnsc06-news.ops.worldnet.att.net 982983549 12.77.88.4 (Sat, 24 Feb 2001 02:59:09 GMT) NNTP-Posting-Date: Sat, 24 Feb 2001 02:59:09 GMT Organization: AT&T Worldnet Xref: supernews.google.com comp.lang.ada:5500 Date: 2001-02-24T02:59:09+00:00 List-Id: assuming you are looking for an Ada95 package and assuming you are using gnat, i will search the users guide for gnat.spitbol.patterns and/or gnat.regexp "Adrian Knoth" wrote in message news:972rhk$a13$1@drcomp.erfurt.thur.de... > 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.