Skip to content

Instantly share code, notes, and snippets.

@habernal
Last active July 27, 2022 12:00
Show Gist options
  • Save habernal/5ca5b42c5115516d9fc7023ac1b7f2b1 to your computer and use it in GitHub Desktop.
Save habernal/5ca5b42c5115516d9fc7023ac1b7f2b1 to your computer and use it in GitHub Desktop.
Installing latest TU-Da templates
#!/bin/bash
# exit when any command fails
set -e
cd ~/texmf/tex/latex
ver="2.10"
# remove old installation if exists
rm -rf tuda-ci
rm tuda-ci_${ver}_ctan.zip -f
# download from releases -- only those before update to 3.0, this breaks everything
# https://github.com/tudace/tuda_latex_templates/releases
wget https://github.com/tudace/tuda_latex_templates/releases/download/v${ver}/tuda-ci_${ver}_ctan.zip
unzip tuda-ci_${ver}_ctan.zip
# clean up
rm tuda-ci_${ver}_ctan.zip
# download TU-Da logo
wget https://raw.githubusercontent.com/habernal/tuda-logo/main/tuda_logo.pdf --timestamping
# update tex
texhash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment