Cross Out Text – Using Macro Script in TexStudio

macrostexstudio

I have a Tex file that I need to edit while somehow keeping the original words and sentences highlighted. To do this, I am going to cross out the part of the original text that I replace with my own words. The command \st{TEXT} in the package soul seems to do the job. I'm looking for a way to define a macro in TeXstudio such that by selecting the text, the cross out command encapsulate the text, i.e. \st{THE_SELECTED_TEXT}. I am not familiar with macro programming in TeXstudio.

Best Answer

Here is how you'd do it with a script:

enter image description here

Related Question