Created
January 5, 2018 11:39
-
-
Save ptooley/8abaeaae8585e1c1e0d9de96d3b33d26 to your computer and use it in GitHub Desktop.
Hacky building of latex style files
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 | |
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