Total number of pages in quarto PDF

Try adding

  - \usepackage{lastpage}
  - \usepackage{fancyhdr}
  - \pagestyle{fancy} 
  - \cfoot{\thepage\ of \pageref{LastPage}}

to the YAML.

2 Likes