apaquarto

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats

https://github.com/wjschne/apaquarto

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (15.2%) to scientific vocabulary

Keywords

apa-style lua-filter quarto quarto-extension quarto-template
Last synced: 6 months ago · JSON representation ·

Repository

A quarto extension for creating APA7 documents in .docx, .html, and .pdf formats

Basic Info
Statistics
  • Stars: 207
  • Watchers: 9
  • Forks: 18
  • Open Issues: 12
  • Releases: 0
Topics
apa-style lua-filter quarto quarto-extension quarto-template
Created almost 3 years ago · Last pushed 6 months ago
Metadata Files
Readme Changelog License Citation

README.md

A Quarto Extension for Creating APA 7 Style Documents

any text: you like

This article template creates APA Style 7th Edition documents in .docx, .html. and .pdf. The .pdf format can be rendered via Latex (i.e., apaquarto-pdf) or via Typst (apaquarto-typst). The Typst output for this extension is still experimental and requires Quarto 1.5 or greater.

Because the .docx format is still widely used—and often required—my main priority was to ensure compatibility for .docx. This is still a work in progress, and I encourage filing a “New Issue” on GitHub if something does not work of if there is a feature missing.

See instructions and template options for apaquarto here.

Version History

Example Outputs

The apaquarto-docx form looks like this:

Preview of .docx output

The .html and .pdf output (in manuscript mode) look similar. The .pdf in journal mode looks like this:

Preview of .pdf output in journal mode

Creating a New Article

You can create a new article with apaquarto’s template file. There are two ways to do so.

  1. Via the R console
  2. Via the terminal

If you are an R user, you might prefer the R console method. Anyone, including R users, can use the second method.

Using R via the R Console

If you are an R user, you can install extensions with the quarto package (version = 1.4 or higher). The quarto package is not Quarto itself, but it provides convenient functions to interact with Quarto.

If the quarto package is not installed, you can can install it by running this code in the console:

``` r

latest release version

install.packages("quarto") ```

Once the quarto package is installed, you can install a quarto extension template by setting your working directory to the folder where you want the template to be installed (e.g., setwd("path/to/my/folder")) and then running this:

r quarto::quarto_use_template("wjschne/apaquarto")

A prompt will ask if you trust the author (me) not to run malicious code. To proceed, answer Yes or just Y.

Using the Terminal

If you are not an R user, you can create a new article directly in the terminal. Navigate to the folder where you want to create your file (e.g., cd path/to/my/folder), and run this command:

bash quarto use template wjschne/apaquarto

In RStudio, the terminal is in a tab next to the console. If you cannot see a terminal tab next to the console, use the keyboard shortcut Alt-Shift-R to make a terminal appear.

Entering the command above will prompt a question about whether you trust the author of the extension to not run malicious code. If you answer Yes, you will be prompted to name a new folder where the extension will be installed.

Template file

After installation, you will see a template file in the folder you select. The template file will have the same name as the folder you installed the template to and ends with .qmd. This file has most of the options already filled out and explains how and why to change them. It also has a examples of how to use the extension in the text.

If you prefer a minimal template, you can start with the minimal.qmd file instead.

Adding apaquarto to an Existing Document or Project

You can add the apaquarto extension to an existing file or project in one of two ways:

  1. Via the R console
  2. Via the terminal

Creating a New Document Via the R console

If you are an R user, you can install extensions with the quarto package (version = 1.4 or higher). The quarto package is not Quarto itself, but it provides convenient functions to interact with Quarto.

If the quarto package is not installed, you can can install it by running this code in the console:

``` r

latest release version

install.packages("quarto") ```

In RStudio, open the project that contains the file to which you want to add apaquarto. If your file is not part of a project, set the working directory to the same folder as the file (e.g., setwd("path/to/my/folder")).

Run this code in the console:

r quarto::quarto_use_template("wjschne/apaquarto")

Creating a New Document Via the Terminal

To add this format to an existing document, navigate to the folder where the existing .qmd you wish to use and then run:

