When inserting lof and lot in toc, the page number is not displayed correctly. #8440
Replies: 4 comments 17 replies
-
Can you share your whole qmd file ? Or a smaller one that reproduce the issue ? |
Beta Was this translation helpful? Give feedback.
-
Also if this can help, interesting resource with an automatic solution using |
Beta Was this translation helpful? Give feedback.
-
I uploaded the files to a new repository: |
Beta Was this translation helpful? Give feedback.
-
i fixed the problem: This is of no use:
instead it is necessary to insert My \documentclass[
$if(fontsize)$
$fontsize$,
$endif$
$if(papersize)$
$papersize$paper,
$endif$
$if(beamer)$
ignorenonframetext,
$if(handout)$
handout,
$endif$
$if(aspectratio)$
aspectratio=$aspectratio$,
$endif$
$endif$
$for(classoption)$
$classoption$$sep$,
$endfor$
]{$documentclass$}
% ##############################################
% ### default above, addet expression below ###
% ##############################################
\usepackage[nottoc]{tocbibind} % Package to include lists in ToC, excluding ToC itself My YAML is now: ---
title: "Titel"
subtitle: "Untertitel"
author:
- "Max Mustermann"
- "Maria Musterfrau"
date: today
lang: de
format:
pdf:
documentclass: scrbook
keep-tex: true
toc: true
toc-depth: 3
lof: true
lot: true
number-sections: true
include-in-header:
- "header_footer.tex"
template-partials:
- "template/doc-class.tex"
- "template/before-body.tex"
- "template/_titlepage.tex"
fontsize: 11pt
linestretch: 1.5
geometry: left = 25mm, right = 25mm, top = 30mm, bottom = 30mm
bibliography: bib.bib
execute:
echo: false
warning: false
message: false
editor: visual
--- i also updated the repository: https://github.com/MasterGPT9821/Single-qmd-file-example |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
How to display the page number correctly when inserting lof and lot in toc.
My qmd
Here the tex-code separatly for a better view:
the output


Beta Was this translation helpful? Give feedback.
All reactions