### Bug description

For `format: pdf`, the default is `number-sections: false`. This works fine for `scrartcl` document class but not for `scrbook`. When `number-sections: false`, this is being put in the tex header.
```
\setcounter{secnumdepth}{-\maxdimen}
```
But that just doesn't work for book classes because of the way equations, tables and figures are numbered, with the chapter.number format.

I suggest that the default be `number-sections: true`, i.e. don't include that `\setcounter{secnumdepth}{-\maxdimen}` statement. That way all document classes should work by default. If you don't do that, then change the default to `true` for book document classes.

MWE
```
---
title: "Untitled"
format: 
  pdf:
    documentclass: scrbook
---

# Chapter One

This equation will be 0.1.

$$
a
$$ {#eq-clt}

# Chapter Two

This equation will also be 0.1.

$$
a
$$ {#eq-clt}
```

## quarto check Output
```
[✓] Checking Quarto installation......OK
      Version: 1.0.38
      Path: /Applications/quarto/bin

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.9.12
      Path: /opt/homebrew/opt/python@3.9/bin/python3.9
      Jupyter: (None)

      Jupyter is not available in this Python installation.
      Install with python3 -m pip install jupyter

[✓] Checking R installation...........OK
      Version: 4.1.1
      Path: /Library/Frameworks/R.framework/Resources
      LibPaths:
        - /Users/eli.holmes/Library/R/x86_64/4.1/library
        - /Library/Frameworks/R.framework/Versions/4.1/Resources/library
      rmarkdown: 2.14

[✓] Checking Knitr engine render......OK
```


## quarto tools check Output
```
[✓] Inspecting tools

Tool         Status                    Installed     Latest  
chromium     Not installed             ---           869685  
tinytex      External Installation     ---           v2022.08
```

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [X] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
dragonstyle
2022-09-08T22:06:58Z
eeholmes
bug
v1.2
closed
`number-sections: false` not set correctly for `documentclass: scrbook`
https://github.com/quarto-dev/quarto-cli/issues/2369