# A simple demonstration

The HopSlide distribution contains a complete documentation that is accessible
via the Hop documentation system. In addition it contains three examples
of presentation. One is provided here:

It must be executed within Firefox or another Web browser
that supports xhtml, svg, MathML, and that complies to W3C standards.

# An example of source code

Here is an example of HopSlide source code that gives an intuition of
the grammar it relies on. It also shows the LaTeX grammar in use for
authoring math formulas.

(<PRESENTATION> :title "HopSlide demonstration"
:author "Manuel Serrano"
:date "December 2007")
(<SLIDE> :title "HopSlide demonstration"
[This demonstration shows...]
(<UL>
(<LI> "Slide foots")
(<LI> "Slide left and right margins")
(<LI> "Slide expressed using the wiki syntax")
(<LI> "Slide animations")))
(<SLIDE> :title "Math"
:onfx ~(hopslide-fx-slide this 'bottom 30 60)
[Once math fonts are installed, slides might contain math]
(<DIV> :style "text-align: center"
(<MATH>
(<MATH:MSTYLE> :displaystyle "true"
(<MATH:TEX> {
\sum_{\scriptstyle 0\le i\le m\atop \scriptstyle 0 < j < n} P(i,j)\quad
\sum_{i=1}^p\sum_{j=1}^q \sum_{k=1}^r a_{ij}b_{jk}c_{ki}}))))
(<DIV> :style "text-align: center; margin-top: 1ex"
(<MATH>
(<MATH:MSTYLE> :displaystyle "true"
(<MATH:TEX> {
\bigl(x\in A(n)\bigm| x\in B(n)\bigr) \quad
{\roman \bigcup_n X_n\bigm\| \bigcap_n Y_n} \quad
{a+1\over b}\!\bigg/{c+1\over d}})))))