Skip to content

Instantly share code, notes, and snippets.

@jaredyam
Created April 4, 2022 01:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jaredyam/9ac4057e8df9d103fbd1bcf0c81aaad1 to your computer and use it in GitHub Desktop.
Save jaredyam/9ac4057e8df9d103fbd1bcf0c81aaad1 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "This is a console commands collection, do not run this script directly"
exit 1
# latexdiff
latexdiff "$1" "$2" >_diff.tex 2>/dev/null
sed -i.bak '/\RequirePackage\[normalem\]{ulem}/d' _diff.tex
xelatex _diff
bibtex _diff
xelatex _diff
xelatex _diff
# git-latexdiff
git latexdiff --filter "sed -i.bak '/\RequirePackage\[normalem\]{ulem}/d' Thesis.tex" --xelatex --bibtex HEAD^
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment