索引问题

索引问题

\tableofcontents我对、\listoffigures和有各种问题\listoftables

具体来说,如果我写:

\tableofcontents 
\listoffigures
\listoftables

我有这些错误:

对于第 87 行(...tazione dei task avanzati e risultati 是第 7 章的标题):

 ! Missing \endcsname inserted.<to be read again>\protect ...tazione dei task avanzati e risultati}{91}
 ! Extra \endcsname.\thepage ...me @{\color {azzurro}Roman}\endcsname\c@page ...tazione dei task avanzati e risultati}{91}
 ! Missing number, treated as zero.<to be read again>\hss ...tazione dei task avanzati e risultati}{91}
 ! Extra }, or forgotten \endgroup.\@outputpage ...or \hb@xt@ \textwidth {\@thehead }\color@endbox }\dp \@tempb... ...tazione dei task avanzati e risultati}{91}

对于第 82 行:

 ! Missing \endcsname inserted.<to be read again>\protect \listoffigures
\documentclass[envcountsame,envcountchap]{svmono}
 ! Extra \endcsname.\thepage ...me @{\color {azzurro}Roman}\endcsname\c@page \listoffigures
 ! Missing number, treated as zero.<to be read again>} \listoffigures
 ! Extra }, or forgotten \endgroup.\@outputpage ...or \hb@xt@ \textwidth {\@thehead }\color@endbox }\dp \@tempb... \listoffigures

对于第 75 行( Creazione del database WASM 是图形的标题):

 ! Missing \endcsname inserted.<to be read again>\protect ...respaces Creazione del database WASM}}{94}
 ! Extra \endcsname.\thepage ...me @{\color {azzurro}Roman}\endcsname\c@page ...respaces Creazione del database WASM}}{94}
 ! Missing number, treated as zero.<to be read again>\hss ...respaces Creazione del database WASM}}{94}
 ! Extra }, or forgotten \endgroup.\@outputpage ...or \hb@xt@ \textwidth {\@thehead }\color@endbox }\dp \@tempb... ...respaces Creazione del database WASM}}{94}

对于第 83 行:

 ! Missing \endcsname inserted.<to be read again>\protect \listoftables
 ! Extra \endcsname.\thepage ...me @{\color {azzurro}Roman}\endcsname\c@page \listoftables
 ! Missing number, treated as zero.<to be read again>} \listoftables
 ! Extra }, or forgotten \endgroup.\@outputpage ...or \hb@xt@ \textwidth {\@thehead }\color@endbox }\dp \@tempb... \listoftables

然后,在第 1 行:

 Overfull \hbox (28.90535pt too wide) has occurred while \output is active

这是文件:

 \documentclass[envcountsame,envcountchap]{svmono}
 %\usepackage[latin1]{inputenc}
 \usepackage[utf8]{inputenc}
 \usepackage{eurosym}
\usepackage{makeidx}                % allows index generation
\usepackage{graphicx}               % standard LaTeX graphics tool
\usepackage{xtab}                   % when including figure files
\usepackage{multicol}
\usepackage{qtree}
\usepackage{booktabs}
\usepackage{latexsym}
 \usepackage{psfig}                  % used for the two-column index
 \usepackage[bottom]{footmisc}       % places footnotes at page bottom
\usepackage[italian]{babel}
\usepackage{my_listings}
\usepackage[hyphens]{url}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{multirow}
\usepackage{xcolor}
\usepackage{float}
 \usepackage{titlesec}
  \usepackage{csquotes}
   \usepackage{python}
  \usepackage{verbatim}
  \usepackage{eurosym}
  \usepackage[figuresright]{rotating}
 \usepackage{pdflscape}
\usepackage{tcolorbox}
%\setcounter{secnumdepth}{3}
%\setcounter{tocdepth}{3}
\makeatletter
\titleformat{\section}[display]%
  {\Large\bfseries\boldmath}{\color{azzurro}{\thesection}}{-1.1em}{\hspace{2em}\color{azzurro}}[{\titlerule[0pt]}]
\makeatother

\makeatletter
\titleformat{\subsection}[display]%
  {\large\bfseries\boldmath}{\color{gold}{\thesubsection}}{-1em}{\hspace{3em}\color{gold}}[{\titlerule[0pt]}]
\makeatother

