我正在尝试通过这种方式将参考书目放入我的报告中:这是我的.tex
代码:
\documentclass[12pt,english,french]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel} \usepackage{csquotes}% recommended in output (biblatex)
\usepackage[backend=biber, style=alphabetic]{biblatex}
\addbibresource{bibli.bib}
\usepackage{titletoc}
\begin{document}
\nocite{*}
\printbibliography
\addcontentsline{toc}{chapter}{Bibliographie}
\end{document}
该文件的片段.bib
,您可以将其重复,直到获得 3 页的参考书目:
@book{atl1,
label = {Tavares et al.},
author = {Cristopher Tavares and Kirk Fertitta and Brent Rector and Chris Sells},
title = {ATL Internals},
subtitle = {Working with ATL 8},
edition = {2},
publisher = {Addison-Wesley Professional},
date = {2006-07-15},
totalpages = {888}
}
但是这样做的话,目录中的第 81 页而不是第 78 页就是我得到的,因为我知道参考书目在第 81 页结束。
多谢!
答案1
您不需要添加以下行:
\addcontentsline{toc}{chapter}{Bibliographie}
将您的参考书目纳入目录中。
只需按以下方式调用即可\printbibliography
,页码将是正确的:
\printbibliography[heading=bibintoc]
梅威瑟:
\documentclass[12pt,english,french]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel} \usepackage{csquotes}% recommended in output (biblatex)
\usepackage[backend=biber, style=alphabetic]{biblatex}
\addbibresource{bibli.bib}
\usepackage{titletoc}
\begin{document}
\tableofcontents
\nocite{*}
\printbibliography[heading=bibintoc]
\end{document}