aboutsummaryrefslogtreecommitdiff
path: root/example.tex
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-09-03 22:03:47 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-09-03 22:03:47 +0200
commit7e6e73b123d741eb419e3391fb27c2cc00271bac (patch)
treefbfaa94f0071349ff49f63e51c651dbf890d1766 /example.tex
parentf5da5d0d5489481ddb18dcb6088059884efeb024 (diff)
add more cruft
Diffstat (limited to 'example.tex')
-rw-r--r--example.tex63
1 files changed, 63 insertions, 0 deletions
diff --git a/example.tex b/example.tex
new file mode 100644
index 0000000..843cf38
--- /dev/null
+++ b/example.tex
@@ -0,0 +1,63 @@
+\documentclass{projdoc}
+\input{meta.tex}
+
+\title{Example Document}
+
+\begin{document}
+
+% generate table of contents, list of figures and list of tables
+\tablestables
+
+\bigskip
+Look how nice and consistent these tables and lists look compared to the default in
+MS Word!
+
+% flush page
+\newpage
+
+\section{Introduction}
+
+This is an example document that is meant to demonstrate various \LaTeX{} features,
+as well as some macros specific to \hbox{projdoc.cls}.
+% LaTeX has automatic line breaking. \hbox is used here to ensure projdoc.cls is
+% never broken across lines.
+
+\section{Sectioning}
+\subsection{Subsections}
+\subsubsection{Subsubsections}
+\paragraph{Paragraphs (level 4)}
+
+These don't show up in the table of contents by default
+
+\section{Figures and tables}
+
+\Cref{fig:example-a} definitely shows something.
+
+\begin{figure}
+ \centering
+ \includegraphics[width=8cm]{example-image-a}
+ \label{fig:example-a}
+ \caption{This is the figure title}
+\end{figure}
+
+\begin{table}
+ \centering
+ % i know, table code sucks
+ \begin{tabular}{ll@{\qquad}r}
+ \toprule
+ $a$ & $b$ & $x$\\
+ \midrule
+ 0 & 0 & 0\\
+ 0 & 1 & 1\\
+ 1 & 0 & 1\\
+ 1 & 1 & 0\\
+ \bottomrule
+ \end{tabular}
+ % booktabs tables look very nice, but it seems the author hates vertical rules with
+ % a burning passion. please avoid using vertical rules for consistency.
+ \label{tab:gate-xor}
+ \caption{XOR-gate truth table}
+\end{table}
+
+\end{document}
+