Code Monkey home page Code Monkey logo

docker-pandoc's Introduction

Pandoc with Latex/Xelatex + watchdog

Pandoc is a great document converter. Latex/Xetex is a great typesetting system. Unfortunately, installing the above can be tricky.

This image is setup to build PDF sideshows from Markdown source.

Pull down the image with:

docker pull vpetro/pandoc

Continuous mode

Note that on OS X this only works with the latest version of Docker for Mac. If you are using Virtualbox/docker-machine based setup, to use this you will have to upgrade or use the second method below.

Go into the directory that contains the Markdown source for the PDF presentation and run:

docker run -d -v `pwd`:/slides vpetro/pandoc

The above will create the container that watches the current directory for changes to Markdown files. Pandoc will run any time there is a change to a Markdown file in the current directory.

Run at will mode

Alternatively, the image can be used a big Pandoc executable to be run at will. Assuming you have a file named document.md in the current directory, the following command will produce a PDF version of the Markdown document.

docker run -v `pwd`:/slides pandoc pandoc /slides/document.md --latex-engine=xelatex -o document.pdf

or

 docker run -v `pwd`:/slides vpetro/pandoc:latest pandoc /slides/slides.md --latex-engine xelatex -o /slides/slides.pdf

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.