
私は論文を執筆中で\documentclass[12pt,twoside]{report}
、参考文献の章があります。現在、参考文献という章があり、ページの残りの部分は空白です。次のページは参考文献で、上部に「参考文献」と書かれています。詳細については画像をご覧ください。また、その部分に関するコードは次のとおりです。
\chapter{Bibliography}
\bibliographystyle{plainnat} % or try abbrvnat or unsrtnat
\bibliography{Mendeley} % refers to example.bib
第 6 章の後に「参考文献」というタイトルを付け、その後に実際の参考文献を記載したいと思います。ここで見つけたさまざまな解決策を試しましたが、成功しませんでした。
答え1
簡単な方法はパッチのレポートクラス( report.cls
) を使用して環境を再定義し、 を(ファイル を明らかに変更せずに)にthebibliography
変更します。は番号なしの章を作成し、は章に番号を付けることを覚えておきましょう。\chapter*{\bibname}
\chapter{\bibname}
report.cls
\chapter*{}
\chapter{}
これを実現するには、パッケージxpatch
(内部的に使用するために必要)を使用しますexpl3.sty
。ラテックス3パッケージは問題ありません。
この変更は コマンド で可能です\xpatchcmd{<command>}{<search>}{<replace>}{<success>}{<failure>}
。
\documentclass[12pt,twoside]{report}
%----------------------------------
% Redefine `thebibliography` environment
\usepackage{xpatch}
\xpatchcmd{\thebibliography}{\chapter*{\bibname}}{\chapter{\bibname}}{}{}
%---------------------------------
\begin{document}
\chapter{First}
Here we cite\cite{key}
%\chapter{Bibliography} % unnecessary
\bibliographystyle{plainnat} % or try abbrvnat or unsrtnat
\bibliography{Mendeley} % refers to example.bib
\end{document}