TeX Live image based on alpine
Forked from Paperist/docker-alpine-texlive-ja (under the MIT License).
Template:
- sample: George Kour's Style and Template for Preprints (arXiv, bio-arXiv) (under the Creative Commons CC BY 4.0)
- preprint_en_single_column: George Kour's Style and Template for Preprints (arXiv, bio-arXiv) (under the Creative Commons CC BY 4.0)
$ git clone https://github.com/wsuzume/docker-alpine-texlive
$ cd docker-alpine-texlive
$ make pull
# or
$ make build
Building an image sometimes fails if choosed mirror sever was weak.
Just run
$ make shell
and you can use platex
, dvipdfmx
, etc. in the docker container.
Choose template from templates
, and copy to workdir
.
$ cp -r templates/preprint_en_single_column workdir/mypaper
Then, edit Makefile
. Copy and paste sample
command and edit like following.
## target file is workdir/${XXDIR}/${XXMAIN}.tex
MYPAPERDIR=mypaper
MYPAPERMAIN=main
# uncomment if you want to compile with platex
#MYPAPERARG=-latex=platex
mypaper: workdir/sample/${MYPAPERMAIN}.tex
docker container run -it --rm \
-v ${PWD}/workdir:/workdir \
-w /workdir/${MYPAPERDIR} \
${IMAGE} \
sh -c "mktexlsr && latexmk -C ${MYPAPERMAIN}.tex && latexmk ${MYPAPERARG} ${MYPAPERMAIN}.tex && dvipdfmx ${MYPAPERMAIN}.dvi && latexmk -c ${MYPAPERMAIN}.tex"
Finally, you can compile LaTeX file by following command.
$ make mypaper
Edit Dockerfile
and add [modulename].sty
file to ${TEXMFLOCAL}/[modulename]
.
PRs accepted.
MIT © wsuzume
使い方わからない,とかでも声かけて大丈夫です.
Twitter: @wsuzume