Skip to content

Instantly share code, notes, and snippets.

@michaeldorner
Last active December 6, 2019 10:05
Show Gist options
  • Select an option

  • Save michaeldorner/3f70be38e70751806788323c86477987 to your computer and use it in GitHub Desktop.

Select an option

Save michaeldorner/3f70be38e70751806788323c86477987 to your computer and use it in GitHub Desktop.
My latexmk build file for Texpad fixing the issue with paths which contain spaces
#!/bin/bash
# Texpad 1.7 Build script to build with latexmk
tempdir="$(dirname "${TEXPAD_ROOTFILE}")/.texpadtmp";
latexmk -pdf -interaction=nonstopmode -outdir="${tempdir}" -file-line-error -synctex=1 "${TEXPAD_ROOTFILE}";
#mv "${tempdir}/$(basename "${TEXPAD_ROOTFILE}")" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment