Abstract
LaTeX provides many in-built commands and environments for preparing a document. Besides those, it permits to define new commands and environments. Moreover, in-built ones can also be redefined to alter their behaviors. Many such cases are already addressed in previous Hours, which are systematically discussed in this Hour. In this book, although the original LaTeX syntax are printed in boldfaced sans serif fonts for their clear distinction, all user-defined syntax are printed in normal black color so that a reader is not misled.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
A new short command can defined to represent conveniently a long command or a combination of commands or even a piece of texts, if it is to be used repeatedly in a document.
- 2.
Only one optional argument is permitted to a user-defined new command.
- 3.
An existing command can be redefined to alter its default style.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
Copyright information
© 2017 Springer International Publishing AG
About this chapter
Cite this chapter
Datta, D. (2017). User-Defined Macros. In: LaTeX in 24 Hours. Springer, Cham. https://doi.org/10.1007/978-3-319-47831-9_13
Download citation
DOI: https://doi.org/10.1007/978-3-319-47831-9_13
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-319-47830-2
Online ISBN: 978-3-319-47831-9
eBook Packages: Computer ScienceComputer Science (R0)