Skip to content
No description, website, or topics provided.
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
LICENSE
README.md

README.md

Docker Xelatex

Docker Stars Docker Pulls

Supported tags and respective Dockerfile links

Base Docker Image

Introduction

Docker container used for compile XeLaTex documents and deploy a generated PDF file.

You can use to do instantaneous compile for each save with inotify-tools.

Quickstart

  • Simple make:
docker run --rm -v $(shell pwd):/data moss/xelatex make
  • Auto compile for each save:
docker run --rm -v $(shell pwd):/data moss/xelatex make view

Makefile Example

######################
#      Makefile      #
######################

filename=your_file_without_extension

pdf: 
	xelatex ${filename}
	xelatex ${filename}

text: html
	html2text -width 100 -style pretty ${filename}/${filename}.html | sed -n '/./,$$p' | head -n-2 >${filename}.txt

html:
	@#latex2html -split +0 -info "" -no_navigation ${filename}
	htlatex ${filename}

view:
	while inotifywait --event modify,move_self,close_write ${filename}.tex; \
		do xelatex -halt-on-error ${filename} &&   xelatex -halt-on-error \
		${filename}; done

clean:
	rm -f ${filename}.{ps,pdf,log,aux,out,dvi,bbl,blg,snm,toc,nav}

Useful links

Github remote

Docker Hub repo

You can’t perform that action at this time.