Tag Info

New answers tagged

1

The task is in the form: there is given input (the set of \contentslines) and we need to create macros for reading this input and for creating desired output. I show typical plain TeX solution. You can see that the code is compact and simple. Only, what you need, is to know the \hbox / \vbox arithmetic at TeX primitive level. No external packages are needed ...


0

I have used minipage and tikz for increasing the rule automatically to end of the table of contents. Please find the answer below: \documentclass{book} \usepackage{xcolor,xparse,tocloft,fancyhdr,tikz} \usetikzlibrary{calc} \usepackage[colorlinks=false]{hyperref} \definecolor{runfootcolor}{cmyk}{0.87,0.44,0,0} \definecolor{subsectextcolor}{cmyk}{0,1,0.29,0} ...


0

This is just a partial answer to the question In a similar situation I included the individual sections separated, using something like: ... \tableofcontents ... initial part (with no tricks) \addcontentsline{toc}{section}{...ext sec title 1} \includepdf[pages={1-20}]{external.pdf} \addcontentsline{toc}{section}{...ext sec title 2} ...


2

I think I'd be inclined to use Gonzalo Medina's answer given you are using scrreprt (and skip loading tocloft), but a tocloft solution isn't too tricky (and also useful for memoir users): \documentclass{scrreprt} \usepackage[ngerman]{babel} \usepackage{tocloft} \cftsetindents{section}{0mm}{12mm} \cftsetindents{chapter}{0mm}{12mm} \makeatletter % ...


5

Since you are using a KOMA class, the way to go is to use the tocstyle package: The code: \documentclass{scrreprt} \usepackage[ngerman]{babel} \usepackage[tocflat]{tocstyle} \newtocstyle{raggedstyle}{% \settocstylefeature[0]{entryhook}{\bfseries} \settocstylefeature[0]{leaders}{\hfill} \settocfeature{raggedhook}{\raggedright} ...


1

A solution with the titletoc package: \documentclass{scrreprt} \usepackage[showframe]{geometry} %\usepackage[ngerman]{babel} \usepackage{ragged2e} \usepackage{fmtcount} \usepackage{titletoc} \titlecontents{chapter}[12mm] {\contentsmargin{10mm}\bigskip\sffamily\bfseries\Large} {\contentslabel[\MakeUppercase{\romannumeral\thecontentslabel}]{12mm}} {} ...


3

Here are some experiments using paracol: \documentclass{book} \usepackage[margin=1in]{geometry} \usepackage{paracol} \newcommand{\comment}[1]% #1 = text and expandable macros {\switchcolumn*\vspace{-\baselineskip}#1\switchcolumn} \newcommand{\commentline}[2]% #1 = text, #2 = \thepage {\switchcolumn*\vspace{-\baselineskip}#1 ...


2

I am not sure about the real question, but this provides a \section* style heading for the custom \listofsom command. \listof... usually use a \chapter* command when used in conjunction with the book.cls (or scrbook.cls). Using xpatch package and its \xpatchcmd it's easy to replace the \chapter* command in the definition of \listof... by section*. ...


3

The problem is that you were abusing \cftfigfont and \cfttabfont to add the strings Şekil and Çizelge, respectively to the lists; to get the proper alignment, you need to do something like \renewcommand\cfttabpresnum{Çizelge } \newlength\mytablen \settowidth\mytablen{\cfttabpresnum\cfttabaftersnum} \addtolength\cfttabnumwidth{\mytablen} ...


3

I wouldn't recommend to hardcode something like "Capítulo 1: First Things" in a sectional heading. The following code looks a little bulky because it does a more than you requested, but it induces a more LaTeXnish manuscript file. \documentclass{article} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[utf8]{inputenc} ...


5

You can use the package titletoc instead of tocloft to achieve what you want. First of all, forget about redefining \thesection, that is remove the lines \renewcommand{\thesection}{}% Remove section references... \renewcommand{\thesubsection}{\arabic{subsection}}%... from subsections Then remove the stuff from tocloft and add these lines: ...



Top 50 recent answers are included