https://github.com/m1k1o/latex_docker
Create latex documents using docker container.
https://github.com/m1k1o/latex_docker
czechslovak docker iso690 latex-docker tex
Last synced: 2 months ago
JSON representation
Create latex documents using docker container.
- Host: GitHub
- URL: https://github.com/m1k1o/latex_docker
- Owner: m1k1o
- License: gpl-3.0
- Created: 2019-12-10T23:25:55.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-11-24T18:54:52.000Z (over 5 years ago)
- Last Synced: 2025-10-30T19:44:12.453Z (8 months ago)
- Topics: czechslovak, docker, iso690, latex-docker, tex
- Language: Shell
- Homepage:
- Size: 24.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# latex_docker
Generating PDF from TeX file in Docker container.
# Run
Mounting point for volume is `/project`.
```
docker run \
--rm \
--volume /home/user/doc:/project \
m1k1o/latex \
--help
```
Available options are:
```
entrypoint.sh [-h] [-i index] [-o index] [-s] [-b] [-c]
where:
-h, --help
Display this help.
-i, --input
Set input TeX file (default ./index).
File must be .tex extension.
-o, --output
Set output PDF file (default is same as input).
-s, --silent
Won't display anything.
-b, --biber
Run biber as well.
-c, --clear
Clear all temporary files.
(c) 2019 by m1k1o
```
# Build
You can build default Dockerfile like this:
```
docker build --tag m1k1o/latex:latest .
```
Or you can choose custom Dockerfile (listed below):
```
docker build --file Dockerfile.full --tag m1k1o/latex:full .
```
## Dockerfile
Performs `texlive` installation, about 240 MB. Available from docker hub as `m1k1o/latex:latest`.
## Dockerfile.full
Performs `texlive-full` installation, about 4714 MB. Available from docker hub as `m1k1o/latex:full`.
## Dockerfile.iso690
TeX settings and `czechslovak` language packages including `iso690` citation as it is required form in many Czech and Slovak universities. Available from docker hub as `m1k1o/latex:iso690`.
## Examples
Using **iso690**: If you have your project in `/home/user/doc` and your TeX file is `index.tex`, you can run it like this:
```
docker run \
--rm \
--volume /home/user/doc:/project \
m1k1o/latex:iso690
```
Using **full**: Setting custom options:
```
docker run \
--rm \
--volume /home/user/doc:/project \
m1k1o/latex:full \
--input first-page.tex \
--output custom.pdf \
--clear \
--biber
```