# provide COPYRIGHT="..." and BOOK=False/True on the command line

TITLE: Test
AUTHOR: Hans Petter Langtangen email:hpl@simula.no ${COPYRIGHT} at Simula ${COPYRIGHT}
AUTHOR: Kaare Dump email:kd@simula.no ${COPYRIGHT} at UiO
AUTHOR: Joe Doe
DATE: Jan 32, 1999

TOC: on
!split
% if BOOK:
========= My first chapter =========
% else:
======= My first section =======
% endif

!bt
\[ a = b \]
!et

% if FORMAT in ('latex', 'pdflatex'):
\clearpage
% endif

======= A section =======

Write text.

!split
% if BOOK:
========= Basic Theory =========
% else:
======= Basic Theory =======
% endif
label{sec:theory}

A first discovery was that 1+1 is 2.

===== Exercise: My problem =====

Here is an important equation:

!bt
\begin{equation}
2+2 = 4
label{my:prob:eq1}
\end{equation}
!et

As shown in (ref{my:prob:eq1}), 2 and 2 is 4.
