# Tag Info

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

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


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


Top 50 recent answers are included