Browse Source

latex

pull/2/head
Johannes Schickling 10 years ago
parent
commit
eb6b2b1b32
  1. 11
      latex/Dockerfile
  2. 23
      latex/README.md
  3. 14
      latex/install.sh
  4. 2
      octave/Dockerfile

11
latex/Dockerfile

@ -0,0 +1,11 @@
FROM debian:wheezy
MAINTAINER Johannes Schickling "schickling.j@gmail.com"
ENV DEBIAN_FRONTEND noninteractive
ADD install.sh install.sh
RUN chmod +x install.sh && ./install.sh && rm install.sh
VOLUME ["/source"]
WORKDIR /source
CMD ["bash"]

23
latex/README.md

@ -0,0 +1,23 @@
# latex
Full texlive distribution
## Usage
```sh
$ docker run --rm -it -v $(pwd):/source schickling/latex
```
Mount your local source folder to the container and run it inside the container.
#### Compiling a latex document
```sh
$ pdflatex my-document.tex
```
#### Compiling a xetex document
```sh
$ xelatex my-document.xtx
```

14
latex/install.sh

@ -0,0 +1,14 @@
#! /bin/bash
# exit if a command fails
set -e
# install full texlive distribution
apt-get update && apt-get install -y texlive-full
# cleanup package manager
apt-get autoclean && apt-get clean
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
# prepare dir
mkdir /source

2
octave/Dockerfile

@ -8,4 +8,4 @@ RUN chmod +x install.sh && ./install.sh && rm install.sh
VOLUME ["/source"]
WORKDIR /source
CMD ["bash"]
CMD ["octave"]
Loading…
Cancel
Save