Page numbers in Quarto PDFs

Hi @AmeliaMN,

Do you not get page numbers by default with a standard Quarto PDF document? When I render the following document:

---
title: "Untitled"
format: pdf
---

## Quarto

Quarto enables you to weave together content and executable code into a finished document. To learn more about Quarto see <https://quarto.org>.

I get page numbers in the bottom center. Does this not match your experience?

In any case, the following should enable page numbering:

---
title: "Untitled"
format: 
  pdf:
    include-in-header: 
      text: '\pagenumbering{arabic}'
---

You can use \pagenumbering{gobble} to remove page numbers.

2 Likes