<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline" id="internal-source-marker_0.9475188060403403">Dear tex4ht community,</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">I am one of the developers of the </span><a href="http://slidewiki.aksw.org/"><span style="font-size:15px;font-family:Arial;color:#000099;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:underline;vertical-align:baseline">SlideWiki Project</span></a><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">.
In particular I am working on converting data from different sources
(e.g. Powerpoint, deck.js, LaTeX beamer) to the our MySQL database
schema. Without getting too deep into details, I will describe my
problem and what I managed to achieve up to the point and what I want to achieve. I hope, that somebody know the solution or can give me some directions. Please, read this e-mail -)<br><br></span><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">On
the input we have got an .tex file, that uses beamer documentclass. On the output I want
to get a .html file with custom tags around the
enviroments (see the example below to understand, what I meant by this). Also
I want to distinguish slides from each other and to leave the
LaTeX math alone (i.e. math must not be converted at all). For instance
the text in “equation” enviroment must not be parsed nor by tex4ht, nor
by LaTeX at all:</span><br><b style="background-color:rgb(192,192,192)"><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\begin{equation}</span><br>
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\left[</span><br><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">{\bf X} + {\rm a} \ \geq\</span><br>
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\underline{\hat a} \sum_i^N \lim_{x \rightarrow k} \delta C</span><br>
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\right]</span><br><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\end{equation}</span></b><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">To
illustrate the problem I will provide a complete example .tex file and
illustrate the output I want to get with the tex4ht program. Input .tex
file:</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\documentclass{beamer}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\mode<presentation></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">{</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \usetheme{Warsaw}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \setbeamercovered{transparent}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\usepackage[english]{babel}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\usepackage[latin1]{inputenc}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\usepackage{times}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\usepackage[T1]{fontenc}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\title[Short Paper Title]</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">{Title As It Is In the Proceedings}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\subtitle</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">{Include Only If Paper Has a Subtitle}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\author[Author, Another]</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">{F.~Author\inst{1} \and S.~Another\inst{2}}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\institute[Universities of Somewhere and Elsewhere] </span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">{</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \inst{1}%</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> Department of Computer Science\\</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> University of Somewhere</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \and</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \inst{2}%</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> Department of Theoretical Philosophy\\</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> University of Elsewhere}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\date[CFP 2003] </span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">{Conference on Fabulous Presentations, 2003}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\subject{Theoretical Computer Science}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\begin{document}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\begin{frame}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \titlepage</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\end{frame}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\begin{frame}{Outline}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> $z=\sqrt{x^2+y^2}$</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\end{frame}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\begin{frame}{Make Titles Informative. Use Uppercase Letters.}{Subtitles are optional.}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \[</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \forall x \in X, \quad \exists y \leq \epsilon</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"> \]</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\end{frame}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\end{document}</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">I tested this document on Ubuntu with “pdflatex file.tex” command (or “sudo pdflatex file.tex”). Everything is fine here.</span> <br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">In
this document we’ve got three slides (one title slide and two slides
with math). I want math to stay the same in the .html output. For
example, for the second slide:</span><br><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><div class=”frame” id=“outline”>$z=\sqrt{x^2+y^2}$</div></span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">For the third slide:</span><br>
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"><div class=”frame” id=”make_titles”>\[ \forall x \in X, \quad \exists y \leq \epsilon \]</div></span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">We
write out project in PHP, so I wrote a simple .php script to do all the
work (I have not achieved a satisfactory result yet). First of all, I
put the \nonstopmode in the beginning of .tex file. Then I load the
slidewiki.cfg file:</span><br><span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\Preamble{0.0}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\begin{document}</span><br style="background-color:rgb(204,204,204)">
<span style="font-size:15px;font-family:Arial;color:rgb(0,0,0);background-color:rgb(204,204,204);font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">\EndPreamble</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">And
edit this file options (right now, it has only one option 0.0 - I found out that I can
put more options by dividing them with comma - 0.0, mathml.4ht,
html4.4ht etc). Though, I only know that I can define package_name.4ht or hooks options - I could not find the complete list of options elsewhere on the web. Please, point me the location, if it exists.</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">After this I simply call <span style="background-color:rgb(204,204,204)">system("mk4ht htlatex $tex_filename \"slidewiki\" ");</span></span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Everything
works fine with 0.0 option, i.e. when we are not using any .4ht
packages. But in this case on the output I have a plain text file and
processed math. I can solve the problem of dividing slides by providing
“hooks” option (as was suggested in the "Latex web companion" book) and then configuring “newpage” hook to be the slide
beginning, but I don’t get how to prevent processing of the math.</span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">If
I provide options html4.4ht or mathml.4ht - I’ve got too many errors
and no .html output at all. Please, give some guidance - I tried to
google for the documentation and still no luck. I really want to know
all the options available and how can I tweak the behaviour of the hook
appearance and preventing math processing (mathml is okay too). What do I need to know to tweak the tex4ht behaviour? Where do I need to look (for instance, in the .4ht files) and how should I do this? I will be very grateful for any information sources.</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline"></span><br><span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Best regards,</span><br>
<span style="font-size:15px;font-family:Arial;color:#000000;background-color:transparent;font-weight:normal;font-style:normal;font-variant:normal;text-decoration:none;vertical-align:baseline">Ermilov Ivan.</span>