我在将未编号的章节添加到目录中时遇到了问题。有问题的部分是符号列表,它位于引言开始之前的初始页面中。该章节是(标题为法语):
\chapter*{Liste des symboles}
\addcontentsline{toc}{chapter}{Liste des symboles}
My list of symbols here
现在我面临的问题是章节标题显示不正确。它出现在两行中,如下所示:
L........................................i
ste des symboles...........viii
注意:右侧的 i 实际上来自标题而不是页码。此外,根据文档类别中的定义,标题应该全部大写(目录中的所有其他章节标题/简介/结论均以大写形式出现)。
我认为我的问题的根源可能是目录中的章节被格式化为出现在两行上:
第一章
章节标题.................5
但我希望符号列表出现在一行上,就像介绍和结论一样:
介绍....................1
我尝试将其包含在完整文档中:
\documentclass[11pt,oneside]{memoireuqam1.3}
\usepackage{graphicx}
\usepackage[french]{babel}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{float}
\usepackage{array}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{setspace}
\usepackage{xparse}
\NewDocumentCommand{\rot}{O{90} O{1em} m}{\makebox[#2][l]{\rotatebox{#1}{#3}}}
\begin{document}
\nocite{*}
\pagenumbering{roman}
\addtocounter{page}{1}
\include{thanks}
\tableofcontents
\listoffigures
\listoftables
\parindent=0ex
\include{symbols} %%%%%%%%%%%%%problem section%%%%%%%
\include{abstract}
\parindent=0ex
\include{Introduction}
\include{chapt1}
\include{chapt2}
\include{chapt3}
\include{conclusion}
\bibliographystyle{theseuqam}
\bibliography{biblio}
\end{document}
我正在使用我所在大学提供的课程来完成硕士论文(http://www.labmath.uqam.ca/latex/telecharger.php)。下面复制的是与目录相关的部分:
\newcommand\l@specialchapitre {\@dottedtocline{1}{0em}{0em}}
\renewcommand\tableofcontents{%
\thispagestyle{empty}
\baselineskip=\simpleinter
\if@twocolumn
\@restonecoltrue\onecolumn
\else
\@restonecolfalse
\fi
\chapter*{\MakeUppercase{\contentsname}}
\parskip=0ex
\vspace*{-1.5ex}
\@starttoc{toc}%
\noindent
\if@restonecol\twocolumn\fi
\baselineskip=\doubleinter
\parskip=2ex}
\renewcommand\l@chapter[2]{%
\ifnum \c@tocdepth >\m@ne
\addpenalty{-\@highpenalty}%
\vskip 1.0em \@plus\p@
\setlength\@tempdima{1.5em}%
\begingroup
\parindent \z@ \rightskip \@pnumwidth
\parfillskip -\@pnumwidth
\nopagebreak
\leavevmode %\bfseries
\hskip -\leftskip
\@dottedtocline{1}{0em}{2.3em}
#1\nobreak\hfil \nobreak\hbox to\@pnumwidth{\hss #2}\par
\penalty\@highpenalty
\endgroup
\fi}
\def\@chapter[#1]#2{\ifnum \c@secnumdepth >\m@ne
\refstepcounter{chapter}%
\typeout{\@chapapp\space\thechapter.}%
\addtocontents{toc}{\protect\vspace{1.5ex}}
\addcontentsline{toc}{specialchapitre}
{\MakeUppercase{\@chapapp\protect\hskip 0.5em \numerochap} \vskip 0ex
\uppercase{#1}
}%
\else
\addcontentsline{toc}{section}{#1}
\fi
% \newcommand\numerochap{\Roman{chapter}}
\chaptermark{#1}%
% \addtocontents{lof}{\protect\addvspace{10\p@}}%
% \addtocontents{lot}{\protect\addvspace{10\p@}}%
\if@twocolumn
\@topnewpage[\@makechapterhead{#2}]%
\else
\@makechapterhead{#2}%
\@afterheading
\fi
}
\def\@sect#1#2#3#4#5#6[#7]#8{\ifnum #2>\c@secnumdepth
\let\@svsec\@empty\else
\refstepcounter{#1}\edef\@svsec{\csname the#1\endcsname\hskip
1em}\fi
\@tempskipa #5\relax
\ifdim \@tempskipa>\z@
\begingroup #6\relax
\@hangfrom{\hskip #3\relax\@svsec}{\interlinepenalty \@M
#8\par}%
\endgroup
\csname #1mark\endcsname{#7}
\ifnum #2<3
\addtocontents{toc}{\protect\vspace{1.5ex}}
\addcontentsline
{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname the#1\endcsname}\fi
#7}\else
\def\@svsechd{#6\hskip #3\relax %% \relax added 2 May 90
\@svsec #8\csname #1mark\endcsname
{#7}\addcontentsline
{toc}{#1}{\ifnum #2>\c@secnumdepth \else
\protect\numberline{\csname
the#1\endcsname}\fi
#7}}\fi
\fi
\@xsect{#5}}
\renewcommand\l@section {\@dottedtocline{1}{0em}{2.3em}}
\renewcommand\l@subsection {\@dottedtocline{2}{2.3em}{3.2em}}
\renewcommand\l@subsubsection{\@dottedtocline{3}{7.0em}{4.1em}}
非常感谢您的帮助。希望我已提供所有需要的信息。