我正在编写一个使用章节 ( ) 而不是节的文档\chapter{...}
,并想创建一个章节供参考。但是当我使用这些命令时:
\bibliographystyle{plain}
\bibliography{ref.bib}
生成参考文献时,系统会自动创建一个与文档不一致的“参考书目”部分。因此,我希望只生成参考文献而不生成任何部分,然后使用命令\chapter{...}
进行分段。
有人知道如何阻止\bibliography*
命令创建此部分吗?
我的文档使用了由我的大学提供的自定义课程:
\NeedsTeXFormat{LaTeX2e}
\ProvidesClass{uva-bachelor-thesis}[2005/06/10 Version]
\RequirePackage{graphicx}
\RequirePackage[svgnames]{xcolor}
\RequirePackage[absolute]{textpos}
\RequirePackage{rotating}
\def\supervisors#1{\gdef\@supervisors{#1}}
\def\signedby#1{\gdef\@signedby{#1}}
\DeclareOption*{\PassOptionsToClass{\CurrentOption}{report}}
\ProcessOptions\relax
\LoadClass[10pt,oneside]{report}
\renewcommand{\maketitle}{%
\thispagestyle{empty}
% A fake element on the page (else texpos absolute option doesn't work)
\hspace*{1em}
\begin{textblock*}{10cm}(6cm,3cm)
\noindent\large\scshape Bachelor \\[2ex]
\includegraphics[height=1cm]{logo}
%\Large University
\end{textblock*}
\begin{textblock*}{10cm}(6cm,12cm)
\noindent
\sffamily\Huge \@title
\end{textblock*}
\begin{textblock*}{10cm}(6cm,18cm)
\noindent
\sffamily\Large \@author\\[3pc]
\@date
\end{textblock*}
\begin{textblock*}{10cm}(6cm,26cm)
\noindent\sffamily
\begin{description}
\item[\sffamily Supervisor:] \@supervisors
\item[\sffamily Signed:] \@signedby
\end{description}
\end{textblock*}
\textblockcolor{LightGray}
\begin{textblock*}{2cm}(3cm,2cm)
\vspace*{26cm}\hspace*{1em}
\end{textblock*}
\begin{textblock*}{2cm}(3.7cm,25cm)
\begin{rotate}{90}
\noindent\scshape\Huge\textcolor{DarkGray}{University}
\end{rotate}
\end{textblock*}
% \cleardoublepage
}
这是我重现该问题的主要文件:
\documentclass[oneside, openright]{uva-inf-bachelor-thesis}
\usepackage{graphicx}
\usepackage{url}
\usepackage{lipsum}
\usepackage{etoolbox}
\patchcmd{\thebibliography}{\chapter{\refname}}{}{}{}
\title{}
\author{}
\supervisors{}
\signedby{}
\begin{document}
\chapter{Introduction}
\bibliographystyle{plain}
\bibliography{ref.bib} % The file containing the bibliography
\chapter{Appendix}
\end{document}
答案1
这就是我们想要的吗?一个编号的章节标题bibliography
?然后使用\usepackage[numbib]{tocbibind}
。
\documentclass[oneside, openright]{uva-inf-bachelor-thesis}
\usepackage{graphicx}
\usepackage{url}
\usepackage{lipsum}
\usepackage[numbib]{tocbibind}
\usepackage{etoolbox}
%\patchcmd{\thebibliography}{\chapter{\refname}}{}{\typeout{Foo}}{\typeout{Stuff}}
\title{}
\author{}
\supervisors{}
\signedby{}
\begin{document}
\tableofcontents
\chapter{Introduction}
\cite{Lam94}
\bibliographystyle{plain}
\bibliography{biblio} % The file containing the bibliography
\chapter{Appendix}
\end{document}