.png)
Todos los capítulos y secciones de mi documento dentro del TOC apuntan a los lugares correctos, excepto la bibliografía.
¿Cómo arreglar eso?
MWE:
\documentclass[a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage[british,UKenglish,USenglish,american]{babel}
\usepackage[T1]{fontenc}
% Biblatex references:
\usepackage[
backend=bibtex,
style=authoryear
]
{biblatex}
\DeclareNameAlias{sortname}{last-first}
\renewbibmacro{in:}{}
\setlength\bibitemsep{0.8\baselineskip}
\addbibresource{bib.bib}
\usepackage[
unicode=true,
bookmarks=true,
bookmarksnumbered=true,
bookmarksopen=true,
bookmarksopenlevel=1,
breaklinks=false,
pdfborder={0 0 1},
backref=false,
colorlinks=false
]
{hyperref}
\hypersetup{
colorlinks=false,
linkbordercolor={0 0.8 0.2},
linktoc=section
}
\usepackage{minitoc}
\mtcsettitle{minitoc}{Contents of chapter\,:}
\mtcsetrules{*}{off}
\mtcsetoffset{minitoc}{-2.0em}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\begin{document}
\thispagestyle{empty}
\pagenumbering{gobble}
\renewcommand{\tablename}{Table}
\title{Title}
\author{\normalsize{\textsc{Name} First Name}}
\date{\small{\today}}
\maketitle
\vspace*{-12mm}
\dominitoc
\tableofcontents
\newpage{}
\renewcommand{\listfigurename}{Figures list}
\listoffigures \addcontentsline{toc}{chapter}{Figures list} \mtcaddchapter
\newpage{}
\renewcommand{\listtablename}{Tables list}
\listoftables \addcontentsline{toc}{chapter}{Tables list} \mtcaddchapter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage{}
\chapter*{Sumary}
\markboth{Sumary}{Sumary}
\addstarredchapter{Sumary}
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\minitoc
stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage{}
\chapter*{Introduction}
\markboth{Introduction}{Introduction}
\addstarredchapter{Introduction}
\minitoc
other stuff
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\newpage{}
%\chapter*{Bibliography} % Test: if I un-comment this line, I got two "References" chapters then.
\markboth{References}{References}
\addstarredchapter{References}
\printbibliography%[]
\nocite{*}
%%%%%%%%%%%%%%%%%%%%%%%%
\end{document}
Respuesta1
Úselo así:
\printbibliography%[]
\markboth{References}{References}
\addstarredchapter{References}
Respuesta2
Esto no funcionará correctamente ya que imprime la última página de la bibliografía en el TOC.
En su lugar, es mejor simplemente insertar su bibliografía como (funciona con biblatex
):
\printbibliography[title={References},heading=bibintoc]
\markboth{References}{References}
Como se explica aquí:La bibliografía no está en la ToC cuando se usa biblatex/biber
o aquí:Número de página incorrecto de Referencias en toc (scrreprt)
Por ejemplo.