When I'm editing the source in TeXShop, I often find that I want to remove emphasis from a word or phrase. But deleting the \emph
from the beginning of the word and the {}
surrounding it is a bit more annoying than I would like it to be.
I suppose what I'm looking for is a script that I can execute at the start of a command (like \emph
) that will scan left-to-right and delete everything except for the text between the curly braces (i.e., that will delete the "\emph", the "{", and the "}")
Something that would take me from
This is \emph{emphasized} text
to
This is emphasized text
In the code itself.