Skip to main content

User-Defined Macros

  • Hour 13
  • Chapter
  • First Online:
  • 339k Accesses

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 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. 2.

    Only one optional argument is permitted to a user-defined new command.

  3. 3.

    An existing command can be redefined to alter its default style.

Author information

Authors and Affiliations

Authors

Corresponding author

Correspondence to Dilip Datta .

Rights and permissions

Reprints 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)

Publish with us

Policies and ethics