Skip to content

Instantly share code, notes, and snippets.

@ptooley
Created January 5, 2018 11:39
Show Gist options
  • Save ptooley/8abaeaae8585e1c1e0d9de96d3b33d26 to your computer and use it in GitHub Desktop.
Save ptooley/8abaeaae8585e1c1e0d9de96d3b33d26 to your computer and use it in GitHub Desktop.
Hacky building of latex style files
#!/bin/bash
mkdir .latexbuild
cd .latexbuild
wget http://mirrors.ctan.org/macros/latex/contrib/caption/newfloat.dtx
cat << EOF > buildnewfloat.ins
\def\batchfile{buildnewfloat.ins}
\input docstrip
\generate{\file{newfloat.sty}{\from{newfloat.dtx}{package}}}
EOF
latex buildnewfloat.ins
cd ..
cp .latexbuild/newfloat.sty .
rm -r .latexbuild
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment