Last active
August 29, 2015 14:09
-
-
Save hinnerk/35d98d749cf7d3233204 to your computer and use it in GitHub Desktop.
TeXShop Engine description for dockerized XeLaTeX. Place in `~/Library/TeXShop/Engines/`.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
export WORKDIR=$( cd $(dirname $1) ; pwd -P ) | |
export FILENAME=$( basename $1 ) | |
for x in `boot2docker shellinit`; do if [ $x != 'export' ]; then export $x; fi; done | |
docker inspect xelatex > /dev/null && docker rm xelatex > /dev/null | |
echo "Starting dockerized XeLaTeX in $WORKDIR on $FILENAME" | |
docker run --name=xelatex -v $WORKDIR:/data hinnerk/texlive:latest /usr/bin/xelatex "$FILENAME" | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment