O'Reilly logo

LaTeX Beginners Guide by Stefan Kottwitz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Saving time and effort – creating your own commands

If you're frequently using the same term in your document, it would be annoying to type it again and again. What if you later decided to change that term or its formatting? To avoid searching and replacing in the whole document, LaTeX allows you to define your own commands in your preamble. They are also called macros . Give it a name. Later in the document you just need to use this name whenever you want to change this term. We need to do it just once in the macro definition. This will affect the whole document. Let's see how it works.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required