使用 BibTeX 的解决方案

使用 BibTeX 的解决方案

我怎样才能在 BibTeX 中将一些介绍性文字放在参考文献之前,但在参考书目标题之后?我找到了一些参考文献\bibintro,但它无法编译。我尝试使用假参考文献,但它显然必须以许多 A 开头;)

答案1

由于您在问题中提到了 BibTeX,但将其标记为我将针对这两者提供解决方案:

使用 BibTeX 的解决方案

假设您正在使用该类article,您可以thebibliography像这样重新定义环境:

\documentclass{article}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@misc {foo,
    author = {Foo, Francis},
    title = {All about Foo},
    year = {2011},
}
\end{filecontents}

\newcommand{\myprenote}{Here goes my text.}

\makeatletter
\renewenvironment{thebibliography}[1]
     {\section*{\refname}%
      \@mkboth{\MakeUppercase\refname}{\MakeUppercase\refname}%
      \myprenote
      \list{\@biblabel{\@arabic\c@enumiv}}%
           {\settowidth\labelwidth{\@biblabel{#1}}%
            \leftmargin\labelwidth
            \advance\leftmargin\labelsep
            \@openbib@code
            \usecounter{enumiv}%
            \let\p@enumiv\@empty
            \renewcommand\theenumiv{\@arabic\c@enumiv}}%
      \sloppy
      \clubpenalty4000
      \@clubpenalty \clubpenalty
      \widowpenalty4000%
      \sfcode`\.\@m}
     {\def\@noitemerr
       {\@latex@warning{Empty `thebibliography' environment}}%
      \endlist}
\makeatother

\begin{document}
\bibliographystyle{plain}
\bibliography{\jobname}
\nocite{*}
\end{document}

enter image description here

解决方案biblatex

\documentclass{article}

\usepackage[
    style=authortitle,
    backend=biber,
]{biblatex}

\usepackage{filecontents}

\begin{filecontents}{\jobname.bib}
@book {foo,
    author = {Foo, Francis},
    title = {All about Foo},
    year = {2011},
    location = {Footown},
}
@book {bar,
    author = {Bar, Bernie},
    title = {Barstory},
    year = {2000},
    location = {Barcity},
}
\end{filecontents}

\addbibresource{\jobname.bib}


\begin{document}
\defbibnote{myprenote}{Here goes my text.}
\printbibliography[prenote=myprenote]
\nocite{*}
\end{document}

enter image description here

答案2

如果你使用纳特比布,你可以简单地定义\bibpreamble例如

\documentclass{article}
\usepackage{natbib}

\usepackage{filecontents}

\begin{filecontents}{example.bib}
@book {foo,
    author = {Foo, Francis},
    title = {All about Foo},
    year = {2011},
    location = {Footown},
}
@book {bar,
    author = {Bar, Bernie},
    title = {Barstory},
    year = {2000},
    location = {Barcity},
}
\end{filecontents}

\def\bibpreamble{Here goes my text.}

\begin{document}
\bibliographystyle{abbrv} 
\bibliography{example}
\nocite{*}
\end{document} 

enter image description here

相关内容