Created
April 11, 2020 15:36
-
-
Save moewew/89357f98aca7c605eab16e1385674c25 to your computer and use it in GitHub Desktop.
https://tex.stackexchange.com/q/538030/35864 - biblatex example with @mvbook, crossref and related features
This file contains 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[british]{article} | |
\usepackage[T1]{fontenc} | |
\usepackage[utf8]{inputenc} | |
\usepackage{babel} | |
\usepackage{csquotes} | |
\usepackage[style=authoryear, backend=biber]{biblatex} | |
\begin{filecontents}{\jobname.bib} | |
@book{knuth:ct:a, | |
crossref = {knuth:ct:related}, | |
title = {The {\TeX book}}, | |
shorttitle = {\TeX book}, | |
date = 1984, | |
volume = {A}, | |
sorttitle = {Computers & Typesetting A}, | |
} | |
@book{knuth:ct:b, | |
crossref = {knuth:ct:related}, | |
title = {{\TeX}: The Program}, | |
shorttitle = {\TeX}, | |
date = 1986, | |
volume = {B}, | |
sorttitle = {Computers & Typesetting B}, | |
} | |
@book{knuth:ct:c, | |
crossref = {knuth:ct:related}, | |
title = {The {METAFONTbook}}, | |
shorttitle = {METAFONTbook}, | |
date = 1986, | |
volume = {C}, | |
sorttitle = {Computers & Typesetting C}, | |
} | |
@book{knuth:ct:d, | |
crossref = {knuth:ct:related}, | |
title = {{METAFONT}: The Program}, | |
shorttitle = {METAFONT}, | |
date = 1986, | |
volume = {D}, | |
sorttitle = {Computers & Typesetting D}, | |
} | |
@book{knuth:ct:e, | |
crossref = {knuth:ct:related}, | |
title = {{Computer Modern} Typefaces}, | |
date = 1986, | |
volume = {E}, | |
sorttitle = {Computers & Typesetting E}, | |
} | |
@mvbook{knuth:ct:related, | |
author = {Knuth, Donald E.}, | |
title = {Computers \& Typesetting}, | |
date = {1984/1986}, | |
volumes = 5, | |
publisher = {Addison-Wesley}, | |
location = {Reading, Mass.}, | |
sorttitle = {Computers & Typesetting}, | |
related = {knuth:ct:a,knuth:ct:b,knuth:ct:c,knuth:ct:d,knuth:ct:e}, | |
relatedtype = {multivolume}, | |
} | |
\end{filecontents} | |
\addbibresource{\jobname.bib} | |
\begin{document} | |
\volcite{A}{knuth:ct:related} | |
\volcite{A}[45-56]{knuth:ct:related} | |
\printbibliography | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment