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

LaTeX exercises

parent d57900a9
No related branches found
No related tags found
No related merge requests found
......@@ -51,5 +51,116 @@ This may become a real subsection when adding further text ...
</qandadiv>
</qandaset>
</section>
<section xml:id="tdocExerciseLatexElements">
<title>Important elements</title>
<qandaset defaultlabel="qanda" xml:id="tdocQandaLatexElements">
<qandadiv>
<qandaentry>
<question>
<para>Create an <classname>article</classname> document creating
separate sections each containing one of the following
items:</para>
<itemizedlist>
<listitem>
<para>Nested lists and enumerations</para>
</listitem>
<listitem>
<para>Complex table using sophisticated formatting possible
spanning multiple pages (<classname>supertabular</classname>
environment?)</para>
</listitem>
<listitem>
<para>A figure based on either raster or symbolic
format.</para>
</listitem>
<listitem>
<para>Complex formula</para>
</listitem>
</itemizedlist>
</question>
</qandaentry>
</qandadiv>
</qandaset>
</section>
<section xml:id="tdocExerciseLatexMacro">
<title>Macro</title>
<qandaset defaultlabel="qanda" xml:id="tdocQandaLatexMacro">
<qandadiv>
<qandaentry>
<question>
<para>Create a user defined command <code>\mysalute</code>
expecting two parameters to be used in the following way:</para>
<programlisting language="tex">\mysalute{Mr.}{Jim Bean}</programlisting>
<para>The formatting expectation is:</para>
<blockquote>
<para>Mr Jim <emphasis role="bold">Bean</emphasis></para>
</blockquote>
<para>Mind the user's name to become boldface.</para>
<tip>
<para>Read about <code>\newcommand</code> optionally allowing
for parameters.</para>
</tip>
</question>
<answer>
<programlisting language="tex">\newcommand{\mysalute}[2]{Hello #1 \textbf{#2}}</programlisting>
</answer>
</qandaentry>
</qandadiv>
</qandaset>
</section>
<section xml:id="tdocExerciseLatexExampleDoc">
<title>Macro</title>
<qandaset defaultlabel="qanda" xml:id="tdocQandaLatexExampleDoc">
<qandadiv>
<qandaentry>
<question>
<para>Use one of your previous writings (e.g <quote
xml:lang="de">Wissenschaftliches Arbeiten</quote>) to create a
LaTeX document based on the following features:</para>
<itemizedlist>
<listitem>
<para>Bibliography residing in an external BiBtex file
</para>
</listitem>
<listitem>
<para>Internal cross references implemented by
<code>\label</code>, <code>\ref</code> and
<code>\pageref</code>. You may want to define appropriate
macros.</para>
</listitem>
<listitem>
<para>An index containing an alphabetical list of words and
expressions with the pages of the book upon which they are
to be found.</para>
<tip>
<para>Use the <package>makeidx</package> package</para>
</tip>
</listitem>
</itemizedlist>
</question>
</qandaentry>
</qandadiv>
</qandaset>
</section>
</section>
</chapter>
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