Created
April 8, 2020 04:06
-
-
Save sampollard/cc9d8640e1b3b1a501150dc071dd1676 to your computer and use it in GitHub Desktop.
Italicise every other character in LaTeX
This file contains hidden or 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 | |
# usage: ital.sh <filename> | |
echo '/\\begin{document}/+,/\\end{document}/-s/\(.\)\(.\)/\\emph{\1}\2/g | w' | vim -e "$1" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment