Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nrennie/prettypdf
Quarto extension to generate a PDF with (pretty) LaTeX styling.
https://github.com/nrennie/prettypdf
latex latex-template quarto quarto-extension quarto-template
Last synced: 23 days ago
JSON representation
Quarto extension to generate a PDF with (pretty) LaTeX styling.
- Host: GitHub
- URL: https://github.com/nrennie/prettypdf
- Owner: nrennie
- License: cc0-1.0
- Created: 2022-12-09T01:41:32.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-02T11:10:00.000Z (7 months ago)
- Last Synced: 2024-12-22T22:06:24.452Z (about 1 month ago)
- Topics: latex, latex-template, quarto, quarto-extension, quarto-template
- Language: TeX
- Homepage: https://nrennie.rbind.io/blog/making-pretty-pdf-quarto/
- Size: 1.17 MB
- Stars: 102
- Watchers: 7
- Forks: 44
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PrettyPDF
Quarto extension for a template to generate a PDF with (pretty) styling using LaTeX. Use `PrettyPDF-pdf` as the format if using LaTeX.
## Installation and use
To install the Quarto extension, create a directory, and use the template file:
``` bash
quarto use template nrennie/PrettyPDF
```To use the extension in an existing project without installing the template file:
``` bash
quarto install extension nrennie/PrettyPDF
```
Note that you will need to update the output format to `format: PrettyPDF-pdf` to enable use of the extension. For book projects, add:```
project:
type: PrettyPDF
```
to the `_quarto.yml` file.## Adjusting LaTeX Styling
If you want to update the LaTeX version of this template to use a different colour or logo, open up the `_extensions/nrennie/PrettyPDF/PrettyPDF.tex` file after you have installed the extension.
### Logo
Either replace the `logo.png` file with a new file of your choosing, or change the file path on line 28 to point to a different logo file. Note that the file path is relative to your .qmd file.
### Colours
Lines 14-16 define three colours used in the template: `light`, `dark`, and `highlight`. Change the hex colours in these lines to update the colours. The `light` colour changes the sidebar and code block background colours. The `dark` colour changes the text. The `highlight` colour changes the link colours.
## Blog
Read more about this extension, how it was built, and how to make your own in my blog post at [nrennie.rbind.io/blog/making-pretty-pdf-quarto](https://nrennie.rbind.io/blog/making-pretty-pdf-quarto/).