Last active
August 29, 2015 14:24
-
-
Save shane5ul/307887b34dc90f79e3e9 to your computer and use it in GitHub Desktop.
In iPython LaTeX markdown uses the $ and $$ tags for math mode. My blogger template likes \( \) and \[ \] instead. This sed script lets me quickly do the conversion.
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
sed -r 's/\$\$([^$$]*)\$\$/\\[\1\\]/g' INPUTFILE | sed -r 's/\$([^$]*)\$/\\(\1\\)/g' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment