├── README.markdown
├── citeproc-preamble
├── default.html
└── default.latex
├── csl
├── ajps.csl
├── american-sociological-association.csl
├── apsa.csl
├── better-bibtex-citekeys.csl
├── chicago-author-date.csl
├── chicago-fullnote-bibliography-short-title-subsequent.csl
├── chicago-manual-of-style-17th-edition-variant.csl
├── chicago-short-notes-and-bib.csl
├── chicago-syllabus.csl
├── harvard-cite-them-right.csl
└── perspectives-on-politics.csl
├── examples
├── screenshots
│ ├── docx_output.png
│ ├── html_output.png
│ └── pdf_output.png
├── starting_from_Rmarkdown
│ ├── Makefile
│ ├── article-knitr.Rmd
│ ├── cache
│ │ └── .placeholder
│ └── figures
│ │ └── .placeholder
└── starting_from_markdown
│ ├── Makefile
│ └── article-knitr.md
├── knitr
└── knitr-pandoc-config-example.pandoc
├── makefile
└── Makefile
├── marked
├── Byword.css
├── github-syntax.css
├── github.css
├── kult.css
├── kultiad-serif.css
├── kultiad.css
├── panmarked.sh
└── paper.css
└── templates
├── bookdown-article.template
├── dataviz-booktemplate-7x10.tex
├── dataviz-booktemplate.tex
├── html-github.template
├── html.template
├── latex-book.template
├── latex-ordinal-book.template
├── latex.template
├── plain-person.tex
├── rmd-latex.template
├── rmd-minion-reference.docx
├── rmd-myriad-minion-reference.docx
├── tufte-html-vis.html
├── xelatex-modsyl.template
└── xelatex.template
/README.markdown:
--------------------------------------------------------------------------------
1 | # Pandoc Configuration and Support Files
2 |
3 | ## Description
4 |
5 | A collection of support files for use with Pandoc, and specifically for helping to turn pandoc markdown files into nice HTML, LaTeX, and PDF output. These files go in your `~/.pandoc/` folder and are designed to work with the style and configuration material provided in [latex-custom-kjh](https://github.com/kjhealy/latex-custom-kjh/), [socbibs](https://github.com/kjhealy/socbibs), and the [Emacs Starter Kit for the Social Sciences](https://kieranhealy.org/resources/emacs-starter-kit). The only real dependencies are the latex class and style files in [latex-custom-kjh](http://github.com/kjhealy/latex-custom-kjh), however.
6 |
7 |
8 | PDF |HTML | Word
9 | :-------------------------:|:-------------------------:|:-------------------------:
10 |  |  | 
11 |
12 |
13 | ## Notes
14 |
15 | What's included?
16 |
17 | - Some [Pandoc](http://johnmacfarlane.net/pandoc/) templates for an
18 | article in PDF (vita LaTeX), HTML, or Microsoft Word. These go in
19 | `~/.pandoc/templates`. These can be be pointed to directly with the
20 | `--template=` switch as appropriate. The `latex.template` and
21 | `xelatex.template` depend on the style files in
22 | [latex-custom-kjh](https://github.com/kjhealy/latex-custom-kjh/).
23 | The Word reference documents depend on you having Myriad Pro and
24 | Minion Pro installed.
25 | - In R, knitr's `knit()` function will turn `.Rmd` files into `.md`
26 | files. The configuration file in the `knitr/` folder is an example
27 | to help you produce HTML or `.tex` using knitr's `pandoc()` helper
28 | function.
29 | - The CSL files in the `csl/` folder format the bibliography generated
30 | by pandoc and citeproc. (For simplicity we avoid dealing with
31 | biblatex directly at all.) The `chicago-syllabus.csl` file makes a
32 | tiny change to a standard Chicago Notes CSL file so you can use it
33 | to output citation information in the body text of a document. This
34 | makes it useful for lists of references in CVs and course
35 | syllabuses. The other two files are APSA and AJPS standard files
36 | from the main
37 | [CSL styles repository](https://github.com/citation-style-language/styles).
38 | - The Makefile in the `makefile/` folder helps you generate HTML,
39 | LaTeX, and PDF output from your markdown files in a convenient
40 | way. It is meant to go in the folder where you are writing your
41 | paper. It looks for `.md` files in the working directory and
42 | converts them to nice HTML, PDF, and LaTeX files using the templates
43 | provided here, the style files in
44 | [latex-custom-kjh](https://github.com/kjhealy/latex-custom-kjh/), and
45 | the bibliography files in
46 | [socbibs](https://github.com/kjhealy/socbibs). You can of course
47 | change the bibliography and template files as desired.
48 | - The `pandoc` commands produced by the current version of the `Makefile` include switches that invoke two [pandoc filters](http://pandoc.org/scripting.html) that do additional processing on the bibliography and cross-references in the document. You should install [pandoc-crossref](https://github.com/lierdakil/pandoc-crossref) and [pandoc-citeproc-preamble](https://github.com/spwhitton/pandoc-citeproc-preamble) to make these work.
49 | - The [md-article-starter](https://github.com/kjhealy/md-starter) repository is a basic project folder you can clone that gives you a template for an article written in Markdown and a `Makefile` to produce `.html`, `.tex` or `.pdf` output from it. For R users there is an [rmd-article-starter](https://github.com/kjhealy/rmd-starter) as well, which begins with an `.Rmd` file.
50 |
51 | ## Contact
52 | Kieran Healy, `@kjhealy`
53 |
--------------------------------------------------------------------------------
/citeproc-preamble/default.html:
--------------------------------------------------------------------------------
1 |
References
2 |
--------------------------------------------------------------------------------
/citeproc-preamble/default.latex:
--------------------------------------------------------------------------------
1 | \section*{References}
2 | \medskip
3 | \setlength{\parindent}{-0.2in}
4 | %\singlespacing
5 | \small
6 | \setlength{\leftskip}{0.2in}
7 | \setlength{\parskip}{8pt}
8 | \vspace*{-0.4in}
9 | \noindent
10 |
--------------------------------------------------------------------------------
/csl/ajps.csl:
--------------------------------------------------------------------------------
1 |
2 |
215 |
--------------------------------------------------------------------------------
/csl/american-sociological-association.csl:
--------------------------------------------------------------------------------
1 |
2 |
229 |
--------------------------------------------------------------------------------
/csl/better-bibtex-citekeys.csl:
--------------------------------------------------------------------------------
1 |
2 |
74 |
--------------------------------------------------------------------------------
/csl/chicago-author-date.csl:
--------------------------------------------------------------------------------
1 |
2 |
645 |
--------------------------------------------------------------------------------
/csl/harvard-cite-them-right.csl:
--------------------------------------------------------------------------------
1 |
2 |
322 |
--------------------------------------------------------------------------------
/csl/perspectives-on-politics.csl:
--------------------------------------------------------------------------------
1 |
2 |
449 |
--------------------------------------------------------------------------------
/examples/screenshots/docx_output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kjhealy/pandoc-templates/1a12ce91e1fcb18a85cb28151b1fd78a868ee7c5/examples/screenshots/docx_output.png
--------------------------------------------------------------------------------
/examples/screenshots/html_output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kjhealy/pandoc-templates/1a12ce91e1fcb18a85cb28151b1fd78a868ee7c5/examples/screenshots/html_output.png
--------------------------------------------------------------------------------
/examples/screenshots/pdf_output.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kjhealy/pandoc-templates/1a12ce91e1fcb18a85cb28151b1fd78a868ee7c5/examples/screenshots/pdf_output.png
--------------------------------------------------------------------------------
/examples/starting_from_Rmarkdown/Makefile:
--------------------------------------------------------------------------------
1 | ## Put this Makefile in your project directory---i.e., the directory
2 | ## containing the paper you are writing. Assuming you are using the
3 | ## rest of the toolchain here, you can use it to create .html, .tex,
4 | ## and .pdf output files (complete with bibliography, if present) from
5 | ## your markdown or Rmarkdown fies.
6 | ## - Change the paths at the top of the file as needed.
7 | ## - If you're just starting with a markdown file, using `make`
8 | ## without arguments will generate html, tex, pdf, and docx
9 | ## output files from all of the files with the designated Rmarkdown
10 | ## extension. The default is `.md` but you can change this.
11 | ## - You can specify an output format with `make tex`, `make pdf`,
12 | ## - `make html`, or `make docx`.
13 | ## - Doing `make clean` will remove all the .tex, .html, .pdf, and .docx files
14 | ## in your working directory. Make sure you do not have files in these
15 | ## formats that you want to keep!
16 |
17 | ## All Markdown Files in the working directory
18 | SRC = $(wildcard *.Rmd)
19 |
20 | ## Location of Pandoc support files.
21 | PREFIX = /Users/kjhealy/.pandoc
22 |
23 | ## Location of your working bibliography file
24 | BIB = /Users/kjhealy/Documents/bibs/socbib-pandoc.bib
25 |
26 | ## CSL stylesheet (located in the csl folder of the PREFIX directory).
27 | CSL = apsa
28 |
29 | ## Pandoc options to use
30 | OPTIONS = markdown+simple_tables+table_captions+yaml_metadata_block+smart
31 |
32 | ## MS Word template
33 | DOCXTEMPLATE = /Users/kjhealy/.pandoc/templates/rmd-minion-reference.docx
34 |
35 | MD=$(SRC:.Rmd=.md)
36 | PDFS=$(SRC:.Rmd=.pdf)
37 | HTML=$(SRC:.Rmd=.html)
38 | TEX=$(SRC:.Rmd=.tex)
39 | DOCX=$(SRC:.Rmd=.docx)
40 |
41 |
42 | all: $(MD) $(PDFS) $(HTML) $(TEX) $(DOCX)
43 |
44 | md: clean $(MD)
45 | pdf: clean $(PDFS)
46 | html: clean $(HTML)
47 | tex: clean $(TEX)
48 | docx: clean $(DOCX)
49 |
50 | %.md: %.Rmd
51 | R --slave -e "set.seed(100);knitr::knit('$<')"
52 |
53 | %.html: %.md
54 | pandoc -r $(OPTIONS) -w html --template=$(PREFIX)/templates/html.template --css=$(PREFIX)/marked/kultiad-serif.css --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) -o $@ $<
55 |
56 | %.tex: %.md
57 | pandoc -r $(OPTIONS) -w latex -s --pdf-engine=pdflatex --template=$(PREFIX)/templates/latex.template --filter pandoc-citeproc --csl=$(PREFIX)/csl/ajps.csl --bibliography=$(BIB) -o $@ $<
58 |
59 |
60 | %.pdf: %.md
61 | pandoc -r $(OPTIONS) -s --pdf-engine=pdflatex --template=$(PREFIX)/templates/latex.template --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) -o $@ $<
62 |
63 |
64 | %.docx: %.md
65 | pandoc -r $(OPTIONS) -w docx --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) --reference-doc=$(DOCXTEMPLATE) -o $@ $<
66 |
67 |
68 | clean:
69 | rm -f *.md *.html *.pdf *.tex *.docx
70 |
--------------------------------------------------------------------------------
/examples/starting_from_Rmarkdown/article-knitr.Rmd:
--------------------------------------------------------------------------------
1 | ---
2 | title: This Article Looks Quite Authoritative
3 | author:
4 | - name: Kieran Healy
5 | affiliation: Duke University
6 | email: kjhealy@soc.duke.edu
7 | - name: Joe Bloggs
8 | affiliation: University of North Carolina, Chapel Hill
9 | email: joebloggs@unc.edu
10 | date: January 2014
11 | abstract: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
12 | bibliography:
13 | ...
14 |
15 |
16 |
17 | ```{r Cleanup, include=FALSE}
18 | ## This is where your R code goes
19 | ```
20 |
21 | ```{r Setup, include=FALSE, results="hide", warning=FALSE}
22 | ## This chunk is for setting nice options for the output. Notice how
23 | ## we create both png and pdf files by default, so that we can easily process
24 | ## to both HTML and LaTeX/PDF files later.
25 |
26 | opts_chunk$set(fig.path='../figures/paper-',
27 | cache.path='../cache/report-',
28 | dev=c("png","pdf"),
29 | fig.width=14,
30 | fig.height=7,
31 | dpi=300,
32 | fig.show='hold',
33 | fig.lp="fig:",
34 | cache=TRUE,
35 | par=TRUE,
36 | echo=FALSE,
37 | results="hide",
38 | message=FALSE,
39 | warning=FALSE)
40 |
41 | knit_hooks$set(par=function(before, options, envir){
42 | if (before && options$fig.show!='none') par(mar=c(4,4,.1,.1),cex.lab=.95,cex.axis=.9,mgp=c(2,.7,0),tcl=-.3)
43 | }, crop=hook_pdfcrop)
44 |
45 | library(tidyverse)
46 |
47 | ```
48 |
49 | # Introduction
50 | You have to knit this document in R, using the `knitr` library. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua [@fourcade13classsituat]. Notice that citation there [@healy02digittechnculturgoods]. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
51 |
52 | # Results
53 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
54 |
55 | ```{r sample-plot, fig.cap="Tea and Biscuits are correlated but there may be identifiability issues."}
56 |
57 | ###--------------------------------------------------
58 | ### Code for a nice plot
59 | ###--------------------------------------------------
60 |
61 | df <- tibble(tea = rnorm(100),
62 | biscuits = tea + rnorm(100, 0, 1.3),
63 | chips = tea + rnorm(100,0,1.8),
64 | cheese = tea + rnorm(100,0,1.5))
65 |
66 | df %>%
67 | ggplot(aes(x = tea, y = biscuits)) +
68 | geom_smooth(method="lm") +
69 | labs(x = "Tea", y = "Biscuits") +
70 | theme_bw()
71 | ```
72 |
73 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
74 |
75 | ```{r sample-table, results="asis"}
76 |
77 | library(ascii)
78 | library(memisc)
79 |
80 | out.m3 <- lm(tea ~ biscuits + chips + cheese, data = df)
81 | out.m2 <- update(out.m3, .~. - cheese)
82 | out.m1 <- update(out.m3, .~. - chips - cheese)
83 |
84 | out.all <- mtable("Model 1"=out.m1, "Model 2"=out.m2, "Model 3"=out.m3, summary.stats=c("Deviance", "N"))
85 |
86 | print(ascii(out.all), caption="OLS regression models on Tea.", style=c("d", "d", "d"), type="pandoc")
87 |
88 | ```
89 |
90 | # Conclusion
91 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
92 |
93 | # References
94 | \setlength{\parindent}{-0.2in}
95 | \setlength{\leftskip}{0.2in}
96 | \setlength{\parskip}{8pt}
97 | \vspace*{-0.2in}
98 | \noindent
99 |
--------------------------------------------------------------------------------
/examples/starting_from_Rmarkdown/cache/.placeholder:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kjhealy/pandoc-templates/1a12ce91e1fcb18a85cb28151b1fd78a868ee7c5/examples/starting_from_Rmarkdown/cache/.placeholder
--------------------------------------------------------------------------------
/examples/starting_from_Rmarkdown/figures/.placeholder:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kjhealy/pandoc-templates/1a12ce91e1fcb18a85cb28151b1fd78a868ee7c5/examples/starting_from_Rmarkdown/figures/.placeholder
--------------------------------------------------------------------------------
/examples/starting_from_markdown/Makefile:
--------------------------------------------------------------------------------
1 | ## Put this Makefile in your project directory---i.e., the directory
2 | ## containing the paper you are writing. Assuming you are using the
3 | ## rest of the toolchain here, you can use it to create .html, .tex,
4 | ## and .pdf output files (complete with bibliography, if present) from
5 | ## your markdown or Rmarkdown fies.
6 | ## - Change the paths at the top of the file as needed.
7 | ## - If you're just starting with a markdown file, using `make`
8 | ## without arguments will generate html, tex, pdf, and docx
9 | ## output files from all of the files with the designated Rmarkdown
10 | ## extension. The default is `.md` but you can change this.
11 | ## - You can specify an output format with `make tex`, `make pdf`,
12 | ## - `make html`, or `make docx`.
13 | ## - Doing `make clean` will remove all the .tex, .html, .pdf, and .docx files
14 | ## in your working directory. Make sure you do not have files in these
15 | ## formats that you want to keep!
16 |
17 | ## All Markdown Files in the working directory
18 | SRC = $(wildcard *.md)
19 |
20 | ## Location of Pandoc support files.
21 | PREFIX = /Users/kjhealy/.pandoc
22 |
23 | ## Location of your working bibliography file
24 | BIB = /Users/kjhealy/Documents/bibs/socbib-pandoc.bib
25 |
26 | ## CSL stylesheet (located in the csl folder of the PREFIX directory).
27 | CSL = apsa
28 |
29 | ## Pandoc options to use
30 | OPTIONS = markdown+simple_tables+table_captions+yaml_metadata_block+smart
31 |
32 | ## MS Word template
33 | DOCXTEMPLATE = /Users/kjhealy/.pandoc/templates/rmd-minion-reference.docx
34 |
35 | PDFS=$(SRC:.md=.pdf)
36 | HTML=$(SRC:.md=.html)
37 | TEX=$(SRC:.md=.tex)
38 | DOCX=$(SRC:.md=.docx)
39 |
40 |
41 | all: $(PDFS) $(HTML) $(TEX) $(DOCX)
42 |
43 | pdf: clean $(PDFS)
44 | html: clean $(HTML)
45 | tex: clean $(TEX)
46 | docx: clean $(DOCX)
47 |
48 | %.html: %.md
49 | pandoc -r $(OPTIONS) -w html --template=$(PREFIX)/templates/html.template --css=$(PREFIX)/marked/kultiad-serif.css --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) -o $@ $<
50 |
51 | %.tex: %.md
52 | pandoc -r $(OPTIONS) -w latex -s --pdf-engine=pdflatex --template=$(PREFIX)/templates/latex.template --filter pandoc-citeproc --csl=$(PREFIX)/csl/ajps.csl --bibliography=$(BIB) -o $@ $<
53 |
54 |
55 | %.pdf: %.md
56 | pandoc -r $(OPTIONS) -s --pdf-engine=pdflatex --template=$(PREFIX)/templates/latex.template --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) -o $@ $<
57 |
58 |
59 | %.docx: %.md
60 | pandoc -r $(OPTIONS) -w docx --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) --reference-doc=$(DOCXTEMPLATE) -o $@ $<
61 |
62 |
63 | clean:
64 | rm -f *.html *.pdf *.tex *.docx
65 |
--------------------------------------------------------------------------------
/examples/starting_from_markdown/article-knitr.md:
--------------------------------------------------------------------------------
1 | ---
2 | title: This Article Looks Quite Authoritative
3 | author:
4 | - name: Kieran Healy
5 | affiliation: Duke University
6 | email: kjhealy@soc.duke.edu
7 | - name: Joe Bloggs
8 | affiliation: University of North Carolina, Chapel Hill
9 | email: joebloggs@unc.edu
10 | date: January 2014
11 | abstract: Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
12 | bibliography:
13 | ...
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 | # Introduction
24 | Lorem ipsum dolor sit amet, consectetur [@fourcade17seeinlikemarket] adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua . Notice that citation there [@healy17fucknuanc]. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
25 |
26 | # Results
27 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
28 |
29 | 
30 |
31 |
32 | Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enimad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
33 |
34 |
35 | **Model 1** **Model 2** **Model 3**
36 | ------------------- ------------- ------------- -------------
37 | **(Intercept)** -0.039 -0.030 0.020
38 | (0.072) (0.068) (0.059)
39 | **biscuits** 0.359*** 0.327*** 0.239***
40 | (0.045) (0.044) (0.041)
41 | **chips** 0.110** 0.085**
42 | (0.034) (0.029)
43 | **cheese** 0.206***
44 | (0.035)
45 | **Deviance** 49.369 44.521 32.481
46 | **N** 100 100 100
47 | ------------------- ------------- ------------- -------------
48 |
49 |
50 | # Conclusion
51 | Right now, your options for formatting bibliographies using Pandoc are to offload the work to biblatex (or natbib), or have pandoc handle everything via `citeproc` and CSL files. The latter way is simpler and cleaner, especially if we want to preserve the ability to easily generate both HTML and LaTeX/PDF outputs. You have to do two things. First, explicitly specify the "References" header. Second, pandoc does not (yet) support some standard layout options for bibliography entries---it will treat each entry like a regular paragraph, when we want the first lines of each bibliography entry to have no indentation, with subsequent lines (if any) to hang in from the margin. The LaTeX commands below the "References" header accomplish this . The LaTeX commands are ignored when HTML is produced, and do not show up in the output file.
52 |
53 | # References
54 | \setlength{\parindent}{-0.2in}
55 | \setlength{\leftskip}{0.2in}
56 | \setlength{\parskip}{8pt}
57 | \vspace*{-0.2in}
58 | \noindent
59 |
--------------------------------------------------------------------------------
/knitr/knitr-pandoc-config-example.pandoc:
--------------------------------------------------------------------------------
1 | format: html5
2 | s:
3 | bibliography: /Users/kjhealy/Documents/bibs/socbib-pandoc.bib
4 | css: /Users/kjhealy/.pandoc/templates/article.css
5 | template: /Users/kjhealy/.pandoc/templates/html.template
6 | o: output.html
7 |
8 | format: latex
9 | s:
10 | S:
11 | latex-engine: xelatex
12 | bibliography: /Users/kjhealy/Documents/bibs/socbib-pandoc.bib
13 | template: /Users/kjhealy/.pandoc/templates/xelatex.template
14 | o: output.tex
15 |
--------------------------------------------------------------------------------
/makefile/Makefile:
--------------------------------------------------------------------------------
1 | ## Put this Makefile in your project directory---i.e., the directory
2 | ## containing the paper you are writing. Assuming you are using the
3 | ## rest of the toolchain here, you can use it to create .html, .tex,
4 | ## and .pdf output files (complete with bibliography, if present) from
5 | ## your markdown file.
6 | ## - Change the paths at the top of the file as needed.
7 | ## - Using `make` without arguments will generate html, tex, and pdf
8 | ## output files from all of the files with the designated markdown
9 | ## extension. The default is `.md` but you can change this.
10 | ## - You can specify an output format with `make tex`, `make pdf`,
11 | ## - `make html`, or `make docx`.
12 | ## - Doing `make clean` will remove all the .tex, .html, .pdf, and .docx files
13 | ## in your working directory. Make sure you do not have files in these
14 | ## formats that you want to keep!
15 |
16 |
17 | ## All Rmarkdown files in the working directory
18 | RSRC = $(wildcard *.Rmd)
19 |
20 | ## Markdown extension (e.g. md, markdown, mdown).
21 | MEXT = md
22 |
23 | ## All markdown files in the working directory
24 | SRC = $(wildcard *.$(MEXT))
25 |
26 | ## Location of Pandoc support files.
27 | PREFIX = /Users/kjhealy/.pandoc
28 |
29 | ## Location of your working bibliography file
30 | BIB = /Users/kjhealy/Documents/bibs/socbib-pandoc.bib
31 |
32 | ## CSL stylesheet (located in the csl folder of the PREFIX directory).
33 | CSL = apsa
34 |
35 | ## Pandoc options to use for all document types
36 | OPTIONS = markdown+simple_tables+table_captions+yaml_metadata_block+smart
37 |
38 | ## MS Word template
39 | DOCXTEMPLATE = /Users/kjhealy/.pandoc/templates/rmd-minion-reference.docx
40 |
41 | MD=$(RSRC:.Rmd=.md)
42 |
43 | PDFS=$(SRC:.md=.pdf)
44 | HTML=$(SRC:.md=.html)
45 | TEX=$(SRC:.md=.tex)
46 | DOCX=$(SRC:.md=.docx)
47 |
48 | all: $(MD) $(PDFS) $(HTML) $(TEX) $(DOCX)
49 |
50 | md: clean $(MD)
51 | pdf: clean $(PDFS)
52 | html: clean $(HTML)
53 | tex: clean $(TEX)
54 | docx: clean $(DOCX)
55 |
56 | %.html: %.md
57 | pandoc -r $(OPTIONS) -w html --template=$(PREFIX)/templates/html.template --css=$(PREFIX)/marked/kultiad-serif.css --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) -o $@ $<
58 |
59 | %.tex: %.md
60 | pandoc -r $(OPTIONS) -w latex -s --pdf-engine=pdflatex --template=$(PREFIX)/templates/latex.template --filter pandoc-citeproc --csl=$(PREFIX)/csl/ajps.csl --bibliography=$(BIB) -o $@ $<
61 |
62 |
63 | %.pdf: %.md
64 | pandoc -r $(OPTIONS) -s --pdf-engine=pdflatex --template=$(PREFIX)/templates/latex.template --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) -o $@ $<
65 |
66 |
67 | %.docx: %.md
68 | pandoc -r $(OPTIONS) -w docx --filter pandoc-citeproc --csl=$(PREFIX)/csl/$(CSL).csl --bibliography=$(BIB) --reference-doc=$(DOCXTEMPLATE) -o $@ $<
69 |
70 | clean:
71 | rm -f *.html *.pdf *.tex *.docx
72 |
--------------------------------------------------------------------------------
/marked/Byword.css:
--------------------------------------------------------------------------------
1 | /*
2 | * This document has been created with Marked.app .
3 | * Copyright 2011 Brett Terpstra
4 | * ---------------------------------------------------------------------------
5 | * Please leave this notice in place, along with any additional credits below.
6 | *
7 | * Byword.css theme is based on Byword.app
8 | * Authors: @brunodecarvalho, @jpedroso, @rcabaco
9 | * Copyright 2011 Metaclassy, Lda.
10 | */
11 |
12 | html {
13 | font-size: 62.5%; /* base font-size: 10px */
14 | }
15 |
16 | body {
17 | background-color: #f2f2f2;
18 | color: #3c3c3c;
19 |
20 | /* Change font size below */
21 | font-size: 1.7em;
22 | line-height: 1.4em;
23 |
24 | /* Change font below */
25 |
26 | /* Sans-serif fonts */
27 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
28 | -webkit-font-smoothing: antialiased;
29 |
30 | /* Serif fonts */
31 | /*
32 | font-family: "Cochin", "Baskerville", "Georgia", serif;
33 | -webkit-font-smoothing: subpixel-antialiased;
34 | */
35 |
36 | /* Monospaced fonts */
37 | /*
38 | font-family: "Courier New", Menlo, Monaco, mono;
39 | -webkit-font-smoothing: antialiased;
40 | */
41 | }
42 | a {
43 | color: #308bd8;
44 | text-decoration:none;
45 | }
46 | a:hover {
47 | text-decoration: underline;
48 | }
49 | /* headings */
50 | h1, h2 {
51 | line-height:1.2em;
52 | margin-top:32px;
53 | margin-bottom:12px;
54 | }
55 | h1:first-child {
56 | margin-top:0;
57 | }
58 | h3, h4, h5, h6 {
59 | margin-top:12px;
60 | margin-bottom:0;
61 | }
62 | h5, h6 {
63 | font-size:0.9em;
64 | line-height:1.0em;
65 | }
66 | /* end of headings */
67 | p {
68 | margin:0 0 24px 0;
69 | }
70 | p:last-child {
71 | margin:0;
72 | }
73 | #wrapper hr {
74 | width: 100%;
75 | margin: 3em auto;
76 | border: 0;
77 | color: #eee;
78 | background-color: #ccc;
79 | height: 1px;
80 | -webkit-box-shadow:0px 1px 0px rgba(255, 255, 255, 0.75);
81 | }
82 | /* lists */
83 | ol {
84 | list-style: outside decimal;
85 | }
86 | ul {
87 | list-style: outside disc;
88 | }
89 | ol, ul {
90 | padding-left:0;
91 | margin-bottom:24px;
92 | }
93 | ol li {
94 | margin-left:28px;
95 | }
96 | ul li {
97 | margin-bottom:8px;
98 | margin-left:16px;
99 | }
100 | ol:last-child, ul:last-child {
101 | margin:0;
102 | }
103 | li > ol, li > ul {
104 | padding-left:12px;
105 | }
106 | dl {
107 | margin-bottom:24px;
108 | }
109 | dl dt {
110 | font-weight:bold;
111 | margin-bottom:8px;
112 | }
113 | dl dd {
114 | margin-left:0;
115 | margin-bottom:12px;
116 | }
117 | dl dd:last-child, dl:last-child {
118 | margin-bottom:0;
119 | }
120 | /* end of lists */
121 | pre {
122 | white-space: pre-wrap;
123 | width: 96%;
124 | margin-bottom: 24px;
125 | overflow: hidden;
126 | padding: 3px 10px;
127 | -webkit-border-radius: 3px;
128 | background-color: #eee;
129 | border: 1px solid #ddd;
130 | }
131 | code {
132 | white-space: nowrap;
133 | font-size: 1.1em;
134 | padding: 2px;
135 | -webkit-border-radius: 3px;
136 | background-color: #eee;
137 | border: 1px solid #ddd;
138 | }
139 | pre code {
140 | white-space: pre-wrap;
141 | border: none;
142 | padding: 0;
143 | background-color: transparent;
144 | -webkit-border-radius: 0;
145 | }
146 | blockquote {
147 | margin-left: 0;
148 | margin-right: 0;
149 | width: 96%;
150 | padding: 0 10px;
151 | border-left: 3px solid #ddd;
152 | color: #777;
153 | }
154 | table {
155 | margin-left: auto;
156 | margin-right: auto;
157 | margin-bottom: 24px;
158 | /* border-bottom: 1px solid #ddd;
159 | border-right: 1px solid #ddd; */
160 | border-spacing: 0;
161 | }
162 | table th {
163 | padding: 3px 10px;
164 | background-color: #eee;
165 | /* border-top: 1px solid #ddd;
166 | border-left: 1px solid #ddd;*/
167 | }
168 | table tr {
169 | }
170 | table td {
171 | padding: 3px 10px;
172 | /* border-top: 1px solid #ddd;
173 | border-left: 1px solid #ddd; */
174 | }
175 |
176 | table tr:nth-child(odd),table th:nth-child(odd),table td:nth-child(odd)
177 | {
178 | background:rgba(255,255,255,0.06)
179 | }
180 |
181 | table tr:nth-child(even),table td:nth-child(even)
182 | {
183 | background:rgba(0,0,0,0.06)
184 | }
185 |
186 |
187 | caption {
188 | font-size: 1.2em;
189 | font-weight: bold;
190 | margin-bottom: 5px;
191 | }
192 | figure {
193 | display: block;
194 | text-align: center;
195 | }
196 | #wrapper img {
197 | border: none;
198 | display: block;
199 | margin: 1em auto;
200 | max-width: 100%;
201 | }
202 | figcaption {
203 | font-size: 0.8em;
204 | font-style: italic;
205 | }
206 | mark {
207 | background: #fefec0;
208 | padding:1px 3px;
209 | }
210 |
211 |
212 | /* classes */
213 |
214 | .markdowncitation {
215 | }
216 | .footnote {
217 | font-size: 0.8em;
218 | vertical-align: super;
219 | }
220 | .footnotes ol {
221 | font-weight: bold;
222 | }
223 | .footnotes ol li p {
224 | font-weight: normal;
225 | }
226 |
227 | /* custom formatting classes */
228 |
229 | .shadow {
230 | -webkit-box-shadow: 0 2px 4px #999;
231 | }
232 |
233 | .source {
234 | text-align: center;
235 | font-size: 0.8em;
236 | color: #777;
237 | margin: -40px;
238 | }
239 |
240 | @media screen {
241 | .inverted, .inverted #wrapper {
242 | background-color: #1a1a1a !important;
243 | color: #bebebe !important;
244 |
245 | /* SANS-SERIF */
246 | font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
247 | -webkit-font-smoothing: antialiased !important;
248 |
249 | /* SERIF */
250 | /*
251 | font-family: "Cochin", "Baskerville", "Georgia", serif !important;
252 | -webkit-font-smoothing: subpixel-antialiased !important;
253 | */
254 | /* MONO */
255 | /*
256 | font-family: "Courier", mono !important;
257 | -webkit-font-smoothing: antialiased !important;
258 | */
259 | }
260 | .inverted a {
261 | color: #308bd8 !important;
262 | }
263 | .inverted hr {
264 | color: #666 !important;
265 | border: 0;
266 | background-color: #666 !important;
267 | -webkit-box-shadow: none !important;
268 | }
269 | .inverted pre {
270 | background-color: #222 !important;
271 | border-color: #3c3c3c !important;
272 | }
273 | .inverted code {
274 | background-color: #222 !important;
275 | border-color: #3c3c3c !important;
276 | }
277 | .inverted blockquote {
278 | border-color: #333 !important;
279 | color: #999 !important;
280 | }
281 | .inverted table {
282 | border-color: #3c3c3c !important;
283 | }
284 | .inverted table th {
285 | background-color: #222 !important;
286 | border-color: #3c3c3c !important;
287 | }
288 | .inverted table td {
289 | border-color: #3c3c3c !important;
290 | }
291 | .inverted mark {
292 | background: #bc990b !important;
293 | color:#000 !important;
294 | }
295 | .inverted .shadow { -webkit-box-shadow: 0 2px 4px #000 !important; }
296 | #wrapper {
297 | background: transparent;
298 | margin: 40px;
299 | }
300 | }
301 |
302 | /* Printing support */
303 | @media print {
304 | body {
305 | overflow: auto;
306 | }
307 | img, pre, blockquote, table, figure {
308 | page-break-inside: avoid;
309 | }
310 | pre, code {
311 | border: none !important;
312 | }
313 | #wrapper {
314 | background: #fff;
315 | position: relative;
316 | text-indent: 0px;
317 | padding: 10px;
318 | font-size:85%;
319 | }
320 | .footnotes {
321 | page-break-before: always;
322 | }
323 | }
--------------------------------------------------------------------------------
/marked/github-syntax.css:
--------------------------------------------------------------------------------
1 | /*
2 |
3 | github.com style (c) Vasily Polovnyov
4 |
5 | */
6 |
7 | .hljs {
8 | display: block; padding: 0.5em;
9 | color: #333;
10 | background: #f8f8f8
11 | }
12 |
13 | .hljs-comment,
14 | .hljs-template_comment,
15 | .diff .hljs-header,
16 | .hljs-javadoc {
17 | color: #998;
18 | font-style: italic
19 | }
20 |
21 | .hljs-keyword,
22 | .css .rule .hljs-keyword,
23 | .hljs-winutils,
24 | .javascript .hljs-title,
25 | .nginx .hljs-title,
26 | .hljs-subst,
27 | .hljs-request,
28 | .hljs-status {
29 | color: #333;
30 | font-weight: bold
31 | }
32 |
33 | .hljs-number,
34 | .hljs-hexcolor,
35 | .ruby .hljs-constant {
36 | color: #099;
37 | }
38 |
39 | .hljs-string,
40 | .hljs-tag .hljs-value,
41 | .hljs-phpdoc,
42 | .tex .hljs-formula {
43 | color: #d14
44 | }
45 |
46 | .hljs-title,
47 | .hljs-id,
48 | .coffeescript .hljs-params,
49 | .scss .hljs-preprocessor {
50 | color: #900;
51 | font-weight: bold
52 | }
53 |
54 | .javascript .hljs-title,
55 | .lisp .hljs-title,
56 | .clojure .hljs-title,
57 | .hljs-subst {
58 | font-weight: normal
59 | }
60 |
61 | .hljs-class .hljs-title,
62 | .haskell .hljs-type,
63 | .vhdl .hljs-literal,
64 | .tex .hljs-command {
65 | color: #458;
66 | font-weight: bold
67 | }
68 |
69 | .hljs-tag,
70 | .hljs-tag .hljs-title,
71 | .hljs-rules .hljs-property,
72 | .django .hljs-tag .hljs-keyword {
73 | color: #000080;
74 | font-weight: normal
75 | }
76 |
77 | .hljs-attribute,
78 | .hljs-variable,
79 | .lisp .hljs-body {
80 | color: #008080
81 | }
82 |
83 | .hljs-regexp {
84 | color: #009926
85 | }
86 |
87 | .hljs-symbol,
88 | .ruby .hljs-symbol .hljs-string,
89 | .lisp .hljs-keyword,
90 | .tex .hljs-special,
91 | .hljs-prompt {
92 | color: #990073
93 | }
94 |
95 | .hljs-built_in,
96 | .lisp .hljs-title,
97 | .clojure .hljs-built_in {
98 | color: #0086b3
99 | }
100 |
101 | .hljs-preprocessor,
102 | .hljs-pragma,
103 | .hljs-pi,
104 | .hljs-doctype,
105 | .hljs-shebang,
106 | .hljs-cdata {
107 | color: #999;
108 | font-weight: bold
109 | }
110 |
111 | .hljs-deletion {
112 | background: #fdd
113 | }
114 |
115 | .hljs-addition {
116 | background: #dfd
117 | }
118 |
119 | .diff .hljs-change {
120 | background: #0086b3
121 | }
122 |
123 | .hljs-chunk {
124 | color: #aaa
125 | }
126 |
--------------------------------------------------------------------------------
/marked/github.css:
--------------------------------------------------------------------------------
1 | /*! normalize.css v2.1.3 | MIT License | git.io/normalize */
2 |
3 | /* https://gist.github.com/Dashed/6714393 */
4 |
5 | /* ==========================================================================
6 | HTML5 display definitions
7 | ========================================================================== */
8 |
9 | /**
10 | * Correct `block` display not defined in IE 8/9.
11 | */
12 |
13 | article,
14 | aside,
15 | details,
16 | figcaption,
17 | figure,
18 | footer,
19 | header,
20 | hgroup,
21 | main,
22 | nav,
23 | section,
24 | summary {
25 | display: block;
26 | }
27 |
28 | /**
29 | * Correct `inline-block` display not defined in IE 8/9.
30 | */
31 |
32 | audio,
33 | canvas,
34 | video {
35 | display: inline-block;
36 | }
37 |
38 | /**
39 | * Prevent modern browsers from displaying `audio` without controls.
40 | * Remove excess height in iOS 5 devices.
41 | */
42 |
43 | audio:not([controls]) {
44 | display: none;
45 | height: 0;
46 | }
47 |
48 | /**
49 | * Address `[hidden]` styling not present in IE 8/9.
50 | * Hide the `template` element in IE, Safari, and Firefox < 22.
51 | */
52 |
53 | [hidden],
54 | template {
55 | display: none;
56 | }
57 |
58 | /* ==========================================================================
59 | Base
60 | ========================================================================== */
61 |
62 | /**
63 | * 1. Set default font family to sans-serif.
64 | * 2. Prevent iOS text size adjust after orientation change, without disabling
65 | * user zoom.
66 | */
67 |
68 | html {
69 | font-family: sans-serif; /* 1 */
70 | -ms-text-size-adjust: 100%; /* 2 */
71 | -webkit-text-size-adjust: 100%; /* 2 */
72 | }
73 |
74 | /**
75 | * Remove default margin.
76 | */
77 |
78 | body {
79 | margin: 0;
80 | }
81 |
82 | /* ==========================================================================
83 | Links
84 | ========================================================================== */
85 |
86 | /**
87 | * Remove the gray background color from active links in IE 10.
88 | */
89 |
90 | a {
91 | background: transparent;
92 | }
93 |
94 | /**
95 | * Address `outline` inconsistency between Chrome and other browsers.
96 | */
97 |
98 | a:focus {
99 | outline: thin dotted;
100 | }
101 |
102 | /**
103 | * Improve readability when focused and also mouse hovered in all browsers.
104 | */
105 |
106 | a:active,
107 | a:hover {
108 | outline: 0;
109 | }
110 |
111 | /* ==========================================================================
112 | Typography
113 | ========================================================================== */
114 |
115 | /**
116 | * Address variable `h1` font-size and margin within `section` and `article`
117 | * contexts in Firefox 4+, Safari 5, and Chrome.
118 | */
119 |
120 | h1 {
121 | font-size: 2em;
122 | margin: 0.67em 0;
123 | }
124 |
125 | /**
126 | * Address styling not present in IE 8/9, Safari 5, and Chrome.
127 | */
128 |
129 | abbr[title] {
130 | border-bottom: 1px dotted;
131 | }
132 |
133 | /**
134 | * Address style set to `bolder` in Firefox 4+, Safari 5, and Chrome.
135 | */
136 |
137 | b,
138 | strong {
139 | font-weight: bold;
140 | }
141 |
142 | /**
143 | * Address styling not present in Safari 5 and Chrome.
144 | */
145 |
146 | dfn {
147 | font-style: italic;
148 | }
149 |
150 | /**
151 | * Address differences between Firefox and other browsers.
152 | */
153 |
154 | hr {
155 | -moz-box-sizing: content-box;
156 | box-sizing: content-box;
157 | height: 0;
158 | }
159 |
160 | /**
161 | * Address styling not present in IE 8/9.
162 | */
163 |
164 | mark {
165 | background: #ff0;
166 | color: #000;
167 | }
168 |
169 | /**
170 | * Correct font family set oddly in Safari 5 and Chrome.
171 | */
172 |
173 | code,
174 | kbd,
175 | pre,
176 | samp {
177 | font-family: monospace, serif;
178 | font-size: 1em;
179 | }
180 |
181 | /**
182 | * Improve readability of pre-formatted text in all browsers.
183 | */
184 |
185 | pre {
186 | white-space: pre-wrap;
187 | }
188 |
189 | /**
190 | * Set consistent quote types.
191 | */
192 |
193 | q {
194 | quotes: "\201C" "\201D" "\2018" "\2019";
195 | }
196 |
197 | /**
198 | * Address inconsistent and variable font size in all browsers.
199 | */
200 |
201 | small {
202 | font-size: 80%;
203 | }
204 |
205 | /**
206 | * Prevent `sub` and `sup` affecting `line-height` in all browsers.
207 | */
208 |
209 | sub,
210 | sup {
211 | font-size: 75%;
212 | line-height: 0;
213 | position: relative;
214 | vertical-align: baseline;
215 | }
216 |
217 | sup {
218 | top: -0.5em;
219 | }
220 |
221 | sub {
222 | bottom: -0.25em;
223 | }
224 |
225 | /* ==========================================================================
226 | Embedded content
227 | ========================================================================== */
228 |
229 | /**
230 | * Remove border when inside `a` element in IE 8/9.
231 | */
232 |
233 | img {
234 | border: 0;
235 | }
236 |
237 | /**
238 | * Correct overflow displayed oddly in IE 9.
239 | */
240 |
241 | svg:not(:root) {
242 | overflow: hidden;
243 | }
244 |
245 | /* ==========================================================================
246 | Figures
247 | ========================================================================== */
248 |
249 | /**
250 | * Address margin not present in IE 8/9 and Safari 5.
251 | */
252 |
253 | figure {
254 | margin: 0;
255 | }
256 |
257 | /* ==========================================================================
258 | Forms
259 | ========================================================================== */
260 |
261 | /**
262 | * Define consistent border, margin, and padding.
263 | */
264 |
265 | fieldset {
266 | border: 1px solid #c0c0c0;
267 | margin: 0 2px;
268 | padding: 0.35em 0.625em 0.75em;
269 | }
270 |
271 | /**
272 | * 1. Correct `color` not being inherited in IE 8/9.
273 | * 2. Remove padding so people aren't caught out if they zero out fieldsets.
274 | */
275 |
276 | legend {
277 | border: 0; /* 1 */
278 | padding: 0; /* 2 */
279 | }
280 |
281 | /**
282 | * 1. Correct font family not being inherited in all browsers.
283 | * 2. Correct font size not being inherited in all browsers.
284 | * 3. Address margins set differently in Firefox 4+, Safari 5, and Chrome.
285 | */
286 |
287 | button,
288 | input,
289 | select,
290 | textarea {
291 | font-family: inherit; /* 1 */
292 | font-size: 100%; /* 2 */
293 | margin: 0; /* 3 */
294 | }
295 |
296 | /**
297 | * Address Firefox 4+ setting `line-height` on `input` using `!important` in
298 | * the UA stylesheet.
299 | */
300 |
301 | button,
302 | input {
303 | line-height: normal;
304 | }
305 |
306 | /**
307 | * Address inconsistent `text-transform` inheritance for `button` and `select`.
308 | * All other form control elements do not inherit `text-transform` values.
309 | * Correct `button` style inheritance in Chrome, Safari 5+, and IE 8+.
310 | * Correct `select` style inheritance in Firefox 4+ and Opera.
311 | */
312 |
313 | button,
314 | select {
315 | text-transform: none;
316 | }
317 |
318 | /**
319 | * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
320 | * and `video` controls.
321 | * 2. Correct inability to style clickable `input` types in iOS.
322 | * 3. Improve usability and consistency of cursor style between image-type
323 | * `input` and others.
324 | */
325 |
326 | button,
327 | html input[type="button"], /* 1 */
328 | input[type="reset"],
329 | input[type="submit"] {
330 | -webkit-appearance: button; /* 2 */
331 | cursor: pointer; /* 3 */
332 | }
333 |
334 | /**
335 | * Re-set default cursor for disabled elements.
336 | */
337 |
338 | button[disabled],
339 | html input[disabled] {
340 | cursor: default;
341 | }
342 |
343 | /**
344 | * 1. Address box sizing set to `content-box` in IE 8/9/10.
345 | * 2. Remove excess padding in IE 8/9/10.
346 | */
347 |
348 | input[type="checkbox"],
349 | input[type="radio"] {
350 | box-sizing: border-box; /* 1 */
351 | padding: 0; /* 2 */
352 | }
353 |
354 | /**
355 | * 1. Address `appearance` set to `searchfield` in Safari 5 and Chrome.
356 | * 2. Address `box-sizing` set to `border-box` in Safari 5 and Chrome
357 | * (include `-moz` to future-proof).
358 | */
359 |
360 | input[type="search"] {
361 | -webkit-appearance: textfield; /* 1 */
362 | -moz-box-sizing: content-box;
363 | -webkit-box-sizing: content-box; /* 2 */
364 | box-sizing: content-box;
365 | }
366 |
367 | /**
368 | * Remove inner padding and search cancel button in Safari 5 and Chrome
369 | * on OS X.
370 | */
371 |
372 | input[type="search"]::-webkit-search-cancel-button,
373 | input[type="search"]::-webkit-search-decoration {
374 | -webkit-appearance: none;
375 | }
376 |
377 | /**
378 | * Remove inner padding and border in Firefox 4+.
379 | */
380 |
381 | button::-moz-focus-inner,
382 | input::-moz-focus-inner {
383 | border: 0;
384 | padding: 0;
385 | }
386 |
387 | /**
388 | * 1. Remove default vertical scrollbar in IE 8/9.
389 | * 2. Improve readability and alignment in all browsers.
390 | */
391 |
392 | textarea {
393 | overflow: auto; /* 1 */
394 | vertical-align: top; /* 2 */
395 | }
396 |
397 | /* ==========================================================================
398 | Tables
399 | ========================================================================== */
400 |
401 | /**
402 | * Remove most spacing between table cells.
403 | */
404 |
405 | table {
406 | border-collapse: collapse;
407 | border-spacing: 0;
408 | }
409 |
410 | .go-top {
411 | position: fixed;
412 | bottom: 2em;
413 | right: 2em;
414 | text-decoration: none;
415 | background-color: #E0E0E0;
416 | font-size: 12px;
417 | padding: 1em;
418 | display: inline;
419 | }
420 |
421 | /* Github css */
422 |
423 | html,body{ margin: auto;
424 | padding-right: 1em;
425 | padding-left: 1em;
426 | max-width: 44em; color:black;}*:not('#mkdbuttons'){margin:0;padding:0}body{font:13.34px helvetica,arial,freesans,clean,sans-serif;-webkit-font-smoothing:subpixel-antialiased;line-height:1.4;padding:3px;background:#fff;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}p{margin:1em 0}a{color:#4183c4;text-decoration:none}body{background-color:#fff;padding:30px;margin:15px;font-size:14px;line-height:1.6}body>*:first-child{margin-top:0!important}body>*:last-child{margin-bottom:0!important}@media screen{body{box-shadow:0 0 0 1px #cacaca,0 0 0 4px #eee}}h1,h2,h3,h4,h5,h6{margin:20px 0 10px;padding:0;font-weight:bold;-webkit-font-smoothing:subpixel-antialiased;cursor:text}h1{font-size:28px;color:#000}h2{font-size:24px;border-bottom:1px solid #ccc;color:#000}h3{font-size:18px;color:#333}h4{font-size:16px;color:#333}h5{font-size:14px;color:#333}h6{color:#777;font-size:14px}p,blockquote,table,pre{margin:15px 0}ul{padding-left:30px}ol{padding-left:30px}ol li ul:first-of-type{margin-top:0}hr{background:transparent url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAYAAAAECAYAAACtBE5DAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMC1jMDYwIDYxLjEzNDc3NywgMjAxMC8wMi8xMi0xNzozMjowMCAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNSBNYWNpbnRvc2giIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6OENDRjNBN0E2NTZBMTFFMEI3QjRBODM4NzJDMjlGNDgiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6OENDRjNBN0I2NTZBMTFFMEI3QjRBODM4NzJDMjlGNDgiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDo4Q0NGM0E3ODY1NkExMUUwQjdCNEE4Mzg3MkMyOUY0OCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDo4Q0NGM0E3OTY1NkExMUUwQjdCNEE4Mzg3MkMyOUY0OCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PqqezsUAAAAfSURBVHjaYmRABcYwBiM2QSA4y4hNEKYDQxAEAAIMAHNGAzhkPOlYAAAAAElFTkSuQmCC) repeat-x 0 0;border:0 none;color:#ccc;height:4px;padding:0}body>h2:first-child{margin-top:0;padding-top:0}body>h1:first-child{margin-top:0;padding-top:0}body>h1:first-child+h2{margin-top:0;padding-top:0}body>h3:first-child,body>h4:first-child,body>h5:first-child,body>h6:first-child{margin-top:0;padding-top:0}a:first-child h1,a:first-child h2,a:first-child h3,a:first-child h4,a:first-child h5,a:first-child h6{margin-top:0;padding-top:0}h1+p,h2+p,h3+p,h4+p,h5+p,h6+p,ul li>:first-child,ol li>:first-child{margin-top:0}dl{padding:0}dl dt{font-size:14px;font-weight:bold;font-style:italic;padding:0;margin:15px 0 5px}dl dt:first-child{padding:0}dl dt>:first-child{margin-top:0}dl dt>:last-child{margin-bottom:0}dl dd{margin:0 0 15px;padding:0 15px}dl dd>:first-child{margin-top:0}dl dd>:last-child{margin-bottom:0}blockquote{border-left:4px solid #DDD;padding:0 15px;color:#777}blockquote>:first-child{margin-top:0}blockquote>:last-child{margin-bottom:0}table{border-collapse:collapse;border-spacing:0;font-size:100%;font:inherit}table th{font-weight:bold;border:1px solid #ccc;padding:6px 13px}table td{border:1px solid #ccc;padding:6px 13px}table tr{border-top:1px solid #ccc;background-color:#fff}table tr:nth-child(2n){background-color:#f8f8f8}img{max-width:100%}code,tt{margin:0 2px;padding:0 5px;white-space:nowrap;border:1px solid #eaeaea;background-color:#f8f8f8;border-radius:3px;font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;color:#333}pre>code{margin:0;padding:0;white-space:pre;border:0;background:transparent}.highlight pre{background-color:#f8f8f8;border:1px solid #ccc;font-size:13px;line-height:19px;overflow:auto;padding:6px 10px;border-radius:3px}pre{background-color:#f8f8f8;border:1px solid #ccc;font-size:13px;line-height:19px;overflow:auto;padding:6px 10px;border-radius:3px}pre code,pre tt{background-color:transparent;border:0}.poetry pre{font-family:Georgia,Garamond,serif!important;font-style:italic;font-size:110%!important;line-height:1.6em;display:block;margin-left:1em}.poetry pre code{font-family:Georgia,Garamond,serif!important;word-break:break-all;word-break:break-word;-webkit-hyphens:auto;-moz-hyphens:auto;hyphens:auto;white-space:pre-wrap}sup,sub,a.footnote{font-size:1.4ex;height:0;line-height:1;vertical-align:super;position:relative}sub{vertical-align:sub;top:-1px}@media print{body{background:#fff}img,pre,blockquote,table,figure{page-break-inside:avoid}body{background:#fff;border:0}code{background-color:#fff;color:#333!important;padding:0 .2em;border:1px solid #dedede}pre{background:#fff}pre code{background-color:white!important;overflow:visible}}@media screen{body.inverted{color:#eee!important;border-color:#555;box-shadow:none}.inverted body,.inverted hr .inverted p,.inverted td,.inverted li,.inverted h1,.inverted h2,.inverted h3,.inverted h4,.inverted h5,.inverted h6,.inverted th,.inverted .math,.inverted caption,.inverted dd,.inverted dt,.inverted blockquote{color:#eee!important;border-color:#555;box-shadow:none}.inverted td,.inverted th{background:#333}.inverted h2{border-color:#555}.inverted hr{border-color:#777;border-width:1px!important}::selection{background:rgba(157,193,200,0.5)}h1::selection{background-color:rgba(45,156,208,0.3)}h2::selection{background-color:rgba(90,182,224,0.3)}h3::selection,h4::selection,h5::selection,h6::selection,li::selection,ol::selection{background-color:rgba(133,201,232,0.3)}code::selection{background-color:rgba(0,0,0,0.7);color:#eee}code span::selection{background-color:rgba(0,0,0,0.7)!important;color:#eee!important}a::selection{background-color:rgba(255,230,102,0.2)}.inverted a::selection{background-color:rgba(255,230,102,0.6)}td::selection,th::selection,caption::selection{background-color:rgba(180,237,95,0.5)}.inverted{background:#0b2531;background:#252a2a}.inverted body{background:#252a2a}.inverted a{color:#acd1d5}}.highlight .c{color:#998;font-style:italic}.highlight .err{color:#a61717;background-color:#e3d2d2}.highlight .k,.highlight .o{font-weight:bold}.highlight .cm{color:#998;font-style:italic}.highlight .cp{color:#999;font-weight:bold}.highlight .c1{color:#998;font-style:italic}.highlight .cs{color:#999;font-weight:bold;font-style:italic}.highlight .gd{color:#000;background-color:#fdd}.highlight .gd .x{color:#000;background-color:#faa}.highlight .ge{font-style:italic}.highlight .gr{color:#a00}.highlight .gh{color:#999}.highlight .gi{color:#000;background-color:#dfd}.highlight .gi .x{color:#000;background-color:#afa}.highlight .go{color:#888}.highlight .gp{color:#555}.highlight .gs{font-weight:bold}.highlight .gu{color:#800080;font-weight:bold}.highlight .gt{color:#a00}.highlight .kc,.highlight .kd,.highlight .kn,.highlight .kp,.highlight .kr{font-weight:bold}.highlight .kt{color:#458;font-weight:bold}.highlight .m{color:#099}.highlight .s{color:#d14}.highlight .na{color:#008080}.highlight .nb{color:#0086b3}.highlight .nc{color:#458;font-weight:bold}.highlight .no{color:#008080}.highlight .ni{color:#800080}.highlight .ne,.highlight .nf{color:#900;font-weight:bold}.highlight .nn{color:#555}.highlight .nt{color:#000080}.highlight .nv{color:#008080}.highlight .ow{font-weight:bold}.highlight .w{color:#bbb}.highlight .mf,.highlight .mh,.highlight .mi,.highlight .mo{color:#099}.highlight .sb,.highlight .sc,.highlight .sd,.highlight .s2,.highlight .se,.highlight .sh,.highlight .si,.highlight .sx{color:#d14}.highlight .sr{color:#009926}.highlight .s1{color:#d14}.highlight .ss{color:#990073}.highlight .bp{color:#999}.highlight .vc,.highlight .vg,.highlight .vi{color:#008080}.highlight .il{color:#099}.highlight .gc{color:#999;background-color:#eaf2f5}.type-csharp .highlight .k,.type-csharp .highlight .kt{color:#00F}.type-csharp .highlight .nf{color:#000;font-weight:normal}.type-csharp .highlight .nc{color:#2b91af}.type-csharp .highlight .nn{color:#000}.type-csharp .highlight .s,.type-csharp .highlight .sc{color:#a31515}
--------------------------------------------------------------------------------
/marked/kult.css:
--------------------------------------------------------------------------------
1 | /*
2 | This document has been created with Marked.app
3 | Please leave this notice in place, along with any additional credits below.
4 | ---------------------------------------------------------------
5 | Title: Kult
6 | Author: Peter Sziebig - @bigpe
7 | Description: Easy to read
8 | */
9 |
10 | @font-face {
11 | font-family: "Ubuntu";
12 | font-style: normal;
13 | font-weight: 300;
14 | src: local("Ubuntu Light"), local("Ubuntu-Light"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/WtcvfJHWXKxx4x0kuS1kobO3LdcAZYWl9Si6vvxL-qU.woff") format("woff");
15 | }
16 | @font-face {
17 | font-family: "Ubuntu";
18 | font-style: normal;
19 | font-weight: 400;
20 | src: local("Ubuntu"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/CGXpU_uR_FUfdeyCjAWgZ-vvDin1pK8aKteLpeZ5c0A.woff") format("woff");
21 | }
22 | @font-face {
23 | font-family: "Ubuntu";
24 | font-style: normal;
25 | font-weight: 500;
26 | src: local("Ubuntu Medium"), local("Ubuntu-Medium"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/gMhvhm-nVj1086DvGgmzB7O3LdcAZYWl9Si6vvxL-qU.woff") format("woff");
27 | }
28 | @font-face {
29 | font-family: "Ubuntu";
30 | font-style: normal;
31 | font-weight: 700;
32 | src: local("Ubuntu Bold"), local("Ubuntu-Bold"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/nsLtvfQoT-rVwGTHHnkeJrO3LdcAZYWl9Si6vvxL-qU.woff") format("woff");
33 | }
34 | @font-face {
35 | font-family: "Ubuntu";
36 | font-style: italic;
37 | font-weight: 300;
38 | src: local("Ubuntu Light Italic"), local("Ubuntu-LightItalic"), url("http://themes.googleusercontent.com/static/fonts/ubuntu/v4/DZ_YjBPqZ88vcZCcIXm6VqfTCPadK0KLfdEfFtGWCYw.woff") format("woff");
39 | }
40 |
41 |
42 |
43 | html {
44 | font-size: 100%;
45 | }
46 | html, button, input, select, textarea {
47 | font-family: sans-serif;
48 | }
49 |
50 | html, body, button, input, select, textarea {
51 | color: #57534A;
52 | font-family: "Ubuntu","Myriad Pro","Myriad",sans-serif;
53 | font-size: 18px;
54 | font-weight: 300;
55 | }
56 |
57 | body{
58 | margin: 0 auto;
59 | background-color: #FFFFFF;
60 | }
61 |
62 | body, textarea {
63 | line-height: 1.4;
64 | }
65 |
66 |
67 | body:after {
68 | clear: both;
69 | content: "";
70 | display: table;
71 | }
72 |
73 | body {
74 | padding-left: 6rem;
75 | padding-right: 6rem;
76 | margin-left: auto;
77 | margin-right: auto;
78 | max-width: 42rem;
79 | display: block;
80 | }
81 |
82 |
83 |
84 | h1, h2, h3, dt {
85 | color: #423F37;
86 | font-weight: 700;
87 | }
88 |
89 | h1 {
90 | font-size: 2em;
91 | margin: 0.67em 0;
92 | }
93 | h2, .article-list .article-title {
94 | font-size: 1.5em;
95 | margin: 0.83em 0;
96 | }
97 | h3, dt {
98 | font-size: 1.17em;
99 | margin: 1em 0;
100 | }
101 | h4 {
102 | font-size: 1em;
103 | margin: 1.33em 0;
104 | }
105 | h5 {
106 | font-size: 0.83em;
107 | margin: 1.67em 0;
108 | }
109 | h6 {
110 | font-size: 0.75em;
111 | margin: 2.33em 0;
112 | }
113 |
114 |
115 | a {
116 | color: #8DB359;
117 | cursor: pointer;
118 | outline: 0 none;
119 | text-decoration: underline;
120 | }
121 |
122 | a:hover {
123 | outline: 0 none;
124 | color: #739544;
125 | }
126 |
127 |
128 | p, pre {
129 | margin: 1em 0;
130 | }
131 | code, kbd, pre, samp {
132 | font-family: monospace,serif;
133 | font-size: 1em;
134 | margin: 0;
135 | padding: 0;
136 |
137 | }
138 | pre {
139 | white-space: pre-wrap;
140 | word-wrap: break-word;
141 | }
142 |
143 | pre {
144 | background-color: #F8F5F0;
145 | font-size: 0.7rem;
146 | overflow-x: auto;
147 | padding: 1.3rem;
148 | position: relative;
149 | white-space: pre;
150 | word-wrap: normal;
151 | }
152 | pre, code, kbd, samp {
153 | margin: 0;
154 | }
155 | code, kbd, pre, samp {
156 | font-family: monospace,serif;
157 | }
158 |
159 | code {
160 | color: #423F37;
161 | }
162 |
163 |
164 | aside {
165 | display: block;
166 | float: right;
167 | width: 390px;
168 | }
169 |
170 |
171 | b, strong {
172 | font-weight: bold;
173 | color: #423F37;
174 | font-weight: 700;
175 | }
176 |
177 | blockquote {
178 | color: #423F37;
179 | font-size: 1.25em;
180 | font-weight: 700;
181 | margin: 1em 40px;
182 | }
183 |
184 | blockquote {
185 | margin-bottom: 2em;
186 | margin-top: 2em;
187 | }
188 |
189 | figure {
190 | margin-left: -4.5rem;
191 | margin-right: -4.5rem;
192 | margin-bottom: 2em;
193 | margin-top: 2em;
194 | }
195 |
196 |
197 | hr {
198 | -moz-border-bottom-colors: none;
199 | -moz-border-left-colors: none;
200 | -moz-border-right-colors: none;
201 | -moz-border-top-colors: none;
202 | border-color: -moz-use-text-color -moz-use-text-color #ECE6DA;
203 | border-image: none;
204 | border-style: none none solid;
205 | border-width: medium medium 1px;
206 | margin: 3em 6em;
207 | }
208 |
209 |
210 | img {
211 | max-width: 100%;
212 | display: block;
213 | border: 0 none;
214 | }
215 |
216 |
217 | ol > li:before {
218 | color: #423F37;
219 | content: counter(ol, decimal) ".";
220 | counter-increment: ol;
221 | font-weight: 700;
222 | margin-right: 0.333em;
223 | position: absolute;
224 | right: 100%;
225 | }
226 |
227 | ul > li:before {
228 | background-color: #423F37;
229 | border-radius: 14px 14px 14px 14px;
230 | content: "";
231 | height: 6px;
232 | margin-right: 0.333em;
233 | margin-top: 0.55em;
234 | position: absolute;
235 | right: 100%;
236 | width: 6px;
237 | }
238 |
239 | ol, ul, dl {
240 | margin-left: 2rem;
241 | padding: 0;
242 | }
243 | ol {
244 | counter-reset: ol;
245 | }
246 | li + li, dd + dt {
247 | margin-top: 0.5em;
248 | }
249 |
250 | ul > li {
251 | position: relative;
252 | }
253 |
254 | ol > li {
255 | position: relative;
256 | }
257 | li {
258 | list-style: none outside none;
259 | }
260 |
261 |
262 | figure > figcaption {
263 | margin-top: 0.5em;
264 | }
265 | small, dd, figcaption {
266 | color: #A19C91;
267 | display: block;
268 | font-size: 0.8rem;
269 | font-style: italic;
270 | line-height: 1.2;
271 | }
272 |
273 |
274 | tbody{display:table-row-group}
275 | tfoot{display:table-footer-group}
276 | table{margin-bottom:2em;font-size: 0.8em;padding:0;border-collapse:collapse;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.35);width:80%;margin:0 auto 2em auto}
277 | table th,table td{padding:10px 10px 9px;line-height:18px;text-align:left}
278 | table th{
279 | padding-top:9px;!important;text-transform:uppercase;vertical-align:middle}
280 | table td{vertical-align:top;border-top:1px solid #ddd;}
281 | table tbody th{border-top:1px solid #ddd;vertical-align:top}
282 | table{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}
283 | table th+th,table td+td,table th+td{border-left:1px solid #ddd}
284 | table thead tr:first-child th:first-child,table tbody tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0}
285 | table thead tr:first-child th:last-child,table tbody tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0}
286 | table tbody tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px}
287 | table tbody tr:last-child td:last-child{-webkit-border-radius:0 0 4px 0;-moz-border-radius:0 0 4px 0;border-radius:0 0 4px 0}
288 | tbody tr:nth-child(odd){background-color:rgba(0,0,0,0.03)}
289 |
290 | caption{display:table-caption;font-weight:300;font-size:1.3em;text-transform:uppercase;letter-spacing:2px;word-spacing:.2em;background:rgba(0,0,0,.75);color:#EEE;padding:4px;-webkit-border-radius:4px;margin:4px 0;-webkit-box-shadow:2px 2px 2px rgba(0,0,0,.35)}
291 |
292 | /* grey out placeholders */
293 | :-moz-placeholder {
294 | color: #bfbfbf;
295 | }
296 | ::-webkit-input-placeholder {
297 | color: #bfbfbf;
298 | }
299 |
300 |
301 | .article-date {
302 | color: #C7C2B8;
303 | display: block;
304 | font-size: 0.8rem;
305 | }
306 |
307 |
--------------------------------------------------------------------------------
/marked/kultiad-serif.css:
--------------------------------------------------------------------------------
1 | /*
2 | This document has been created with Marked.app
3 | Please leave this notice in place, along with any additional credits below.
4 | ---------------------------------------------------------------
5 | Title: Kultiad
6 | Author: Peter Sziebig - @bigpe; Modified by Kieran Healy - @kjhealy
7 | Description: Easy to read. Pandoc style elements.
8 | */
9 |
10 |
11 |
12 |
13 | html {
14 | font-size: 100%;
15 | }
16 | html, button, input, select, textarea {
17 | font-family: sans-serif;
18 | }
19 |
20 | html, body, button, input, select, textarea {
21 | color: #57534A;
22 | font-family: "PT Serif","Calluna","Arno Pro",serif;
23 | font-size: 18px;
24 | font-weight: 300;
25 | }
26 |
27 | body{
28 | margin: 0 auto;
29 | background-color: #FFFFFF;
30 | }
31 |
32 | body, textarea {
33 | line-height: 1.4;
34 | }
35 |
36 |
37 | body:after {
38 | clear: both;
39 | content: "";
40 | display: table;
41 | }
42 |
43 | body {
44 | padding-left: 4rem;
45 | padding-right: 4rem;
46 | margin-left: auto;
47 | margin-right: auto;
48 | max-width: 44rem;
49 | display: block;
50 | }
51 |
52 |
53 |
54 | h1, h2, h3, dt {
55 | color: #423F37;
56 | font-weight: 700;
57 | }
58 |
59 | h1 {
60 | font-size: 2em;
61 | margin: 0.67em 0;
62 | }
63 | h2, .article-list .article-title {
64 | padding-top: 1em;
65 | padding-bottom: 0em;
66 | border-bottom: none;
67 | font-size: 1.5em;
68 | margin: 0.83em 0;
69 | }
70 | h3, dt {
71 | padding-top: 1em;
72 | font-size: 1.17em;
73 | font-style: italic;
74 | margin: 1em 0;
75 | }
76 | h4 {
77 | font-size: 1em;
78 | margin: 1.33em 0;
79 | }
80 | h5 {
81 | font-size: 0.83em;
82 | margin: 1.67em 0;
83 | }
84 | h6 {
85 | font-size: 0.75em;
86 | margin: 2.33em 0;
87 | }
88 |
89 |
90 | a {
91 | color: #8DB359;
92 | cursor: pointer;
93 | outline: 0 none;
94 | text-decoration: underline;
95 | }
96 |
97 | a:hover {
98 | outline: 0 none;
99 | color: #739544;
100 | }
101 |
102 |
103 | p, pre {
104 | margin: 1em 0;
105 | }
106 |
107 | code, kbd, pre, samp {
108 | font-family: monospace,serif;
109 | font-size: 1em;
110 | margin: 0;
111 | padding: 0;
112 |
113 | }
114 | pre {
115 | white-space: pre-wrap;
116 | word-wrap: break-word;
117 | }
118 |
119 | pre {
120 | background-color: #F8F5F0;
121 | font-size: 0.7rem;
122 | overflow-x: auto;
123 | padding: 1.3rem;
124 | position: relative;
125 | white-space: pre;
126 | word-wrap: normal;
127 | }
128 | pre, code, kbd, samp {
129 | margin: 0;
130 | }
131 | code, kbd, pre, samp {
132 | font-family: monospace,serif;
133 | }
134 |
135 | code {
136 | color: #423F37;
137 | }
138 |
139 |
140 | aside {
141 | display: block;
142 | float: right;
143 | width: 390px;
144 | }
145 |
146 |
147 | b, strong {
148 | font-weight: bold;
149 | color: #423F37;
150 | font-weight: 700;
151 | }
152 |
153 | blockquote {
154 | color: #423F37;
155 | margin: 1em 40px;
156 | }
157 |
158 | blockquote {
159 | margin-bottom: 2em;
160 | margin-top: 2em;
161 | }
162 |
163 | figure {
164 | margin-left: -4.5rem;
165 | margin-right: -4.5rem;
166 | margin-bottom: 2em;
167 | margin-top: 2em;
168 | }
169 |
170 |
171 | hr {
172 | -moz-border-bottom-colors: none;
173 | -moz-border-left-colors: none;
174 | -moz-border-right-colors: none;
175 | -moz-border-top-colors: none;
176 | border-color: -moz-use-text-color -moz-use-text-color #ECE6DA;
177 | border-image: none;
178 | border-style: none none solid;
179 | border-width: medium medium 1px;
180 | margin: 3em 6em;
181 | }
182 |
183 |
184 | img {
185 | max-width: 100%;
186 | display: block;
187 | border: 0 none;
188 | }
189 |
190 |
191 | ol > li:before {
192 | color: #423F37;
193 | content: counter(ol, decimal) ".";
194 | counter-increment: ol;
195 | font-weight: 700;
196 | margin-right: 0.333em;
197 | position: absolute;
198 | right: 100%;
199 | }
200 |
201 | ul > li:before {
202 | background-color: #423F37;
203 | border-radius: 14px 14px 14px 14px;
204 | content: "";
205 | height: 6px;
206 | margin-right: 0.333em;
207 | margin-top: 0.55em;
208 | position: absolute;
209 | right: 100%;
210 | width: 6px;
211 | }
212 |
213 | ol, ul, dl {
214 | margin-left: 2rem;
215 | padding: 0;
216 | }
217 | ol {
218 | counter-reset: ol;
219 | }
220 | li + li, dd + dt {
221 | margin-top: 0.5em;
222 | }
223 |
224 | ul > li {
225 | position: relative;
226 | }
227 |
228 | ol > li {
229 | position: relative;
230 | }
231 | li {
232 | list-style: none outside none;
233 | }
234 |
235 |
236 | figure > figcaption {
237 | margin-top: 0.5em;
238 | }
239 | small, dd, figcaption {
240 | color: #A19C91;
241 | display: block;
242 | font-size: 0.8rem;
243 | font-style: italic;
244 | line-height: 1.2;
245 | }
246 |
247 |
248 | tbody{display:table-row-group}
249 | tfoot{display:table-footer-group}
250 | table{margin-bottom:2em;font-size: 0.8em;padding:0;border-collapse:collapse;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.35);width:80%;margin:0 auto 2em auto}
251 | table th,table td{padding:10px 10px 9px;line-height:18px;text-align:left}
252 | table th{
253 | padding-top:9px;!important;text-transform:uppercase;vertical-align:middle}
254 | table td{vertical-align:top;border-top:1px solid #ddd;}
255 | table tbody th{border-top:1px solid #ddd;vertical-align:top}
256 | table{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}
257 | table th+th,table td+td,table th+td{border-left:1px solid #ddd}
258 | table thead tr:first-child th:first-child,table tbody tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0}
259 | table thead tr:first-child th:last-child,table tbody tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0}
260 | table tbody tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px}
261 | table tbody tr:last-child td:last-child{-webkit-border-radius:0 0 4px 0;-moz-border-radius:0 0 4px 0;border-radius:0 0 4px 0}
262 | tbody tr:nth-child(odd){background-color:rgba(0,0,0,0.03)}
263 |
264 | caption{display:table-caption;font-weight:300;font-size:1.3em;text-transform:uppercase;letter-spacing:2px;word-spacing:.2em;background:rgba(0,0,0,.75);color:#EEE;padding:4px;-webkit-border-radius:4px;margin:4px 0;-webkit-box-shadow:2px 2px 2px rgba(0,0,0,.35)}
265 |
266 | /* grey out placeholders */
267 | :-moz-placeholder {
268 | color: #bfbfbf;
269 | }
270 | ::-webkit-input-placeholder {
271 | color: #bfbfbf;
272 | }
273 |
274 |
275 | .article-date {
276 | color: #C7C2B8;
277 | display: block;
278 | font-size: 0.8rem;
279 | }
280 |
281 | .title{
282 | padding-bottom: 1em;
283 | }
284 |
285 | .author{
286 | padding-top: 0.5em;
287 | font-size:1.24em;
288 | line-height:0.5em;
289 | }
290 |
291 | .date {
292 | color: #C7C2B8;
293 | display: block;
294 | font-size: 0.8rem;
295 | }
296 |
297 | .caption {
298 | display: block;
299 | font-size: 0.8rem;
300 | font-style: italic;
301 | }
302 |
303 | .small{
304 | font-size:0.8em;
305 | }
306 |
307 | .affiliation{
308 | margin-top: 0;
309 | padding-top: 0;
310 | font-size:0.9em;
311 | font-style: italic;
312 | }
--------------------------------------------------------------------------------
/marked/kultiad.css:
--------------------------------------------------------------------------------
1 | /*
2 | This document has been created with Marked.app
3 | Please leave this notice in place, along with any additional credits below.
4 | ---------------------------------------------------------------
5 | Title: Kultiad
6 | Author: Peter Sziebig - @bigpe; Modified by Kieran Healy - @kjhealy
7 | Description: Easy to read. Pandoc style elements.
8 | */
9 |
10 |
11 |
12 |
13 | html {
14 | font-size: 100%;
15 | }
16 | html, button, input, select, textarea {
17 | font-family: sans-serif;
18 | }
19 |
20 | html, body, button, input, select, textarea {
21 | color: #57534A;
22 | font-family: "Fira Sans","Myriad Pro","Myriad",sans-serif;
23 | font-size: 18px;
24 | font-weight: 300;
25 | }
26 |
27 | body{
28 | margin: 0 auto;
29 | background-color: #FFFFFF;
30 | }
31 |
32 | body, textarea {
33 | line-height: 1.4;
34 | }
35 |
36 |
37 | body:after {
38 | clear: both;
39 | content: "";
40 | display: table;
41 | }
42 |
43 | body {
44 | padding-left: 4rem;
45 | padding-right: 4rem;
46 | margin-left: auto;
47 | margin-right: auto;
48 | max-width: 44rem;
49 | display: block;
50 | }
51 |
52 |
53 |
54 | h1, h2, h3, dt {
55 | color: #423F37;
56 | font-weight: 500;
57 | }
58 |
59 | h1 {
60 | font-size: 2.5em;
61 | margin: 0.67em 0;
62 | }
63 |
64 | h1, .title {
65 | margin-bottom: 1em;
66 | }
67 |
68 | h2, .article-list .article-title {
69 | font-size: 1.65em;
70 | margin: 1.25em 0 0 0;
71 | margin-top: 1.2em 0 0 0;
72 | padding-bottom:0;
73 | padding-top: 1em;
74 | }
75 | h3, dt {
76 | font-size: 1.17em;
77 | font-style: oblique;
78 | margin: 1.2em 0;
79 | margin-bottom: 0;
80 | padding-bottom:0;
81 | padding-top: 1em;
82 | }
83 | h4 {
84 | font-size: 1em;
85 | margin: 1.33em 0;
86 | }
87 | h5 {
88 | font-size: 0.83em;
89 | margin: 1.67em 0;
90 | }
91 | h6 {
92 | font-size: 0.75em;
93 | margin: 2.33em 0;
94 | }
95 |
96 |
97 | a {
98 | color: #8DB359;
99 | cursor: pointer;
100 | outline: 0 none;
101 | text-decoration: underline;
102 | }
103 |
104 | a:hover {
105 | outline: 0 none;
106 | color: #739544;
107 | }
108 |
109 |
110 | p, pre {
111 | margin: 1em 0;
112 | font-weight: 300;
113 | }
114 | code, kbd, pre, samp {
115 | font-family: monospace,serif;
116 | font-size: 1em;
117 | margin: 0;
118 | padding: 0;
119 |
120 | }
121 | pre {
122 | white-space: pre-wrap;
123 | word-wrap: break-word;
124 | }
125 |
126 | pre {
127 | background-color: #F8F5F0;
128 | font-size: 0.7rem;
129 | overflow-x: auto;
130 | padding: 1.3rem;
131 | position: relative;
132 | white-space: pre;
133 | word-wrap: normal;
134 | }
135 | pre, code, kbd, samp {
136 | margin: 0;
137 | }
138 | code, kbd, pre, samp {
139 | font-family: monospace,serif;
140 | }
141 |
142 | code {
143 | color: #423F37;
144 | }
145 |
146 |
147 | aside {
148 | display: block;
149 | float: right;
150 | width: 390px;
151 | }
152 |
153 |
154 | b, strong {
155 | font-weight: bold;
156 | color: #423F37;
157 | font-weight: 700;
158 | }
159 |
160 | blockquote {
161 | color: #423F37;
162 | margin: 1em 40px;
163 | }
164 |
165 | blockquote {
166 | margin-bottom: 2em;
167 | margin-top: 2em;
168 | }
169 |
170 | figure {
171 | margin-left: -4.5rem;
172 | margin-right: -4.5rem;
173 | margin-bottom: 2em;
174 | margin-top: 2em;
175 | }
176 |
177 |
178 | hr {
179 | -moz-border-bottom-colors: none;
180 | -moz-border-left-colors: none;
181 | -moz-border-right-colors: none;
182 | -moz-border-top-colors: none;
183 | border-color: -moz-use-text-color -moz-use-text-color #ECE6DA;
184 | border-image: none;
185 | border-style: none none solid;
186 | border-width: medium medium 1px;
187 | margin: 3em 6em;
188 | }
189 |
190 |
191 | img {
192 | max-width: 100%;
193 | display: block;
194 | border: 0 none;
195 | }
196 |
197 |
198 | ol > li:before {
199 | color: #423F37;
200 | content: counter(ol, decimal) ".";
201 | counter-increment: ol;
202 | font-weight: 700;
203 | margin-right: 0.333em;
204 | position: absolute;
205 | right: 100%;
206 | }
207 |
208 | ul > li:before {
209 | background-color: #423F37;
210 | border-radius: 14px 14px 14px 14px;
211 | content: "";
212 | height: 6px;
213 | margin-right: 0.333em;
214 | margin-top: 0.55em;
215 | position: absolute;
216 | right: 100%;
217 | width: 6px;
218 | }
219 |
220 | ol, ul, dl {
221 | margin-left: 2rem;
222 | padding: 0;
223 | }
224 | ol {
225 | counter-reset: ol;
226 | }
227 | li + li, dd + dt {
228 | margin-top: 0.5em;
229 | }
230 |
231 | ul > li {
232 | position: relative;
233 | }
234 |
235 | ol > li {
236 | position: relative;
237 | }
238 | li {
239 | list-style: none outside none;
240 | }
241 |
242 |
243 | figure > figcaption {
244 | margin-top: 0.5em;
245 | }
246 | small, dd, figcaption {
247 | color: #A19C91;
248 | display: block;
249 | font-size: 0.8rem;
250 | font-style: italic;
251 | line-height: 1.2;
252 | }
253 |
254 |
255 | tbody{display:table-row-group}
256 | tfoot{display:table-footer-group}
257 | table{margin-bottom:2em;font-size: 0.8em;padding:0;border-collapse:collapse;-webkit-box-shadow:1px 1px 2px rgba(0,0,0,.35);width:80%;margin:0 auto 2em auto}
258 | table th,table td{padding:10px 10px 9px;line-height:18px;text-align:left}
259 | table th{
260 | padding-top:9px;!important;text-transform:uppercase;vertical-align:middle}
261 | table td{vertical-align:top;border-top:1px solid #ddd;}
262 | table tbody th{border-top:1px solid #ddd;vertical-align:top}
263 | table{border:1px solid #ddd;border-collapse:separate;*border-collapse:collapse;-webkit-border-radius:4px;-moz-border-radius:4px;border-radius:4px}
264 | table th+th,table td+td,table th+td{border-left:1px solid #ddd}
265 | table thead tr:first-child th:first-child,table tbody tr:first-child td:first-child{-webkit-border-radius:4px 0 0 0;-moz-border-radius:4px 0 0 0;border-radius:4px 0 0 0}
266 | table thead tr:first-child th:last-child,table tbody tr:first-child td:last-child{-webkit-border-radius:0 4px 0 0;-moz-border-radius:0 4px 0 0;border-radius:0 4px 0 0}
267 | table tbody tr:last-child td:first-child{-webkit-border-radius:0 0 0 4px;-moz-border-radius:0 0 0 4px;border-radius:0 0 0 4px}
268 | table tbody tr:last-child td:last-child{-webkit-border-radius:0 0 4px 0;-moz-border-radius:0 0 4px 0;border-radius:0 0 4px 0}
269 | tbody tr:nth-child(odd){background-color:rgba(0,0,0,0.03)}
270 |
271 | caption{display:table-caption;font-weight:300;font-size:1.3em;text-transform:uppercase;letter-spacing:2px;word-spacing:.2em;background:rgba(0,0,0,.75);color:#EEE;padding:4px;-webkit-border-radius:4px;margin:4px 0;-webkit-box-shadow:2px 2px 2px rgba(0,0,0,.35)}
272 |
273 | /* grey out placeholders */
274 | :-moz-placeholder {
275 | color: #bfbfbf;
276 | }
277 | ::-webkit-input-placeholder {
278 | color: #bfbfbf;
279 | }
280 |
281 |
282 | .article-date {
283 | color: #C7C2B8;
284 | display: block;
285 | font-size: 0.8rem;
286 | }
287 |
288 | .author{
289 | margin-top: 1em;
290 | margin-bottom: 0;
291 | padding-bottom:0;
292 | padding-top:0.5em;
293 | line-height: 0;
294 | font-size:1.4em;
295 | }
296 |
297 | .date {
298 | color: #C7C2B8;
299 | display: block;
300 | font-size: 0.8rem;
301 | }
302 |
303 | .affiliation {
304 | margin-top: 0;
305 | margin-bottom: 0.25em;
306 | }
307 |
308 | .caption {
309 | display: block;
310 | font-size: 0.8rem;
311 | font-style: italic;
312 | }
--------------------------------------------------------------------------------
/marked/panmarked.sh:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | pandoc -r markdown -w html -s -S --bibliography=/Users/kjhealy/Documents/bibs/socbib-pandoc.bib
3 |
--------------------------------------------------------------------------------
/marked/paper.css:
--------------------------------------------------------------------------------
1 | /*
2 | This document has been created with Marked.app , Copyright 2011 Brett Terpstra
3 | Please leave this notice in place, along with any additional credits below.
4 | ---------------------------------------------------------------
5 | Paper by Jonathan Poritsky
6 | based on SwissStyle by Brett Terpstra
7 | Page Curl Effect by Matt Hamm http://matthamm.com/box-shadow-curl.html
8 | Page shading based on http://www.sitepoint.com/pure-css3-paper-curl/
9 | */
10 |
11 | body
12 | {
13 | -webkit-font-smoothing:antialiased;
14 | font:normal .8764em/1.5em Arial,Verdana,sans-serif;
15 | text-align:center;
16 | background:#eee;
17 | }
18 | #wrapper
19 | {
20 | width: 85%;
21 | margin:2em auto !important;
22 | padding:2em;
23 | text-align:left;
24 | position: relative;
25 | background:rgb(243, 241, 232);
26 | border: 1px solid #efefef;
27 | -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
28 | -webkit-border-radius:20px;
29 | }
30 | #wrapper:before,#wrapper:after
31 | {
32 | content: '';
33 | z-index: -1;
34 | position: absolute;
35 | left: 16px;
36 | bottom: 16px;
37 | width: 70%;
38 | max-width: 300px; /* avoid rotation causing ugly appearance at large container widths */
39 | max-height: 100px;
40 | height: 55%;
41 | -webkit-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
42 | -moz-box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
43 | box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
44 | -webkit-transform: skew(-15deg) rotate(-6deg);
45 | -moz-transform: skew(-15deg) rotate(-6deg);
46 | -ms-transform: skew(-15deg) rotate(-6deg);
47 | -o-transform: skew(-15deg) rotate(-6deg);
48 | transform: skew(-15deg) rotate(-6deg);
49 | -webkit-border-radius:20px;
50 |
51 | }
52 | #wrapper:after
53 | {
54 | left: auto;
55 | right: 10px;
56 | -webkit-transform: skew(15deg) rotate(6deg);
57 | }
58 | html>body
59 | {
60 | font-size:13px
61 | }
62 |
63 | li
64 | {
65 | font-size:110%
66 | }
67 |
68 | li li
69 | {
70 | font-size:100%
71 | }
72 |
73 | li p
74 | {
75 | font-size:100%;
76 | margin:.5em 0
77 | }
78 |
79 | h1
80 | {
81 | color:#000;
82 | font-size:2.2857em;
83 | line-height:.6563em;
84 | margin:.6563em 0
85 | }
86 |
87 | h2
88 | {
89 | color:#111;
90 | font-size:1.7143em;
91 | line-height:.875em;
92 | margin:.875em 0
93 | }
94 |
95 | h3
96 | {
97 | color:#111;
98 | font-size:1.5em;
99 | line-height:1em;
100 | margin:1em 0
101 | }
102 |
103 | h4
104 | {
105 | color:#111;
106 | font-size:1.2857em;
107 | line-height:1.1667em;
108 | margin:1.1667em 0
109 | }
110 |
111 | h6
112 | {
113 | font-size:1em;
114 | line-height:1.5em;
115 | margin:1.5em 0
116 | }
117 |
118 | body,p,td,div
119 | {
120 | color:#111;
121 | font-family:'Helvetica Neue',Arial,sans-serif;
122 | word-wrap:break-word
123 | }
124 |
125 | h1,h2,h3,h4,h5,h6
126 | {
127 | line-height:1.5em
128 | }
129 |
130 | a
131 | {
132 | -webkit-transition:color .2s ease-in-out;
133 | color:#0d6ea1;
134 | text-decoration:none
135 | }
136 |
137 | a:hover
138 | {
139 | color:#3593d9
140 | }
141 |
142 | h2 em
143 | {
144 | color:#111;
145 | padding-left:10px;
146 | text-shadow:0 1px 0 #FFF
147 | }
148 |
149 | .footnote
150 | {
151 | color:#0d6ea1;
152 | font-size:.8em;
153 | vertical-align:super
154 | }
155 |
156 | #wrapper img
157 | {
158 | max-width:100%;
159 | }
160 |
161 | dd
162 | {
163 | margin-bottom:1em
164 | }
165 |
166 | li > p:first-child
167 | {
168 | margin:0
169 | }
170 |
171 | ul ul,ul ol
172 | {
173 | margin-bottom:.4em
174 | }
175 |
176 | caption,col,colgroup,table,tbody,td,tfoot,th,thead,tr
177 | {
178 | border-spacing:0
179 | }
180 |
181 | table
182 | {
183 | border:1px solid rgba(0,0,0,0.25);
184 | border-collapse:collapse;
185 | display:table;
186 | empty-cells:hide;
187 | margin:-1px 0 23px;
188 | padding:0;
189 | table-layout:fixed
190 | }
191 |
192 | caption
193 | {
194 | display:table-caption;
195 | font-weight:700
196 | }
197 |
198 | col
199 | {
200 | display:table-column
201 | }
202 |
203 | colgroup
204 | {
205 | display:table-column-group
206 | }
207 |
208 | tbody
209 | {
210 | display:table-row-group
211 | }
212 |
213 | tfoot
214 | {
215 | display:table-footer-group
216 | }
217 |
218 | thead
219 | {
220 | display:table-header-group
221 | }
222 |
223 | td,th
224 | {
225 | display:table-cell
226 | }
227 |
228 | tr
229 | {
230 | display:table-row
231 | }
232 |
233 | table th,table td
234 | {
235 | font-size:1.1em;
236 | line-height:23px;
237 | padding:0 1em
238 | }
239 |
240 | table thead
241 | {
242 | background:rgba(0,0,0,0.15);
243 | border:1px solid rgba(0,0,0,0.15);
244 | border-bottom:1px solid rgba(0,0,0,0.2)
245 | }
246 |
247 | table tbody
248 | {
249 | background:rgba(0,0,0,0.05)
250 | }
251 |
252 | table tfoot
253 | {
254 | background:rgba(0,0,0,0.15);
255 | border:1px solid rgba(0,0,0,0.15);
256 | border-top:1px solid rgba(0,0,0,0.2)
257 | }
258 |
259 | figure
260 | {
261 | display:inline-block;
262 | margin-bottom:1.2em;
263 | position:relative;
264 | border: 5px solid #fff;
265 | -webkit-box-shadow: 0 1px 4px rgba(0, 0, 0, 0.27), 0 0 40px rgba(0, 0, 0, 0.06) inset;
266 | }
267 |
268 | figcaption
269 | {
270 | -webkit-transition:all .2s ease-in-out;
271 | background:rgba(0,0,0,0);
272 | bottom:0;
273 | color:rgba(255,255,255,0);
274 | left:0;
275 | position:absolute;
276 | text-align:center;
277 | width:100%
278 | }
279 |
280 | figure:hover
281 | {
282 | cursor:pointer;
283 | }
284 |
285 | figcaption:hover
286 | {
287 | background:rgba(0,0,0,.56);
288 | color:rgba(255,255,255,1)
289 | }
290 |
291 | .poetry pre
292 | {
293 | display:block;
294 | font-family:Georgia, Garamond, serif!important;
295 | font-size:110%!important;
296 | font-style:italic;
297 | line-height:1.6em;
298 | margin-left:1em
299 | }
300 |
301 | .poetry pre code
302 | {
303 | font-family:Georgia, Garamond, serif!important
304 | }
305 |
306 | sup,sub,a.footnote
307 | {
308 | font-size:1.4ex;
309 | height:0;
310 | line-height:1;
311 | position:relative;
312 | vertical-align:super
313 | }
314 |
315 | p,h5
316 | {
317 | font-size:1.1429em;
318 | line-height:1.3125em;
319 | margin:1.3125em 0
320 | }
321 |
322 | dt,th
323 | {
324 | font-weight:700
325 | }
326 |
327 | table tr:nth-child(odd),table th:nth-child(odd),table td:nth-child(odd)
328 | {
329 | background:rgba(255,255,255,0.06)
330 | }
331 |
332 | table tr:nth-child(even),table td:nth-child(even)
333 | {
334 | background:rgba(0,0,0,0.06)
335 | }
336 |
337 | @media print {
338 | body
339 | {
340 | overflow:auto
341 | }
342 |
343 | #wrapper
344 | {
345 | background:#fff;
346 | color:#303030;
347 | font-size:85%;
348 | padding:10px;
349 | position:relative;
350 | text-indent:0
351 | }
352 | }
353 |
354 | @media screen {
355 | .inverted {
356 | background:#333
357 | }
358 |
359 | .inverted p,.inverted td,.inverted li,.inverted h1,.inverted h2,.inverted h3,.inverted h4,.inverted h5,.inverted h6,.inverted pre,.inverted code,.inverted th
360 | {
361 | color:#eee!important
362 | }
363 |
364 | .inverted a
365 | {
366 | color:#fff;
367 | text-decoration:underline
368 | }
369 |
370 | #wrapper
371 | {
372 | padding:20px
373 | }
374 |
375 | .inverted #wrapper
376 | {
377 | background:#333;
378 | }
379 | }
380 |
--------------------------------------------------------------------------------
/templates/bookdown-article.template:
--------------------------------------------------------------------------------
1 | \documentclass[12pt,article,oneside]{memoir}
2 | \usepackage[minion]{org-preamble-pdflatex}
3 | \input{vc}
4 |
5 | $if(listings)$
6 | \usepackage{listings}
7 | \lstset{frame=none, columns=fixed, basicstyle=\ttfamily, keepspaces=true,showstringspaces=false, numbers=none, backgroundcolor=\color[gray]{0.95}}
8 | \newcommand{\passthrough}[1]{#1}
9 | $endif$
10 | $if(lhs)$
11 | \lstnewenvironment{code}{\lstset{language=r,basicstyle=\small\ttfamily}}{}
12 | $endif$
13 | $if(highlighting-macros)$
14 | $highlighting-macros$
15 | $endif$
16 | $if(verbatim-in-note)$
17 | \usepackage{fancyvrb}
18 | $endif$
19 | $if(tables)$
20 | \usepackage{longtable}
21 | $endif$
22 |
23 | $if(graphics)$
24 | \usepackage{graphicx}
25 | % We will generate all images so they have a width \maxwidth. This means
26 | % that they will get their normal width if they fit onto the page, but
27 | % are scaled down if they would overflow the margins.
28 | \makeatletter
29 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
30 | \else\Gin@nat@width\fi}
31 | \makeatother
32 | \let\Oldincludegraphics\includegraphics
33 | \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
34 | $endif$
35 |
36 | $if(smallverbatim)$
37 | \DefineVerbatimEnvironment{Highlighting}{Verbatim}{commandchars=\\\{\},fontsize=\footnotesize}
38 | $endif$
39 |
40 | $if(csl-refs)$
41 | \newlength{\cslhangindent}
42 | \setlength{\cslhangindent}{1.5em}
43 | \newenvironment{CSLReferences}%
44 | {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
45 | \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
46 | {\par}
47 | $endif$
48 |
49 | $if(title)$
50 | \title{\bigskip \bigskip $title$$if(thanks)$\thanks{$thanks$} $endif$ }
51 | $endif$
52 |
53 | %\author{$for(author)$$author$$sep$$endfor$}
54 |
55 | %\author{$for(author)$\Large $author.name$\vspace{0.05in} \normalsize\emph{$author.affiliation$} \footnotesize \url{$author.email$}\vspace*{0.2in} $sep$ \and $endfor$}
56 |
57 | \author{$for(author)$\Large $author.name$ \vspace{0.05in} \small \protect\\ \emph{$author.affiliation$} \footnotesize \protect\\ $author.email$ $sep$ \and $endfor$}
58 |
59 | %\author{$for(author)$$author.name$ ($author.affiliation$)$sep$ \protect\and $endfor$}
60 |
61 | \date{}
62 |
63 | $for(header-includes)$
64 | $header-includes$
65 | $endfor$
66 |
67 | \begin{document}
68 |
69 | \setkeys{Gin}{width=1\textwidth}
70 | %\setromanfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}
71 | %\setsansfont[Mapping=tex-text]{Minion Pro}
72 | %\setmonofont[Mapping=tex-text,Scale=0.8]{Pragmata}
73 | \chapterstyle{$chapterstyle$}
74 | \pagestyle{kjh}
75 |
76 | \published{$date$}
77 |
78 | $if(title)$
79 | \maketitle
80 | $endif$
81 |
82 | $if(toc)$
83 | {
84 | \hypersetup{linkcolor=black}
85 | \setcounter{tocdepth}{$toc-depth$}
86 | \tableofcontents
87 | }
88 | $endif$
89 |
90 | $if(abstract)$
91 |
92 | \begin{abstract}
93 |
94 | \vspace*{-0.75in}\noindent \emph{Abstract:} $abstract$
95 |
96 | \end{abstract}
97 |
98 | $endif$
99 |
100 | $body$
101 |
102 | $if(natbib)$
103 | $if(biblio-files)$
104 | $if(biblio-title)$
105 | $if(book-class)$
106 | \renewcommand\bibname{Bibliography}
107 | $else$
108 | \renewcommand\refname{References}
109 | \renewcommand\bibname{References}
110 | $endif$
111 | $endif$
112 |
113 | \bibliography{$biblio-files$}
114 |
115 | $endif$
116 | $endif$
117 | $if(biblatex)$
118 | \printbibliography$if(biblio-title)$[title=References]$endif$
119 |
120 | $endif$
121 | $for(include-after)$
122 | $include-after$
123 |
124 | $endfor$
125 | \end{document}
--------------------------------------------------------------------------------
/templates/dataviz-booktemplate.tex:
--------------------------------------------------------------------------------
1 | \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
2 |
3 | % ams
4 | \usepackage{amssymb,amsmath}
5 |
6 | % tools
7 | % tools
8 | \usepackage{etoolbox}
9 | \usepackage{fancyhdr}
10 |
11 | \usepackage{ifxetex,ifluatex}
12 | \usepackage{fixltx2e} % provides \textsubscript
13 |
14 | % Define a new pagestyle
15 | \makeatletter
16 | \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
17 | \renewcommand{\sectionmark}[1]{\markright{#1}}
18 | \makeatother
19 |
20 | \fancypagestyle{dataviz}{
21 | \fancyhf{}
22 | \fancyhead[LE]{\sffamily\thepage\quad{\newlinetospace{\leftmark}}}
23 | \fancyhead[RO]{\sffamily\newlinetospace{\rightmark}\quad\thepage}
24 | % \fancyhead[RE,RO]{\runheadfont\newlinetospace{\plaintitle}\quad\thepage}
25 | }
26 |
27 | \fancypagestyle{plain}{
28 | \fancyhf{}
29 | \fancyhead[LE]{\sffamily\thepage}
30 | \fancyhead[RO]{\sffamily\quad\thepage}
31 | % \fancyhead[RE,RO]{\runheadfont\newlinetospace{\plaintitle}\quad\thepage}
32 | }
33 |
34 |
35 | \appto\frontmatter{\pagestyle{plain}}
36 | \appto\mainmatter{\pagestyle{dataviz}}
37 |
38 | $if(useminion)$
39 |
40 | %% if using pdflatex
41 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
42 | \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
43 | \usepackage[utf8]{inputenc}
44 |
45 | % microtype
46 | \usepackage{microtype}
47 |
48 | \usepackage[fullfamily,opticals,footnotefigures]{MinionPro}
49 | \usepackage[medfamily,footnotefigures]{MyriadPro}
50 | \usepackage[scale=0.9]{inconsolata}
51 | \usepackage[toc,eqno,enum,bib,lineno]{tabfigures}
52 |
53 | % Set 11/13.5 spacing. (tufte-book class ignores fontsize in the class options)
54 | \AtBeginDocument{%
55 | \fontsize{11}{13.5}\selectfont
56 | }
57 |
58 | %% xelatex minion
59 | \else % if luatex or xelatex
60 |
61 | \makeatletter
62 | \@ifpackageloaded{fontspec}{}{\usepackage{fontspec}}
63 | \makeatother
64 | \defaultfontfeatures{Ligatures=TeX,Scale=MatchLowercase}
65 | \makeatletter
66 | \@ifpackageloaded{soul}{
67 | \renewcommand\allcapsspacing[1]{{\addfontfeature{LetterSpace=15}#1}}
68 | \renewcommand\smallcapsspacing[1]{{\addfontfeature{LetterSpace=10}#1}}
69 | }{}
70 | \makeatother
71 |
72 |
73 | %microtype
74 | \usepackage{microtype}
75 |
76 | % Altfont
77 | \defaultfontfeatures{Scale=MatchLowercase}
78 | \setmainfont[Numbers={OldStyle,Proportional}]{Minion Pro}
79 | \setsansfont[Numbers={OldStyle,Proportional}]{Myriad Pro SemiCondensed}
80 | % \setmonofont[Scale=MatchLowercase]{PragmataPro}
81 | \setmonofont[Scale=MatchLowercase]{Iosevka Type Light}
82 |
83 | % Change running heads
84 |
85 | % Define a new pagestyle
86 | \newfontfamily{\runheadfont}{Myriad Pro Light SemiCondensed}
87 | \DeclareTextFontCommand{\textrunheadfont}{\runheadfont}
88 |
89 | \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
90 | \renewcommand{\sectionmark}[1]{\markright{#1}}
91 |
92 | \fancypagestyle{dataviz}{
93 | \fancyhf{}
94 | \fancyhead[LE]{\runheadfont\thepage\quad{\newlinetospace{\leftmark}}}
95 | \fancyhead[RO]{\runheadfont\newlinetospace{\rightmark}\quad\thepage}
96 | % \fancyhead[RE,RO]{\runheadfont\newlinetospace{\plaintitle}\quad\thepage}
97 | }
98 |
99 | \pagestyle{dataviz}
100 |
101 | % Set 11/13.5 spacing. (tufte-book class ignores fontsize in the class options)
102 | \AtBeginDocument{%
103 | \fontsize{12}{14}\selectfont
104 | }
105 |
106 | \fi % end pdflatex vs xelatex choices for minion
107 |
108 | $endif$
109 |
110 | $if(usecharter)$
111 |
112 | % charter setup is for pdflatex only
113 | \usepackage[$if(fontenc)$$fontenc$$else$T1$endif$]{fontenc}
114 | \usepackage[utf8]{inputenc}
115 | \usepackage[charter]{mathdesign}
116 | \def\rmdefault{bch} % not scaled
117 | \def\sfdefault{SourceSansPro-TLF}
118 | \def\SourceSansPro@scale{1.02}
119 | \usepackage[scaled=0.85]{beramono}
120 | % \def\ttdefault{blg}
121 | {\ttfamily\selectfont
122 | \DeclareFontShape{T1}{fvm}{k}{n}{<-> ssub * fvm/b/n}{}}
123 | % \usepackage{ulgothic}
124 | % \usepackage[scale=0.85]{inconsolata}
125 | \usepackage{textcomp}
126 |
127 |
128 | \usepackage[expansion=false,kerning=true]{microtype}[\filedate]
129 | \DeclareMicrotypeSet*[protrusion]
130 | { doc }
131 | { encoding = {*, TS1, OMS},
132 | family = {rm*, tt*},
133 | size = {footnotesize, small, normalsize} }
134 | \SetProtrusion
135 | { encoding = OMS,
136 | family = mdbch }
137 | { "68 = {400, }, % \langle
138 | "69 = { ,400} } % \rangle
139 | \DeclareMicrotypeSet*[kerning]
140 | { doc }
141 | { encoding = T1,
142 | family = blg, % typewriter font and ...
143 | font = * } % French sample in section \ref{sub:kerning}
144 | \SetExtraKerning
145 | { encoding = T1,
146 | family = blg }
147 | { _ = {100,100} } % underscores shouldn't touch
148 | \ifxetex\else
149 | % disable ?` and !` ligatures (sample in section \ref{sec:disable-ligatures})
150 | \DisableLigatures[?,!]{encoding = *, family = rm* }
151 | \fi
152 | % Fraktur sample in section \ref{sec:lettersp}
153 | \IfFileExists{t1mwr.fd}
154 | {\def\textfrak##1{{\fontfamily{mwr}\selectfont ##1}}
155 | \ifpdf
156 | \SetTracking[no ligatures={f,s,c}]{encoding=T1,family=mwr}{120}
157 | \fi}
158 | {\IfFileExists{yfonts.sty}
159 | {\usepackage{yfonts}
160 | \ifpdf
161 | \SetTracking[no ligatures={f,s,c}]{encoding=LY,family=yfrak}{120}
162 | \fi}
163 | {\def\textfrak{\rule{.5em}{1.5ex}\@gobble}}}
164 | \tolerance=700
165 | \ifpdf
166 | \ifluatex % microtype.dtx finally compiles with 0.35!
167 | \microtypesetup{kerning=false}
168 | \def\pdftexversion{200} % in TeX Live 2015, they let this to \luatexversion
169 | \fi
170 | \ifnum\pdftexversion<140 \else % pdftex 1.40, including textmatrix patch,
171 | \microtypesetup{expansion=alltext,step=1} % hence we can activate expansion ...
172 | \tolerance=300 % ... and make TeX almost as intolerant as it normally is
173 | % \g@addto@macro\macrocode{\microtypesetup{expansion=false}}
174 | \pdfminorversion=5 % for the OCGs (default since TeX Live 2010)
175 | \fi
176 | % bonus material
177 | \InputIfFileExists{microtype-logo.dtx}\relax\relax
178 | \InputIfFileExists{microtype-lssample.dtx}\relax\relax
179 | \else
180 | \let\lsstyle\relax
181 | \fi
182 | \ifxetex
183 | \microtypesetup{kerning=false}
184 | \fi
185 |
186 | % Set 11/13.5 spacing. (tufte-book class ignores fontsize in the class options)
187 | \AtBeginDocument{%
188 | \fontsize{10}{12}\selectfont
189 | }
190 |
191 | $endif$
192 |
193 |
194 | $if(euro)$
195 | \usepackage{eurosym}
196 | \newcommand{\euro}{€}
197 | $endif$
198 |
199 | % Fira
200 | $if(usefira)$
201 | % microtype
202 | \usepackage{microtype}
203 |
204 | \usepackage[sfdefault,book]{FiraSans}
205 | \usepackage[scale=0.9]{FiraMono}
206 |
207 | % Set 11/13.5 spacing. (tufte-book class ignores fontsize in the class options)
208 | %\AtBeginDocument{%
209 | % \fontsize{10}{12}\selectfont
210 | %}
211 |
212 | $endif$
213 |
214 | % graphicx
215 | \usepackage{graphicx}
216 | \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
217 |
218 | % booktabs
219 | \usepackage{booktabs}
220 |
221 | % subfigures
222 | \usepackage{subfig}
223 | %\newcommand{\subfloat}[2][need a sub-caption]{\subcaptionbox{#1}{#2}}
224 |
225 | % url
226 | \usepackage{url}
227 |
228 | % hyperref
229 | \usepackage{hyperref}
230 |
231 | % units.
232 | \usepackage{units}
233 |
234 | % full bleed cover image
235 | \usepackage{eso-pic}
236 |
237 |
238 | $if(lang)$
239 | \ifnum 0\ifxetex 1\fi\ifluatex 1\fi=0 % if pdftex
240 | \usepackage[shorthands=off,$for(babel-otherlangs)$$babel-otherlangs$,$endfor$main=$babel-lang$]{babel}
241 | $if(babel-newcommands)$
242 | $babel-newcommands$
243 | $endif$
244 | \else
245 | \usepackage{polyglossia}
246 | \setmainlanguage[$polyglossia-lang.options$]{$polyglossia-lang.name$}
247 | $for(polyglossia-otherlangs)$
248 | \setotherlanguage[$polyglossia-otherlangs.options$]{$polyglossia-otherlangs.name$}
249 | $endfor$
250 | \fi
251 | $endif$
252 |
253 | $if(numbersections)$
254 | % Control depth of chapter/section numbering
255 | \setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$2$endif$}
256 | $else$
257 | \setcounter{secnumdepth}{-1}
258 | $endif$
259 |
260 | % citations
261 |
262 | $if(csl-refs)$
263 | \newlength{\cslhangindent}
264 | \setlength{\cslhangindent}{1.5em}
265 | \newenvironment{CSLReferences}%
266 | {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
267 | \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
268 | {\par}
269 | $endif$
270 |
271 | $if(natbib)$
272 | \usepackage{natbib}
273 | \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
274 | $endif$
275 | $if(biblatex)$
276 | \usepackage{biblatex}
277 | $for(bibliography)$
278 | \addbibresource{$bibliography$}
279 | $endfor$
280 | $endif$
281 |
282 | % pandoc syntax highlighting
283 | $if(highlighting-macros)$
284 |
285 | $highlighting-macros$
286 |
287 | % Choose size of shaded code blocks without shrinking inline code.
288 | \renewenvironment{Shaded} {\begin{snugshade}\small} {\end{snugshade}}
289 |
290 | $endif$
291 |
292 | % longtable
293 | $if(tables)$
294 | \usepackage{longtable,booktabs}
295 | $endif$
296 |
297 | % listings
298 | $if(listings)$
299 | \usepackage{fancyvrb}
300 | \usepackage{listings}
301 | \lstset{frame=single, columns=fixed, basicstyle=\footnotesize\ttfamily, keepspaces=true, showstringspaces=false, numbers=none, framesep=10pt, xleftmargin=10pt,xrightmargin=10pt}
302 | \newcommand{\passthrough}[1]{#1}
303 | $endif$
304 |
305 | % pandoc-crossref
306 | $if(pandoc-crossref)$
307 | \usepackage{cleveref}
308 | $endif$
309 |
310 | % multiplecol
311 | \usepackage{multicol}
312 |
313 | % strikeout
314 | \usepackage[normalem]{ulem}
315 |
316 | % morefloats
317 | \usepackage{morefloats}
318 |
319 | $if(ctex)$
320 | \usepackage{ctexcap}
321 | $endif$
322 |
323 | % tightlist macro required by pandoc >= 1.14
324 | \providecommand{\tightlist}{%
325 | \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
326 |
327 | % csl environment pandoc >=2.8
328 | $if(csl-refs)$
329 | \newlength{\cslhangindent}
330 | \setlength{\cslhangindent}{1.5em}
331 | \newenvironment{CSLReferences}%
332 | {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
333 | \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
334 | {\par}
335 | $endif$
336 |
337 | % title / author / date
338 | $if(title)$
339 | \title{$title$}
340 | $endif$
341 | $if(author)$
342 | \author{$for(author)$$author.name$$sep$ \and $endfor$}
343 | $endif$
344 | $if(date)$
345 | \date{$date$}
346 | $else$
347 | \date{}
348 | $endif$
349 |
350 | %% -- tint overrides
351 | %% fonts, using roboto (condensed) as default
352 | % \usepackage[sfdefault,condensed]{roboto}
353 | %% also nice: \usepackage[default]{lato}
354 |
355 | %% colored links, setting 'borrowed' from RJournal.sty with 'Thanks, Achim!'
356 | \RequirePackage{color}
357 | \definecolor{link}{rgb}{0.1,0.1,0.8} %% blue with some grey
358 | \hypersetup{
359 | colorlinks,%
360 | citecolor=link,%
361 | filecolor=link,%
362 | linkcolor=link,%
363 | urlcolor=link
364 | }
365 |
366 | %% macros
367 | \makeatletter
368 |
369 | %%
370 | % Set the font sizes and baselines slightly larger than Tufte's
371 | % \@xipt{15} (11/15) as opposed to \@xpt{14} (10/14)
372 | \renewcommand\normalsize{%
373 | \@setfontsize\normalsize\@xipt{15}%
374 | \abovedisplayskip 12\p@ \@plus2\p@ \@minus5\p@
375 | \abovedisplayshortskip \z@ \@plus3\p@
376 | \belowdisplayshortskip 6\p@ \@plus3\p@ \@minus3\p@
377 | \belowdisplayskip \abovedisplayskip
378 | \let\@listi\@listI}
379 | \normalbaselineskip=14pt
380 | \normalsize
381 | \renewcommand\small{%
382 | \@setfontsize\small\@ixpt{12}%
383 | \abovedisplayskip 8.5\p@ \@plus3\p@ \@minus4\p@
384 | \abovedisplayshortskip \z@ \@plus2\p@
385 | \belowdisplayshortskip 4\p@ \@plus2\p@ \@minus2\p@
386 | \def\@listi{\leftmargin\leftmargini
387 | \topsep 4\p@ \@plus2\p@ \@minus2\p@
388 | \parsep 2\p@ \@plus\p@ \@minus\p@
389 | \itemsep \parsep}%
390 | \belowdisplayskip \abovedisplayskip
391 | }
392 | \renewcommand\footnotesize{%
393 | \@setfontsize\footnotesize\@viiipt{10}%
394 | \abovedisplayskip 6\p@ \@plus2\p@ \@minus4\p@
395 | \abovedisplayshortskip \z@ \@plus\p@
396 | \belowdisplayshortskip 3\p@ \@plus\p@ \@minus2\p@
397 | \def\@listi{\leftmargin\leftmargini
398 | \topsep 3\p@ \@plus\p@ \@minus\p@
399 | \parsep 2\p@ \@plus\p@ \@minus\p@
400 | \itemsep \parsep}%
401 | \belowdisplayskip \abovedisplayskip
402 | }
403 | \renewcommand\scriptsize{\@setfontsize\scriptsize\@viipt\@viiipt}
404 | \renewcommand\tiny{\@setfontsize\tiny\@vpt\@vipt}
405 | \renewcommand\large{\@setfontsize\large\@xipt{15}}
406 | \renewcommand\Large{\@setfontsize\Large\@xiipt{16}}
407 | \renewcommand\LARGE{\@setfontsize\LARGE\@xivpt{18}}
408 | \renewcommand\huge{\@setfontsize\huge\@xxpt{30}}
409 | \renewcommand\Huge{\@setfontsize\Huge{24}{36}}
410 |
411 | \setlength\leftmargini {1pc}
412 | \setlength\leftmarginii {1pc}
413 | \setlength\leftmarginiii {1pc}
414 | \setlength\leftmarginiv {1pc}
415 | \setlength\leftmarginv {1pc}
416 | \setlength\leftmarginvi {1pc}
417 | \setlength\labelsep {.5pc}
418 | \setlength\labelwidth {\leftmargini}
419 | \addtolength\labelwidth{-\labelsep}
420 |
421 |
422 |
423 |
424 | \renewcommand{\maketitle}{%
425 | \newpage
426 | \global\@topnum\z@% prevent floats from being placed at the top of the page
427 | \begingroup
428 | \setlength{\parindent}{0pt}%
429 | \setlength{\parskip}{4pt}%
430 | \let\@@title\@empty
431 | \let\@@author\@empty
432 | \let\@@date\@empty
433 | \ifthenelse{\boolean{@tufte@sfsidenotes}}{%
434 | %\gdef\@@title{\sffamily\LARGE\allcaps{\@title}\par}%
435 | %\gdef\@@author{\sffamily\Large\allcaps{\@author}\par}%
436 | %\gdef\@@date{\sffamily\Large\allcaps{\@date}\par}%
437 | \gdef\@@title{\begingroup\fontseries{b}\selectfont\huge{\@title}\par}%
438 | \gdef\@@author{\begingroup\fontseries{l}\selectfont\Large{\@author}\par}%
439 | \gdef\@@date{\begingroup\fontseries{l}\selectfont\Large{\@date}\par}%
440 | }{%
441 | %\gdef\@@title{\LARGE\itshape\@title\par}%
442 | %\gdef\@@author{\Large\itshape\@author\par}%
443 | %\gdef\@@date{\Large\itshape\@date\par}%
444 | \gdef\@@title{\begingroup\fontseries{b}\selectfont\LARGE\@title\par\endgroup}%
445 | \gdef\@@author{\begingroup\fontseries{l}\selectfont\Large\@author\par\endgroup}%
446 | \gdef\@@date{\begingroup\fontseries{l}\selectfont\Large\@date\par\endgroup}%
447 | }%
448 | \@@title
449 | \@@author
450 | \@@date
451 | \endgroup
452 | \thispagestyle{empty}% suppress the running head
453 | \tuftebreak% add some space before the text begins
454 | \@afterindentfalse\@afterheading% suppress indentation of the next paragraph
455 | }
456 |
457 | \titleformat{\chapter}%
458 | [display]% shape
459 | {\relax\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\begin{fullwidth}}{}}% format applied to label+text
460 | {\huge\sffamily\bfseries\thechapter}% label
461 | {0pt}% horizontal separation between label and title body
462 | {\huge\sffamily\bfseries}% before the title body
463 | [\ifthenelse{\NOT\boolean{@tufte@symmetric}}{\end{fullwidth}}{}]% after the title body
464 |
465 |
466 | %% -- tint does not use italics or allcaps in section/subsection/paragraph
467 | \titleformat{\section}%
468 | [hang]% shape
469 | %{\normalfont\Large\itshape}% format applied to label+text
470 | {\fontseries{b}\selectfont\Large\sffamily\bfseries}% format applied to label+text
471 | {\thesection}% label
472 | {1em}% horizontal separation between label and title body
473 | {}% before the title body
474 | []% after the title body
475 |
476 | \titleformat{\subsection}%
477 | [hang]% shape
478 | %{\normalfont\large\itshape}% format applied to label+text
479 | {\fontseries{m}\selectfont\large\sffamily}% format applied to label+text
480 | {\thesubsection}% label
481 | {1em}% horizontal separation between label and title body
482 | {}% before the title body
483 | []% after the title body
484 |
485 | \titleformat{\paragraph}%
486 | [runin]% shape
487 | %{\normalfont\itshape}% format applied to label+text
488 | {\fontseries{l}\selectfont}% format applied to label+text
489 | {\theparagraph}% label
490 | {1em}% horizontal separation between label and title body
491 | {}% before the title body
492 | []% after the title body
493 |
494 | %% -- tint does not use italics here either
495 | % Formatting for main TOC (printed in front matter)
496 | % {section} [left] {above} {before w/label} {before w/o label} {filler + page} [after]
497 | \ifthenelse{\boolean{@tufte@toc}}{%
498 | \titlecontents{part}% FIXME
499 | [0em] % distance from left margin
500 | %{\vspace{1.5\baselineskip}\begin{fullwidth}\LARGE\rmfamily\itshape} % above (global formatting of entry)
501 | {\vspace{1.5\baselineskip}\begin{fullwidth}\fontseries{m}\selectfont\LARGE\bfseries} % above (global formatting of entry)
502 | {\contentslabel{2em}} % before w/label (label = ``II'')
503 | {} % before w/o label
504 | {\sffamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
505 | [\end{fullwidth}] % after
506 | \titlecontents{chapter}%
507 | [0em] % distance from left margin
508 | %{\vspace{1.5\baselineskip}\begin{fullwidth}\LARGE\rmfamily\itshape} % above (global formatting of entry)
509 | {\vspace{1.5\baselineskip}\begin{fullwidth}\fontseries{m}\selectfont\sffamily\LARGE\bfseries} % above (global formatting of entry)
510 | {\hspace*{0em}\contentslabel{2em}} % before w/label (label = ``2'')
511 | {\hspace*{0em}} % before w/o label
512 | %{\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
513 | {\sffamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
514 | [\end{fullwidth}] % after
515 | \titlecontents{section}% FIXME
516 | [0em] % distance from left margin
517 | %{\vspace{0\baselineskip}\begin{fullwidth}\Large\rmfamily\itshape} % above (global formatting of entry)
518 | {\vspace{0\baselineskip}\begin{fullwidth}\fontseries{m}\selectfont\Large} % above (global formatting of entry)
519 | {\hspace*{2em}\contentslabel{2em}} % before w/label (label = ``2.6'')
520 | {\hspace*{2em}} % before w/o label
521 | %{\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
522 | {\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
523 | [\end{fullwidth}] % after
524 | \titlecontents{subsection}% FIXME
525 | [0em] % distance from left margin
526 | %{\vspace{0\baselineskip}\begin{fullwidth}\large\rmfamily\itshape} % above (global formatting of entry)
527 | {\vspace{0\baselineskip}\begin{fullwidth}\fontseries{m}\selectfont\large} % above (global formatting of entry)
528 | {\hspace*{4em}\contentslabel{4em}} % before w/label (label = ``2.6.1'')
529 | {\hspace*{4em}} % before w/o label
530 | %{\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
531 | {\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
532 | [\end{fullwidth}] % after
533 | \titlecontents{paragraph}% FIXME
534 | [0em] % distance from left margin
535 | %{\vspace{0\baselineskip}\begin{fullwidth}\normalsize\rmfamily\itshape} % above (global formatting of entry)
536 | {\vspace{0\baselineskip}\begin{fullwidth}\fontseries{m}\selectfont\normalsize} % above (global formatting of entry)
537 | {\hspace*{6em}\contentslabel{2em}} % before w/label (label = ``2.6.0.0.1'')
538 | {\hspace*{6em}} % before w/o label
539 | %{\rmfamily\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
540 | {\upshape\qquad\thecontentspage} % filler + page (leaders and page num)
541 | [\end{fullwidth}] % after
542 | }{}
543 |
544 |
545 | \makeatother
546 |
547 | % Keep the verbatim output small, like snugshade env is.
548 | $if(smallverbatim)$
549 | \fvset{fontsize=$smallverbatim$}
550 | \RecustomVerbatimEnvironment{verbatim}{Verbatim}{}
551 | $endif$
552 |
553 | $for(header-includes)$
554 | $header-includes$
555 | $endfor$
556 |
557 | \begin{document}
558 |
559 | $if(cover-image)$
560 |
561 | \clearpage
562 | \thispagestyle{empty}
563 |
564 | % hack to make a blank page by inserting a space
565 | \
566 |
567 |
568 | \AddToShipoutPictureBG*{% Add picture to current page
569 | \AtStockLowerLeft{% Add picture to lower-left corner of paper stock
570 | \includegraphics[width=\paperwidth,height=\paperheight]{$cover-image$}}%
571 | }
572 |
573 | % http://tex.stackexchange.com/questions/24988/how-to-place-an-image-over-a-full-including-bleed-page-in-memoir
574 | % for memoir class use \stockwidth and \stockheight
575 |
576 | % \bigskip
577 | % \begin{figure*}\includegraphics[width=1\linewidth]{$cover-image$}\end{figure*}
578 |
579 | \clearpage
580 | \newpage
581 | \thispagestyle{empty}
582 |
583 | \
584 |
585 | % open the title on a recto page
586 | \clearpage
587 | \newpage
588 | \thispagestyle{empty}
589 |
590 | $if(title)$
591 | \maketitle
592 |
593 | $if(disclaimer)$
594 | \vspace*{\fill}
595 | $disclaimer$
596 | \clearpage
597 | \newpage
598 | \thispagestyle{empty}
599 | $endif$
600 | $endif$
601 |
602 | $if(cover-note)$
603 | \bigskip
604 | \noindent {\sffamily\bfseries About the Cover} \\
605 | \smallskip
606 | $cover-note$
607 | \medskip
608 | $endif$
609 |
610 |
611 | $if(author-note)$
612 | \bigskip
613 | \noindent {\sffamily\bfseries About the Author} \\
614 | \smallskip
615 | $author-note$
616 | \medskip
617 | $endif$
618 |
619 | $if(copyright-page)$
620 | \vspace*{\fill}
621 |
622 | \thispagestyle{empty}
623 | %% copyrightpage
624 | \begingroup
625 | \footnotesize
626 | \parindent 0pt
627 | \parskip \baselineskip
628 | \textcopyright{} $if(copyright-year)$$copyright-year$$endif$ $if(author)$$for(author)$$author.name$$sep$ \and $endfor$$endif$ \ All rights reserved.
629 | \endgroup
630 | \clearpage
631 | \normalsize
632 | \newpage
633 | $endif$
634 |
635 | $if(dedication)$
636 |
637 | \thispagestyle{empty}
638 |
639 | \par\vspace*{.35\textheight}{\centering $dedication$ \par}
640 |
641 | \clearpage
642 | \normalsize
643 | \newpage
644 |
645 | $endif$
646 |
647 |
648 | \pagestyle{dataviz}
649 |
650 | % Frontmatter begins here
651 | \frontmatter
652 | \pagenumbering{roman}
653 | $endif$
654 |
655 | $if(abstract)$
656 | \begin{abstract}
657 | \noindent $abstract$
658 | \end{abstract}
659 | $endif$
660 |
661 | $for(include-before)$
662 | $include-before$
663 | $endfor$
664 |
665 | $if(toc)$
666 | {
667 | $if(colorlinks)$
668 | \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$black$endif$}
669 | $endif$
670 | \setcounter{tocdepth}{$toc-depth$}
671 | \tableofcontents
672 | }
673 | $endif$
674 | $if(lot)$
675 | \listoftables
676 | $endif$
677 | $if(lof)$
678 | \listoffigures
679 | $endif$
680 |
681 | % Main matter starts here
682 | % \mainmatter
683 | % For this template \mainmatter defined in the text, after the Preface
684 |
685 | $body$
686 |
687 | \backmatter
688 | \twocolumn
689 |
690 | $if(natbib)$
691 | $if(bibliography)$
692 | $if(biblio-title)$
693 | $if(book-class)$
694 | \renewcommand\bibname{$biblio-title$}
695 | $else$
696 | \renewcommand\refname{$biblio-title$}
697 | $endif$
698 | $endif$
699 | \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
700 |
701 | $endif$
702 | $endif$
703 | $if(biblatex)$
704 | \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
705 | $endif$
706 |
707 |
708 |
709 | $if(colophon-note)$
710 | \clearpage
711 | \newpage
712 | \onecolumn
713 | \normalsize
714 | \thispagestyle{empty}
715 | {\sffamily\bfseries Colophon} \\
716 | \smallskip
717 | $colophon-note$
718 | $endif$
719 |
720 | $for(include-after)$
721 | $include-after$
722 | $endfor$
723 |
724 | \end{document}
725 |
--------------------------------------------------------------------------------
/templates/html-github.template:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | $for(author-meta)$
7 |
8 | $endfor$
9 | $if(date-meta)$
10 |
11 | $endif$
12 | $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$
13 |
14 |
17 | $if(quotes)$
18 |
19 | $endif$
20 | $if(highlighting-css)$
21 |
24 | $endif$
25 | $for(css)$
26 |
27 | $endfor$
28 | $if(math)$
29 | $math$
30 | $endif$
31 | $for(header-includes)$
32 | $header-includes$
33 | $endfor$
34 |
35 |
36 |
37 | $for(include-before)$
38 | $include-before$
39 | $endfor$
40 | $if(title)$
41 |
42 | $if(date)$
43 | $date$
44 | $endif$
45 |
46 | $title$
47 |
48 |
49 | $for(author)$
50 | $author.name$
51 | $author.affiliation$
52 | $endfor$
53 |
54 |
55 | $endif$
56 | $if(toc)$
57 |
58 | $toc$
59 |
60 | $endif$
61 |
62 | $if(abstract)$
63 |
64 |
Abstract: $abstract$
65 |
66 | $endif$
67 |
68 |
69 | $body$
70 |
71 |
72 |
73 |
--------------------------------------------------------------------------------
/templates/html.template:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 | $for(author-meta)$
7 |
8 | $endfor$
9 | $if(date-meta)$
10 |
11 | $endif$
12 | $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$
13 |
14 |
17 | $if(quotes)$
18 |
19 | $endif$
20 | $if(highlighting-css)$
21 |
24 | $endif$
25 | $for(css)$
26 |
27 | $endfor$
28 | $if(math)$
29 | $math$
30 | $endif$
31 | $for(header-includes)$
32 | $header-includes$
33 | $endfor$
34 |
35 |
36 | $for(include-before)$
37 | $include-before$
38 | $endfor$
39 | $if(title)$
40 |
41 | $if(date)$
42 | $date$
43 | $endif$
44 |
45 | $title$
46 |
47 |
48 | $for(author)$
49 | $author.name$
50 | $author.affiliation$
51 | $endfor$
52 |
53 |
54 | $endif$
55 | $if(toc)$
56 |
57 | $toc$
58 |
59 | $endif$
60 |
61 | $if(abstract)$
62 |
63 | Abstract: $abstract$
64 |
65 | $endif$
66 |
67 |
68 | $body$
69 |
70 |
71 |
--------------------------------------------------------------------------------
/templates/latex-book.template:
--------------------------------------------------------------------------------
1 | \documentclass[12pt]{memoir}
2 | \usepackage[minion]{org-preamble-pdflatex}
3 | \input{vc}
4 |
5 | $if(listings)$
6 | \usepackage{listings}
7 | \lstset{
8 | basicstyle=\small\ttfamily,
9 | frame=single,
10 | float}
11 | \newcommand{\passthrough}[1]{#1}
12 | $endif$
13 | $if(lhs)$
14 | \lstnewenvironment{code}{\lstset{language=r,basicstyle=\small\ttfamily}}{}
15 | $endif$
16 | $if(highlighting-macros)$
17 | $highlighting-macros$
18 | $endif$
19 | $if(verbatim-in-note)$
20 | \usepackage{fancyvrb}
21 | $endif$
22 | $if(tables)$
23 | \usepackage{longtable}
24 | $endif$
25 |
26 | $if(graphics)$
27 | \usepackage{graphicx}
28 | % We will generate all images so they have a width \maxwidth. This means
29 | % that they will get their normal width if they fit onto the page, but
30 | % are scaled down if they would overflow the margins.
31 | \makeatletter
32 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
33 | \else\Gin@nat@width\fi}
34 | \makeatother
35 | \let\Oldincludegraphics\includegraphics
36 | \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
37 | $endif$
38 |
39 | $if(bibind)$
40 | %% Custom hanging indent for vita items
41 | \def\ind{\hangindent=0.8 true cm\hangafter=1 \noindent}
42 | $endif$
43 |
44 | $if(csl-refs)$
45 | \newlength{\cslhangindent}
46 | \setlength{\cslhangindent}{1.5em}
47 | \newlength{\csllabelwidth}
48 | \setlength{\csllabelwidth}{3em}
49 | \newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
50 | {% don't indent paragraphs
51 | \setlength{\parindent}{0pt}
52 | % turn on hanging indent if param 1 is 1
53 | \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
54 | % set entry spacing
55 | \ifnum #2 > 0
56 | \setlength{\parskip}{#2\baselineskip}
57 | \fi
58 | }%
59 | {}
60 | \usepackage{calc}
61 | \newcommand{\CSLBlock}[1]{#1\hfill\break}
62 | \newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
63 | \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}}
64 | \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
65 | $endif$
66 |
67 |
68 | $if(title)$
69 | \title{\bigskip \bigskip $title$$if(thanks)$\thanks{$thanks$} $endif$ }
70 | $endif$
71 |
72 | %\author{$for(author)$$author$$sep$\\$endfor$}
73 |
74 | \author{$for(author)$\Large $author.name$\vspace{0.05in} \newline\normalsize\emph{$author.affiliation$} \newline\footnotesize \url{$author.email$}\vspace*{0.2in}\newline $sep$ \and $endfor$}
75 |
76 |
77 | \date{}
78 |
79 | $for(header-includes)$
80 | $header-includes$
81 | $endfor$
82 |
83 | \setcounter{secnumdepth}{0}
84 | \maxsecnumdepth{chapter}
85 |
86 |
87 |
88 | \begin{document}
89 | \setkeys{Gin}{width=1\textwidth}
90 | %\setromanfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}
91 | %\setsansfont[Mapping=tex-text]{Minion Pro}
92 | %\setmonofont[Mapping=tex-text,Scale=0.8]{Berkeley Mono}
93 |
94 | \frontmatter
95 |
96 | \chapterstyle{minionbook}
97 |
98 | \begin{titlingpage}
99 | \published{$date$.}
100 |
101 | $if(title)$
102 | \maketitle
103 | $endif$
104 | \end{titlingpage}
105 |
106 | \pagestyle{kjhbook}
107 |
108 | %%% ------------------------------------------------------------------
109 | %%% Copyright page
110 | %%% ------------------------------------------------------------------
111 | \clearpage
112 |
113 | \begingroup
114 | \footnotesize
115 | \setlength{\parindent}{0pt}
116 | \setlength{\parskip}{\baselineskip}
117 | %%\ttfamily
118 | \textcopyright{} $for(author)$$author.name$ \and $endfor$
119 |
120 | \textbf{Draft Only. Please do not cite, circulate or quote.}
121 |
122 |
123 | \endgroup
124 | \clearpage
125 | %%% ------------------------------------------------------------------
126 |
127 |
128 | $if(toc)$
129 | {
130 | \newpage
131 | \hypersetup{linkcolor=black}
132 | \setcounter{tocdepth}{$toc-depth$}
133 | \tableofcontents*
134 | \newpage
135 | }
136 | \clearpage
137 | \markboth{}{}
138 | $endif$
139 |
140 | $if(abstract)$
141 |
142 | \begin{abstract}
143 |
144 | \vspace*{-0.75in}\noindent \emph{Abstract:} $abstract$
145 |
146 | \end{abstract}
147 |
148 | $endif$
149 |
150 | \mainmatter
151 |
152 | $body$
153 |
154 | \backmatter
155 |
156 | $if(natbib)$
157 | $if(biblio-files)$
158 | $if(biblio-title)$
159 | $if(book-class)$
160 | \renewcommand\bibname{Bibliography}
161 | $else$
162 | \renewcommand\refname{References}
163 | $endif$
164 | $endif$
165 |
166 | \bibliography{$biblio-files$}
167 |
168 | $endif$
169 | $endif$
170 | $if(biblatex)$
171 | \printbibliography$if(biblio-title)$[title=References]$endif$
172 |
173 | $endif$
174 | $for(include-after)$
175 | $include-after$
176 |
177 | $endfor$
178 | \end{document}
179 |
--------------------------------------------------------------------------------
/templates/latex-ordinal-book.template:
--------------------------------------------------------------------------------
1 | \documentclass[12pt]{memoir}
2 | \usepackage[minion]{org-preamble-pdflatex}
3 | \input{vc}
4 |
5 | $if(listings)$
6 | \usepackage{listings}
7 | \lstset{
8 | basicstyle=\small\ttfamily,
9 | frame=single,
10 | float}
11 | \newcommand{\passthrough}[1]{#1}
12 | $endif$
13 | $if(lhs)$
14 | \lstnewenvironment{code}{\lstset{language=r,basicstyle=\small\ttfamily}}{}
15 | $endif$
16 | $if(highlighting-macros)$
17 | $highlighting-macros$
18 | $endif$
19 | $if(verbatim-in-note)$
20 | \usepackage{fancyvrb}
21 | $endif$
22 | $if(tables)$
23 | \usepackage{longtable}
24 | $endif$
25 |
26 | $if(graphics)$
27 | \usepackage{graphicx}
28 | % We will generate all images so they have a width \maxwidth. This means
29 | % that they will get their normal width if they fit onto the page, but
30 | % are scaled down if they would overflow the margins.
31 | \makeatletter
32 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
33 | \else\Gin@nat@width\fi}
34 | \makeatother
35 | \let\Oldincludegraphics\includegraphics
36 | \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
37 | $endif$
38 |
39 | $if(bibind)$
40 | %% Custom hanging indent for vita items
41 | \def\ind{\hangindent=0.8 true cm\hangafter=1 \noindent}
42 | $endif$
43 |
44 | $if(csl-refs)$
45 | \newlength{\cslhangindent}
46 | \setlength{\cslhangindent}{1.5em}
47 | \newlength{\csllabelwidth}
48 | \setlength{\csllabelwidth}{3em}
49 | \newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
50 | {% don't indent paragraphs
51 | \setlength{\parindent}{0pt}
52 | % turn on hanging indent if param 1 is 1
53 | \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
54 | % set entry spacing
55 | \ifnum #2 > 0
56 | \setlength{\parskip}{#2\baselineskip}
57 | \fi
58 | % make if small
59 | \scriptsize
60 | }%
61 | {}
62 | \usepackage{calc}
63 | \newcommand{\CSLBlock}[1]{#1\hfill\break}
64 | \newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
65 | \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}}
66 | \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
67 | $endif$
68 |
69 | %% Typeset notes as a single paragraph
70 | \usepackage[para]{footmisc}
71 |
72 | %% Adjust the space after the fn mark in the para fn area
73 | %% https://tex.stackexchange.com/questions/586412/differences-between-usepackagefootmisc-and-usepackageparafootmisc-and-ho
74 | \makeatletter
75 | \long\def\@makefntext#1{\leavevmode
76 | \@makefnmark\nobreak
77 | \hskip.1em
78 | \relax#1%
79 | }
80 | \makeatother
81 |
82 | $if(title)$
83 | \title{\bigskip \bigskip $title$$if(thanks)$\thanks{$thanks$} $endif$ }
84 | $endif$
85 |
86 | %\author{$for(author)$$author$$sep$\\$endfor$}
87 |
88 | \author{$for(author)$\Large $author.name$\vspace{0.05in} \newline\normalsize\emph{$author.affiliation$} \vspace*{0.2in}\newline $sep$ \and $endfor$}
89 |
90 |
91 | \date{}
92 |
93 | $for(header-includes)$
94 | $header-includes$
95 | $endfor$
96 |
97 | \setcounter{secnumdepth}{0}
98 | \maxsecnumdepth{chapter}
99 |
100 |
101 |
102 | \begin{document}
103 | \setkeys{Gin}{width=1\textwidth}
104 | %\setromanfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}
105 | %\setsansfont[Mapping=tex-text]{Minion Pro}
106 | %\setmonofont[Mapping=tex-text,Scale=0.8]{Berkeley Mono}
107 |
108 | \frontmatter
109 |
110 | \chapterstyle{minionbook}
111 |
112 | \begin{titlingpage}
113 | %\published{$date$.}
114 | \published{\texttt{Draft only. Not for circulation. Version \VCRevision\ produced on \VCDateTEX.}}
115 |
116 | $if(title)$
117 | \maketitle
118 | $endif$
119 | \end{titlingpage}
120 |
121 | \pagestyle{kjhbook}
122 |
123 | %%% ------------------------------------------------------------------
124 | %%% Copyright page
125 | %%% ------------------------------------------------------------------
126 | \clearpage
127 |
128 | \begingroup
129 | \footnotesize
130 | \setlength{\parindent}{0pt}
131 | \setlength{\parskip}{\baselineskip}
132 | %%\ttfamily
133 | \textcopyright{} $for(author)$$author.name$ \and $endfor$
134 |
135 | \textbf{Draft Only. Please do not cite, circulate or quote.}
136 |
137 |
138 | \endgroup
139 | \clearpage
140 | %%% ------------------------------------------------------------------
141 |
142 |
143 | $if(toc)$
144 | $if(colorlinks)$
145 | \hypersetup{linkcolor=$if(toccolor)$$toccolor$$else$$endif$}
146 | $endif$
147 | \setcounter{tocdepth}{$toc-depth$}
148 | \tableofcontents*
149 | $endif$
150 |
151 | $if(abstract)$
152 |
153 | \begin{abstract}
154 |
155 | \vspace*{-0.75in}\noindent \emph{Abstract:} $abstract$
156 |
157 | \end{abstract}
158 |
159 | $endif$
160 |
161 | \mainmatter
162 |
163 | $body$
164 |
165 | \backmatter
166 |
167 | $if(natbib)$
168 | $if(biblio-files)$
169 | $if(biblio-title)$
170 | $if(book-class)$
171 | \renewcommand\bibname{Bibliography}
172 | $else$
173 | \renewcommand\refname{References}
174 | $endif$
175 | $endif$
176 |
177 | \bibliography{$biblio-files$}
178 |
179 | $endif$
180 | $endif$
181 | $if(biblatex)$
182 | \printbibliography$if(biblio-title)$[title=References]$endif$
183 |
184 | $endif$
185 | $for(include-after)$
186 | $include-after$
187 |
188 | $endfor$
189 | \end{document}
190 |
--------------------------------------------------------------------------------
/templates/latex.template:
--------------------------------------------------------------------------------
1 | \documentclass[11pt,article,oneside]{memoir}
2 | \usepackage[minion]{org-preamble-pdflatex}
3 | \input{vc}
4 |
5 | $if(listings)$
6 | \usepackage{listings}
7 | \lstset{
8 | basicstyle=\small\ttfamily,
9 | frame=single,
10 | float}
11 | \newcommand{\passthrough}[1]{#1}
12 | $endif$
13 | $if(lhs)$
14 | \lstnewenvironment{code}{\lstset{language=r,basicstyle=\small\ttfamily}}{}
15 | $endif$
16 | $if(highlighting-macros)$
17 | $highlighting-macros$
18 | $endif$
19 | $if(verbatim-in-note)$
20 | \usepackage{fancyvrb}
21 | $endif$
22 | $if(tables)$
23 | \usepackage{longtable}
24 | $endif$
25 |
26 | $if(graphics)$
27 | \usepackage{graphicx}
28 | % We will generate all images so they have a width \maxwidth. This means
29 | % that they will get their normal width if they fit onto the page, but
30 | % are scaled down if they would overflow the margins.
31 | \makeatletter
32 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
33 | \else\Gin@nat@width\fi}
34 | \makeatother
35 | \let\Oldincludegraphics\includegraphics
36 | \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
37 | $endif$
38 |
39 | $if(bibind)$
40 | %% Custom hanging indent for vita items
41 | \def\ind{\hangindent=0.8 true cm\hangafter=1 \noindent}
42 | $endif$
43 |
44 | $if(csl-refs)$
45 | \newlength{\cslhangindent}
46 | \setlength{\cslhangindent}{1.5em}
47 | \newlength{\csllabelwidth}
48 | \setlength{\csllabelwidth}{3em}
49 | \newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
50 | {% don't indent paragraphs
51 | \setlength{\parindent}{0pt}
52 | % turn on hanging indent if param 1 is 1
53 | \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
54 | % set entry spacing
55 | \ifnum #2 > 0
56 | \setlength{\parskip}{#2\baselineskip}
57 | \fi
58 |
59 | }%
60 | {}
61 | \usepackage{calc}
62 | \newcommand{\CSLBlock}[1]{#1\hfill\break}
63 | \newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
64 | \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}}
65 | \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
66 | $endif$
67 |
68 |
69 | $if(title)$
70 | \title{\bigskip \bigskip $title$$if(thanks)$\thanks{$thanks$} $endif$ }
71 | $endif$
72 |
73 | %\author{$for(author)$$author$$sep$\\$endfor$}
74 |
75 | \author{$for(author)$\Large $author.name$\vspace{0.05in} \newline\normalsize\emph{$author.affiliation$} \newline\footnotesize \url{$author.email$}\vspace*{0.2in}\newline $sep$ \and $endfor$}
76 |
77 |
78 | \date{}
79 |
80 | $for(header-includes)$
81 | $header-includes$
82 | $endfor$
83 |
84 | \begin{document}
85 | \setkeys{Gin}{width=1\textwidth}
86 | %\setromanfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}
87 | %\setsansfont[Mapping=tex-text]{Minion Pro}
88 | %\setmonofont[Mapping=tex-text,Scale=0.8]{Pragmata}
89 | \chapterstyle{article-4}
90 | \pagestyle{kjh}
91 |
92 | \published{$date$.}
93 |
94 | $if(title)$
95 | \maketitle
96 | $endif$
97 |
98 | $if(toc)$
99 | {
100 | \hypersetup{linkcolor=black}
101 | \setcounter{tocdepth}{$toc-depth$}
102 | \tableofcontents
103 | }
104 | $endif$
105 |
106 | $if(abstract)$
107 |
108 | \begin{abstract}
109 |
110 | \vspace*{-0.75in}\noindent \emph{Abstract:} $abstract$
111 |
112 | \end{abstract}
113 |
114 | $endif$
115 |
116 | $body$
117 |
118 | $if(natbib)$
119 | $if(biblio-files)$
120 | $if(biblio-title)$
121 | $if(book-class)$
122 | \renewcommand\bibname{Bibliography}
123 | $else$
124 | \renewcommand\refname{References}
125 | $endif$
126 | $endif$
127 |
128 | \bibliography{$biblio-files$}
129 |
130 | $endif$
131 | $endif$
132 | $if(biblatex)$
133 | \printbibliography$if(biblio-title)$[title=References]$endif$
134 |
135 | $endif$
136 | $for(include-after)$
137 | $include-after$
138 |
139 | $endfor$
140 | \end{document}
--------------------------------------------------------------------------------
/templates/plain-person.tex:
--------------------------------------------------------------------------------
1 | \documentclass[$if(fontsize)$$fontsize$,$endif$$if(lang)$$lang$,$endif$$if(papersize)$$papersize$,$endif$$for(classoption)$$classoption$$sep$,$endfor$]{$documentclass$}
2 |
3 | % ams
4 | \usepackage{amssymb,amsmath}
5 |
6 | % tools
7 | % tools
8 | \usepackage{etoolbox}
9 | \usepackage{fancyhdr}
10 | \usepackage{ifpdf,ifxetex,ifluatex}
11 | \usepackage{fixltx2e} % provides \textsubscript
12 | \usepackage[$if(useminion)$minion$endif$,$if(sanshead)$sanshead$endif$]{org-preamble-pdflatex}
13 |
14 | $if(sanshead)$
15 | \def\sfdefault{SourceSansPro-TLF}
16 | \def\SourceSansPro@scale{1.02}
17 | \def\bfdefault{b}
18 | $endif$
19 |
20 |
21 | % % Define a new pagestyle
22 | % \makeatletter
23 | % \renewcommand{\chaptermark}[1]{\markboth{\thechapter.\ #1}{}}
24 | % \renewcommand{\sectionmark}[1]{\markright{#1}}
25 | % \makeatother
26 |
27 | % \fancypagestyle{dataviz}{
28 | % \fancyhf{}
29 | % \fancyhead[LE]{\sffamily\thepage\quad{\newlinetospace{\leftmark}}}
30 | % \fancyhead[RO]{\sffamily\newlinetospace{\rightmark}\quad\thepage}
31 | % % \fancyhead[RE,RO]{\runheadfont\newlinetospace{\plaintitle}\quad\thepage}
32 | % }
33 |
34 | % \fancypagestyle{plain}{
35 | % \fancyhf{}
36 | % \fancyhead[LE]{\sffamily\thepage}
37 | % \fancyhead[RO]{\sffamily\quad\thepage}
38 | % % \fancyhead[RE,RO]{\runheadfont\newlinetospace{\plaintitle}\quad\thepage}
39 | % }
40 |
41 | % \appto\frontmatter{\pagestyle{plain}}
42 | % \appto\mainmatter{\pagestyle{dataviz}}
43 |
44 | $if(usecharter)$
45 | \usepackage{microtype-preamble}
46 | $endif$
47 |
48 |
49 | $if(euro)$
50 | \usepackage{eurosym}
51 | \newcommand{\euro}{€}
52 | $endif$
53 |
54 | % graphicx
55 | \usepackage{graphicx}
56 | \setkeys{Gin}{width=\linewidth,totalheight=\textheight,keepaspectratio}
57 |
58 | % subfigures
59 | \usepackage{subfig}
60 | %\newcommand{\subfloat}[2][need a sub-caption]{\subcaptionbox{#1}{#2}}
61 |
62 | % url
63 | \usepackage{url}
64 |
65 | % hyperref
66 | \usepackage{hyperref}
67 |
68 | % units.
69 | \usepackage{units}
70 |
71 | % full bleed cover image
72 | \usepackage{eso-pic}
73 |
74 |
75 | $if(numbersections)$
76 | % Control depth of chapter/section numbering
77 | \setcounter{secnumdepth}{$if(secnumdepth)$$secnumdepth$$else$2$endif$}
78 | $else$
79 | \setcounter{secnumdepth}{-1}
80 | $endif$
81 |
82 | % citations
83 | $if(natbib)$
84 | \usepackage{natbib}
85 | \bibliographystyle{$if(biblio-style)$$biblio-style$$else$plainnat$endif$}
86 | $endif$
87 | $if(biblatex)$
88 | \usepackage{biblatex}
89 | $for(bibliography)$
90 | \addbibresource{$bibliography$}
91 | $endfor$
92 | $endif$
93 |
94 | % pandoc syntax highlighting
95 | $if(highlighting-macros)$
96 |
97 | $highlighting-macros$
98 |
99 | % Choose size of shaded code blocks without shrinking inline code.
100 | \renewenvironment{Shaded} {\begin{snugshade}\small} {\end{snugshade}}
101 |
102 | $endif$
103 |
104 | % longtable
105 | $if(tables)$
106 | \usepackage{longtable,booktabs}
107 | $endif$
108 |
109 | % listings
110 | % $if(uselistings)$
111 | % % \usepackage{fancyvrb}
112 | % % \usepackage{listings}
113 | % % \lstset{frame=single, columns=fixed, basicstyle=\footnotesize\ttfamily, keepspaces=true, showstringspaces=false, numbers=none, framesep=10pt, xleftmargin=10pt,xrightmargin=10pt}
114 | % \newcommand{\passthrough}[1]{#1}
115 | % $endif$
116 |
117 | % pandoc-crossref
118 | $if(pandoc-crossref)$
119 | \usepackage{cleveref}
120 | $endif$
121 |
122 | % multiplecol
123 | \usepackage{multicol}
124 |
125 | % strikeout
126 | \usepackage[normalem]{ulem}
127 |
128 | % morefloats
129 | \usepackage{morefloats}
130 |
131 | $if(ctex)$
132 | \usepackage{ctexcap}
133 | $endif$
134 |
135 | % tightlist macro required by pandoc >= 1.14
136 | \providecommand{\tightlist}{%
137 | \setlength{\itemsep}{0pt}\setlength{\parskip}{0pt}}
138 |
139 | % CSL environment pandoc >=2.8
140 | $if(csl-refs)$
141 | \newlength{\cslhangindent}
142 | \setlength{\cslhangindent}{1.5em}
143 | \newenvironment{CSLReferences}%
144 | {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
145 | \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
146 | {\par}
147 | $endif$
148 |
149 | % title / author / date
150 | $if(title)$
151 | \title{$title$}
152 | $endif$
153 | $if(author)$
154 | \author{$for(author)$$author.name$$sep$ \and $endfor$}
155 | $endif$
156 | $if(date)$
157 | \date{$date$}
158 | $else$
159 | \date{}
160 | $endif$
161 |
162 | % Keep the verbatim output small, like snugshade env is.
163 | $if(smallverbatim)$
164 | %\fvset{fontsize=$smallverbatim$}
165 | %\RecustomVerbatimEnvironment{verbatim}{Verbatim}{}
166 | $endif$
167 |
168 | $for(header-includes)$
169 | $header-includes$
170 | $endfor$
171 |
172 | \begin{document}
173 |
174 | $if(cover-image)$
175 |
176 | \clearpage
177 | \thispagestyle{empty}
178 |
179 | % hack to make a blank page by inserting a space
180 | \
181 |
182 |
183 | \AddToShipoutPictureBG*{% Add picture to current page
184 | \AtStockLowerLeft{% Add picture to lower-left corner of paper stock
185 | \includegraphics[width=\paperwidth,height=\paperheight]{$cover-image$}}%
186 | }
187 |
188 | % http://tex.stackexchange.com/questions/24988/how-to-place-an-image-over-a-full-including-bleed-page-in-memoir
189 | % for memoir class use \stockwidth and \stockheight
190 |
191 | % \bigskip
192 | % \begin{figure*}\includegraphics[width=1\linewidth]{$cover-image$}\end{figure*}
193 |
194 | \clearpage
195 | \newpage
196 | \thispagestyle{empty}
197 |
198 | \
199 |
200 | % open the title on a recto page
201 | \clearpage
202 | \newpage
203 | \thispagestyle{empty}
204 |
205 | $if(title)$
206 |
207 | \title{$title$}
208 |
209 | {\sffamily\bfseries \color{pagesectioning}
210 | \maketitle
211 | }
212 |
213 | $if(disclaimer)$
214 | \vspace*{\fill}
215 | $disclaimer$
216 | \clearpage
217 | \newpage
218 | \thispagestyle{empty}
219 | $endif$
220 | $endif$
221 |
222 | $if(cover-note)$
223 | \bigskip
224 | \noindent {\sffamily\bfseries \color{pagesectioning} About the Cover} \\
225 | \smallskip
226 | $cover-note$
227 | \medskip
228 | $endif$
229 |
230 |
231 | $if(author-note)$
232 | \bigskip
233 | \noindent {\sffamily\bfseries \color{pagesectioning} About the Author} \\
234 | \smallskip
235 | $author-note$
236 | \medskip
237 | $endif$
238 |
239 | $if(copyright-page)$
240 | \vspace*{\fill}
241 |
242 | \thispagestyle{empty}
243 | %% copyrightpage
244 | \begingroup
245 | \footnotesize
246 | \parindent 0pt
247 | \parskip \baselineskip
248 | \textcopyright{} $if(copyright-year)$$copyright-year$$endif$ $if(author)$$for(author)$$author.name$$sep$ \and $endfor$$endif$ \ All rights reserved.
249 | \endgroup
250 | \clearpage
251 | \normalsize
252 | \newpage
253 | $endif$
254 |
255 | $if(dedication)$
256 |
257 | \thispagestyle{empty}
258 |
259 | \par\vspace*{.35\textheight}{\centering $dedication$ \par}
260 |
261 | \clearpage
262 | \normalsize
263 | \newpage
264 |
265 | $endif$
266 |
267 | \chapterstyle{microdoc}
268 | \pagestyle{kjh}
269 |
270 | % Frontmatter begins here
271 | \frontmatter
272 | \pagenumbering{roman}
273 | $endif$
274 |
275 | $if(abstract)$
276 | \begin{abstract}
277 | \noindent $abstract$
278 | \end{abstract}
279 | $endif$
280 |
281 | $for(include-before)$
282 | $include-before$
283 | $endfor$
284 |
285 | $if(toc)$
286 | {
287 | $if(colorlinks)$
288 | \hypersetup{linkcolor=$if(toccolor)$DarkSlateBlue$toccolor$$else$black$endif$}
289 | $endif$
290 | \setcounter{tocdepth}{$toc-depth$}
291 | {\sffamily
292 | \begin{KeepFromToc}
293 | \tableofcontents
294 | \end{KeepFromToc}
295 | }
296 | }
297 | $endif$
298 | $if(lot)$
299 | {\sffamily
300 | \listoftables
301 | }
302 | $endif$
303 | $if(lof)$
304 | {\sffamily
305 | \listoffigures
306 | }
307 | $endif$
308 |
309 | % Main matter starts here
310 | % \mainmatter
311 | % For this template \mainmatter defined in the text, after the Preface
312 |
313 | $body$
314 |
315 | % \backmatter
316 | \twocolumn
317 |
318 | $if(natbib)$
319 | $if(bibliography)$
320 | $if(biblio-title)$
321 | $if(book-class)$
322 | \renewcommand\bibname{$biblio-title$}
323 | $else$
324 | \renewcommand\refname{$biblio-title$}
325 | $endif$
326 | $endif$
327 | \bibliography{$for(bibliography)$$bibliography$$sep$,$endfor$}
328 |
329 | $endif$
330 | $endif$
331 | $if(biblatex)$
332 | \printbibliography$if(biblio-title)$[title=$biblio-title$]$endif$
333 | $endif$
334 |
335 |
336 |
337 | $if(colophon-note)$
338 | \clearpage
339 | \newpage
340 | \onecolumn
341 | \normalsize
342 | \thispagestyle{empty}
343 | {\sffamily\bfseries\color{pagesectioning} Colophon} \\
344 | \smallskip
345 | $colophon-note$
346 | $endif$
347 |
348 | $for(include-after)$
349 | $include-after$
350 | $endfor$
351 |
352 | \end{document}
353 |
--------------------------------------------------------------------------------
/templates/rmd-latex.template:
--------------------------------------------------------------------------------
1 | \documentclass[11pt,article,oneside]{memoir}
2 | \usepackage[minion]{rmd-preamble-pdflatex}
3 | \input{vc}
4 |
5 | $if(listings)$
6 | \usepackage{listings}
7 | \lstset{
8 | basicstyle=\small\ttfamily,
9 | frame=single,
10 | float}
11 | $endif$
12 | $if(lhs)$
13 | \lstnewenvironment{code}{\lstset{language=r,basicstyle=\small\ttfamily}}{}
14 | $endif$
15 | $if(highlighting-macros)$
16 | $highlighting-macros$
17 | $endif$
18 | $if(verbatim-in-note)$
19 | \usepackage{fancyvrb}
20 | $endif$
21 | $if(tables)$
22 | \usepackage{longtable}
23 | $endif$
24 |
25 | $if(graphics)$
26 | \usepackage{graphicx}
27 | $endif$
28 |
29 | $if(csl-refs)$
30 | \newlength{\cslhangindent}
31 | \setlength{\cslhangindent}{1.5em}
32 | \newlength{\csllabelwidth}
33 | \setlength{\csllabelwidth}{3em}
34 | \newenvironment{CSLReferences}[2] % #1 hanging-ident, #2 entry spacing
35 | {% don't indent paragraphs
36 | \setlength{\parindent}{0pt}
37 | % turn on hanging indent if param 1 is 1
38 | \ifodd #1 \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces\fi
39 | % set entry spacing
40 | \ifnum #2 > 0
41 | \setlength{\parskip}{#2\baselineskip}
42 | \fi
43 | }%
44 | {}
45 | \usepackage{calc}
46 | \newcommand{\CSLBlock}[1]{#1\hfill\break}
47 | \newcommand{\CSLLeftMargin}[1]{\parbox[t]{\csllabelwidth}{#1}}
48 | \newcommand{\CSLRightInline}[1]{\parbox[t]{\linewidth - \csllabelwidth}{#1}}
49 | \newcommand{\CSLIndent}[1]{\hspace{\cslhangindent}#1}
50 | $endif$
51 |
52 |
53 | $if(title)$
54 | \title{\bigskip \bigskip $title$$if(thanks)$\thanks{$thanks$} $endif$ }
55 | $endif$
56 |
57 | \author{$for(author)$\Large $author.name$\vspace{0.05in} \newline\normalsize\emph{$author.affiliation$} \newline\footnotesize $author.email$\vspace*{0.2in}\newline $sep$ \and $endfor$}
58 |
59 | \date{}
60 |
61 | $for(header-includes)$
62 | $header-includes$
63 | $endfor$
64 |
65 | \begin{document}
66 | \setkeys{Gin}{width=1\textwidth}
67 | %\setromanfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}
68 | %\setsansfont[Mapping=tex-text]{Minion Pro}
69 | %\setmonofont[Mapping=tex-text,Scale=0.8]{Pragmata}
70 | \chapterstyle{article-4}
71 | \pagestyle{kjh}
72 |
73 | \published{$date$.}
74 |
75 | $if(title)$
76 | \maketitle
77 | $endif$
78 |
79 | $if(toc)$
80 | {
81 | \hypersetup{linkcolor=black}
82 | \setcounter{tocdepth}{$toc-depth$}
83 | \tableofcontents
84 | }
85 | $endif$
86 |
87 | $if(abstract)$
88 |
89 | \begin{abstract}
90 |
91 | \vspace*{-0.75in}\noindent \emph{Abstract:} $abstract$
92 |
93 | \end{abstract}
94 |
95 | $endif$
96 |
97 | $body$
98 |
99 | $if(natbib)$
100 | $if(biblio-files)$
101 | $if(biblio-title)$
102 | $if(book-class)$
103 | \renewcommand\bibname{Bibliography}
104 | $else$
105 | \renewcommand\refname{References}
106 | $endif$
107 | $endif$
108 |
109 | \bibliography{$biblio-files$}
110 |
111 | $endif$
112 | $endif$
113 | $if(biblatex)$
114 | \printbibliography$if(biblio-title)$[title=References]$endif$
115 |
116 | $endif$
117 | $for(include-after)$
118 | $include-after$
119 |
120 | $endfor$
121 | \end{document}
--------------------------------------------------------------------------------
/templates/rmd-minion-reference.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kjhealy/pandoc-templates/1a12ce91e1fcb18a85cb28151b1fd78a868ee7c5/templates/rmd-minion-reference.docx
--------------------------------------------------------------------------------
/templates/rmd-myriad-minion-reference.docx:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/kjhealy/pandoc-templates/1a12ce91e1fcb18a85cb28151b1fd78a868ee7c5/templates/rmd-myriad-minion-reference.docx
--------------------------------------------------------------------------------
/templates/tufte-html-vis.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | $if(url)$ $endif$
14 | $if(cover-image)$ $endif$
15 | $if(description)$ $endif$
16 | $if(github-repo)$ $endif$
17 |
18 | $for(author-meta)$
19 |
20 | $endfor$
21 |
22 | $if(date-meta)$
23 |
24 | $endif$
25 |
26 | $if(math)$
27 |
32 | $math$
33 | $endif$
34 |
35 |
36 |
37 | $if(title-prefix)$$title-prefix$ - $endif$$pagetitle$
38 |
39 | $for(header-includes)$
40 | $header-includes$
41 | $endfor$
42 |
43 | $if(highlightjs)$
44 |
45 |
48 |
49 | $if(theme)$
50 |
55 | $endif$
56 |
63 | $endif$
64 |
65 | $if(highlighting-css)$
66 |
67 |
70 | $if(theme)$
71 |
76 | $endif$
77 | $endif$
78 |
79 | $if(abstract)$
80 |
90 | $endif$
91 |
92 | $for(css)$
93 |
94 | $endfor$
95 |
96 | $if(theme)$
97 |
113 | $endif$
114 |
115 |
116 |
117 |
118 |
119 |
120 |
121 | $if(toc)$
122 |
123 | $toc$
124 |
125 | $endif$
126 |
127 |
128 |
129 | $for(include-before)$
130 | $include-before$
131 | $endfor$
132 |
133 |
134 |
135 | $if(title)$
136 |
188 | $if(abstract)$
189 |
190 |
Abstract
191 | $abstract$
192 |
193 |
194 | $endif$
195 | $endif$
196 |
197 |
198 |
199 |
200 | $body$
201 |
202 |
203 | $for(include-after)$
204 | $include-after$
205 | $endfor$
206 |
207 |
208 |
216 |
217 |
218 |
219 |
--------------------------------------------------------------------------------
/templates/xelatex-modsyl.template:
--------------------------------------------------------------------------------
1 | \documentclass[11pt,article,oneside]{memoir}
2 | \usepackage{org-preamble-xelatex}
3 | \input{vc}
4 |
5 | $if(listings)$
6 | \usepackage{listings}
7 | $endif$
8 | $if(lhs)$
9 | \lstnewenvironment{code}{\lstset{language=r,basicstyle=\small\ttfamily}}{}
10 | $endif$
11 | $if(highlighting-macros)$
12 | $highlighting-macros$
13 | $endif$
14 | $if(verbatim-in-note)$
15 | \usepackage{fancyvrb}
16 | $endif$
17 | $if(tables)$
18 | \usepackage{longtable}
19 | $endif$
20 |
21 | $if(graphics)$
22 | \usepackage{graphicx}
23 | % We will generate all images so they have a width \maxwidth. This means
24 | % that they will get their normal width if they fit onto the page, but
25 | % are scaled down if they would overflow the margins.
26 | \makeatletter
27 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
28 | \else\Gin@nat@width\fi}
29 | \makeatother
30 | \let\Oldincludegraphics\includegraphics
31 | \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
32 | $endif$
33 |
34 | $if(csl-refs)$
35 | \newlength{\cslhangindent}
36 | \setlength{\cslhangindent}{1.5em}
37 | \newenvironment{CSLReferences}%
38 | {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
39 | \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
40 | {\par}
41 | $endif$
42 |
43 | $if(title)$
44 | \title{\HUGE $title$}
45 | $endif$
46 |
47 | %\author{$for(author)$$author$$sep$\\$endfor$}
48 |
49 | \author{$for(author)$\Large $author.name$\vspace{0.05in} \newline\small\emph{$author.affiliation$} \newline\footnotesize \url{$author.email$}\vspace*{0.2in}\newline $sep$ \and $endfor$}
50 |
51 | %\author{$for(author)$$author.name$ ($author.affiliation$)$sep$ \and $endfor$}
52 |
53 | \date{}
54 |
55 |
56 | \begin{document}
57 | \setkeys{Gin}{width=1\textwidth}
58 |
59 | \setromanfont[Mapping=tex-text]{Calluna}
60 | \setsansfont[Mapping=tex-text]{DINPro-Bold}
61 | \setmonofont[Mapping=tex-text,Scale=MatchLowercase]{Inconsolata}
62 | \newfontfamily\headnote{DINCond-Bold}
63 |
64 | \chapterstyle{article-2}
65 | \pagestyle{kjh}
66 |
67 | % \published{$date$.}
68 |
69 | $if(title)$
70 | \maketitle
71 | $endif$
72 |
73 | $if(toc)$
74 | {
75 | \hypersetup{linkcolor=black}
76 | \setcounter{tocdepth}{$toc-depth$}
77 | \tableofcontents
78 | }
79 | $endif$
80 |
81 | $if(abstract)$
82 |
83 | \begin{abstract}
84 |
85 | \noindent $abstract$
86 |
87 | \end{abstract}
88 |
89 | $endif$
90 |
91 | \firmlists
92 |
93 | $body$
94 |
95 |
96 | $if(natbib)$
97 | $if(biblio-files)$
98 | $if(biblio-title)$
99 | $if(book-class)$
100 | \renewcommand\bibname{Bibliography}
101 | $else$
102 | \renewcommand\refname{References}
103 | $endif$
104 | $endif$
105 | \bibliography{$biblio-files$}
106 |
107 | $endif$
108 | $endif$
109 | $if(biblatex)$
110 | \printbibliography$if(biblio-title)$[title=References]$endif$
111 |
112 | $endif$
113 | $for(include-after)$
114 | $include-after$
115 |
116 | $endfor$
117 | \end{document}
--------------------------------------------------------------------------------
/templates/xelatex.template:
--------------------------------------------------------------------------------
1 | \documentclass[11pt,article,oneside]{memoir}
2 | \usepackage{org-preamble-xelatex}
3 | \input{vc}
4 |
5 | $if(listings)$
6 | \usepackage{listings}
7 | $endif$
8 | $if(lhs)$
9 | \lstnewenvironment{code}{\lstset{language=r,basicstyle=\small\ttfamily}}{}
10 | $endif$
11 | $if(highlighting-macros)$
12 | $highlighting-macros$
13 | $endif$
14 | $if(verbatim-in-note)$
15 | \usepackage{fancyvrb}
16 | $endif$
17 | $if(tables)$
18 | \usepackage{longtable}
19 | $endif$
20 |
21 | $if(graphics)$
22 | \usepackage{graphicx}
23 | % We will generate all images so they have a width \maxwidth. This means
24 | % that they will get their normal width if they fit onto the page, but
25 | % are scaled down if they would overflow the margins.
26 | \makeatletter
27 | \def\maxwidth{\ifdim\Gin@nat@width>\linewidth\linewidth
28 | \else\Gin@nat@width\fi}
29 | \makeatother
30 | \let\Oldincludegraphics\includegraphics
31 | \renewcommand{\includegraphics}[1]{\Oldincludegraphics[width=\maxwidth]{#1}}
32 | $endif$
33 |
34 | $if(csl-refs)$
35 | \newlength{\cslhangindent}
36 | \setlength{\cslhangindent}{1.5em}
37 | \newenvironment{CSLReferences}%
38 | {$if(csl-hanging-indent)$\setlength{\parindent}{0pt}%
39 | \everypar{\setlength{\hangindent}{\cslhangindent}}\ignorespaces$endif$}%
40 | {\par}
41 | $endif$
42 |
43 | $if(title)$
44 | \title{\bigskip \bigskip $title$}
45 | $endif$
46 |
47 | %\author{$for(author)$$author$$sep$\\$endfor$}
48 |
49 | \author{$for(author)$\Large $author.name$\vspace{0.05in} \newline\normalsize\emph{$author.affiliation$} \newline\footnotesize \url{$author.email$}\vspace*{0.2in}\newline $sep$ \and $endfor$}
50 |
51 | %\author{$for(author)$$author.name$ ($author.affiliation$)$sep$ \and $endfor$}
52 |
53 | \date{}
54 |
55 |
56 | \begin{document}
57 | \setkeys{Gin}{width=1\textwidth}
58 | \setromanfont[Mapping=tex-text,Numbers=OldStyle]{Minion Pro}
59 | \setsansfont[Mapping=tex-text]{Minion Pro}
60 | \setmonofont[Mapping=tex-text,Scale=0.8]{Berkeley Mono}
61 | \chapterstyle{article-4}
62 | \pagestyle{kjh}
63 |
64 | \published{$date$.}
65 |
66 | $if(title)$
67 | \maketitle
68 | $endif$
69 |
70 | $if(toc)$
71 | {
72 | \hypersetup{linkcolor=black}
73 | \setcounter{tocdepth}{$toc-depth$}
74 | \tableofcontents
75 | }
76 | $endif$
77 |
78 | $if(abstract)$
79 |
80 | \begin{abstract}
81 |
82 | \noindent $abstract$
83 |
84 | \end{abstract}
85 |
86 | $endif$
87 |
88 | $body$
89 |
90 |
91 | $if(natbib)$
92 | $if(biblio-files)$
93 | $if(biblio-title)$
94 | $if(book-class)$
95 | \renewcommand\bibname{Bibliography}
96 | $else$
97 | \renewcommand\refname{References}
98 | $endif$
99 | $endif$
100 | \bibliography{$biblio-files$}
101 |
102 | $endif$
103 | $endif$
104 | $if(biblatex)$
105 | \printbibliography$if(biblio-title)$[title=References]$endif$
106 |
107 | $endif$
108 | $for(include-after)$
109 | $include-after$
110 |
111 | $endfor$
112 | \end{document}
113 |
--------------------------------------------------------------------------------