bash quarto add wjschne/apaquarto

Add apaquarto to the Document’s Metadata:

You can select one of three formats: .docx, .pdf, or .html. When writing, I prefer to output to .html, because it renders quickly. Then I switch to .docx or .pdf, depending on where I need to submit the paper.

You can add all of these formats or any combination of them:

yaml format: apaquarto-docx: default apaquarto-html: default apaquarto-pdf: default apaquarto-typst: default

Here is a minimal example of what the YAML metadata might look like:

``` yaml

title: "My Paper's Title: A Full Analysis of Everything" shorttitle: "My Paper's Title" author: - name: W. Joel Schneider corresponding: true orcid: 0000-0002-8393-5316 email: schneider@temple.edu affiliations: - name: Temple University department: College of Education and Human Development address: 1301 Cecil B. Moore Ave. city: Philadelphia region: PA postal-code: 19122-6091 abstract: "This is my abstract." keywords: [keyword1, keyword2] author-note: disclosures: conflict of interest: The author has no conflict of interest to declare. bibliography: mybibfile.bib
format: apaquarto-docx: default apaquarto-html: default apaquarto-pdf: default

apaquarto-typst: default

```

Updating to the latest version of apaquarto

In the terminal, run

bash quarto update wjschne/apaquarto

Removing apaquarto

In the terminal, run

bash quarto remove wjschne/apaquarto

Owner

  • Name: W. Joel Schneider
  • Login: wjschne
  • Kind: user
  • Company: Temple University

Professor in School Psychology and Educational Leadership at Temple University

Citation (CITATION.cff)

# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!

cff-version: 1.2.0
title: apaquarto
message: >-
  If you use this software, please cite it using the
  metadata from this file.
type: software
authors:
  - given-names: William Joel
    family-names: Schneider
    email: w.joel.schneider@gmail.com
    affiliation: Temple University
    orcid: 'https://orcid.org/0000-0002-8393-5316'
repository-code: 'https://github.com/wjschne/apaquarto'
url: 'https://wjschne.github.io/apaquarto/'
abstract: >-
  A quarto extension for creating APA7 documents in .docx,
  .html, and .pdf formats
keywords:
  - APA-Style
  - Quarto Extension
license: CC0-1.0

GitHub Events

Total
  • Issues event: 78
  • Watch event: 36
  • Issue comment event: 133
  • Push event: 51
  • Pull request review event: 1
  • Pull request event: 4
  • Fork event: 3
Last Year
  • Issues event: 78
  • Watch event: 36
  • Issue comment event: 133
  • Push event: 51
  • Pull request review event: 1
  • Pull request event: 4
  • Fork event: 3

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 42
  • Total pull requests: 3
  • Average time to close issues: 3 months
  • Average time to close pull requests: about 1 month
  • Total issue authors: 26
  • Total pull request authors: 3
  • Average comments per issue: 2.07
  • Average comments per pull request: 0.67
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 39
  • Pull requests: 3
  • Average time to close issues: 2 months
  • Average time to close pull requests: about 1 month
  • Issue authors: 24
  • Pull request authors: 3
  • Average comments per issue: 1.9
  • Average comments per pull request: 0.67
  • Merged pull requests: 1
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • mvuorre (12)
  • bsgallih12 (8)
  • cbrnr (8)
  • schneiderpy (7)
  • DominiqueMakowski (6)
  • drfurtado (6)
  • tombeesley (3)
  • filippogambarota (3)
  • juliandehne (3)
  • raffaem (3)
  • RobertEspo (2)
  • lalamilalami (2)
  • themaymon (2)
  • jgeller112 (2)
  • franfrutos (2)
Pull Request Authors
  • mvuorre (5)
  • fkohrt (1)
  • tombeesley (1)
  • torven-schalk (1)
  • KilianSander (1)
  • moritzketzer (1)
  • JensBoelte (1)
  • DominiqueMakowski (1)
  • choc96208 (1)
  • ihrke (1)
  • MarkusGruener (1)
Top Labels
Issue Labels
Pull Request Labels