Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/arcruz0/quarto-compact
A Quarto format for compact PDF documents. Good for short reports, homework assignments, etc.
https://github.com/arcruz0/quarto-compact
Last synced: 3 months ago
JSON representation
A Quarto format for compact PDF documents. Good for short reports, homework assignments, etc.
- Host: GitHub
- URL: https://github.com/arcruz0/quarto-compact
- Owner: arcruz0
- Created: 2023-02-14T18:37:48.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-04-23T02:49:32.000Z (7 months ago)
- Last Synced: 2024-06-20T05:48:50.196Z (5 months ago)
- Language: TeX
- Size: 216 KB
- Stars: 25
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# compact-pdf Quarto Format
A [Quarto](https://quarto.org/) format for compact PDF documents. Good for short reports, homework assignments, etc.
## Example
[[Source code](template.qmd)]
## Installation and usage
To add the format *to a project* (Quarto extensions cannot be installed globally):
```bash
quarto add arcruz0/quarto-compact
```Next, simply use the `compact-pdf` format instead of `pdf` in your Quarto documents. For example:
``` yaml
---
title: "My Title"
author: "My Name"
date: today
format: compact-pdf
---
```## Details
All [PDF options](https://quarto.org/docs/reference/formats/pdf.html) should work as in the "pdf" format.
To replicate the format without installing it, just copy-paste the following into your Quarto document's YAML header:
``` yaml
format:
pdf:
toc: false
shift-heading-level-by: 2
fig-pos: "H"
fig-cap-location: top
geometry:
- top=1in
- right=.8in
- bottom=1in
- left=.8in
link-citations: yes
linkcolor: blue
include-in-header:
text: |
\usepackage{fancyhdr}
\usepackage{titling}
\pagestyle{fancy}
\fancyhf{}
\renewcommand\maketitle{
\fancyhead[C]{
\thetitle
\ifx \theauthor\empty \else \ – \theauthor \fi
\ifx \thedate\empty \else \ – \thedate \ \fi
}
}
\fancyfoot[C]{\thepage}
```