\makeatletter
\titleformat{\subsubsection}[display]%
  {\normalsize\bfseries\boldmath}{\color{gold}{\thesubsubsection}}{-1em}{\color{gold}}[{\titlerule[0pt]}]
\makeatother

\definecolor{gold}{rgb}{0.64,0.54,0.29}
\definecolor{azzurro}{rgb}{0,0.29,0.57}

\def\lstlistlistingname{\textbf{Elenco dei listati}}
\addto\captionsitalian{\renewcommand{\contentsname}{\textbf{Indice}}}
\addto\captionsitalian{\renewcommand{\listfigurename}{\textbf{Elenco delle figure}}}


\makeatletter
\let\old@rule\@rule
\def\@rule[#1]#2#3{\textcolor{gold}{\old@rule[#1]{#2}{#3}}}
\makeatother

\setlength{\textwidth}{12.7cm}
\setlength{\textheight}{20.0cm}
\setlength{\oddsidemargin}{3.50cm}
\setlength {\evensidemargin}{-0.3cm}
\setlength {\topmargin}{-1cm}


\makeindex

\author{}

\date{13 marzo 2018}

\begin{document}
%line75

\pagenumbering{{\color{azzurro}Roman}}
%\include{frontespizio/frontespizio}
%\newpage\null\thispagestyle{empty}\newpage
%\include{dedica/dedica}
\tableofcontents 
\listoffigures  %line82
\listoftables   %line83

\pagenumbering{arabic} \setcounter{page}{1}

%\include{Introduzione/introduzione}  %line87
\include{01-IlCrowdsourcing/capitolo-01}
\include{02-LaSentimentAnalysis/capitolo-02}
\include{03-ProgettazioneDeiTaskDiBase/capitolo-03}
\include{04-ImplementazioneDeiTaskDiBaseERisultati/capitolo-04}
\include{05-ProgettazioneDeiTaskAvanzati/capitolo-05}
\include{06-ImplementazioneDeiTaskAvanzatiERisultati/capitolo-06}
\include{07-ConfrontoConApprocciCorrelati/capitolo-07}
\include{08-DiscussioneInMeritoAll'attivitàSvolta/capitolo-08}

\nocite{*}
%\bibliography{Bibliografia/biblio}
\bibliographystyle{plain}
%\include{Ringraziamenti/ringraziamenti}
\end{document}

但如果我只编译\listoftables,它就可以工作!问题出在\tableofcontents或上\listoffigures

此外,如果我没有这些索引进行编译,也不会出现任何错误!

我也尝试过用 pdflatex 和 latex 进行编译。

谢谢您的回答。

编辑:例如,这是 book.lof 的一段:

\contentsline {figure}{\numberline {6.6}{\ignorespaces Diagramma di sequenza per il subtask ``Analisi tramite Watson Analytics For Social Media''}}{88}
\contentsline {figure}{\numberline {6.7}{\ignorespaces Diagramma di sequenza per il subtask ``Analisi tramite Watson Analytics''}}{89}
\addvspace {10\p@ }
\contentsline {figure}{\numberline {7.1}{\ignorespaces Mappa dei luoghi fotografati di Guanajuato}}{92}
\contentsline {figure}{\numberline {7.2}{\ignorespaces Mappa della soddisfazione nei quartieri di Londra}}{95}

真的,7.1 和 7.2 就是 8.1 和 8.2!!第 7 章的所有图都不存在。book.toc 也是一样。\listoftables 有效,因为第 7 章没有表格!

所有章节都具有以下结构(包含的文件):

\chapter{title of chapter}
\label{capitolo-07}

\emph{explains what the chapter is about}

\section{title of section}
La gestione del database comprende una serie di operazioni
utili per la creazione e la modifica dello stesso.

\subsection{title of subsection}
etc etc etc

也许,是有区别的:在第 7 章中,我使用了这样的标签

Figure \ref{fig:g1}

其中有字母和数字;在其他方面,我在标签中仅使用字母。

编辑:第 7 章不是问题。如果我只编译第 7 章,它可以工作。但如果我编译第 6 和第 7 章,则不行。第 1 和第 2 章不行,第 1 和第 3 章行,第 1 和第 4 章不行,第 1 和第 6 章行,第 6 和第 7 章不行,第 7 和第 8 章行,等等。这取决于我选择编译的章节。我不明白问题出在哪里。

答案1

如果我删除,\pagenumbering{{\color{azzurro}Roman}}一切都会正常!

相关内容