Skip to main content

Questions tagged [tocbasic]

{tocbasic} is a package that allows to create or customize lists of something like the list of figures, list of tables or table of contents and to define new {floats} or non-floating environment similar to floats. It also helps avoiding name conflicts for the auxiliary files of such lists. KOMA-Script classes depend on it, but it can be used with other classes too.

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

New Section Command for new TOC

I have the following structure in my document: TOC1 Section1 Section2 Subsection2.1 Subsection2.2 Section3 TOC2 Subsection3.1 Subsubsections3.1.x Subsection3.2 Subsubsections3.2.x I want the TOC1 ...
Harti's user avatar
  • 3
2 votes
1 answer
40 views

Spacing and punctuation problems when customizing the list of figures

I am required to modify the appearance of the list of figures and tables so that the indexed elements appear in the form: Figure X.X: Figure caption...... page (and the same with the tables). I'm ...
Aradnix's user avatar
  • 3,745
0 votes
0 answers
11 views

Expanding Multiple Lists beyond four lists with tocbasic

I am using package tocbasic under report, and have successfully expanded the lists to include two new ones, however, I need a third new list. I have entered \DeclareNewTOC successfully and get the new ...
pendyl's user avatar
  • 1
1 vote
1 answer
49 views

Alignt ToC around space between chapter titles and page numbers

