pdf: page number doesn't corresponde to the page number in the table of content #8133
-
DescriptionDear all I'm using quarto-1.3.450 on windows 10 to produce html and pdf output. Now I have seen that in the pdf output pdf:
quarto-required: ">=1.3.306"
filters: [lua_filters/remove_title.lua, lua_filters/convertSVG.lua] # remove_title.lua removes the default title page
language: gsw # swiss german
latex-auto-mk: true
toc-title: Inhaltsverzeichnis
default-image-extension: svg
documentclass: scrreprt
classoption: [table]
keep-tex: true
papersize: A4
hyperrefoptions:
- linktoc
- "anchorcolor=green"
linkcolor: blue
urlcolor: cyan
filecolor: magenta
citecolor: red
link-citations: true
# cite-method: biblatex
include-in-header:
- file: latex/custom_header.tex
- text: |
\def\authors{ {{< meta book.author >}} }
%\renewcommand{\solution}[1]{#1}
include-before-body:
- latex/pre_defColorChapFrame.tex
- latex/title.tex Even if I keep the *.tex output file and run another tex-editor to compile it to pdf I have the same beahviour. The page numbers are shiftet by two, means the page number 3 in the TOC jumps to the title page etc. Any suggestions what I'm doing wrong? Thanks in advance |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Could you share a small self-contained "working" (reproducible) example to work with, i.e., a complete Quarto document or a Git repository? Thanks. Also, can you try using the 1.4 pre-release? You can share a Quarto document using the following syntax, i.e., using more backticks than you have in your document (usually four ````qmd
---
title: "Reproducible Quarto Document"
format: html
engine: knitr
---
This is a reproducible Quarto document using `format: html`.
It is written in Markdown and contains embedded R code.
When you run the code, it will produce a plot.
```{r}
plot(cars)
```

The end.
```` |
Beta Was this translation helpful? Give feedback.
In the meantime, I found a nice solution to the problem.
I changed the numbering to roman (in latex) for the first some pages e.g. TOC, Preface etc.
Then I reset the chapter counter to 1 and changed numbering back to arabic (also in latex) ... That's a nice solution for me.
So I don't need further support.
Thanks for any help
Mike