章节参考书目

章节参考书目

为文档中的各个部分创建参考书目最好的方法是什么?我正在使用biblatex

答案1

请参阅第 3.14.3 节多个参考书目文档biblatex。基本思想是使用refsection每个书目单元的环境和\printbibliography每个refsection环境内的命令。请注意,您必须编译(例如通过 bibTeX).aux将为每个refsection环境创建的辅助文件。

下面是一个示意图(test.tex),用于生成每个章节的参考书目:

\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}

\end{document}

数据库biblio.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"
}

您需要按照以下方式编译该示例:

pdflatex test
bibtex test1-blx
bibtex test2-blx
pdflatex test
pdflatex test

相关内容