Используя регулярное выражение, сделайте что-то вроде s/\\emph\{([^\}]*)\}/\1/g
. Если вы не знакомы с регулярными выражениями, это говорит:
s -- replace
/ -- begin match section
\\emph\{ -- match \emph{
( -- begin capture
[^\}]* -- match any characters except (meaning up until) a close brace because:
[] a group of characters
^ means not or "everything except"
\} -- the close brace
and * means 0 or more times
) -- end capture, because this is the first (in this case only) capture, it is number 1
\} -- match end brace
/ -- begin replace section
\1 -- replace with captured section number 1
/ -- end regular expression, begin extra flags
g -- global flag, meaning do this every time the match is found not just the first time
Это с синтаксисом Perl, с которым я знаком. Следующий perl "one-liners" выполнит две задачи
perl -pe 's/\\emph\{([^\}]*)\}/\1/g' filename
будет «тестировать» печать файла в командной строке
perl -pi -e 's/\\emph\{([^\}]*)\}/\1/g' filename
изменит файл на месте.
Подобные команды могут быть доступны в вашем редакторе, но в противном случае это будет (должно) работать.