自动书目问题

自动书目问题

我需要以自动方式获取乳胶文档的参考书目。我已经尝试了两个星期。这是我的代码:

\usepackage{multirow}
\usepackage{epstopdf}
%\graphicspath{immagini}
\usepackage{booktabs}
%\providecommand{\abs}[1]{\big|#1\big|}
\usepackage{caption}
%\usepackage {table}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{amsmath}
\usepackage{pict2e}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{txfonts}
\usepackage{setspace}
\onehalfspacing
\usepackage{textcomp}
\newenvironment{sistema}
{\left\lbrace\begin{array}{@{}l@{}}}
{\end{array}\right.}
\usepackage{indentfirst}
\usepackage{geometry}
\geometry{a4paper,top=3cm,bottom=3cm,left=4.5cm,right=2.5cm,heightrounded,bindingoffset=5mm}
\usepackage{fancyhdr}
\pagestyle{headings}

%\usepackage{thebibliography}

\usepackage{biblatex}
\usepackage[babel]{csquotes}
%\cleardoublepage
%\phantomsection
%\addcontentsline{toc}{chapter}{\bibname}
\printbibliography
%\bibliographystyle{plain} % ad esempio: \bibliographystyle{plain} 
\bibliography{biblio.bib} 
%\printbibliography

%
\begin{document}
%********************
\include{frontespizio}
%**************************

\frontmatter
%********************

%***************************
\include{dedica} %DEVI MODIFICARLA
\include{Ringraziamenti}
%********************
\tableofcontents %SOMMARIO
%**************
\mainmatter
%**************
\input{chapter1_introduzione}
\input{chapter2}
\input{chapter3}
\input{chapter4}
\input{chapter5}
\input{chapter6}
\input{chapter7}
\input{chapter8}
%
%*****************
\backmatter
%****************


\end{document}

参考书目没有以任何方式显示。我的编辑器是 Worktex。我使用 pdfLaTeX、BibTeX 和 pdfLaTeX 编译两次,但没有任何结果:编译结果很好,但在生成的 PDF 中没有参考书目。我很感激任何帮助。显然我创建了 biblio.bib 文件。

答案1

您放错了\printbibliography命令。您必须将其放在需要显示参考书目的位置。以下示例有效:

\documentclass{book}

\usepackage{multirow}
\usepackage{epstopdf}
%\graphicspath{immagini}
\usepackage{booktabs}
%\providecommand{\abs}[1]{\big|#1\big|}
\usepackage{caption}
%\usepackage {table}
\usepackage[utf8]{inputenc}
\usepackage[italian]{babel}
\usepackage{amsmath}
\usepackage{pict2e}
\usepackage{amssymb}
\usepackage{amstext}
\usepackage{txfonts}
\usepackage{setspace}
\onehalfspacing
\usepackage{textcomp}
\newenvironment{sistema}
{\left\lbrace\begin{array}{@{}l@{}}}
{\end{array}\right.}
\usepackage{indentfirst}
\usepackage{geometry}
\geometry{a4paper,top=3cm,bottom=3cm,left=4.5cm,right=2.5cm,heightrounded,bindingoffset=5mm}
\usepackage{fancyhdr}
\pagestyle{headings}




%\usepackage{thebibliography}
\usepackage[babel]{csquotes}
\usepackage{biblatex}
%\cleardoublepage
%\phantomsection
%\addcontentsline{toc}{chapter}{\bibname}

%\bibliographystyle{plain} % ad esempio: \bibliographystyle{plain} 
\bibliography{biblio.bib} 
%\printbibliography

%
\begin{document}
%********************
%\include{frontespizio}
%**************************

\frontmatter
%********************

%***************************
%\include{dedica} %DEVI MODIFICARLA
%\include{Ringraziamenti}
%********************
\tableofcontents %SOMMARIO
%**************
\mainmatter
%**************
%\input{chapter1_introduzione}
%\input{chapter2}
%\input{chapter3}
%\input{chapter4}
%\input{chapter5}
%\input{chapter6}
%\input{chapter7}
%\input{chapter8}
%
%*****************
\backmatter
%****************
\nocite{*}
\printbibliography

\end{document}

我假设您使用book文档类,因为您使用(等)命令。我还切换了和包\frontmatter的位置,如文档中所述。csquotesbiblatex

相关内容