Skip to content

Instantly share code, notes, and snippets.

@louisroyer
Last active November 7, 2025 13:46
Show Gist options
  • Select an option

  • Save louisroyer/539e27d1015e5fb9e937490c7c511b9e to your computer and use it in GitHub Desktop.

Select an option

Save louisroyer/539e27d1015e5fb9e937490c7c511b9e to your computer and use it in GitHub Desktop.
Build my thesis from overleaf .zip export
#!/usr/bin/env bash
set -e
help() {
echo "Usage: $0 <path-to-these.zip>"
}
if [ "$#" -ne 1 ]; then
help
exit 1
fi
THESE_DIR=$(mktemp -d)
unzip "$1" -d "$THESE_DIR"
cd "$THESE_DIR"
make
cd -
mv "$THESE_DIR/these.pdf" "${1%.zip}.pdf"
rm -r "$THESE_DIR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment