# erst einmal DOS-Zeilenende wech
s_
$__g

# Dokumentstart
s_\\documentclass.*$_<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">\
\
<html>\
\
<head>_g
s_\\begin{document}_</head>\
\
<body>_g
s_\\end{document}_</body>\
\
</html>_g

# Einiges einfach weglassen
s_\\usepackage.*__g
s_\\newcommand.*__g
s_\\pagenumbering.*__g
s_\\tableofcontents__g
s_\\newpage__g
s_\\clearpage__g

# Bemerkungen
s_\%.*__g


# Verweise

s_\\label{\([^}]*\)}_<a name=\"\1\"></a>_g
s_\\ref{\([^}]*\)}_<a href=\"#\1\"><acronym>\1</acronym></a>_g



# Tabellen (etwas Arbeit - mal schauen)
/\\begin{tabular}/,/\\end{tabular}/{
s_\\begin{tabular}.*_<table>\
<tr><td>_g
s_\\end{tabular}_</table>_g
s_\&_<td>_g
s_\\\\_\
<tr><td>_g
s_\\hline_<hr><tr><td>_g
}
/\\begin{figure}/,/\\end{figure}/{
s_\\begin{figure}.*_<table align=\"center\"><tr><td align=\"center\"><br>_g
s_\\end{figure}_</table><br>_g
s_\\begin{center}__g
s_\\end{center}__g
s_\\caption{\([^}]*\)}_<caption><big>\1</big></caption>_g
}
s_\\begin{table}.*$__g
s_\\end{table}.*$__g
s_\\begin{center}_<center>_g
s_\\end{center}_</center>_g




# EMail Adresse
s_\([a-zA-Z]*@[a-zA-Z._]*\)_<a href=\"mailto:\1\">\1</a>_g
s_\(http://[^ "]*\)_<a href=\"mailto:\1\">\1</a>_g

# Sonderzeichen
s_\"a_\&auml;_g
s_\"A_\&Auml;_g
s_\"o_\&ouml;_g
s_\"O_\&ouml;_g
s_\"u_\&uuml;_g
s_\"U_\&Uuml;_g
s_\"s_\1\&szlig;_g
s_\"`_\&bdquo;_g
s_\"'_\&rdquo;_g
s_~_\&nbsp;_g
s/\\_/_/g
s/\\\&/\&/g

s_\\kreuz_\&clubs;_g
s_\\pik_\&spades;_g
s_\\herz_\&hearts;_g
s_\\karo_\&diams;_g


# Strukturierungszeichen
s_\\\\_<br>_g
s_\\newpage__g
s_\\ _ _g

s_\\section{\([^}]*\)}_<h1>\1</h1>_g
s_\\subsection{\([^}]*\)}_<h2>\1</h2>_g
s_\\subsubsection{\([^}]*\)}_<h3>\1</h3>_g


# Listen
s_\\item\[\(.*\)\]_<dt>\1</dt>\
<dd>_g
s_\\item_<li>_g

s_\\begin{itemize}_<ul>_g
s_\\end{itemize}_</ul>_g

s_\\begin{enumerate}_<ol>_g
s_\\end{enumerate}_</ol>_g

s_\\begin{description}_<dl>_g
s_\\end{description}_</dl>_g


# Graphiken
s_\\includegraphics{\([^}]*\)}_<img src=\"\1\" alt=\"\1\">_g

# Besondere Worte
s_\\optional_<em>optional</em>_g
s_\\Optional_<em>Optional</em>_g
s_\\NotYet_<em>noch nicht implementiert</em>_g
