matthieu-boussard / docker-latex

a docker repo for latex

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Docker with LaTeX

Build Status

LaTeX docker image for compiling latex files. Details of the package can be found on http://packages.ubuntu.com/xenial/texlive-full.

software verisons

  • Ubuntu:16.04
  • textlive-full(2015.20160320-1)
  • gnuplot

Usage

  • Build image
$ docker pull soleo/latex

or

$ docker build soleo/latex . 
  • Compile LaTeX
$ docker run --rm -v `pwd`:/mnt/src soleo/latex example.tex 
  • Shortcut function for bash
docker-latex() { docker run -v $PWD:/mnt/src --rm  soleo/latex:latest $@; return $?; }

add the function to your .bash_rc or .bash_profile

Feedback

Feel free to fork it or send me PR to improve it.

About

a docker repo for latex

License:MIT License


Languages

Language:TeX 80.8%Language:Shell 19.2%