For example, instead of writing
Code: Select all
\newcommand{\mynewmacro}{\blahblahblah}
Code: Select all
\newcommand{\MNM}{\blahblahblah} %MNM = my new macro
Code: Select all
\newcommand{\mynewmacro}{\blahblahblah}
Code: Select all
\newcommand{\MNM}{\blahblahblah} %MNM = my new macro
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
\def\be{\begin{equation}
. Please never, never do stuff like that. Heh, there does not appear to me to be a purpose to making a macro that "summarizes" a single command.Johannes_B wrote:Bad example: Some people define\def\be{\begin{equation}
. Please never, never do stuff like that.
If you are giving the code away, for a friend to proof-read or to the copy-editor, the cursing will begin soon after, because the document is extremely hard to read. Imaging talking like that in real life.
beq␣
could be expanded to \begin{equation}
. Easy to type, easy to read. Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis