참고문헌 목차에 항목을 작성하는 방법

참고문헌 목차에 항목을 작성하는 방법

질문

수업 문서에서 scrartcl참고문헌 목차에 항목을 작성하고 싶습니다. 현재 목차 에는 문서 \section{}의 모든 표기법에 대한 항목이 포함되어 있습니다.\subsection{}

내 평가판

내가 찾은 유일한 의사 해결책은 섹션 참고문헌을 만든 다음 표준 참고문헌 제목을 제거하는 것이었습니다.

\section{Bibliography}
\renewcommand{\refname}{\spacedlowsmallcaps{}} % For removing the bibliography heading
\bibliography{/Users/remi/Documents/Biologie/Literature/BibTex/Proposal-cited2}

그러나 이 솔루션은 섹션 헤더( Bibliography)와 첫 번째 참조 사이에 추가 간격을 만듭니다.

추가 서식 정보

다음은 답변을 위해 알아야 할 문서 시작 부분의 몇 줄의 코드입니다.

\documentclass[
fontsize=10pt,
paper=a4
]{scrartcl}

\linespread{1.5}

\usepackage[round,mcite]{natbib}
\bibliographystyle{plainnat}

편집 1

@esdd의 댓글 이후. 나는 다음을 시도했다

  1. bibliography=totoc내 문서 클래스에 추가 중입니다 . 다음과 같은 오류 메시지가 생성되었습니다.

    (./ResearchPlan_0.0.1.bbl Runaway 정의? ->\protect \protect \<>-\textls {\protect \begingroup \-command \ETC. ./ResearchPlan_0.0.1.bbl:1: TeX 용량이 초과되었습니다. 죄송합니다 [ 주 메모리 크기=5000 000]. \reserved@ a l.1 \begin{참고문헌}{24}

    ./ResearchPlan_0.0.1.bbl:1: ==> 치명적인 오류가 발생했습니다. 출력 PDF 파일이 생성되지 않았습니다! ResearchPlan_0.0.1.log에 작성된 성적 증명서.

  2. \KOMAoptions{bibliography=totoc}직전에 추가했지만 \begin{document}아무 것도 변경되지 않았습니다(여러 번 조판했습니다).

편집 2

다음은 로그 파일의 파일 목록입니다.

 *File List*
filecontents.sty    2011/10/08 v1.3 Create an external file from within a LaTeX
 document
scrartcl.cls    2015/05/06 v3.17a KOMA-Script document class (article)
scrkbase.sty    2015/05/06 v3.17a KOMA-Script package (KOMA-Script-dependent ba
sics and keyval usage)
 scrbase.sty    2015/05/06 v3.17a KOMA-Script package (KOMA-Script-independent 
basics and keyval usage)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty    2015/05/06 v3.17a KOMA-Script package (loading files)
tocbasic.sty    2015/05/06 v3.17a KOMA-Script package (handling toc-files)
scrsize10pt.clo    2015/05/06 v3.17a KOMA-Script font size class option (10pt)
typearea.sty    2015/05/06 v3.17a KOMA-Script package (type area)
blindtext.sty    2012/01/06 V2.0 blindtext-Package
  xspace.sty    2014/10/28 v1.13 Space after command names (DPC,MH)
  natbib.sty    2010/09/13 8.31b (PWD, AO)
  omscmr.fd    2014/09/29 v2.5h Standard LaTeX font definitions
 ***********

답변1

이전 버전의 KOMA-Script를 사용하고 있을 수 있습니다.

다음 MWE를 세 번 실행하고(패키지에 작은 bib 파일을 포함시켰기 때문에 filecontents한 번의 경고가 발생함) 로그 파일을 확인하십시오. 거기에서 사용된 클래스, 패키지 및 버전 번호 목록( \listfilesmwe의 명령으로 생성됨)을 마지막에서 찾을 수 있습니다. 질문에 이 목록을 추가하세요.

편집하다: MWE에서 "References"의 이름을 "Bibliography"로 변경하고 "Bibliography" 제목의 글꼴을 변경하는 방법을 추가했습니다(MWE에서 로 표시된 변경된 부분을 찾을 수 있습니다 <=======).

내 답변을 확인해주세요.이 질문"참조" 이름을 바꾸는 방법을 알아보세요(자세한 설명이 포함된 코드 포함).

컴퓨터에 있어야 하는 KOMA 스크립트 문서입니다. 터미널/콘솔에서 texdoc scrguien영어 버전이나 texdoc scrguide독일어 버전을 사용해 보세요 .

MWE:

\RequirePackage{filecontents}
\begin{filecontents*}{\jobname.bib}
@Book{Goossens,
  author    = {Goossens, Michel and Mittelbach, Frank and 
               Samarin, Alexander},
  title     = {The LaTeX Companion},
  edition   = {1},
  publisher = {Addison-Wesley},
  location  = {Reading, Mass.},
  year      = {1994},
}
@Book{adams,
  title     = {The Restaurant at the End of the Universe},
  author    = {Douglas Adams},
  series    = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year      = {1980},
}
article{einstein,
  author  = {Albert Einstein},
  title   = {{Zur Elektrodynamik bewegter K{\"o}rper}. ({German}) 
             [{On} the electrodynamics of moving bodies]},
  journal = {Annalen der Physik},
  volume  = {322},
  number  = {10},
  pages   = {891--921},
  year    = {1905},
  DOI     = {http://dx.doi.org/10.1002/andp.19053221004},
}
@misc{mozart:KV183,
  author  = {Mozart, Wolfgang Amadeus},
  title   = {Sinfonie g-Moll},
  year    = {1773},
  address = {Salzburg},
  note    = {New K{\"o}chelverzeichnis Nr. 183, old version Nr. 25; 
             Erster Satz: Allegro con brio, Zweiter Satz: Andante, 
             Dritter Satz: Menuetto, Vierter Satz: Allegro},
}
\end{filecontents*}

\listfiles % <=========================================================
\documentclass[%
% bibliography=totoc % <=============== unnumbered bib reference  in TOC 
  bibliography=totocnumbered % <========= numbered bib reference  in TOC 
 ,fontsize=10pt
 ,paper=a4
]{scrartcl} % scrbook scrreprt

\usepackage[english]{babel}
% renaming Reference to Bibliography with KOMA-Script
%\renewcaptionname{english}{\bibname}{Bibliography} % scrreprt, scrbook
 \renewcaptionname{english}{\refname}{Bibliography} % scrartcl

\usepackage{blindtext}

\usepackage[round,mcite]{natbib}

\title{Test}
\author{Username}
\date{\today}

\begin{document}

\maketitle

\tableofcontents

\Blinddocument

This is text with \cite{Goossens} and \cite{adams}.

\nocite{*} % to test all bib entrys
\bibliographystyle{plainnat}
\addtokomafont{section}{\normalfont\scshape} % <========== Change font to SC 
\bibliography{\jobname}

\end{document}

사용된 클래스, 패키지 및 버전 번호 목록:

 *File List*
filecontents.sty    2011/10/08 v1.3 Create an external file from within a LaTeX document
scrartcl.cls    2015/10/03 v3.19a KOMA-Script document class (article)
scrkbase.sty    2015/10/03 v3.19a KOMA-Script package (KOMA-Script-dependent basics and keyval usage)
 scrbase.sty    2015/10/03 v3.19a KOMA-Script package (KOMA-Script-independent basics and keyval usage)
  keyval.sty    2014/10/28 v1.15 key=value parser (DPC)
scrlfile.sty    2015/10/03 v3.19a KOMA-Script package (loading files)
tocbasic.sty    2015/10/03 v3.19a KOMA-Script package (handling toc-files)
scrsize10pt.clo    2015/10/03 v3.19a KOMA-Script font size class option (10pt)
typearea.sty    2015/10/03 v3.19a KOMA-Script package (type area)
blindtext.sty    2012/01/06 V2.0 blindtext-Package
  xspace.sty    2014/10/28 v1.13 Space after command names (DPC,MH)
  natbib.sty    2010/09/13 8.31b (PWD, AO)
  omscmr.fd    2014/09/29 v2.5h Standard LaTeX font definitions

관련 정보