I would like to have two bibliographies in my PhD thesis, where the first one lists my own publications that are included in the thesis, and appears in the beginning, numbered by roman numerals. The main body of the text should then be able to cite this bibliography, with the roman numerals, and the main bibliography with ordinary numerals.
My best attempt this far, following Subbibliography with roman numbers and Biblatex and some other threads, has two faults: the citations to the first bibliography are numbered with latin numerals, and I cannot cite the first bibliography at all from within the main text (which is where I'd like to cite it).
Minimal (not quite) working example:
\documentclass{article}
\usepackage[backend=biber]{biblatex}
\DeclareFieldFormat{Roman}{\RN{#1}}
% The following definition is copied from numeric.bbx
\defbibenvironment{roman-numerals}
{\list
{\printtext[labelnumberwidth]{%
\printfield{prefixnumber}%
\printfield[Roman]{labelnumber}}}
{\setlength{\labelwidth}{\labelnumberwidth}%
\setlength{\leftmargin}{\labelwidth}%
\setlength{\labelsep}{\biblabelsep}%
\addtolength{\leftmargin}{\labelsep}%
\setlength{\itemsep}{\bibitemsep}%
\setlength{\parsep}{\bibparsep}}%
\renewcommand*{\makelabel}[1]{\hss##1}}
{\endlist}
{\item}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
\end{filecontents}
\begin{filecontents}{\jobname-mine.bib}
@misc{Mine1,
author = {Me, M.},
year = {2001},
title = {Alpha},
}
@misc{Mine2,
author = {Me, M.},
year = {2002},
title = {Bravo},
}
@misc{Mine3,
author = {Me, M.},
year = {2003},
title = {Charlie},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{\jobname-mine.bib}
\begin{document}
\begin{refsection}[\jobname-mine.bib]
\nocite{*}
\printbibliography[title={My publications}, env=roman-numerals]
\end{refsection}
Some text that won't be here, but note roman numerals don't work even here \cite{Mine1, Mine3}.
\section{Main text}
\begin{refsection}[\jobname.bib]
Citing things in body \cite{A01, B02}. Would like to cite things in section mine \cite{Mine1}
\printbibliography[title=References]
\end{refsection}
\end{document}
The formatting I'm trying to achieve is precisely what the rules and regs require :) The LaTeX template for that, which's been inherited down the generations, used just the standard latex \bibitem etc, which I'd like to update.
There's of course always the chance to just use a bibliography only for the actual references, and do the cites for my papers manually, since there's only four of them. I guess I kind of nerdsniped myself in obsessing with having to make biblatex work for both :) Although it would be nice to make a better template for everyone else too.
– Timo Jan 01 '14 at 22:47