# Citing RFCs with biblatex

I want to cite RFCs in the format [RFCxxxx] instead of using the author's initials and the year it was published. Currently I am using the alphabetic style that comes with biblatex. So far, I tried using the \DeclareCiteCommand command to use the key field in the .bib file, but that does not seem to work. I would really appreciate any ideas as how to solve this problem.

• This might help some people stumbling on this question: tex.stackexchange.com/questions/65637/… Jul 16 '13 at 15:19
• Also, I found the manual class to work well for RFCs. Jul 16 '13 at 15:32
• Dr.-Ing. Roland Bless generates a rfc.bib "BibTeX file of RFC index (converted daily from RFC Editor's XML index)", which looks suitable. Oct 24 '14 at 15:01
• @JoelPurra the link is not 403'd. Oct 11 '15 at 18:10
• @ViníciusFerrão: not sure what you mean by "not 403'd" -- the link works for me, and the latest rfc.bib was generated Saturday, 10-Oct-2015 12:18:42 CEST as far as I can see. Oct 12 '15 at 7:13

According to the ietf recommendations, it's recommended to use @techreport

   @techreport{rfc1654,
AUTHOR = "Yakov Rekhter and Tony Li",
TITLE = "{A Border Gateway Protocol 4 (BGP-4)}",
HOWPUBLISHED = {Internet Requests for Comments},
TYPE="{RFC}",
NUMBER=1654,
PAGES = {1-56},
YEAR = {1995},
MONTH = {July},
ISSN = {2070-1721},
PUBLISHER = "{RFC Editor}",
INSTITUTION = "{RFC Editor}",
URL={https://www.rfc-editor.org/rfc/rfc1654.txt}
}


You can probably add shorthand = {RFC1654} as explain by lockstep

Another solution could be to use the natbib package

\defcitealias{jon90}{Paper~I}

\citetalias{jon90}  Paper I
\citepalias{jon90}  (Paper I)


I tested this last solution with the following code:

\usepackage{natbib}

\defcitealias{rfc6749}{RFC6749}
\citepalias{rfc6749}

\bibliographystyle{plain}


But I got the result:

[RFC6749]


and it doesn't changed it in the list.

• You can auto-generate the @techreport entry using this tool. Sep 10 '20 at 13:48

You can use the shorthand field to override the label which is automatically generated by the alphabetic style:

\documentclass{article}

\usepackage[style=alphabetic]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@report{Cro69,
shorthand = {RFC0001},
author = {Crocker, S.},
year = {1969},
month = {4},
title = {Host Software},
note = {RFC 1},
}
\end{filecontents}

\begin{document}

Some text \autocite{A01,Cro69}.

\printbibliography

\end{document}


This website generates the BibTex entries for you: http://notesofaprogrammer.blogspot.com/2014/11/bibtex-entries-for-ietf-rfcs-and.html

The format is as suggested by this answer https://tex.stackexchange.com/a/161413/52398

• many thanks @CGFox Jun 3 '20 at 3:14