I've italicized certain words in a LyX document which I shouldn't have. Is is possible to search for or highlight only italicized words within the document?
I'd make the changes manually but the word count is currently over 52 000.
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.Sign up to join this community
You can do this with advanced find: Edit > Find & Replace (Advanced). A panel will open on the right. First go to the "Settings" tab in that panel and uncheck "ignore format". Then go back to the "Search" panel, and click in the "Find" field and go to Insert > Insert Regular Expression > Anything. Highlight the whole box that appear (not just the inside), and apply the emphasis. Then click on "Find Next".
Note that it is not possible to remove emphasize. The above is just for finding them. I don't think we currently support capture groups in our regular expression machinery.
Also be careful with the terminology. Note the difference between "italics" and "emphasize". Search for this difference if you're not sure of it.