When I use `quarto render test.qmd -t pdf` on the test document in `tests/docs/` I get a `missing \begin{document}` error because the intermediate `.tex` file created looks like this:

```
%PDF-1.5
%ÐÔÅØ
5 0 obj
<<
/Length 131       
/Filter /FlateDecode
>>
stream
xÚÎ«1Pß¯Ù^zo_[Kx$àê@A±ü=Ôq¸Âa«Ü\VµØÈÎ$êùr¢äõ½Þ½õNôên¬$}zÞÚdzyC»PÀL%FÊ.ÂBûSëD|A·ÏòçÏºª7x=(
endstream
endobj
14 0 obj
<<
/Length 225       
/Filter /FlateDecode
>>
stream
xÚÅ=OÃ0@÷üíÁîÏvìDAÌÞ*K1I´JóÿCZ¤¡ÓN÷ýz@xmðÊ§ÔìöÁXÝ }Bp9GÒLRñ|%ËüHï»½quôÆ/edu´#Ð¯eo%wÇ±Ê	-C|lïù¿øóEõû?á «ÚD¿¥V%l½Yì¨6wz~ËT¨ÙP¦Ê4´f§áxÅyç<å~ÊçaÎC·yS»2înqC¡v¯S8íuÌöÔ|üoM
endstream
endobj
28 0 obj
<<
/Length1 1772
/Length2 20418
/Length3 0
/Length 21540     
/Filter /FlateDecode
>>
stream
```

[test.zip](https://github.com/quarto-dev/quarto-cli/files/7134654/test.zip)

I noticed this on another document of mine, so I went back to the simplest test possible. I thing it was one of  the more recent commits (last 3 days).

2021-09-09T08:12:19Z
jmbuhr
closed
broken pdf / tex output
https://github.com/quarto-dev/quarto-cli/issues/107