Skip to content

Instantly share code, notes, and snippets.

@ericabell
Last active November 12, 2015 11:49
Show Gist options
  • Save ericabell/1b8c9b463650e8a4244c to your computer and use it in GitHub Desktop.
Save ericabell/1b8c9b463650e8a4244c to your computer and use it in GitHub Desktop.
Fix latex for sage script
qtext() {
cp $1 $1.bak
sed -i -e 's/^/q_text.append(r"/' $1
sed -i -e 's/$/")/' $1
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment