目录中的参考书目编号

目录中的参考书目编号

我尝试尽可能简化代码。下面列出了两个问题。

a) 我想将参考书目(Kaynakça)命名为 Kaynaklar。

b) 我想对目录中的参考书目进行编号。

我想要的结果是:

İçindekiler(目录)

  1. 吉里什

1.1.感谢你的关爱

  1. 凯纳克拉尔

  2. 埃克勒

谢谢。

第一章.tex

\chapter{GİRİŞ}
\section{Tez Çalışmasının Amacı}
Text

第三章.tex

\chapter{EKLER}
Text of ekler

文献资料

@article{label,
  title     = {Title},
  author    = {Author},
  journal   = {IEEE Transactions on Geoscience and Remote Sensing},
  number    = {1},
  volume    = {39},
  publisher = {IEEE-INST Electrical Electronics Engineers Inc},
}

主文本

\documentclass[12pt]{report} 
\usepackage[hidelinks]{hyperref}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[turkish,english,shorthands=:!]{babel}
\usepackage{apacite}
\usepackage[a4paper,left=30mm,top=30mm,right=25mm,bottom=25mm]{geometry}
\usepackage{epigraph}
\usepackage{graphicx}
\usepackage{float}
\usepackage{mathptmx} 
\usepackage[titletoc,title]{appendix}
\usepackage{afterpage}
\usepackage[doublespacing]{setspace}
\usepackage{tocloft}
\usepackage{url}
\usepackage{indentfirst}
\usepackage{tikz}               
\usetikzlibrary{positioning}    
\usepackage{longtable} 
\usepackage{lipsum} 


\selectlanguage{turkish}


%****************************************
% BIBLIOGRAPHY

%%% Bibliography line spacing
\usepackage{natbib}
\setlength{\bibsep}{0.0pt}

%........................................


%****************************************
% CHAPTERS
%%% Chapter titles
\usepackage{titlesec}
\titleformat{\chapter}[display]
  {\normalfont\fontsize{12pt}{12pt}\centering\bfseries}
  {\MakeUppercase{\chaptertitlename}\  \thechapter}
  {2\baselineskip}
  {\MakeUppercase}
\titleformat*{\section}{\bfseries\fontsize{12pt}{12pt}}
\titleformat*{\subsection}{\bfseries\fontsize{12pt}{12pt}}
\titlespacing{\chapter}{0pt}{13mm}{3\baselineskip} 
\titlespacing*{name=\chapter,numberless}{0pt}{10mm}{1\baselineskip} 

%%% RENAMING CHAPTER TITLES
\addto\captionsenglish{%
  \renewcommand{\contentsname}{\MakeUppercase{İÇİNDEKİLER}}%
  \renewcommand{\listtablename}{\MakeUppercase{TABLOLAR DİZİNİ}}%
  \renewcommand{\listfigurename}{\MakeUppercase{ŞEKİLLER DİZİNİ}}%
  \renewcommand{\bibname}{\MakeUppercase{KAYNAKLAR}}%
}
%........................................



%****************************************
% BEGIN
\begin{document}
\pagenumbering{gobble}




\pagenumbering{Roman}
\setcounter{page}{1} 



%%% Automatically generated.
%****************************************
% TABLE OF CONTENTS
\phantomsection
\addcontentsline{toc}{chapter}{İÇİNDEKİLER} 
\setcounter{secnumdepth}{3} 
\setcounter{tocdepth}{3}

\renewcommand{\cftchapleader}{\cftdotfill{\cftdotsep}} 
\renewcommand{\cfttoctitlefont}{\MakeUppercase\hfil\bfseries\fontsize{12pt}{12pt}\selectfont}
    \vspace*{10mm}
\renewcommand\cftchapfont{\mdseries}
\renewcommand\cftchappagefont{\mdseries}
\renewcommand{\cftchapaftersnum}{.} 
\renewcommand{\cftsecaftersnum}{.} 
\renewcommand{\cftsubsecaftersnum}{.} 
\renewcommand{\cftsubsubsecaftersnum}{.} 

\setlength{\cftaftertoctitleskip}{1\baselineskip} 
\setlength{\cftchapnumwidth}{4em} 
\setlength{\cftsecnumwidth}{4em}
\setlength{\cftsubsecnumwidth}{4em}

\setlength{\cftchapindent}{0em}
\setlength{\cftsecindent}{0em}
\setlength{\cftsubsecindent}{0em}
\setlength{\cftsubsubsecindent}{0em}



%%% Spacing between items
\setlength{\cftbeforechapskip}{1.5pt}
\setlength{\cftbeforesecskip}{\cftbeforechapskip}
\setlength{\cftbeforesubsecskip}{\cftbeforechapskip}
\setlength{\cftbeforesubsubsecskip}{\cftbeforechapskip}

\begin{singlespace}
\tableofcontents
\end{singlespace}
\clearpage
%........................................

\selectlanguage{turkish}


\pagenumbering{arabic}

\titleformat{\chapter}[display]
  {\normalfont\bfseries}{}{0pt}{\Large}

    \makeatletter
    \renewcommand{\@makechapterhead}[1]{%
    {\setlength{\parindent}{0pt} \raggedright \normalfont
    \bfseries\large\thechapter.\ #1
    \par\nobreak\vspace{0 pt}}}
    \makeatother

%****************************************
% CHAPTERS
\include{chapter1}
%........................................


%%% Automatically generated.
%****************************************
% BIBLIOGRAPHY (Kaynaklar)

\nocite{*}
\phantomsection
\bibliographystyle{apacite}

\begin{singlespace}
\setlength{\bibsep}{1\itemsep}
\bibliography{literature}
\end{singlespace}

\clearpage
%........................................


%****************************************
% APPENDICES (Ekler)

\makeatletter
\addtocontents{toc}{\let\protect\l@chapter\protect\l@section}
\makeatother

\include{chapter3}
\clearpage
%........................................


\end{document}

答案1

您可以添加此行来更改参考书目名称(针对书籍和报告类文档):

\renewcommand{\bibname}{Your text here}

对于文档类文章您需要使用:

\renewcommand{\refname}{Your text here}

\phantomsection至于第二个问题,您可以在参考书目后添加以下内容,将参考书目添加到目录中:

\addcontentsline{toc}{chapter}{Bibliography}

答案2

\usepackage[nottoc,numbib]{tocbibind} 

这是我的答案。

相关内容