From the course: Data Science Reporting with Quarto for Python

Unlock this course with a free trial

Join today to access over 24,600 courses taught by industry experts.

Using LaTeX to make PDF with Quarto

Using LaTeX to make PDF with Quarto

- [Instructor] We are in the oh 06_02b folder looking at everything to do with generating PDF with LaTeX from Quarto. You need LaTeX to be installed for that, but thankfully Quarto makes it really easy with tinytex. So if you run this command and Bash, it will install everything that you need to make PDF with LaTeX. I've already done this in a codespace because it takes two or three minutes to install. So now it's installed. Let's look at the document. So line 4 is where we specified a format as PDF. That's what uses LaTeX. Line 5 we're using the option include in header, and this allows us to provide files that are included during the compilation of the LaTeX document and to also insert things into the header of the LaTeX document. So let's look at our customstyles.tex file. That's this file here. In the output document you can see that I've got red and blue headings. There's no default way to do that in LaTeX. It's one of the things that makes LaTeX so arcane is there's not much you…

Contents