Created
December 4, 2014 09:15
-
-
Save RubenVerborgh/808f7bc27ecc01ead287 to your computer and use it in GitHub Desktop.
Easily typeset acronyms
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\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