我正在写论文,5 天后就要交了。我的目录、图片列表和表格列表有问题。目前,我的所有条目都超出了页边距并超出了页面。不知何故,某些条目(长章节标题和长图片或表格标题)没有换行或分成多行。
我到处寻找解决方案,但找不到。下面是我包含的所有软件包的代码。不确定是否是因为某些软件包导致了问题。
\documentclass[a4paper, 12pt, fleqn]{report}
\usepackage{amsfonts, amsmath, amsgen, amsopn, amssymb, amstext, enumitem, accents, amsthm, bm} % bezier, amsxtra, amsbsy, amsgen, amsopn, amscd, latexsym, enumitem,
\usepackage{array} % mdwtab, mdwmath, url
%\usepackage[{graphicx,color}
\usepackage{epstopdf}
\usepackage{graphicx} % Required for including pictures
\graphicspath{{../pdf/}{../tif/}{../jpeg/}{./image/}{../eps/}}
\DeclareGraphicsExtensions{.pdf,.jpeg,.png,.jpg,.tif,.eps}
\usepackage{float}
% \usepackage{ntheorem}
\usepackage{multirow}
\usepackage{tabularx}
\usepackage{stfloats}
\usepackage[space,sort]{cite} %nobreak option removed
\usepackage{setspace}
\usepackage{nomencl}
\usepackage[mathscr]{eucal}
\usepackage{mathtools}
\usepackage{appendix}
\usepackage{textcomp}
\usepackage{notoccite}
\usepackage[top=3.81cm, bottom=3.81cm, left=3.81cm, right=3.81cm]{geometry}
\usepackage{cite}
\usepackage{subfigure}
\usepackage{graphicx}
\usepackage{nomencl}
\usepackage{glossaries}
\usepackage{eurosym}
\usepackage{hyperref}
\usepackage{calc} % For indent of label in description
\usepackage{enumitem} % For indent of label in description
\usepackage[table]{xcolor} % For cell colours
\usepackage{commath} % For "absolute" symbol "||"
\usepackage{ulem} % For creating underline
\usepackage[toctitles]{titlesec}
%% Below is for creating overline
\newcommand*\oline[1]{%
\vbox{%
\hrule height 0.5pt% % Line above with certain width
\kern0.25ex% % Distance between line and content
\hbox{%
\kern-0.1em% % Distance between content and left side of box, negative values for lines shorter than content
\ifmmode#1\else\ensuremath{#1}\fi% % The content, typeset in dependence of mode
\kern-0.1em% % Distance between content and left side of box, negative values for lines shorter than content
}% end of hbox
}% end of vbox
}
\hypersetup{
colorlinks = true,
citecolor = black,
linkcolor = black
}
%setcounter{tocdepth}{3}% Include \subsubsection in ToC
\setcounter{secnumdepth}{4}% Number \subsubsection
\tolerance=10000
\hyphenpenalty =1000
\newtheorem{theorem}{Theorem}[chapter]
\newtheorem{lemma}{Lemma}[chapter]
\newtheorem{assum}{Assumption}[chapter]
\newtheorem{assumption}{Assumption}[chapter]
\newtheorem{proposition}{Proposition}[chapter]
\newtheorem{definition}{Definition}[chapter]
\newtheorem{corollary}{Corollary}[chapter]
\newtheorem{notation}{Notation}[chapter]
\newtheorem{remark}{Remark}[chapter]
\newtheorem{rem}{Remark}[chapter]
\newtheorem{example}{Example}[chapter]
\newtheorem{problem}{Problem}[chapter]
\newtheorem{algorithm}{Algorithm}[chapter]
\newtheorem{property}{Property}[chapter]
\newtheorem{design_strategy}{Design Strategy}[chapter]
\makenomenclature
\begin{document}
\cleardoublepage \addcontentsline{toc}{chapter}{Table of Contents} \tableofcontents
\cleardoublepage\addcontentsline{toc}{chapter}{List of Tables} \listoftables
\cleardoublepage\addcontentsline{toc}{chapter}{List of Figures} \listoffigures
\end{document}
请告诉我该怎么办。
太感谢了!
汤米
答案1
hyperref
正如 John Kormylo 所指出的,这很可能是由于您使用的编译器的交互造成的。要解决此问题,您有几种选择:
- 明确使用
pdflatex
- 使用该
hyperref
选项linktocpage=true
将目录中的页码转换为超链接而不是章节标题。 - 如果您想要/必须使用
latex
编译器并且希望保持标题超链接,则可以hypdvips
在加载后包含该包hyperref
以启用超链接内的换行符。
注意:在所有情况下都要记住包的正确加载顺序:hyperref
一般(除了少数例外)应该最后加载。