I'm typesetting a document and to make it more editable I'd like to find a nice way to write the document making custom commands left and right for my ease, then go and replace them with their non-custom definitions.
For instance, I have the following defined in a separate preamble file:
\newcommand{\mb}[1]{\mathbb{#1}}
that simply makes it easier when I'm using blackboard bold characters a bunch throughout the document. However, whoever might be editing the document later might have difficulty parsing the code (he's old, etc.) with my custom commands floating around everywhere. Is there a nice and easy way to go through my document and replace every
\mb{A}
with
\mathbb{A}
so I don't have to sift through hundreds of "replace" dialogues?
This would also help if I want to change the name of a command I've used in previous files.
Edit to add MWE:
\documentclass[12pt]{article}
\usepackage{amssymb}
\newcommand{\mb}[1]{\mathbb{#1}}
\begin{document}
\mb{R}
\end{document}
to
\documentclass[12pt]{article}
\usepackage{amssymb}
\newcommand{\mb}[1]{\mathbb{#1}}
\begin{document}
\mathbb{R}
\end{document}