local_cmmds.tex: Add \iref, \fref, and \xref
authorW. Trevor King <wking@tremily.us>
Thu, 9 May 2013 00:33:19 +0000 (20:33 -0400)
committerW. Trevor King <wking@tremily.us>
Thu, 9 May 2013 00:33:19 +0000 (20:33 -0400)
commit1a276a376aafa6d8818aa45daf11c027f8297a2a
tree824b3919e9d7fc4de0c2704241a6073918bd595f
parent124dc72b657f0b32df090046bb5703a12aa65a75
local_cmmds.tex: Add \iref, \fref, and \xref

This makes it easy to get consistent (and flexible) formatting for
references to external equations, figures, etc.  I'm surprised that
this isn't somehow bundled into cleveref or natbib.  If I get time, I
may try and pull it out into its own package.

Based Joseph Wright's answer [2] to a question about switch statements
[1].

[1]: http://tex.stackexchange.com/questions/29133/how-to-create-switch-structure-comparing-strings-in-latex
[2]: http://tex.stackexchange.com/a/29139
src/local_cmmds.tex
src/packages.tex