<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">#!/usr/bin/perl -pi 

s/(?&lt;!\\)&amp;/\\&amp;/g;
s/\$\$/\$/g;
s/(?&lt;!\\)%/\\%/g;
s/(?&lt;!\\)#/\\#/g;

# those ops were idempotent

s/'''(.*)'''/\\textbf{$1}/g;
s/''(.*)''/\\emph{$1}/g;


# add these to easylatex:

s/^:(.*)/\n\\ \\ \\ \\ \\ $1\n\\\\\n/gm;
s/&lt;pre&gt;/\\begin{verbatim}/g;
s/&lt;\/pre&gt;/\\end{verbatim}/g;
s/--&gt;/\\to/g;
#s/http:\/\/([\w\/\.]+)~([\w\/\.]*)/http:\/\/$1\\~{}$2/g;
s/~/\\~{}/g;
s/\\%(\s)/\\%\\ $1/sg;

# change graph size in \{seminar} class! 3,3?
s/\\begin{graph}/\\begin{graph}\nsize="3,3"/g;


# alert! bug in easylatex ?!?: an escaped equals sign didn't take:

#\ \ \ \ \ error rate \= 6\% (on \textbf{test} set)
#
#  had to be manually changed to
#
#\ \ \ \ \ error rate $=$ 6\% (on \textbf{test} set)

# note: must escape [s as \[s! must escape unwanted =s!





</pre></body></html>