In jupyter/iPython LaTeX markdown, I have many files that use the "$" and "$$" tags for math mode.
Sometimes, I liked to cut and paste stuff from there into Blogger. I have set my Blogger MathJax preferences to "slash-parentheses" and "slash-square-brackets" for "$" and "$$", respectively.
The following sed script lets me quickly do the conversion:
As as example consider the following:
Sometimes, I liked to cut and paste stuff from there into Blogger. I have set my Blogger MathJax preferences to "slash-parentheses" and "slash-square-brackets" for "$" and "$$", respectively.
The following sed script lets me quickly do the conversion:
This file contains 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' |
No comments:
Post a Comment