General ⇒ define frequently used phrases
define frequently used phrases
I want to avoid typing frequently used long words and phrases, and use
abbreviations instead. I tried with
\def\CLT{$\mbox{central limit theorem}$}
and
\newcommand{\CLT}{central limit theorem}
and a few variations but the problem is that LaTeX doesn't leave
a space at the end of the word (and if I define the space within
the command, then I have a problem with puntcuation after the word).
In addition there are problems with line ending.
What's the solution? Thanks.
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
define frequently used phrases
load the xspace package and use something like
Code: Select all
\newcommand{\CLT}{central limit theorem\xspace}