In latex typing, we usually define lots of self-used notations, like {{{ \def\p{\partial} \newcommand\grad{\nabla} }}} But for submitting the article to the journal, people prefer the original commands instead of self-used notations. In order to solve this issue, i create a simple script called [[/script/cleanpaper-v1|script]] which does exactly this job. Download [[/script/cleanpaper-v1|cleanpaper]] for a try. === Usuage To use this script, we require that there is no space in the command, like instead of {{{ \def\vv{\boldsymbol v} ##wrong way }}} we need to type {{{ \def\vv{\boldsymbol{v}} ##correct way }}} in order for the script to run correctly. Sometimes, it is better to do it like this {{{ \def\vv{{\boldsymbol{v}}} ##correct way }}} I also prefer to use some shortcuts enviroments, see {{{ \usepackage{environ} \NewEnviron{eqnsplit}{% \begin{equation}\begin{split} \BODY \end{split}\end{equation} } \NewEnviron{eqnsplit*}{% \begin{equation*}\begin{split} \BODY \end{split}\end{equation*} } \NewEnviron{eqncases}{% \begin{equation}\begin{cases} \BODY \end{cases}\end{equation} } }}} If you also like them, feel free to put them into your latex file. Note that if the new commands require parameter, like {{{ \newcommand{\abs}[1]{\lvert #1 \rvert } \newcommand{\norm}[1]{\| #1 \| } }}} then the script will put some prefix in the commands **\abs** and **\norm**. The default way is to change command **\abs** to **\aiminabs** by adding prefix **aimin**. You can change it in the script file. My other shorts cuts {{{ \newcommand{\p}{\partial} \newcommand{\f}{\frac} \newcommand{\bs}{\boldsymbol} \newcommand{\grad}{\nabla} \newcommand{\ol}{\overline} \def\dx{\mathrm{d}x} \def\dy{\mathrm{d}y} \def\dz{\mathrm{d}z} \def\dt{\mathrm{d}t} \def\ds{\mathrm{d}s} \def\ddt{\frac{\mathrm{d}}{\mathrm{d}t}} \newcommand{\mc}{\mathcal} \newcommand{\mbf}{\mathbf} \newcommand{\mb}{\mathbb} \newcommand{\bb}{\mathbb} \newcommand{\mf}{\mathfrak} \newcommand{\msf}{\mathsf} \newcommand{\scr}{\mathscr} }}}