Is there a way to center the ToC around the space between the chapter titles and the page number as in this pictures (not aligned to the right of the page, but the whole thing relatively centered, or ...
jejwood's user avatar
  • 37
1 vote
1 answer
73 views

Access to the current section number inside `DeclareTOCStyleEntry`

I'm using KOMA-Script and I want to show additional information inside the TOC. Imagine the following code: \section{S} \immediate\write\@auxout{\global\noexpand\@namedef{@info-\arabic{section}}{Cool ...
Luke's user avatar
  • 159
1 vote
1 answer
229 views

List of Listings (lstlistings) style in KOMA-Script

This post suggests that scrhack is required to format a list if listings consistently: How to have the list of code listings also in twocolumn? I would like to format my List of Listings consistently ...
likethevegetable's user avatar
0 votes
1 answer
52 views

How to insert extra space between chapters in the LoF/LoT in the komabook class without calling \chapter{...}?

I am using the kaobook template for my PhD thesis. It can be found here on Overleaf. Due to design reasons, I do not call \chapter{...}, but simply increment the chapter counter manually. Because I ...
Maxim Moloshenko's user avatar
2 votes
2 answers
578 views

move from tocstyle to tocbasic

I have been using tocstyle until it was removed. Here is my definition \usepackage[% %%% toc width calculation tocindentauto, % all widths at the TOCs are calculated by tocindentauto %%% ...
Matthias Pospiech's user avatar
0 votes
1 answer
187 views

Format Prefix of Custom Float Environment entry in Custom List of Figures

I am working on a document with complex formatting based on report class. I defined a new List of Figures for Photographs using \DeclareFloatingEnvironment from newfloat package based on this answer. ...
Raja Ayaz's user avatar
  • 133
3 votes
0 answers
197 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 ...
Jakob Filser's user avatar
1 vote
1 answer
271 views

retaining \listoffigures and \listoftables in \tableofcontents when they are controlled by tocbasic

How can the List of Figures and List of Tables be included in the Table of Contents when they have been placed under the control of the tocbasic package? Ordinarily, these listings can be included by ...
user001's user avatar
  • 7,994
1 vote
1 answer
74 views

replicating the vertical spacing of \listoffigures in a custom list made with tocbasic

I have used tocbasic to create a custom environment. The appearance of this environment's listing, however, differs from the default listings (i.e., \listoffigures and \listoftables). Differences in ...
user001's user avatar
  • 7,994
1 vote
1 answer
304 views

adding custom list to table of contents

How can a list for a custom environment, created using KOMA script's \DeclareNewTOC, be included in the table of contents? In the example below, the 'List of Photos' does not appear in the table of ...
user001's user avatar
  • 7,994
0 votes
0 answers
100 views

Latest release of koma-script: compilation hangs at tocbasic

I had been using a modified version of this template https://www.overleaf.com/latex/templates/my-resume/qxsxdtmknkfr for my resume without problems (class file at https://github.com/...
Peter's user avatar
  • 21
1 vote
1 answer
165 views

Modify LOF- and LOT-Style in KOMA-Script scrreprt

I have modified my TOC with \DeclareTOCStyleEntry[beforeskip=.2cm]{section}{section} giving me a nice spacing between my section level entries. How can I modify the spacing between entries in the LOF ...
C.Fe.'s user avatar
  • 121
1 vote
1 answer
301 views

Table of Contents without Boldface Using KOMA Script tocbasic

I would like to have the complete TOC without setting the top level in boldface. In the past I used tocloft but KOMA throws a warning and suggests to use tocbasic. Unfortunately, I didn't understand ...
Dirk's user avatar
  • 2,728
0 votes
1 answer
193 views

Modify format of chapter number in toc independent of chapter number in heading

I want to format the toc-chapter numbers indpendent of the chapter numbers in the text. The chapter number for the appendix should be in small caps. However, I've modified the \chapterformat in a \...
fuj36840's user avatar
  • 550
2 votes
2 answers
368 views

KOMA toc equal numsep with exact indentation

I'm trying to format the toc, but I stuggle with the horizontal spacing and indentation. The chapter and part headings should have a minimum numsep of 1em for the longest number while also being ...
fuj36840's user avatar
  • 550
1 vote
1 answer
119 views

KOMA toc: constant distance between section title and pagenumber

For my toc, lof and lot I would like the page numbers to have a constant distance to the chapter, section, etc. titles, wether they have one or two digits. The option linefill from the KOMA command \...
fuj36840's user avatar
  • 550
0 votes
1 answer
498 views

Spacing between list of listings and algorithms and their reference numbers with tocbasic

Because of this answer to Extending table of contents dots up to large page numbers I am using tocbasic and would like to add more spacing between the reference numbers in the List of listings ...
oliversm's user avatar
  • 2,717
1 vote
1 answer
232 views

Table of content entry pushes large page number into margin

I have just been playing around with this solution to a question I asked Extending table of contents dots up to large page numbers. I noticed the following behaviour. For some very long Roman page ...
oliversm's user avatar
  • 2,717
6 votes
1 answer
1k 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 ...
JardaFait's user avatar
  • 4,006
3 votes
1 answer
242 views

Changing the place of contents in toc with scrreprt

I need to change “contents” word to the right. How can I do it? \documentclass[listof=numbered]{scrreprt} \begin{document} \tableofcontents \chapter{Chapter 1} \cleardoublepage \pagenumbering{Roman} ...
Stephen's user avatar
  • 956
1 vote
1 answer
387 views

Add vertical and horizontal spacing between entries of LOF

Does anyone know how I can add vertical and horizontal spacing between the entries of my LOF? \documentclass[12pt,a4paper,twoside]{report} %openright %Schriftart Arial - ACHTUNG: Compile with ...
TeXlearner's user avatar
1 vote
2 answers
991 views

List of Figures & Tables - how to move caption label into caption itself

I'm using the article document class (as a base) and the caption package. I essentially need to change my LoF format from the default List of Figures 1 Multiline caption multiline caption multiline ...
TakingItCasual's user avatar
1 vote
2 answers
1k views

How to let \listoflistings of minted use subsection's subheading and appear in TOC?

I want the \listoflistings of minted to appear as a subsection heading. (My \documentclass is scrartcl.) Things like \printbibliography have a "heading" option, which you can use to define, which ...
rugk's user avatar
  • 1,160
1 vote
1 answer
722 views

Customizing Sections in Table of Contents

community, I have received great help many times before on this platform and I really do hope that you can help me yet again! I'm trying to customize my ToC in such a way that things like the List of ...
LajosH's user avatar
  • 379
1 vote
1 answer
243 views

How to multicol a chapter (and its sections etc.) in table of contents?

Since the second chapter only contains short sections etc. I would like to have only chapter two multicolumned. With BeforeStartingTOC[toc]{\begin{multicols}{2}} \AfterStartingTOC[toc]{\end{...
lukascbossert's user avatar
2 votes
1 answer
819 views

How to indent TOC-entries (as indexes) which have no numbers with tocbasic?

Similar to this question here, how can I indent the chapter*-like entries to the same indent as the numbered chapters? section* work with \KOMAoptions{toc=indentunnumbered}. The main difference to ...
lukascbossert's user avatar
2 votes
1 answer
811 views

Remove page number for part and define space before page number with tocbasic

I would like to omit the page number of parts from the TOC. The space between --- (\mypagestyle) and the page number differs, since they are raggedright. The space should always be the same. ` \...
lukascbossert's user avatar
3 votes
2 answers
250 views

Remove section titles from list of custom environment if section doesn't contain said environment

This is a follow-up question to this one. In the following MWE, how can I remove section and subsection titles from the \listofusecases if said section or subsection doesn't contain a single usecase ...
Janosh's user avatar
  • 4,090
9 votes
1 answer
3k views

Creating new entry style in tocbasic

I want to customize my table of contents and lists of figures and tables using tocbasic. I originally did these customizations with tocloft. I managed to get almost everything done. However there are ...
Skillmon's user avatar
  • 61.6k
3 votes
1 answer
300 views

KOMA-Script: Pagenumber immediately after heading in table of contents

I want to use scrbook and the internal commands of KOMA-Script to typeset the table of contents and others (LoF, LoT) in a similar style as this screenshot shows: I couldn't find any hints about it ...
lblb's user avatar
  • 3,444
3 votes
1 answer
427 views

Chapter names in TOC spanning textwidth

I want to set \@tocrmarg to 0pt in the case of chapter to have it spanning across the whole TOC. I am using the tocbasic package (successor of tocstyle), both are parts of KOMA-Script. MWE: \...
koppor's user avatar
  • 3,347
5 votes
2 answers
381 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 ...
ptrck's user avatar
  • 111
9 votes
1 answer
2k views

KOMA-Script: Table of Contents in Two Columns

I have a document in two column mode. All works fine (all in two columns) -- except the table of contents (toc). Strangely I found a solution: \unsettoc{toc}{onecolumn} This leads to a toc in two ...
Dr. Manuel Kuehner's user avatar
4 votes
1 answer
642 views

Adding "diagrams" to figures and tables / duplicate float?

I am writing a paper using KOMA script (scrartcl) and have a lot of tables, figures and diagrams: the latter really are nothing but figures but need to be counted separately and get their own list of ...
Ingmar's user avatar
  • 6,700
6 votes
1 answer
2k views

Formatting "List of something" in accordance to KOMA script

I am using scrbook document class. I've created my own environment named example and I wanted to create "List of examples." In that name I've loaded package tocloft. However as much as I try, the "...
Pygmalion's user avatar
  • 6,329