Code Monkey home page Code Monkey logo

pandoc-templates's Introduction

Pandoc Configuration and Support Files

Description

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, socbibs, and the Emacs Starter Kit for the Social Sciences. The only real dependencies are the latex class and style files in latex-custom-kjh, however.

PDF HTML Word

Notes

What's included?

  • Some Pandoc templates for an article in PDF (vita LaTeX), HTML, or Microsoft Word. These go in ~/.pandoc/templates. These can be be pointed to directly with the --template= switch as appropriate. The latex.template and xelatex.template depend on the style files in latex-custom-kjh. The Word reference documents depend on you having Myriad Pro and Minion Pro installed.
  • In R, knitr's knit() function will turn .Rmd files into .md files. The configuration file in the knitr/ folder is an example to help you produce HTML or .tex using knitr's pandoc() helper function.
  • The CSL files in the csl/ folder format the bibliography generated by pandoc and citeproc. (For simplicity we avoid dealing with biblatex directly at all.) The chicago-syllabus.csl file makes a tiny change to a standard Chicago Notes CSL file so you can use it to output citation information in the body text of a document. This makes it useful for lists of references in CVs and course syllabuses. The other two files are APSA and AJPS standard files from the main CSL styles repository.
  • The Makefile in the makefile/ folder helps you generate HTML, LaTeX, and PDF output from your markdown files in a convenient way. It is meant to go in the folder where you are writing your paper. It looks for .md files in the working directory and converts them to nice HTML, PDF, and LaTeX files using the templates provided here, the style files in latex-custom-kjh, and the bibliography files in socbibs. You can of course change the bibliography and template files as desired.
  • The pandoc commands produced by the current version of the Makefile include switches that invoke two pandoc filters that do additional processing on the bibliography and cross-references in the document. You should install pandoc-crossref and pandoc-citeproc-preamble to make these work.
  • The md-article-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 as well, which begins with an .Rmd file.

Contact

Kieran Healy, @kjhealy

pandoc-templates's People

Contributors

kjhealy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pandoc-templates's Issues

Formatting for pandoc >=2.8

Newer versions of pandoc handle comments in latex templates a bit differently that cause breakage using this

jgm/pandoc#6036

If it’s of interest, Id be happy to issue a PR once I’ve tested the suggested fix

missing minionPro - can't compile to pdf with makefile

Hi Kieran Healy,
Thx for your great collection!
However after adding your files and the extra style files from your other repo, I am still missing MinionPro.sty.

I am using texLive2014 on OS X. How do I install the MinionPro style/font? I am not that experienced in managing LaTex files and just hoping most of the time it doesn't break, so any help would be appreciated ;)

help with using your templates please?

Apologies if this is trivial, but I'm having trouble getting your templates to work. I'm issuing this command...

markdown2pdf test.md --template=~/dev/pandoc-templates/templates/latex.template -o test.pdf

I'm getting the following error: markdown2pdf: ! LaTeX Error: File `vc.tex' not found.

Screenshoots and generated examples. How looks the results

Hi. I don't know what template should I use. I would like to see the rendered results before make a choose. Please add pictures and/or rendered htmls, pdfs, etc. Trying every possible template looks to be too hard. Or may be you know how to generate 10 html's with different styles in one cmd-line?
Thank you.
I want to generate github-like or bitbucket-like article. from my .md

pandoc-citeproc-preamble version conflict

I have tried to get the templates working and have installed pandoc-citeproc-preamble using Stack and have updated pandoc and pandoc-citeproc using brew (macOS), but now I'm stuck with the following error:

make pdf
rm -f *.html *.pdf *.tex *.aux *.log *.docx
pandoc -r markdown+simple_tables+table_captions+yaml_metadata_block -s -S --latex-engine=pdflatex --template=/Users/quirin/.pandoc/templates/latex.template --filter pandoc-crossref --filter pandoc-citeproc --filter pandoc-citeproc-preamble --csl=/Users/quirin/.pandoc/csl/apsa.csl --bibliography=/Users/quirin/promo/bib/references.bib -o orgexp.pdf orgexp.md
pandoc-citeproc-preamble: Error in $: Incompatible API versions: encoded with [1,17,0,4] but attempted to decode with [1,20].
CallStack (from HasCallStack):
  error, called at ./Text/Pandoc/JSON.hs:112:48 in pandoc-types-1.20-OVpjouTNmc7lSr0WxJlVR:Text.Pandoc.JSON
pandoc: Error running filter pandoc-citeproc-preamble
Filter returned error status 1
make: *** [orgexp.pdf] Error 83

What can I do?

Btw: Thanks a million for your fantastic plain text guide. I've finally made the transition to Emacs -- what a mind-blowing piece of software!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.