How to start numbering other than 1 in pdf? (tried number-offset: 2, but no success) #7701
DescriptionI am generating different chapters of a workbook using different .ipynb files. I want to sections numbers to start at a defined value rather than the default '1'. I have tried the below .. but that does work for me. What am I doing wrong? ---
title : Heading numbering
subtitle : Want to start at level 2
author : Me
date: 25/11/2023
format:
pdf:
toc: true
number-offset: 2
number-sections: true
colorlinks: true
papersize: A4
lof: true
code-line-numbers: true
highlight-style: zenburn
execute:
echo: true
code-overflow: wrap
---The result I get is this: |
Answered by
mcanouil
Nov 25, 2023
Replies: 2 comments 2 replies
|
It seems to have an error in the reference pages. Now the question is, should a PR be made to update the LaTeX template on Pandoc side to be compatible with this option (cc @cderv). Meanwhile you can use include-in-header:
- text: |
\setcounter{section}{3} |
2 replies
Answer selected by
entelecheia1963
|
That worked! Excellent! Thank you. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It seems to have an error in the reference pages.
number-offsetis a Pandoc option which is only valid for HTML (https://pandoc.org/MANUAL.html#options) as it is no used in the template, thus the same applies to Quarto.Now the question is, should a PR be made to update the LaTeX template on Pandoc side to be compatible with this option (cc @cderv).
Meanwhile you can use$\LaTeX$ to get offset.