Skip to content

Instantly share code, notes, and snippets.

@RubenVerborgh
Created December 4, 2014 09:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RubenVerborgh/808f7bc27ecc01ead287 to your computer and use it in GitHub Desktop.
Save RubenVerborgh/808f7bc27ecc01ead287 to your computer and use it in GitHub Desktop.
Easily typeset acronyms
\usepackage{xspace}
\newcommand\Acronym[1]{%
\expandafter\def\csname#1\endcsname{{\scshape #1}\xspace}%
\expandafter\def\csname#1s\endcsname{{\scshape #1}s\xspace}%
}
\Acronym{api}
\Acronym{rest}
\Acronym{sparql}
\sparql is not a \rest \api.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment