### Bug description

```
pandoc 
  to: latex
  output-file: README.tex
  standalone: true
  pdf-engine: xelatex
  variables:
    graphics: true
    tables: true
  default-image-extension: pdf
  
metadata
  documentclass: scrartcl
  classoption:
    - DIV=11
    - numbers=noendperiod
  papersize: letter
  header-includes:
    - '\KOMAoption{captions}{tableheading}'
  block-headings: true
  
running xelatex - 1
  This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
updating tlmgr

updating existing packages
finding package for footnote.sty
> 1 package to install
> installing mdwtools (1 of 1)
  This is XeTeX, Version 3.141592653-2.6-0.999993 (TeX Live 2021) (preloaded format=xelatex)
   restricted \write18 enabled.
  entering extended mode
  
finding package for footnote.sty

compilation failed- package installation error
LaTeX Error: File `footnote.sty' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: sty)

Enter file name: 
! Emergency stop.
<read *> 
         
l.63 \makesavenoteenv
                     {longtable}^^M 

see README.log for more information.
```

Fedora 37
Error is present in both RHEL tarball installations of 1.2.335 and 1.3.154. I'm pretty sure I installed the release correctly. There's no problem with HTML, only PDF. 

Command: 
```
quarto render README.qmd --to pdf
```

The qmd file: 
```
---
format: pdf
---

# Test
Test. 
```


### 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.
cwickham
2023-02-06T10:53:54Z
FloraCanou
documentation
Future
open
"LaTeX Error: File `footnote.sty' not found" on output to PDF
https://github.com/quarto-dev/quarto-cli/issues/4241