cogra
GitHub

Papers

cogra.paper sets a paper written in Markdown as an APA journal article of about 1980: two justified columns, running heads, footnotes at the foot of their column, figures across the top of a page, and TeX math in the Schola math font. The pages paginate themselves in the browser; pdf() prints them.

# writes my_paper_site/index.html and my_paper.pdf
cogra-paper my_paper.md --pdf my_paper.pdf

All three examples are invented, authors, journals and data included; each says so in its author note. The worn look can be switched off with the box above the pages.

Examples

First page of the paper

The judged duration of tones (1979)

A short report in the house style of about 1979: title block, abstract, a table and one figure.

Web pages · Markdown source

First page of the paper

Regret as the value of computation

A modern theory paper: a theorem and its proof, a stopping rule, footnotes, tables and a line figure.

Web pages · PDF · Markdown source

First page of the paper

Bayes–Bellman consistency

A longer theory preprint with eleven numbered equations, a theorem, two tables and a bar figure.

Web pages · PDF · Markdown source

Writing your own

The tutorial covers the front matter, figures, tables, math and changing the layout.