Charles de Miramon wrote:
It is not perfect because, I have not found a way to suppress with sed a
latex tag and the closing brace maybe it should be done in Python with a
macro.
to go from :
\uselesstag{blabla \emph{foo} foo} -> blabla \emph{foo} foo
This is probably impossible in sed. It's a well-known theorem that you can't do parenethesis matching with (standard) regular expressions. You can do it in Perl, but only because Perl's regexes are, uh, augmented.

Richard

--
==================================================================
Richard G Heck, Jr
Professor of Philosophy
Brown University
http://frege.brown.edu/heck/
==================================================================
Get my public key from http://sks.keyserver.penguin.de
Hash: 0x1DE91F1E66FFBDEC
Learn how to sign your email using Thunderbird and GnuPG at:
http://dudu.dyn.2-h.org/nist/gpg-enigmail-howto

Reply via email to