Skip to content

Instantly share code, notes, and snippets.

View adunning's full-sized avatar
💭
I may be slow to respond.

Andrew Dunning adunning

💭
I may be slow to respond.
View GitHub Profile
@adunning
adunning / gist:c670ab28c16f031f4777
Last active January 7, 2020 16:06 — forked from schmurfy/gist:3199254
Install pandoc on Mac OS X 10.9
#!/bin/bash
# First install BasicTeX: http://mirror.ctan.org/systems/mac/mactex/mactex-basic.pkg
# Allows you to run tlmgr without sudo.
$ sudo chown -R `whoami` /usr/local/texlive
# Update everything.
$ tlmgr update --self --all
# Install extra packages used by the default pandoc template.
@adunning
adunning / epub.css
Created August 12, 2014 02:51
Better default epub.css for Pandoc (tested with iBooks)
/* This defines styles and classes used in the book */
body { margin: 0; text-align: justify; font-size: medium; font-family: Athelas, Georgia, serif; }
code { font-family: monospace; }
h1 { text-align: left; }
h2 { text-align: left; }
h3 { text-align: left; }
h4 { text-align: left; }
h5 { text-align: left; }
h6 { text-align: left; }
h1.title { }
@adunning
adunning / chapter-test.md
Last active August 29, 2015 14:05
Test for Pandoc page number parsing issue

title: Book chapter page test references:

  • event-place: Cambridge publisher-place: Cambridge page: '376-406' ISBN: '9781139053624' first-reference-note-number: 1 container-title: The Cambridge History of Medieval English Literature author:
@adunning
adunning / range-test.json
Created August 17, 2014 02:39
Test for Pandoc date ranges with Zotero output
[
{
"ISBN": "0197265456",
"call-number": "PA2891 .L34",
"editor": [
{
"family": "Latham",
"given": "R.E."
},
{
@adunning
adunning / sc-test.json
Created August 17, 2014 03:15
Test for undetected small caps in citeproc JSON
[
{
"publisher": "Broadview Press",
"ISBN": "9781551117188",
"publisher-place": "Peterborough, <span style=\"font-variant:small-caps;\">on</span>",
"shortTitle": "The Story of a Great Medieval Book",
"title": "The Story of a Great Medieval Book: Peter Lombard's Sentences",
"call-number": "BX1749 .P4 R673 2007",
"author": [
{
@adunning
adunning / # ipython - 2018-03-27_15-50-26.txt
Created March 27, 2018 19:58
ipython on macOS 10.13.3 - Homebrew build logs
Homebrew build logs for ipython on macOS 10.13.3
Build date: 2018-03-27 15:50:26
@adunning
adunning / keybase.md
Created April 25, 2018 15:19
keybase.md

Keybase proof

I hereby claim:

  • I am adunning on github.
  • I am adunning (https://keybase.io/adunning) on keybase.
  • I have a public key ASBeRWJPcns13Motd9uBARzonSn8liHq7DITA3dMx1QNXwo

To claim this, I am signing this object: