Skip to content

Instantly share code, notes, and snippets.

@shane5ul
Last active August 29, 2015 14:24
Show Gist options
  • Save shane5ul/307887b34dc90f79e3e9 to your computer and use it in GitHub Desktop.
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.
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