https://github.com/nrennie/prettypaged
Quarto extension to generate a paged HTML document with (pretty) CSS styling via wkhtmltopdf.
https://github.com/nrennie/prettypaged
quarto quarto-extension quarto-template wkhtmltopdf
Last synced: about 1 year ago
JSON representation
Quarto extension to generate a paged HTML document with (pretty) CSS styling via wkhtmltopdf.
- Host: GitHub
- URL: https://github.com/nrennie/prettypaged
- Owner: nrennie
- License: cc0-1.0
- Created: 2024-07-26T18:27:40.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2025-02-08T12:47:11.000Z (over 1 year ago)
- Last Synced: 2025-03-17T17:01:59.828Z (over 1 year ago)
- Topics: quarto, quarto-extension, quarto-template, wkhtmltopdf
- Language: CSS
- Homepage: https://nrennie.rbind.io/PrettyPaged/
- Size: 4.8 MB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
Awesome Lists containing this project
README
# PrettyPaged
Quarto extension for a template to generate a PDF from a paged HTML document with (pretty) styling using `wkhtmltopdf`.
See the template example: [nrennie.rbind.io/PrettyPaged](https://nrennie.rbind.io/PrettyPaged/)
Use `PrettyPaged-pdf` for the format. See [github.com/nrennie/PrettyPDF](https://github.com/nrennie/PrettyPDF) for the LaTeX version of this template and [github.com/nrennie/PrettyTypst](https://github.com/nrennie/PrettyTypst) for the Typst version of this template.
## Installation and use
### `wkhtmltopdf` installation
To use this extension, you must have [wkhtmltopdf](https://wkhtmltopdf.org/) installed on your system.
### Quarto extension installation
To install the Quarto extension, create a directory, and use the template file:
``` bash
quarto use template nrennie/PrettyPaged
```
To use the extension in an existing project without installing the template file:
``` bash
quarto install extension nrennie/PrettyPaged
```
Note that you will need to update the output format to `format: PrettyPaged-pdf` to enable use of the extension. For book projects, add:
```
project:
type: PrettyPaged
```
to the `_quarto.yml` file.