每章有多个参考书目文件,最后有一个参考书目

每章有多个参考书目文件,最后有一个参考书目

我正在使用该软件包撰写论文手稿classicthesis。我有四个参考书目文件 (.bib 文件),每个章节一个,位于名为“bibliographies”的文件夹中。当我运行主文件时,它可以正确编译,但引文和参考书目不会出现,而且我没有收到任何错误消息。所以,我不确定问题是什么。我得到的是粗体引文关键字,而不是文内引文,也没有参考书目。我使用 PdfLaTeX + Bib(la)tex + PdfLaTeX (x2) + View Pdf 进行编译,使用 TexMaker。

我不需要为每一章提供单独的参考书目,而是需要为整个论文提供单一的参考书目。

我将非常感谢您的帮助。以下是有关代码的信息。

我在主文件中有以下代码:

\addbibresource{bibliographies/chap1.bib}
\addbibresource{bibliographies/chap2.bib}
\addbibresource{bibliographies/chap3.bib}
\addbibresource{bibliographies/chap4.bib}
.
.
.
.
.
.
.
.
\cleardoublepage\include{FrontBackmatter/Bibliography}

在 中bibliography.tex我有以下代码:

\defbibheading{bibintoc}[\bibname]{%
  \phantomsection
  \manualmark
  \markboth{\spacedlowsmallcaps{#1}}{\spacedlowsmallcaps{#1}}%
  \addtocontents{toc}{\protect\vspace{\beforebibskip}}%
  \addcontentsline{toc}{chapter}{\tocEntry{#1}}%
  \chapter*{#1}%
}
\printbibliography[heading=bibintoc]

在 中classicthesis-config.tex我有以下代码:

\PassOptionsToPackage{
        natbib=true,
        style=authoryear-comp,
        dashed=false,
        hyperref=true,
        backend=biber,
        %bibencoding=ascii,
        maxbibnames=10,
        giveninits=true,
        uniquename=false,%init,
        maxcitenames=2,
        parentracker=true,
        url=true,
        doi=true,
        isbn=true,
        eprint=false,
        backref=true,
        sorting=nyt,
        sortcites=true,
    }   {biblatex}
    \usepackage{biblatex}
  \DeclareNameAlias{sortname}{family-given} 
  
    % report either doi (preffered) or url (if no doi)
    \renewbibmacro*{doi+eprint+url}{% 
    \iftoggle{bbx:url} 
    {\iffieldundef{doi}{\usebibmacro{url+urldate}}{}} 
    {}% 
    \newunit\newblock 
    \iftoggle{bbx:eprint} 
    {\usebibmacro{eprint}} 
    {}% 
    \newunit\newblock 
    \iftoggle{bbx:doi}
    {\printfield{doi}}
    {}}
  
   % remove "in:" from articles. Thanks to Herbert.
    \renewbibmacro{in:}{%
        \ifentrytype{article}{}{%
            \printtext{\bibstring{in}\intitlepunct}}}
    
    % omit "month" and "language" from Bibliography
    \AtEveryBibitem{%
        \clearfield{month}{}%
        \clearlist{language}{}%
    }
    
    % omit from all types from Bibliography
   % \AtEveryBibitem{\clearfield{doi}\clearfield{issn}\clearfield{isbn}}
    %\AtEveryCitekey{\clearfield{doi}\clearfield{issn}\clearfield{isbn}}
    
    % omit from type "articles" from Bibliography
    \AtEveryBibitem{\ifentrytype{article}{\clearfield{issn}\clearfield{isbn}}{}}
    
        % omit from type "articles" from Bibliography
%    \AtEveryCitekey{\ifentrytype{article}{\clearfield{issn}}{}}
    
    % some natbib backwards compatibility 
    \let\citealp\cite
    \let\cite\textcite
    
    % increase vertical space between bibliography items.
    \setlength\bibitemsep{0.5ex}
    \setlength\bibnamesep{1.2ex}
    
    % Comma before and after journal volume. Thanks to lockstep.
    \renewbibmacro*{volume+number+eid}{%
        \setunit*{\addcomma\space}% NEW
        \printfield{volume}%
        \printfield{number}%
        \printfield{eid}}
    \DeclareFieldFormat[article]{number}{(#1)}% number of a journal
    
    % Citation Hyperlinks (not just years), thanks to Audrey.
    \makeatletter
    \renewbibmacro*{cite}{% Based on cite bib macro from authoryear-comp.cbx
        \iffieldundef{shorthand}
        {\ifthenelse{\ifnameundef{labelname}\OR\iffieldundef{labelyear}}
            {\printtext[bibhyperref]{% Include labelname in hyperlink
                    \DeclareFieldAlias{bibhyperref}{default}% Prevent nested hyperlinks
                    \usebibmacro{cite:label}%
                    \setunit{\addspace}%
                    \usebibmacro{cite:labeldate+extradate}}%
                \usebibmacro{cite:reinit}}
            {\iffieldequals{namehash}{\cbx@lasthash}
                {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
                        \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
                    {\setunit{\addcomma}%
                        \usebibmacro{cite:extradate}}
                    {\setunit{\compcitedelim}%
                        \usebibmacro{cite:labeldate+extradate}%
                        \savefield{labelyear}{\cbx@lastyear}}}
                {\printtext[bibhyperref]{% Include labelname in hyperlink
                        \DeclareFieldAlias{bibhyperref}{default}% Prevent nested hyperlinks
                        \printnames{labelname}%
                        \setunit{\nameyeardelim}%
                        \usebibmacro{cite:labeldate+extradate}}%
                    \savefield{namehash}{\cbx@lasthash}%
                    \savefield{labelyear}{\cbx@lastyear}}}}
        {\usebibmacro{cite:shorthand}%
            \usebibmacro{cite:reinit}}%
        \setunit{\multicitedelim}}
    
    \renewbibmacro*{textcite}{% Based on textcite bib macro from authoryear-comp.cbx
        \iffieldequals{namehash}{\cbx@lasthash}
        {\iffieldundef{shorthand}
            {\ifthenelse{\iffieldequals{labelyear}{\cbx@lastyear}\AND
                    \(\value{multicitecount}=0\OR\iffieldundef{postnote}\)}
                {\setunit{\addcomma}%
                    \usebibmacro{cite:extradate}}
                {\setunit{\compcitedelim}%
                    \usebibmacro{cite:labeldate+extradate}%
                    \savefield{labelyear}{\cbx@lastyear}}}
            {\setunit{\compcitedelim}%
                \usebibmacro{cite:shorthand}%
                \global\undef\cbx@lastyear}}
        {\ifnameundef{labelname}
            {\printtext[bibhyperref]{% Include labelname in hyperlink
                    \DeclareFieldAlias{bibhyperref}{default}% Prevent nested hyperlinks
                    \iffieldundef{shorthand}
                    {\usebibmacro{cite:label}%
                        \setunit{%
                            \global\booltrue{cbx:parens}%
                            \addspace\bibopenparen}%
                        \ifnumequal{\value{citecount}}{1}
                        {\usebibmacro{prenote}}
                        {}%
                        \usebibmacro{cite:labeldate+extradate}}
                    {\usebibmacro{cite:shorthand}}%
                    \ifthenelse{\iffieldundef{postnote}\AND
                        \(\value{multicitetotal}=0\AND\value{citetotal}=1\)}
                    {\bibcloseparen% Include closing parenthesis in hyperlink
                        \global\boolfalse{cbx:parens}}
                    {}}}
            {\printtext[bibhyperref]{% Include labelname in hyperlink
                    \DeclareFieldAlias{bibhyperref}{default}% Prevent nested hyperlinks
                    \printnames{labelname}%
                    \setunit{%
                        \global\booltrue{cbx:parens}%
                        \addspace\bibopenparen}%
                    \ifnumequal{\value{citecount}}{1}
                    {\usebibmacro{prenote}}
                    {}%
                    \iffieldundef{shorthand}
                    {\iffieldundef{labelyear}
                        {\usebibmacro{cite:label}}
                        {\usebibmacro{cite:labeldate+extradate}}%
                        \savefield{labelyear}{\cbx@lastyear}}
                    {\usebibmacro{cite:shorthand}%
                        \global\undef\cbx@lastyear}%
                    \ifthenelse{\iffieldundef{postnote}\AND
                        \(\value{multicitetotal}=0\AND\value{citetotal}=1\)}
                    {\bibcloseparen% Include closing parenthesis in hyperlink
                        \global\boolfalse{cbx:parens}}
                    {}}%
                \savefield{namehash}{\cbx@lasthash}}}%
        \setunit{%
            \ifbool{cbx:parens}
            {\bibcloseparen\global\boolfalse{cbx:parens}}
            {}%
            \multicitedelim}}
    
    \makeatother
    
    % Backrefs "cited" instead of "cit"
    \DefineBibliographyStrings{english}{%
        backrefpage={cited on p\adddot},
        backrefpages={cited on pp\adddot}
    }

相关内容