├── .DS_Store ├── README.md ├── _extensions └── apa7 │ ├── _extension.yml │ ├── apa7.lua │ ├── header.tex │ └── styles.css ├── bibliography.bib └── template.qmd /.DS_Store: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/crsh/qapaja/76cb47b09e4b9090bf11565b73c988176abe21da/.DS_Store -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 2 | # <%= title %> 3 | 4 | ## Creating a New Article 5 | 6 | To create a new article using this format: 7 | 8 | *TODO*: Replace the `` with your GitHub organization. 9 | 10 | ```bash 11 | quarto use template /<%= filesafename %> 12 | ``` 13 | 14 | This will create a new directory with an example document that uses this format. 15 | 16 | ## Using with an Existing Document 17 | 18 | To add this format to an existing document: 19 | 20 | *TODO*: Replace the `` with your GitHub organization. 21 | 22 | ```bash 23 | quarto add /<%= filesafename %> 24 | ``` 25 | 26 | Then, add the format to your document options: 27 | 28 | ```yaml 29 | format: 30 | <%= filesafename %>-pdf: default 31 | ``` 32 | 33 | ## Options 34 | 35 | *TODO*: If your format has options that can be set via document metadata, describe them. 36 | 37 | ## Example 38 | 39 | Here is the source code for a minimal sample document: [template.qmd](template.qmd). 40 | 41 | -------------------------------------------------------------------------------- /_extensions/apa7/_extension.yml: -------------------------------------------------------------------------------- 1 | title: Apa7 2 | author: First Last 3 | version: 1.0.0 4 | quarto-required: ">=1.2.0" 5 | contributes: 6 | formats: 7 | common: 8 | toc: true 9 | filters: 10 | - apa7.lua 11 | pdf: 12 | include-in-header: header.tex 13 | html: 14 | css: styles.css 15 | 16 | -------------------------------------------------------------------------------- /_extensions/apa7/apa7.lua: -------------------------------------------------------------------------------- 1 | -- TODO: Transform the document using a filter, if needed -------------------------------------------------------------------------------- /_extensions/apa7/header.tex: -------------------------------------------------------------------------------- 1 | % TODO: Add custom LaTeX header directives here -------------------------------------------------------------------------------- /_extensions/apa7/styles.css: -------------------------------------------------------------------------------- 1 | /* TODO: Use css to format the HTML output */ 2 | -------------------------------------------------------------------------------- /bibliography.bib: -------------------------------------------------------------------------------- 1 | @book{CameronTrivedi2013, 2 | author = {A. Colin Cameron and Pravin K. Trivedi}, 3 | title = {Regression Analysis of Count Data}, 4 | year = {2013}, 5 | edition = {2nd}, 6 | publisher = {Cambridge University Press}, 7 | address = {Cambridge} 8 | } -------------------------------------------------------------------------------- /template.qmd: -------------------------------------------------------------------------------- 1 | --- 2 | title: Apa7 Template 3 | format: 4 | apa7-pdf: 5 | keep-tex: true 6 | apa7-html: default 7 | author: 8 | - name: Sarah Malloc 9 | affiliations: 10 | - name: An Organization 11 | department: The Department 12 | address: 1 Main St 13 | city: Boston 14 | country: USA 15 | postal-code: 02210-1022 16 | - A second affilication 17 | orcid: 0000-0000-0000-0000 18 | email: sm@example.org 19 | url: https://example.org/ 20 | - name: Eliza Dealloc 21 | affiliations: 22 | - Another Affiliation 23 | abstract: | 24 | This document is a template demonstrating the Apa7 format. 25 | keywords: [template, demo] 26 | bibliography: bibliography.bib 27 | --- 28 | 29 | ## Introduction {#sec-intro} 30 | 31 | *TODO* Create a template that demonstrates the appearance, formatting, layout, and functionality of your format. Learn more about journal formats at . 32 | 33 | 34 | --------------------------------------------------------------------------------