Referencing IETF RFCs inline in LaTeX

In LaTeX documents without the need for a separate bibliography, these macros might be handy for referencing and creating clickable URLs pointing to IETF RFCs.

\newcommand{\rfc}[1]{\href{http://tools.ietf.org/html/rfc#1}{RFC~#1}}
\newcommand{\prfc}[1]{(\rfc{#1})}

Example

LaTeX source code:

For more information on transmitting IP datagrams using avian carriers, see \rfc{1149}.

Approximate result:

For more information on transmitting IP datagrams using avian carriers, see RFC 1149.

Published by

Trond Endrestøl

I stopped counting my age years ago. Personal interests besides computers and computer networks include, but are not limited to, astronomy, comics, music, and science (fiction).