summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/hagenberg-thesis/examples/HgbArticle/main.tex
blob: 5ffbf92b006b21afeb681b23240ad0735706ad3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
%% A simple template for a scientific article using the Hagenberg setup
%% based on the standard LaTeX 'report' class
%% äöüÄÖÜß  <-- no German Umlauts here? Use an UTF-8 compatible editor!

%%% Magic comments for setting the correct parameters in compatible IDEs
% !TeX encoding = utf8
% !TeX program = pdflatex 
% !TeX spellcheck = en_US
% !BIB program = biber

\documentclass[english,twocolumn]{hgbarticle}
%\documentclass[english,twocolumn,smartquotes]{hgbarticle}

\RequirePackage[utf8]{inputenc}		% remove when using lualatex oder xelatex!

\usepackage{lipsum}		% for dummy texts only
\flushbottom

\graphicspath{{images/}}   % where are the images?
\bibliography{references}   % requires file 'references.bib'


\author{
Alex A.\ Wiseguy\\ 
\texttt{wiseguy@gmail.com}
\and
Adrian Spongehead\\
\texttt{spongehead@gmx.net}}

\title{Reasoning About the Unreasonable}
\date{}

%%%----------------------------------------------------------
\begin{document}
%%%----------------------------------------------------------
\maketitle
%%%----------------------------------------------------------

\begin{abstract}\noindent
This document shows how to use the \textsf{hgbarticle} class, which combines the standard \latex \textsf{article} class
with the \texttt{hgb.sty} (Hagenberg) thesis styles. 
This may be useful, for example, in the case that you wish to publish
part of your thesis as a journal article without major changes.
\end{abstract}


\section{Introduction}

If you wish to write this report in German
you should replace the specification
\begin{verbatim}
\documentclass[english,
               twocolumn]{hgbarticle}
\end{verbatim}
at the top of this document by
\begin{verbatim}
\documentclass[german,
               twocolumn]{hgbarticle}
\end{verbatim}
%
Remove the \texttt{twocolumn} option for a single-column layout.
For simplified quotations use the \texttt{smartquotes} document option.

Also note that the top sectioning command available in the \texttt{article} class
is \verb!\section{}!, i.e., there are \textbf{no chapters}!
When converting a thesis you thus need to \emph{demote} all chapter commands to
sections, sections to subsections etc.

\subsection{Mathematical elements}

This document is typeset in the typical two-column format required by many
scientific journals. Unfortunately, the narrow text width often creates problems 
with mathematical structures \cite{Voss2014}. 
While smaller equations like
%
\begin{equation}
\bar{\mathbf{M}} =  
\begin{pmatrix}
	A \ast H^{G}_{\sigma}   & C \ast H^{G}_{\sigma} \\
	C \ast H^{G}_{\sigma}   & B \ast H^{G}_{\sigma} 
\end{pmatrix}
=
\begin{pmatrix}
	\bar{A}   & \bar{C} \\
	\bar{C}   & \bar{B} 
\end{pmatrix}
\end{equation}
%
may fit without any modification, larger structures like
the one shown in Equation \ref{wideEquation} need special treatment.
%
\begin{figure*}[t]
\begin{equation}
\begin{split}
\lambda_{1,2} 
&= \frac{\mathrm{tr}(\bar{\mathbf{M}})}{2} \pm \sqrt{\Bigl(\frac{\mathrm{tr}(\bar{\mathbf{M}})}{2}\Bigr)^2 
                      - \mathrm{det}(\bar{\mathbf{M}})}  \\
&= \frac{1}{2} \cdot \left( \bar{A} + \bar{B} \pm \sqrt{\bar{A}^2 - 
		2 \cdot \bar{A} \cdot \bar{B} + \bar{B}^2 + 4 \cdot \bar{C}^2} \right) 
		,
\end{split}
\label{wideEquation}
\end{equation}
\end{figure*}
%
In this case, the equation was wrapped into a
\verb!\begin{figure*}! \ldots \verb!\end{figure*}!
environment, which produces an unnumbered float object that extends
across the full page width.
Additional details can be found in the source text.


\subsection{Graphics and images}

Similarly, the horizontal space available for graphical elements is the width
of a single column. Thus elements inserted with \verb!\includegraphics{..}! 
should use the length \verb!\columnwidth!
for scaling. An example is shown in Fig.~\ref{fig:CocaCola} (see the source text for
details).

\begin{figure}
\centering
\includegraphics[width=1.0\columnwidth]{cola-public-domain-photo-p}
\caption{Coca-Cola advertisement photographed in 1940 \cite{CocaCola1940}.}
\label{fig:CocaCola}
\end{figure}

An by the way, the \texttt{lipsum} package was used to create the following
dummy texts. 

\subsection{Bibliography}

The use of citations and the compilation of the bibliography works much the same
as in the thesis template. 
The only difference is that \verb!\printbibliography! is used directly at the end
of the document.

\section{Existing techniques}
\lipsum[2-4]


\section{Our radically new approach}
\lipsum[5-7]

\section{Summary and conclusion}
\lipsum[8-9]




%%%----------------------------------------------------------
  
\printbibliography  % alternatively: \MakeBibliography[nosplit]

%%%----------------------------------------------------------

\end{document}