-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
149 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
# Quarto-apaish Format | ||
# APA7ish Quarto templates | ||
|
||
## Installing | ||
|
||
_TODO_: Replace the `<github-organization>` with your GitHub organization. | ||
Use quarto-apaish in an existing Quarto project | ||
|
||
```bash | ||
quarto use template <github-organization>/quarto-apaish | ||
quarto add mvuorre/quarto-apaish | ||
``` | ||
|
||
This will install the format extension and create an example qmd file | ||
that you can use as a starting place for your document. | ||
Create a new Quarto project using quarto-apaish: | ||
|
||
## Using | ||
```bash | ||
quarto use template mvuorre/quarto-apaish | ||
``` | ||
|
||
_TODO_: Describe how to use your format. | ||
## Templates: | ||
|
||
- Typst (PDF output): [source](template.qmd), [PDF](template.pdf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
@Manual{R, | ||
title = {R: A Language and Environment for Statistical Computing}, | ||
author = {{R Core Team}}, | ||
organization = {R Foundation for Statistical Computing}, | ||
address = {Vienna, Austria}, | ||
year = {2023}, | ||
url = {https://www.R-project.org/}, | ||
} | ||
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,121 @@ | ||
--- | ||
title: Untitled | ||
title: APA7-ish Quarto Typst PDF template | ||
|
||
author: | ||
- name: Norah Jones | ||
orcid: 0000-0000-0000-0000 | ||
affiliation: | ||
- ref: a | ||
- ref: b | ||
email: [email protected] | ||
url: https://example.org/ | ||
- name: John Hamm | ||
affiliation: | ||
- ref: a | ||
affiliations: | ||
- id: a | ||
name: University A | ||
- id: b | ||
name: University B | ||
department: Some department | ||
city: A City | ||
country: A Country | ||
|
||
abstract: | | ||
This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. | ||
keywords: "Template, APA, Typst, PDF" | ||
|
||
bibliography: bibliography.bib | ||
csl: https://www.zotero.org/styles/apa | ||
citeproc: true | ||
|
||
format: | ||
quarto-apaish-typst: default | ||
quarto-apaish-typst: | ||
toc: false | ||
columns: 2 | ||
fontsize: 11pt | ||
papersize: a4 | ||
mainfont: Libertinus | ||
section-numbering: "" # https://typst.app/docs/reference/meta/numbering/ | ||
--- | ||
|
||
## Introduction | ||
# Introduction | ||
|
||
This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. | ||
|
||
## Markdown | ||
|
||
*Italics*, **bold**. | ||
|
||
> Blockquotes | ||
- Lists | ||
|
||
1. Numbers | ||
|
||
# Methods | ||
|
||
Maths (LaTeX) inline ($E=mc^2$) and blocks: | ||
|
||
$$ | ||
x^2 + y^2 = z^2. | ||
$$ {#eq-1} | ||
The latter are easily cited (e.g. @eq-1). | ||
# Results | ||
## Code | ||
```{r} | ||
pi / 3 | ||
``` | ||
## Tables | ||
Tables don't work particularly well. | ||
```{r} | ||
#| label: tbl-1 | ||
#| tbl-cap: Mtcars table. | ||
#| echo: false | ||
library(gt) | ||
mtcars[1:6, 1:6] |> | ||
gt() |> | ||
tab_footnote("Note.", cells_column_labels(1)) | ||
``` | ||
@tbl-1 shows what happens if you run `mtcars[1:6, 1:6]` in R [@R]. | ||
## Figures | ||
Figures are just fine. | ||
```{r} | ||
#| label: fig-1 | ||
#| fig-cap: Mtcars figure. | ||
#| fig-width: 4 | ||
#| fig-height: 4 | ||
#| echo: false | ||
plot(mtcars[, 3:5]) | ||
``` | ||
@fig-1 shows what happens if you run `plot(mtcars[, 3:5])` in R [@R]. | ||
# Discussion | ||
*TODO* Create an example file that demonstrates the formatting and features of your format. | ||
This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. | ||
## More Information | ||
This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. This document is a template demonstrating the Apaish format. | ||
You can learn more about creating custom Typst templates here: | ||
# References | ||
<https://quarto.org/docs/prerelease/1.4/typst.html#custom-formats> | ||
::: {#refs} | ||
::: | ||
# Appendices | ||
Additional information. |