Questions tagged [tocstyle]

{tocstyle} is a package providing control over the typography of the Table of Contents and List of Floats.

Filter by
Sorted by
Tagged with
0 votes
1 answer
110 views

How to replace tocstyle KOMAlike?

I have been using tocstyle up until now like this: % table of content styling \usepackage[tocindentauto]{tocstyle} \usetocstyle{KOMAlike} \settocstylefeature{pagenumberbox}{\hbox} I understand that ...
user avatar
  • 103
1 vote
0 answers
77 views

What is the equivalent of \usetocstyle in tocbasic

Miktex considers the tocstyle package to be obsolete and suggests using tocbasic instead. However, with tocbasic I get undefined control sequence at \usetocstyle. I found that \DeclareTOCStyleEntries ...
user avatar
1 vote
1 answer
5k views

missing tocstyle.sty file

I've recently installed Miktex, but when I try to edit a styles.sty file (which includes a toc), it gives me the following error: ! LaTeX Error: File `tocstyle.sty' not found. Type X to quit or <...
user avatar
  • 13
3 votes
1 answer
3k views

What should I use instead of tocstyle?

I'm using tocstyle in my document: % table of contents customizations: \usepackage{tocstyle} \usetocstyle{standard} \settocfeature{raggedhook}{\raggedright} \settocfeature{leaders}{\hfill} Which ...
user avatar
  • 4,450
5 votes
1 answer
677 views

Replacement minitoc package style by KOMA-script possibilities

I have a long document which uses the KOMA-Script book class scrbook and I would like to add a part-level and chapter-level table of contents, as it is shown on figures below: It works, but KOMA ...
user avatar
  • 3,526
1 vote
2 answers
290 views

Table of contents: section titles ragged right - 2

The problem of having ragged right toc is described in Table of contents: section titles ragged right for articles. The etoolbox-option seem not to work with the book class, and I am not too ...
user avatar
2 votes
2 answers
333 views

tocstyle: make word "Chapter 1" bold in TOC, but not chapter title

In the scrreprt class, using the package tocstyle, I would like the word "Chapter 1" to be bold in the TOC, but not the title of the chapter (see image). How do I achieve this? As per default, ...
user avatar
  • 669
2 votes
1 answer
225 views

Indent unnumbered chapter in TOC with multitoc (in presence of tocstyle)

I'm having a problem mixing multitoc with tocstyle. What I want is my unnumbered chapters in the TOC to be indented (in this case \addchap{Introduction}). I figured out that \usepackage[...
user avatar
  • 2,165
1 vote
1 answer
544 views

KOMA Script tocstyle tocline, no indent on second line of large entry

How do I un-indent the second line of a large entry in the table of contents with tocstyle tocline on the KOMA Script class scrartcl? I found the same question here: ToC: How to no-indent the second ...
user avatar
0 votes
1 answer
100 views

How to change the style of Contents to this when book documentclass is used

To meet the requirements of our school, I need the style of contents table like below: Preface ..................... I Abstract .................... II 1 Introduction 1.1 Section 1 ............... ...
user avatar
  • 3
1 vote
1 answer
160 views

Second table of contents and spacing

I have a problem with spacing my second table of contents to the publishers demands. They want two tables of contents, one in front showing only chapters (no chapter numbers, easy). The other one in ...
user avatar
1 vote
1 answer
146 views

Incompatibility between `tocstyle` and `mwbk`

I am aware that tocstyle may have compatibility problems, but it provides, with a few commands, all the predefined styles I may want. On the other hand, I might use titletoc, but it seems less ...
user avatar
1 vote
1 answer
148 views

Images not appearing in document

I'm using the online tool shareLatex and trying to compile a document that has many images. The images do not appear. However, I created another test file and pasted the same preamble of the ...
user avatar
  • 495
4 votes
3 answers
927 views

How to make the figure numbers in list of (LOF) figure right-aligned?

This is what it looks like now What I want is,to look like this Figure 1.1.1: xxxxx Figure 1.1.11: xxxxx Figure 2.1.1: xxxxxx I tyied to redefine the Caption-Style: \usepackage{caption}...
user avatar
  • 527
0 votes
1 answer
152 views

How do I exclude some subsections in section, while other subsections within the same chapter not?

I have the following document: \documentclass[11pt, a4paper, headsepline]{scrbook} \begin{document} \tableofcontents \chapter{Chapter one} \section{Section one.one} \subsection{Subsection one....
user avatar
  • 103
1 vote
1 answer
371 views

Using tocstyle with ACM acmart style

The recent acmart style (try here if that link is broken) doesn't seem to work properly with tocstyle. If I run pdflatex twice on the following document, the second run fails (see below). \...
user avatar
0 votes
2 answers
588 views

TOC Space between heading and contentsname

I want to reduce the spacing between the heading and the contentsname or the contentsname and the TOC. I am using the scrreprt class and the tocstyle package. I couldn't find a command in the ...
user avatar
  • 171
1 vote
2 answers
900 views

koma-script/tocstyle: How to remove section entries indentation in table of contents?

For the following code, how can I remove section entries indentation and print ToC like the desired output? \RequirePackage{luatex85} \documentclass{scrbook} \renewcommand*{\chapterformat}{CHAPTER~\...
user avatar
  • 8,789
5 votes
2 answers
323 views

Is there a Hook like \AtEndDocument for the table of contents?

I have written a document class, and I need to change the page numbering. The table of contents should use roman style page numbering, the rest should use arabic. It would be great if it was possible ...
user avatar
  • 103
2 votes
1 answer
6k views

Insert a line break into a TOC item without breaking the line in the chapter title [duplicate]

I have a chapter title that is too long to fit onto one line in the table of contents, but LaTeX does keep it in one line, producing an overfull line in the TOC. How can I insert a line break into ...
user avatar
  • 1,729
4 votes
1 answer
257 views

What to renew to change LOF/LOT links?

Consider the MWE below. I use TIKZ-customization for nice link underlines. (using renewcommand for ref), which I for this MWE replace by \textcolor{red} (so textcolor is not the goal) As you can see: ...
user avatar
  • 1,185
0 votes
1 answer
109 views

Formatting TOC in Latex

I am trying to create table of contents with each chapter title underlined. No luck so far. Can somebody help. Thanks
user avatar
  • 157
2 votes
1 answer
797 views

Edited book: Multiple authors in one chapter and Table of contents for the same

I want to include the author name before the chapter title. I am using the following: \documentclass{book} \usepackage{titlesec} \usepackage{titletoc} \usepackage{lipsum}% just to generate some text ...
user avatar
  • 259
3 votes
3 answers
2k views

Small caps/small letters for TOC page numbering

I use both Arabic (1, 2, ...) and Roman page numbering (I, II, ...) in my document. However the normal Roman figures look too dominant in the table of contents (e.g. XXVIII). The lower-case Roman ...
user avatar
1 vote
1 answer
1k views

Uppercase, italics and hyperlinks in toc of scrartcl without using tocstyle

The table of contents in my document looks like this at the moment: This is exactly how it should look like (with hyperlinks) - there is one problem, though. I only got this restult by using the ...
user avatar
  • 196
4 votes
1 answer
4k views

LaTeX list of figures/list of tables with KOMA-Script additions

I am pretty new to the wonderful world of LaTeX and I need your help. I want to add the prefix "Abb." to each entry of the list of figures, and the prefix "Tab." to each entry of the list of tables. ...
user avatar
3 votes
4 answers
7k views

Table of contents in scrbook/komascript: add dots to chapter titles

I need to customize the appearance of my table of contents according to the requirements of a publisher. Here is a minimal example of what it looks like right now: \documentclass{scrbook} \begin{...
user avatar
1 vote
1 answer
355 views

Second ToC with per-chapter author

I am currently writing a larger document with multiple people. For grading purposes we need to specify one author per chapter/section/... However, I would like to keep the real ToC clutter free, and ...
user avatar
  • 185
3 votes
2 answers
1k views

Add a dot after chapter and section/figure/table number in ToC/LoF/LoT using tocstyle

I am using package tocstyle package to format my ToC/LoF/LoT lists. I saw already some answers using other packages, but none with tocstyle. And the use of tocstyle is "mandatory". I want to have a ...
user avatar
  • 8,195
1 vote
1 answer
76 views

LaTeX ToC not displaying previous chapters

I am writing a thesis and I cannot get my ToC to display itself or anything that appears before it in the document (i.e. my abstract comes before the ToC, but is not listed in the ToC!). \...
user avatar
1 vote
1 answer
2k views

Latex TOC page number position all to top center

I have one problem with the page number in Table of Content. My settings are: \documentclass[12pt,a4paper]{report} \usepackage{fancyhdr} \pagestyle{fancy} \fancyhf{} \renewcommand{\headrulewidth}{...
user avatar
2 votes
1 answer
1k views

How to add "Appendix" as an ToC entry (documentclass: 'article') before the appendices without a pagenumber

I have tried to add "Appendix" in my ToC between the main work and my appendices. I also don't want any page number to be displayed for this ToC entry. So far I have managed to bodge in an entry ...
user avatar
8 votes
1 answer
950 views

roman numbers too wide in table of contents

Consider the Code below: \documentclass[% paper=A4, twoside=true, fontsize=12pt, titlepage=true, listof=totoc, bibliography=totoc, listof=flat, open=right, ...
user avatar
12 votes
1 answer
47k views

Start TOC from chapter 1 and also page numbering

Problem: Start page numbers from chapter one and also reflect this in the TOC. Currently the code for TOC is: \renewcommand{\contentsname}{Table of contents} \setcounter{secnumdepth}{2} \...
user avatar
  • 2,633
0 votes
0 answers
33 views

Change the notation of the table of contents [duplicate]

I am creating a document displaying rules. I have managed to change the name of "Chapter" to "Article" and only have one more wish, which is to change the way the table of contents displays the ...
user avatar
  • 576
3 votes
1 answer
2k views

tocstyle style settings for user-defined list

I'm using tocloft and tocstyle using settings standard and nopagecolumn for my book. I'd like these settings to apply to my user-defined list of examples (.loe), but haven't had much luck. I naively ...
user avatar
  • 183
3 votes
1 answer
354 views

How to remove page numbers in a short toc, but not from the long toc?

I would like to have a short toc with no page numbers at the beginning of my document, but a long toc with page numbers at the end. My example : \documentclass[french,a4paper,12pt,twoside]{report} \...
user avatar
  • 109
2 votes
1 answer
748 views

change the font size of \part (depth -1) to LARGE or Large in tocstyle

I am using tocstyle package to format my TOC. It works nicely. However, I just want to increase a little bit the title of the \part in the TOC. It seems that tocstyle uses \large font as default for ...
user avatar
4 votes
2 answers
454 views

how to align page numbers in the toc when parts entries are centered and others are left aligned?

MWE: \documentclass{scrartcl} %{scrbook} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{tocstyle} \renewcommand*{\addparttocentry}[2]{% \addtocentrydefault{part}{}{\protect\parbox{...
user avatar
  • 729
3 votes
2 answers
633 views

How do i replace the dots in my table of contents between the text and page number with a horizontal line using the tocstyle package?

Due to some major design changes in our corporate identity, its now up to me to update our existing latex document class according to the new design guidelines. I´m having troubles cutomizing the ...
user avatar
3 votes
1 answer
1k views

Contents and Detailed Table of Contents without repetetion and indent

This question has two parts. Part 1 First, I'm interested to create two TOCs, with a reference in the first shorter TOC the longer and more detailed TOC. Without the reference appearing in the ...
user avatar
  • 1,007
2 votes
2 answers
784 views

Page range in TOC chapter entry in scrbook

I asked the question KOMA: Page range in TOC chapter entry Answer linked to Chapterwise page range in the TOC But i do not get the result for the following code... \documentclass{scrbook} \...
user avatar
  • 7,546
4 votes
1 answer
2k views

Upper case chapter titles Tocstyle?

I would like to make table of contents in Tocstyle (standard package). Here is my code. \documentclass[fontsize=12pt]{scrreprt} \usepackage{tocstyle} \usetocstyle{standard} \addtokomafont{...
user avatar
  • 611
3 votes
2 answers
2k views

How to remove page number in TOC for Part entry (not page number printed in TOC pages)

I want to remove page number in TOC entry for Part (in this example 3 must be removed) \documentclass{scrbook} \usepackage{lmodern}% for sans-serif plus bold plus italic \renewcommand\partname{...
user avatar
  • 7,546
4 votes
1 answer
2k views

Format ToC in KOMA-Script

I want to make the page number italic in the ToC. \documentclass{scrbook} \usepackage{blindtext} \usepackage{tocstyle} \usetocstyle{nopagecolumn} \begin{document} \tableofcontents \blinddocument ...
user avatar
  • 7,546
5 votes
2 answers
721 views

TOC: part name in center with out page number

I want to put part name in center of TOC as MODULE - I with out page number. \documentclass{scrbook} \usepackage[english]{babel} \usepackage{lipsum} \usepackage{tocstyle} \renewcommand{\partname}{...
user avatar
  • 7,546
3 votes
0 answers
348 views

Inconsistent OSF in Table of Contents using Microtype, LuaLaTeX and Tocstyle [closed]

My table of contents should have the following properties: oldstyle figures for page numbers and labels chapter entries in spaced, lowercase smallcaps numbers close (en-space) to the entries, no ...
user avatar
  • 761
8 votes
1 answer
3k views

Having a default \tableofcontents with tocstyle package

I am using roman numerals for everything. In my list of tables, my XVIII'th table was encroaching on the name of the table, so I did \usepackage{tocstyle} which completely fixed this problem. Before ...
user avatar
6 votes
1 answer
4k views

How to add leaders to Table of Contents without tocloft?

I'm using a third-party non-standard document class which is based on book. Class be damned, I want to add dot leaders for chapters, sections and subsections in the Table of Contents. If I include ...
user avatar
  • 7,217
6 votes
2 answers
3k views

use Times new roman font in TOC when using \usepackage{tocstyle} \usetocstyle{allwithdot}

I need my TOC all in Times New Roman but my section titles are changed when using \usepackage{tocstyle} and \usetocstyle{allwithdot} I had to try to use tocstyle because my section titles are long ...
user avatar
  • 301