Commit 41ed1024 authored by Alija Sabic's avatar Alija Sabic
Browse files

Cleanup demo.tex, preamble.sty; move advanced, customizable parts to separate...

Cleanup demo.tex, preamble.sty; move advanced, customizable parts to separate custom.sty; create standalone version of title page, declaration, abstract (ger,eng)
parent 1dc893d5
\documentclass{standalone}
\documentclass[class=book]{standalone}
\usepackage{preamble}
\begin{document}
\begin{tabu} to 2.5\linewidth {X[0.15,m]X[0.1,m]X[0.15,m]X[0.1,m]X[c,m]} \toprule
\begin{tabu} to 2.5\linewidth {X[0.1,m]X[0.1,m]X[0.15,m]X[0.1,m]X[c,m]} \toprule
% \everyrow{\midrule}
\rowfont{\large\bfseries}
......@@ -13,7 +13,7 @@
\rowfont{\Large}
\textbf{metre} & \si{\m} & L & length &
\begin{itemize}\footnotesize
\begin{itemize}\small
\item \textbf{Prior} (\num{1793}): \SI{1/10000000}{} of the meridian through Paris between the North Pole and the Equator.\textsuperscript{FG}
\item \textbf{Interim} (\num{1960}): \SI{1650763.73}{} wavelengths in a vacuum of the radiation corresponding to the transition
between the $\num{2} \textmd{p}^{\num{10}}$ and $\num{5} \textmd{d}^{\num{5}}$ quantum levels of the krypton-\num{86} atom.
......@@ -23,7 +23,7 @@
\rowfont{\Large}
\textbf{kilogram}\textsuperscript{\normalfont 2} & \si{\kg} & M & mass &
\begin{itemize}\footnotesize
\begin{itemize}\small
\item \textbf{Prior} (\num{1793}): The grave was defined as being the mass (then called weight) of one litre of pure water at its freezing point.\textsuperscript{FG}
\item \textbf{Current} (\num{1889}): The mass of a small squat cylinder of $\sim$\SI{47}{\cubic\cm} of platinum-iridium alloy kept in the Pavillon de Breteuil, France.
Also, in practice, any of numerous official replicas of it.
......@@ -34,7 +34,7 @@
\rowfont{\Large}
\textbf{second} & \si{\second} & T & time &
\begin{itemize}\footnotesize
\begin{itemize}\small
\item \textbf{Prior}: \SI{1/86400}{} of a day of \SI{24}{\hour} of \SI{60}{\minute} of \SI{60}{\second}.
\item \textbf{Interim} (\num{1956}): \SI{1/31556925.9747}{} of the tropical year for \num{1900} January \num{0} at \SI{12}{\hour} ephemeris time.
\item \textbf{Current} (\num{1967}): The duration of \num{9192631770} periods of the radiation corresponding to the transition between the two hyperfine levels of the ground state of the caesium-\num{133} atom.
......
\documentclass[class=book,crop=false]{standalone}
\usepackage{preamble}
\usepackage{blindtext}
\onlyifstandalone{
\usepackage{custom}
\headerpagestyle{intro}
}
\begin{document}
\chapter*{Abstract}
\blindtext[2]
\vspace*{\fill}
\paragraph*{Keywords:} Keyword, Keyword, Keyword, Keyword, Keyword
\end{document}
\ No newline at end of file
......@@ -6,11 +6,13 @@
\onlyifstandalone{
\usepackage{xr}
\externaldocument{chapter02}
\usepackage{custom}
\headerpagestyle{content}
}
\begin{document}
\chapter{Introduction}
\chapter{Introduction}%\thispagestyle{content}
Example crossreference to Chapter \ref{ch:content} showing how to crossreference
content between chapters when compiling individually (cf. \texttt{\textbackslash onlyifstandalone\{\}}).
......@@ -24,8 +26,8 @@
\section{Second}
\blindtext
\blindtext[3]
\blindtext[5]
\blindtext[2]
\blindtext[4]
\end{document}
\ No newline at end of file
......@@ -9,6 +9,9 @@
\chapter{Content}\label{ch:content}
\blindtext[2] \newline
\noindent
This chapter provides examples on
\begin{itemize}
......@@ -30,20 +33,24 @@
\section{Equations}\label{sec:equation}
\blindtext
\begin{equation} \label{eq:first}
a = bq + r
\end{equation}
\noindent
where \eqref{eq:first} is true if $a$ and $b$ are integers with $b \neq c$.
Maxwell's equations:
\begin{subequations}
Maxwell's equations:
\begin{align}
B'&=-\nabla \times E,\\
E'&=\nabla \times B - 4\pi j,
\end{align}
\end{subequations}
\blindtext
\begin{figure}
\begin{equation}
\oint_C {E \cdot d\ell = - \frac{d}{{dt}}} \int_S {B_n dA}
......@@ -55,13 +62,16 @@
\forall x \in X, \quad \exists y \leq \epsilon
\end{equation}
\blindtext
\section{Acronyms}\label{sec:acronyms}
\ac{ES}-style beamer template of \acs{UAS} Technikum Wien.
\ac{ES}-style beamer template of \acs{UAS} Technikum Wien. \blindtext
\section{References}\label{sec:references}
\blindtext
\begin{itemize}
\item \citet{einstein1905}
\item \citet{pentz2004}
......@@ -71,10 +81,17 @@
\item \citet{article, book, booklet}
\end{itemize}
\noindent
\blindtext
\section{Textual}\label{sec:textual}
\blindtext
\subsection{Itemize}\label{subsec:itemize}
\blindtext[2]
\begin{itemize}
\item One
\item Two
......@@ -83,6 +100,8 @@
\subsection{Enumerate}\label{subsec:enumerate}
\blindtext
\begin{enumerate}
\item One
\item Two
......@@ -91,6 +110,7 @@
\subsection{Description}\label{subsec:description}
\blindtext
\begin{description}
\item [Ant] Ameise
\item [Elephant] Elefant
......@@ -109,53 +129,64 @@
See illustration (Figure \ref{fig:dilbert1}), TikZ example (Figure \ref{fig:mesif}), \texttt{timingtable}
(\ref{fig:timingtable}), and another TikZ example (Figure \ref{fig:control-system}).
\blindtext
\begin{figure}
\centering
\includegraphics[width=0.33\textwidth]{dilbert1.pdf}%
\includegraphics[width=0.33\textwidth]{dilbert2.pdf}%
\includegraphics[width=0.33\textwidth]{dilbert3.pdf}
% \caption{\textcopyright~2018 Scott Adams, \url{dilbert.com}}
\caption{\textcopyright~2018 Scott Adams, dilbert.com}
\caption{\textcopyright~2018 Scott Adams, \href{http://dilbert.com}{dilbert.com}}
\label{fig:dilbert1}
\end{figure}
\blindtext[2]
\begin{figure}
\centering
% \resizebox {0.75\textwidth} {!} {\input{mesif}}
\input{mesif}
\caption{MESIF protocol, \textcopyright~Marek Fiser, marekfiser.cz}
\caption{MESIF protocol, \textcopyright~Marek Fiser, \href{http://marekfiser.cz}{marekfiser.cz}}
\label{fig:mesif}
\end{figure}
\blindtext[2]
\begin{figure}
\centering
% \resizebox {0.65\textwidth} {!} {\input{timingtable}}
\input{timingtable}
\caption{SR flip-flop timing diagram}% (provided by the \texttt{timingtable} package)}
\caption{SR flip-flop timing diagram (package: \texttt{timingtable})}
\label{fig:timingtable}
\end{figure}
\blindtext[1]
\begin{figure}
\centering
% \resizebox {0.75\textwidth} {!} {\input{control-system}}
\input{control-system}
\caption{Control system principle} %, http://www.texample.net/tikz/examples/control-system-principles/}
\caption{Control system principle, \href{http://www.texample.net/tikz/examples/control-system-principles/}{texample.net}}
\label{fig:control-system}
\end{figure}
\blindtext[1]
\section{Source Code}\label{sec:source code}
\setstretch{1}
\lstinputlisting[
caption={C Syntax Highlighting},
label=lst:main,
label=lst:listing1,
style=c,
emph={EXIT_SUCCESS},
breaklines=true,
]{main.c}
\setstretch{1.5}
\section{Tables}\label{sec:tables}
See simple table (Table \ref{tab:bandgab}, and more advanced, rotated example table (Table
\ref{tab:siunits})).
\setstretch{1}
\begin{table}
\centering
\input{bandgab}
......@@ -165,14 +196,14 @@
\begin{table}
\centering
\Rotatebox{90}{\resizebox {1.5\textwidth} {!} {\input{siunits}}}
\Rotatebox{90}{\resizebox {1.3\textwidth} {!} {\input{siunits}}}
\caption{\acs{SI} base units}
\label{tab:siunits}
\end{table}
\setstretch{1.5}
\cleardoublepage
% \biblio{}
\bibliolist{}
......
......@@ -3,6 +3,11 @@
\usepackage{preamble}
\usepackage{blindtext}
\onlyifstandalone{
\usepackage{custom}
\headerpagestyle{content}
}
\begin{document}
\chapter{R{\'e}sum{\'e}}
......
\documentclass[class=book,crop=false]{standalone}
\usepackage{preamble}
\usepackage{tabu}
\onlyifstandalone{
\usepackage{custom}
\headerpagestyle{intro}
}
\begin{document}
\chapter*{Declaration}
``As author and creator of this work to hand, I confirm with my
signature knowledge of the relevant copyright regulations
governed by higher education acts (see Urheberrechtsgesetz
/Austrian copyright law as amended as well as the Statute on
Studies Act Provisions / Examination Regulations of the UAS
Technikum Wien as amended).\\[\baselineskip]
I hereby declare that I completed the present work independently
and that any ideas, whether written by others or by myself, have
been fully sourced and referenced. I am aware of any consequences
I may face on the part of the degree program director if there
should be evidence of missing autonomy and independence or
evidence of any intent to fraudulently achieve a pass mark for
this work (see Statute on Studies Act Provisions / Examination
Regulations of the UAS Technikum Wien as amended).\\[\baselineskip]
I further declare that up to this date I have not published the work to
hand nor have I presented it to another examination board in the same or
similar form. I affirm that the version submitted matches the version in
the upload tool.''
\vspace{4\baselineskip}
\noindent
\begin{tabu} to \linewidth {X[1.2]X}
Vienna, \df\today & Signature \\
& %\includegraphics[width=0.15\textwidth]{signature.pdf}
\end{tabu}
\vspace*{\fill}
\end{document}
\ No newline at end of file
\documentclass[class=book,crop=false]{standalone}
\usepackage{preamble}
\usepackage{blindtext}
\onlyifstandalone{
\usepackage{custom}
\headerpagestyle{intro}
}
\begin{document}
\chapter*{Kurzfassung}
\blindtext[2]
\vspace*{\fill}
\paragraph*{Schlagworte:} Schlagwort, Schlagwort, Schlagwort, Schlagwort, Schlagwort
\end{document}
\ No newline at end of file
\documentclass[tikz,crop=false,border=10pt,a4paper]{standalone}
\usepackage[margin=2.5cm,bottom=3cm]{geometry}
\usepackage{tikz}
\usetikzlibrary{calc}
\usetikzlibrary{shapes}
\usepackage{twcolors}
\usepackage{custom}
\begin{document}
\thispagestyle{empty}
\begin{tikzpicture}[overlay,remember picture,
shift={(0,-0.5)},
head text style/.style={draw=none,font=\fontsize{20}{30}\bfseries\selectfont,anchor=north west},
subtitle text style/.style={draw=none,font=\fontsize{16.25}{23.75}\selectfont,anchor=north west},
norm text style/.style={draw=none,font=\fontsize{18}{18}\selectfont,anchor=north west}
]
\def\framemargin{0.425}
\def\identation{1}
\coordinate (start) at ($(current page.south west)+(\framemargin,\framemargin)$);
\coordinate (end) at ($(current page.north east)+(-\framemargin,-\framemargin)$);
\coordinate (tstart) at ($(current page.north west)+(\identation,-3)$);
% Frame
\def\fw{29.15/99}
\def\rwidth{2.5}
\foreach \c [count=\ci] in {
ttw-blue,ttw-violett,ttw-green,ttw-red,ttw-gray,ttw-lightblue,ttw-lightorange,ttw-red,ttw-gray,
ttw-lightblue,ttw-green,ttw-lightorange,ttw-red,ttw-gray,ttw-green,ttw-gray,ttw-yellow,ttw-lightorange,
ttw-darkcyan,ttw-blue,ttw-darkcyan,ttw-red,ttw-green,ttw-lightblue,ttw-gray,ttw-lightblue,
ttw-green,ttw-gray,ttw-red,ttw-lightorange,ttw-gray,ttw-green,ttw-gray,ttw-lightorange,
ttw-darkcyan,ttw-violett,ttw-gray,ttw-blue,ttw-green,ttw-gray,ttw-red,ttw-gray,ttw-lightorange,
ttw-red,ttw-lightorange,ttw-green,ttw-darkcyan,ttw-violett,ttw-gray,ttw-blue,ttw-gray,ttw-lightorange,
ttw-yellow,ttw-violett,ttw-darkcyan,ttw-gray,ttw-green,ttw-darkcyan,ttw-blue,ttw-gray,ttw-lightblue,
ttw-violett,ttw-blue,ttw-green,ttw-lightorange,ttw-gray,ttw-violett,ttw-darkcyan,ttw-green,ttw-gray,
ttw-lightorange,ttw-blue,ttw-green,ttw-gray,ttw-yellow,ttw-violett,ttw-blue,ttw-gray,ttw-lightblue,
ttw-gray,ttw-green,ttw-violett,ttw-lightorange,ttw-yellow,ttw-darkcyan,ttw-gray,ttw-violett,ttw-gray,
ttw-lightorange,ttw-green,ttw-blue,ttw-darkcyan,ttw-gray,ttw-lightblue,ttw-gray,ttw-yellow,ttw-blue,ttw-lightorange}
{\draw[draw=none,fill=\c,] (end) ++(0, 0 - \ci * \fw + \fw) rectangle ++(-\rwidth,-\fw);}
\draw (start) rectangle (end);
% Text
\draw (tstart) ++(0,-1) node[head text style] (papertype) {\papertype};
\draw (tstart) ++(0,-2.25) node[subtitle text style,text width=\textwidth]
{
Thesis submitted in partial fulfillment of the requirements for
the degree of Master of Science in Engineering at the University
of Applied Sciences Technikum Wien - Degree Program \degreeprogram
};
\draw (tstart) ++(0,-7) node[head text style, anchor=north west, text width=\textwidth] {\title};
\draw (tstart) ++(0,-14) node[norm text style] {By: \author};
\draw (tstart) ++(0,-15) node[norm text style] {Student Number: \studentid};
\draw (tstart) ++(0,-17) node[norm text style] {Supervisors:};
\draw (tstart) ++(0,-17) ++(10em,0) node[norm text style] {\supervisor};
\draw (tstart) ++(0,-18) ++(10em,0) node[norm text style] {\secondsupervisor};
\draw (tstart) ++(0,-20) node[norm text style] {\location, \df\today};
% Logo
\draw (tstart) ++(0,-25) node[anchor=south west] {\includegraphics[width=49mm]{fhtw-logo.pdf}};
\end{tikzpicture}
\end{document}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment