Giter Club home page Giter Club logo

pandoc-templates's Introduction

% Project documents README % Jérôme Andrieux % 2014

NB: this document is both a README and a pandoc document example.

LaTeX produces great looking documents but no one has the time and the nerves to use it.

Markdown is omnipresent but not quite easy to get decent "client ready" documents from.

Pandoc is georgeous, yet its defaults need a little customization. Workflow wise, such customizations are best shared via git.

Usage

  1. fork / clone this template git repo
  2. keep the master branch as a template branch
  3. create a new branch for each new project you need
  4. create a pandoc (markdown) document
  5. run make anytime you need to generate PDF or DOCX

NB: you can make clean to remove old cruft, make your.file.md.pdf to skip the others, etc. See Makefile.

If you update your templates, you may want to merge with your project branches. I tried subtrees and submodules but meh.

Requirements

  • pandoc, installed via cabal install but your distro may provide it as a package.
  • LaTeX (xelatex recommended), texlive is OK.
  • gnu make

Depending on your customizations, you may need additional LaTeX packages, fonts, etc. CTAN FTW.

Customizations

This git repo just provides basic templates and a workflow whie pandoc & LaTeX do the heavylifting.

You may want to change the default paper size, the language, the footer, the logo, etc. To do so:

  • change your logo in images/logo.png
  • change the default.latex document to your convenience
  • propagate your changes to your project branches

Tips on working with pandoc files

Pandoc is basically markdown, with support for github flavored extensions and many others, such as tables, syntax highlighting, etc.

Here are some Vim plugins I use to write my documents.

vim is the editor I and my colleagues use
vim-table-mode is awesome to create pandoc tables
vim-pandoc syntax, generators, preview, ...
vim-fugitive not documentation specific

...and some plugin conf...

autocmd FileType markdown TableModeEnable

"pandoc syntax annoying conceal et spellcheck
let g:pandoc#syntax#conceal#use = 0
let g:pandoc#modules#disabled = ['spell']

" make table both pandoc and github lovable
let g:table_mode_separator = '|'
let g:table_mode_corner = '|'
let g:table_mode_corner_corner = '|'

pandoc-templates's People

Contributors

jeromenerf avatar

Watchers

 avatar

Forkers

dortmans

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.