Wednesday, March 6, 2013

Avoiding space issues after LaTeX macros

  • In LaTeX you can define macros that expand out in the text, e.g. \newcommand{\ef}{{\it Eptesicus fuscus}}
  • When you place this in the text, e.g. "\ef is the scientific name for the big brown bat." there is no space after the expanded form, which reads "Eptesicus fuscusis ...."
  • Instead of using \ef use \ef{} with {} denoting an empty argument for the command.

No comments:

Post a Comment