使用
\pagenumbering{<style>}
命令,其中
<style>
可以是其中之一,
-
arabic
:使用阿拉伯数字(1,2,3,…)
-
roman
:使用小写罗马数字(i,ii,iii,…)
-
Roman
:使用大写罗马数字(I、II、III…)
-
alph
:使用小写字母(a、b、c…)
-
Alph
:使用大写字母(A、B、C…)
所以为了得到
古罗马的
页码最多为
Ch01
使用
\pagenumbering{Roman}
使用
include-before-body
哪个开始
古罗马的
标题页后面的页码。然后在顶部
Ch01.qmd
使用
\pagenumbering{arabic}
要重置中的页码
阿拉伯语
数字。
project:
type: book
execute:
echo: false
warning: false
book:
title: "Title"
author: "Author"
chapters:
- index.qmd
- Ch01.qmd
- Ch02.qmd
- references.qmd
bibliography: references.bib
format:
pdf:
documentclass: scrreprt
toc: true
toc-depth: 3
lof: true
lot: true
include-before-body:
text: |
\pagenumbering{Roman}
Ch01 qmd
\pagenumbering{arabic}
# Introduction
This is a book created from markdown and executable code.
See @knuth84 for additional discussion of literate programming.