Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Removing latex command delimiters with sed

11 views
Skip to first unread message

Filimon Roukoutakis

unread,
Nov 13, 2009, 7:52:47 AM11/13/09
to
Hi all,
I have a latex file and I want to replace all occurences of \eng{<utf8
characters>} with <utf8 characters>, that is remove the tex command with
its delimiters \eng{} which is around some text. I tried
sed 's/\eng{[:alpha:]*}/&/g' input.tex > output.tex
but does not work at all while
sed 's/\eng//g' input.tex > output.tex
does only remove the \eng{, leaving the trailing } after the text. Any
help would be appreciated!
filimon
0 new messages