Skip to content

Instantly share code, notes, and snippets.

@musaprg
Created January 9, 2022 19:00
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 musaprg/f39b11c038d80501ee19aff2ce84568d to your computer and use it in GitHub Desktop.
Save musaprg/f39b11c038d80501ee19aff2ce84568d to your computer and use it in GitHub Desktop.
vX.Y.Zという命名規則でタグ付されているやつの新しいものとひとつ前のバージョンのlatexdiffをとってくれるくん
#!/bin/bash
git tag | sort -V | tail -n 2 | xargs -n 2 bash -c 'latexdiff-vc -e utf8 --git --flatten --force -r $0 -r $1 -t CFONT main.tex'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment