This is a docker image for upLaTeX+dvipdfmx/LuaLaTeX, latexmk using HaranoAji Fonts.
2.6K
This is a docker image source for upLaTeX / LuaLaTeX, dvipdfmx, latexmk using HaranoAji Fonts.
alpine)latest, 4.3.0, x.x.x: support only compile with upLaTeX/LuaLaTeX4.3.0-vscode, x.x.x-vscode: use image with vscode (supporting for vscode-latex-workshop)full: support full-package (with Japanese)Optional tags:
bullseye-slim[-vscode,-full]: using debian:bullseye-slim)$ docker pull ukitomato/latex:latest
or
$ docker pull ghcr.io/ukitomato/latex:latest
$ cd your-workspace
$ docker run -v $PWD:/working --name latex -w /working ukitomato/latex:latest latexmk -pvc latex.tex
$ cd your-workspace
$ docker run -v $PWD:/working --name latex -w /working ukitomato/latex:latest
root@0000000000:/working # uplatex latex.tex
root@0000000000:/working # dvipdfmx latex
latex.tex
\documentclass[uplatex,a4paper]{jsarticle}
\usepackage[noto-otc]{pxchfon}
\begin{document}
\section{English}
This is a sample file.
\section{日本語}
これは,サンプルファイルです.
\end{document}
This setting is used automatically. If you want to use your own settings, put the .latexmkrc file in the same folder as the .tex file.
#!/usr/bin/env perl
$latex = 'uplatex %O -synctex=1 -halt-on-error -interaction=batchmode %S';
$pdflatex = 'pdflatex %O -synctex=1 -interaction=nonstopmode %S';
$lualatex = 'lualatex %O -synctex=1 -interaction=nonstopmode %S';
$xelatex = 'xelatex %O -no-pdf -synctex=1 -shell-escape -interaction=nonstopmode %S';
$biber = 'biber %O --bblencoding=utf8 -u -U --output_safechars %B';
$bibtex = 'upbibtex %O %B';
$makeindex = 'upmendex %O -o %D %S';
$dvipdf = 'dvipdfmx %O -o %D %S';
$dvips = 'dvips %O -z -f %S | convbkmk -u > %D';
$ps2pdf = 'ps2pdf %O %S %D';
$pdf_mode = 3;
$pvc_view_file_via_temporary = 0;
$ cd workspace
$ vi docker-compose.yml
version: '3'
services:
latexmk:
container_name: latexmk
image: ukitomato/latex:latest
volumes:
- .:/working
working_dir: /working
command: latexmk -pvc latex.tex
$ docker-compose up
| Version | Description |
|---|---|
| 2.0.0 | update Texlive 2021 |
| acm-1.0.0 | support acm package |
| alpine-ja-1.0.0 | change base image |
| 1.2.0 | add SI units support |
| 1.1.0 | fix missing fonts error |
| 1.0.2 | fix docker commands |
| 1.0.0 | create docker latex image |
Yuki Yamato [ukitomato]
Content type
Image
Digest
Size
427.7 MB
Last updated
almost 5 years ago
docker pull ukitomato/latex