我想生成一个包含所有引用条目的全局书目。
问题:同一文档还使用带有 的章节的小参考书目refsection
。最终\printbiblioraphy
不会打印任何内容,因为所有引用都包含在 中refsection
。
如何生成整个参考书目并保留部分参考书目?(即打印所有参考文献,无论它们是否在内refsection
)
梅威瑟:
\documentclass{book}
\usepackage{biblatex}
\addbibresource{biblio.bib}
\begin{document}
\chapter{Test Chapter One}
\begin{refsection}
\cite{goossens93}, \cite{lamport94}, \cite{rahtz89}
\printbibliography[heading=subbibliography]
\end{refsection}
\chapter{Test Chapter Two}
\begin{refsection}
\cite{greenwade93}, \cite{patashnik88}, \cite{knuth79}
\printbibliography[heading=subbibliography]
\end{refsection}
\printbibliography[title=The whole bibliography]
\end{document}
书目目录
@book{goossens93,
author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
title = "The Latex Companion A",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351",
url=" www.ctan.org"
}
@book{knuth79,
author = "Donald E. Knuth",
title = "Tex and Metafont, New Directions in Typesetting",
year = "1979",
publisher = "American Mathematical Society and Digital Press",
address = "Stanford"
}
@book{lamport94,
author = "Leslie Lamport",
title = "Latex: A Document Preparation System",
year = "1994",
edition = "Second",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@misc{patashnik88,
author = "Oren Patashnik",
title = "{B}ib{T}e{X}ing. Documentation for General {B}ib{T}e{X} users",
year = "1988",
howpublished = "Electronic document accompanying BibTeX
distribution"
}
@techreport{rahtz89,
author = "Sebastian Rahtz",
title = "A Survey of {T}ex and graphics",
year = "1989",
institution = "Department of Electronics and Computer Science",
address = "University of Southampton, UK",
number = "CSTR 89-7"
}
答案1
鉴于biblatex
的文档,我不太清楚为什么使用refsegment
有效,但显然它确实有效(此处归功于@pst:https://tex.stackexchange.com/a/168728/105447)
喜欢:
\documentclass{book}
\usepackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@book{goossens93,
author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
title = "The Latex Companion A",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@article{greenwade93,
author = "George D. Greenwade",
title = "The {C}omprehensive {T}ex {A}rchive {N}etwork ({CTAN})",
year = "1993",
journal = "TUGBoat",
volume = "14",
number = "3",
pages = "342--351",
url=" www.ctan.org"
}
@book{knuth79,
author = "Donald E. Knuth",
title = "Tex and Metafont, New Directions in Typesetting",
year = "1979",
publisher = "American Mathematical Society and Digital Press",
address = "Stanford"
}
@book{lamport94,
author = "Leslie Lamport",
title = "Latex: A Document Preparation System",
year = "1994",
edition = "Second",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
@misc{patashnik88,
author = "Oren Patashnik",
title = "{B}ib{T}e{X}ing. Documentation for General {B}ib{T}e{X} users",
year = "1988",
howpublished = "Electronic document accompanying BibTeX
distribution"
}
@techreport{rahtz89,
author = "Sebastian Rahtz",
title = "A Survey of {T}ex and graphics",
year = "1989",
institution = "Department of Electronics and Computer Science",
address = "University of Southampton, UK",
number = "CSTR 89-7"
}
\end{filecontents*}
\usepackage{biblatex}
\addbibresource{\jobname.bib}
\begin{document}
\chapter{Test Chapter One}
\begin{refsegment}
\cite{goossens93}, \cite{lamport94}, \cite{rahtz89}
\printbibliography[segment=\therefsegment,heading=subbibliography]
\end{refsegment}
\chapter{Test Chapter Two}
\begin{refsegment}
\cite{greenwade93}, \cite{patashnik88}, \cite{knuth79}
\printbibliography[segment=\therefsegment,heading=subbibliography]
\end{refsegment}
\printbibliography[title=The whole bibliography]
\end{document}
无论如何,除了达到目的之外,对于以下情况,使用refsegment
而不是refsection
似乎是明智的,如果您有该书的全球书目,refsegment
将会产生全球明确的标签,而refsection
不会。