Skip to content

wsuzume/docker-alpine-texlive

 
 

Repository files navigation

wsuzume/docker-alpine-texlive

standard-readme compliant

TeX Live image based on alpine

Forked from Paperist/docker-alpine-texlive-ja (under the MIT License).

Template:

Table of Contents

Install

$ 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.

Usage

Entering docker container

Just run

$ make shell

and you can use platex, dvipdfmx, etc. in the docker container.

Compiling from the outside of 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

Adding modules

Edit Dockerfile and add [modulename].sty file to ${TEXMFLOCAL}/[modulename].

Contribute

PRs accepted.

License

MIT © wsuzume

Contact

使い方わからない,とかでも声かけて大丈夫です.

Twitter: @wsuzume

About

Minimal TeX Live image for Japanese based on alpine

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TeX 89.7%
  • Dockerfile 6.6%
  • Makefile 3.7%