TransWikia.com

Delete a macro leaving the argument intact

TeX - LaTeX Asked by andreagoo8 on June 11, 2021

I’m using TeXstudio and I’m looking for a keyboard shortcut that deletes a generic macro while leaving the macro argument itself intact in the .tex source.

For example I want to make a text normal by removing the boldface macro: from
textbf{generic text} to generic text, all in one simple shortcut.

I’ve seen two similar questions, but they weren’t answering my specific question: one was concerning about the UNIX shell and was labeled as off- topic, the other was about removing the macro effect only in the PDF, while I want to remove the macro in the .tex source.

One Answer

Given input textbf{...} (or any one-argument commands),

  • put cursor in command name textbf, then
  • click menu item "Idefix -> Erase Word/Cmd/Env", which can be assigned a shortcut in "Configure TeXstudio -> Shortcuts".

Finally you get ... from textbf{...}.

Correct answer by muzimuzhi Z on June 11, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP