Code Monkey home page Code Monkey logo

docker-alpine-texlive's Introduction

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.