Code Comments
Programming Forum and web based access to our favorite programming groups.Hello!
I would like to remove several \textit{...} in a LaTeX-document but want
to keep what's in the brackets every time.
Thanks for help,
D.Stender (Germany)
Post Follow-up to this messageuzstzm@uni-bonn.de (D.Stender) writes:
> Hello!
>
> I would like to remove several \textit{...} in a LaTeX-document but want
> to keep what's in the brackets every time.
search for: "\textit", replace with ""?
(OffT: sed -e 's/\textit//g' or somesuch, or any editor)
I can't think of a situation where \textit can/should be used and
extra {} would be harmful.
Ulrich
--
"I, personally, like multiple mouse buttons, but
want only one of them on my mouse." -- Jed Davis
Post Follow-up to this messageBEGIN { target = "\\\\textit{[^}]*}" }
{ while ( match($0, target) ) {
replacement = substr($0,RSTART,RLENGTH)
gsub(/.*{|}/, "", replacement)
sub( target, replacement )
}
print
}
Post Follow-up to this messagePowered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.