Created
January 8, 2020 10:06
-
-
Save bgromov/a2bf7201a4bd8780fbe9b482f4c69e5f to your computer and use it in GitHub Desktop.
LaTeX: How to add a prefix to `natbib` references and bibliography with `numbers` citation style and without `biblatex`?
This file contains hidden or 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
\documentclass{your_thesis_class} | |
\usepackage[utf8x]{inputenc} % <--- required by Inkscape generated pdf_tex figures. biblatex won't work with these | |
\usepackage[numbers]{natbib} | |
% \setcitestyle{numbers} % <--- if natbib is already included by another package | |
\usepackage{bibunits} % <--- lets you have a separate bibliography, e.g. your own publications list | |
\begin{document} | |
\begin{bibunit}[unsrtnat] % <--- unsrtnat arranges bibliography list in appearance order | |
\renewcommand\bibsection{\section*{\refname}} % <--- places bibliography in a section instead of a chapter | |
% Modify the format for this section only | |
\renewcommand{\citenumfont}[1]{A#1} % <--- Appends letter A to a numbered citation in the text, e.g. generated with \citep{} | |
\renewcommand{\bibnumfmt}[1]{[A#1]} % <--- Appends letter A to a numbered reference in the bibliography list | |
\chapter{Publications} | |
\putbib[references] % <--- generates bibliography list from references.bib file | |
\end{bibunit} | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment