목차에 있는 참고문헌의 형식이 잘못됨

목차에 있는 참고문헌의 형식이 잘못됨

나는 보고서 클래스를 사용하고 있으며 \usepackage{amsrefs}인용 스타일로 사용하고 있습니다. 목차를 생성할 때 LaTeX가 참고문헌을 하나의 섹션으로 처리하도록 하기 위해 명령을 사용했습니다 \addcontentsline{toc}{section}{Bibliography}. 그러나 이로 인해 목차에는 "VII 참고문헌"이 나열되지 않고 "참고문헌"만 나열됩니다.

내 인용에 대해 목차에 "VII 참고문헌"이 표시되도록 할 수 있는 방법이 있습니까?

어떤 도움이라도 주시면 감사하겠습니다.

편집: 번거로운 코드를 넣는 것을 잊었습니다.

\documentclass[12pt]{report}
\usepackage{amsrefs}

\begin{document}
\stepcounter{page}
\newpage
\section{Summary}
\newpage
\tableofcontents
\newpage
\section{Introduction}
text text text

\addcontentsline{toc}{section}{Bibliography}
\bibliographystyle{amsrefs}
\bibliography{wood}

\section{Appendix}

\end{document}

답변1

수업 report에는 챕터가 있는데, 당신이 챕터를 사용하지 않는다는 게 좀 이상하네요.

\bibliographystyle{amsrefs}와 함께 사용할 필요 가 없습니다 . amsrefs그냥 \bibliography충분합니다. 이 예에서는 파일 이름을 독립형으로 만들기 위해 filecontents*및 를 파일 이름 \jobname으로 사용했습니다 ..bib

참고문헌 제목에 또는 를 amsrefs사용하므로 참고 문헌에 번호를 매기는 간단한 방법은 해당 명령의 정의에서 뒤에 오는 를 제거하는 것입니다.\bibchapter\bibsection*\chapter\section

\begin{filecontents*}{\jobname.bib}
@article{abc,
 author={A. U. Thor and W. Riter},
 title={A title},
 journal={The Journal},
 year={2014},
}
\end{filecontents*}

\documentclass{report}

\usepackage{amsrefs}

\usepackage{xpatch}
\xpatchcmd{\bibchapter}{*}{}{}{}
%%% use the following for the article class
%\xpatchcmd{\bibsection}{*}{}{}{}

\begin{document}
\tableofcontents

\chapter{Summary}
\chapter{Introduction}
text text text\cite{abc}

\bibliography{\jobname}

\end{document}

여기에 이미지 설명을 입력하세요

답변2

내가 당신을 올바르게 이해했는지 잘 모르겠습니다. 챕터가 없지만 report클래스를 사용하고 있습니다. 하지만 "VII Bibliography"에서 요청한 대로 로마자 번호 매기기는 없지만 최소한 TOC에 번호가 매겨진 섹션 "Bibliography"가 표시됩니다. 원하는 내용이 아닌 경우 질문을 명확히 해주세요.

% arara: pdflatex

\documentclass[12pt]{report}
\usepackage{amsrefs}

\begin{document}
\stepcounter{page}
\newpage
\section{Summary}
\newpage
\tableofcontents
\newpage
\section{Introduction}
text text text

\addtocounter{section}{1}
\addcontentsline{toc}{section}{\protect\numberline{\thesection}Bibliography}
\bibliographystyle{amsrefs}
\bibliography{wood}

\section{Appendix}

\end{document}

여기에 이미지 설명을 입력하세요

관련 정보