Skip to content

cpmpercussion/chroma-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

62 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Journal Article Template in Markdown

Build and Publish License: CC0-1.0

This is a journal article template for authoring articles with Markdown. Have a look at the HTML and PDF output.

Although specifically designed for Chroma: Journal of the Australasian Music Association, it is licensd under Creative Commons Zero v1.0 Universal and free to use for any other purpose and may be modified to suit your needs.

The template, article.md, doubles as instructions for using Markdown for authoring an academic article. You can find a short usage guide below. By default, this template looks for a BibTeX database of references in references.bib.

The motivation for this project is to provide a way to author academic articles in Markdown format which can be automatically translated into an attractive 1-column PDF (generated by LaTeX), an HTML file for online display, or a Word docx file for sending to non-Markdown-savvy collaborators.

This is not a workflow for generating ACM/IEEE/docx formatted submissions for traditional publishing workflows, but a template for use in web-first academic publishing (which is even more exciting if you think about it).

This repository uses a GitHub Action to automatically build the HTML and PDF versions of the template.

The HTML output can be viewed here (link) and the pdf output is here (link)

A picture of the template being edited in VSCode

How to use

You can download the latest release and use it as a template for authoring an article on your own system.

You can use your choice of text editor to author your article. Put any images or media you use in your manuscript in the media folder.

The command line software for building the HTML and PDF outputs is easy to install (see below). To build your article you need to navigate to the folder where you have editing it and type:

make pdf

to build a PDF, and:

make html

to build an HTML file.

If you want to make a docx file (e.g., to send to a collaborator who isn't as Markdown-savvy as you), you can run make docx.

You can look inside the Makefile in this repository to see what pandoc command we are using to build the article.

Some other files to explore are:

  • in the templates folder where the Pandoc templates and reference format file are stored.
  • in the extras folder, where some extra scripts are stored, in particular doc-to-md.sh might help you to convert an existing .docx file into the Markdown format used in this template.

Cloud-based workflow

An alternative to installing software on your computer is to fork this repository, and edit article.md in GitHub or a cloud-based markdown editor. The .github/workflows/main.yml file defines a GitHub action that automatically builds and publishes the article to GitHub Pages.

You will need to enable GitHub Pages on your forked repository and set the source to be the gh-pages branch.

Required software

If you want to use this template and create HTML and PDF output on your own computer, you will need to install:

Stretch Goals

  • add a reasonable way to include a copyright (and default CC attribution) or citation block on the first page. (done! ✅)
  • document a fully-online cloud-based editing workflow for this template
  • fully explain how to install and use the required software for use on your own system
  • automatic compilation of the .tex/.html/.docx versions of the template using a GitHub Action. (done! ✅)

Credits and Inspirations

Developed by Charles Martin, 2021.

Assisted by these blog posts in particular among many others: