Tag Info

Hot answers tagged

4

Like Harish I would suggest to use utf8 instead of ucs/utf8x, but if for some reason you really need utf8x you must prerender the offending unicode character: \documentclass[a4paper]{report} \usepackage[T1]{fontenc} \usepackage[utf8x]{inputenc} \PrerenderUnicode{ø} \begin{document} \tableofcontents \chapter{ø} \end{document}


3

The easiest way seems to be etoc by your fellow user [tag:jfbu] here, just using the \localtableofcontents where appropiate \documentclass{article} \usepackage{etoc} \usepackage{blindtext} \begin{document} \tableofcontents \clearpage \section{One} \localtableofcontents \subsection{First} \blindtext \clearpage \section{Two} \localtableofcontents ...


3

tocloft hooks only into the standard ToC, LoF and LoT commands and files and those which are defined using \newlistof. All of this is not covered for the LoL, which uses the traditional setup of \l@... like macros. In listings.sty we find \def\l@lstlisting#1#2{\@dottedtocline{1}{1.5em}{2.3em}{#1}{#2}} which is the relevant macro for the line setting in ...


3

Well, really no need to go into source code surfing here. \KOMAoption{chapteratlists}{0pt} will set the chaptergap to zero point. All lists controlled by package tocbasic are influenced. Alternatively, you could use \KOMAoption{listof}{nochaptergap}.


2

package shorttoc \documentclass{book} \usepackage{shorttoc} \begin{document} \shorttableofcontents{\contentsname}{0} \setcounter{tocdepth}{1} \tableofcontents \chapter{One} \section{a} \section{b} \section{c} \section{d} \section{e} \chapter{Two} \section{a} \section{b} \section{c} \section{d} \section{e} \chapter{Three} \section{a} \section{b} ...


2

The vertical spacing between chapters in a ToC is controlled by \@chapterlistsgap, having the default value of 10\p@. This could be redefined to any value > 0\p@ (Currently this done for all LoF/LoT, perhaps for the ToC too) \documentclass[a4paper,fontsize=11pt,oneside,parskip=half]{scrreprt} \usepackage[demo]{graphicx} \usepackage{scrhack} ...


1

A quick solution is to use \setcounter inside each algorithm. Moreover, to get the algorithms aligned in the list of algorithms you need to redefine \listof and \l@algocf commands and set \@dottedtocline with the desired horizontal spacing. Here is the code: \documentclass{article} \usepackage{algorithm} \usepackage{algorithmic} ...


1

Use \usepackage[utf8]{inputenc} instead of utf8x \documentclass[a4paper]{report} \usepackage[utf8]{inputenc} \begin{document} \tableofcontents \chapter{ø} \end{document}



Only top voted, non community-wiki answers of a minimum length are eligible