Skip to content
Snippets Groups Projects
Commit 3c50ae8a authored by Goik Martin's avatar Goik Martin
Browse files

Block elements

parent bbeef2dd
No related branches found
No related tags found
No related merge requests found
......@@ -11,13 +11,284 @@
xmlns:db="http://docbook.org/ns/docbook">
<title>General Elements</title>
<section xml:id="tdocSectioning">
<title>Document sectioning</title>
<annotation role="slide">
<para>This section and its children will appear as slides as well.</para>
</annotation>
<para>In the next sections we will describe common building blocks of
(technical) documents.</para>
<section xml:id="sectTdocBlocksLists">
<title>Block level elements: Lists</title>
<informaltable border="1">
<colgroup width="10%"/>
<colgroup width="25%"/>
<colgroup width="10%"/>
<colgroup width="15%"/>
<colgroup width="40%"/>
<tr>
<th>HTML</th>
<td><programlisting language="none"><code>&lt;ul&gt;
&lt;li&gt;One&lt;/li&gt;
&lt;li&gt;Two&lt;/li&gt;
&lt;/ul&gt;</code></programlisting></td>
<td/>
<th>Docbook</th>
<td><programlisting language="none"><code>&lt;itemizedlist&gt;
&lt;listitem&gt;
&lt;para&gt;One&lt;/para&gt;
&lt;/listitem&gt;
&lt;listitem&gt;
&lt;para&gt;Two&lt;/para&gt;
&lt;/listitem&gt;
&lt;/itemizedlist&gt;</code></programlisting></td>
</tr>
<tr>
<th>LaTeX</th>
<td><programlisting language="none"><code>\begin{itemize}
\item One
\item Two
\end{itemize}</code></programlisting></td>
<td/>
<th>Rendering</th>
<td><itemizedlist>
<listitem>
<para>One</para>
</listitem>
<listitem>
<para>Two</para>
</listitem>
</itemizedlist></td>
</tr>
</informaltable>
</section>
<section xml:id="sectTdocBlocksTables">
<title>Block level elements: Tables</title>
<informaltable border="1">
<colgroup width="5%"/>
<colgroup width="40%"/>
<colgroup width="10%"/>
<colgroup width="5%"/>
<colgroup width="40%"/>
<tr>
<th>HTML</th>
<td><programlisting language="none"><code>&lt;table&gt;
&lt;tr&gt;
&lt;td&gt;a1&lt;/td&gt;
&lt;td&gt;a2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;b1&lt;/td&gt;
&lt;td&gt;b2&lt;/td&gt;
&lt;/tr&gt;
&lt;/table&gt;</code></programlisting></td>
<td/>
<th>Docbook</th>
<td><programlisting language="none"><code>&lt;informaltable&gt;
&lt;tr&gt;
&lt;td&gt;a1&lt;/td&gt;
&lt;td&gt;a2&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;b1&lt;/td&gt;
&lt;td&gt;b2&lt;/td&gt;
&lt;/tr&gt;
&lt;/informaltable&gt;</code></programlisting></td>
</tr>
<tr>
<th>LaTeX</th>
<td><programlisting language="none"><code>\begin{tabular}{ll}
a1 &amp; a2 \\
b1 &amp; b2 \\
\end{tabular}</code></programlisting></td>
<td/>
<th>Rendering</th>
<td><informaltable border="1">
<tr>
<td valign="top">a1</td>
<td>a1</td>
</tr>
<tr>
<td>b1</td>
<td>b2</td>
</tr>
</informaltable></td>
</tr>
</informaltable>
</section>
<section xml:id="sectTdocMath">
<title>Mathematical formulas</title>
<informaltable border="1">
<colgroup width="10%"/>
<colgroup width="90%"/>
<tr>
<th>HTML / Docbook</th>
<td><programlisting language="none"><code>&lt;m:math&gt;
&lt;m:mrow&gt;
&lt;m:munderover&gt;
&lt;m:mo&gt;&lt;/m:mo&gt;
...
&lt;m:msqrt&gt;
&lt;m:mi&gt;π&lt;/m:mi&gt;
&lt;/m:msqrt&gt;
&lt;/m:mrow&gt;
&lt;/m:math&gt;</code></programlisting></td>
</tr>
<tr>
<th>LaTeX</th>
<td><programlisting language="none"><code>\begin{equation}
\int\limits_{-\infty}^{+\infty}
e^{-x²} dx = \sqrt{\pi}
\end{equation}</code></programlisting></td>
</tr>
<tr>
<th>Rendering</th>
<td><informalequation>
<m:math display="block">
<m:mrow>
<m:mrow>
<m:munderover>
<m:mo></m:mo>
<m:mrow>
<m:mo>-</m:mo>
<m:mi mathvariant="normal"></m:mi>
</m:mrow>
<m:mrow>
<m:mo>+</m:mo>
<m:mi mathvariant="normal"></m:mi>
</m:mrow>
</m:munderover>
<m:mrow>
<m:msup>
<m:mi>e</m:mi>
<m:mrow>
<m:mo>-</m:mo>
<m:msup>
<m:mi>x</m:mi>
<m:mi>2</m:mi>
</m:msup>
</m:mrow>
</m:msup>
<m:mo></m:mo>
<m:mrow>
<m:mo mathvariant="italic">d</m:mo>
<annotation role="slide">
<para>This section and its children will appear as slides as
well.</para>
</annotation>
<m:mi>x</m:mi>
</m:mrow>
</m:mrow>
</m:mrow>
<m:mo>=</m:mo>
<m:msqrt>
<m:mi>π</m:mi>
</m:msqrt>
</m:mrow>
</m:math>
</informalequation></td>
</tr>
</informaltable>
</section>
<section xml:id="sectTdocModularDocs">
<title>Modular document sources</title>
<informaltable border="1">
<colgroup width="10%"/>
<colgroup width="90%"/>
<tr>
<th>HTML</th>
<td><programlisting language="none"><code> &lt;body&gt;
...
&lt;object name="foo" type="text/html" data="table.html"/&gt;
...
&lt;/body&gt;</code></programlisting></td>
</tr>
<tr>
<th>Docbook</th>
<td><programlisting language="none"><code> &lt;part xml:id="sd1"&gt;
&lt;title&gt;Software development 1&lt;/title&gt;
&lt;xi:include href="Sd1/gettingStarted.xml" xpointer="element(/1)"/&gt;
&lt;xi:include href="Sd1/languageFundamentals.xml" xpointer="element(/1)"/&gt;
...</code></programlisting></td>
</tr>
<tr>
<th>LaTeX</th>
<td><programlisting language="none"><code>\documentclass{article}
\input{mydefs.tex}
\begin{document}
...
\include{math.tex}
...
\end{document}</code></programlisting></td>
</tr>
</informaltable>
</section>
<section xml:id="sectTdocSectioning">
<title>Document sectioning</title>
<informaltable border="1">
<tr>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment