summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-16 18:04:13 +0100
committerBenjamin Franzke <benjaminfranzke@googlemail.com>2013-01-16 18:04:13 +0100
commit2b27c0ca0a11e53429b1d416ef93b38592c77e20 (patch)
treec8dfc7e5a129e428319a54bb96846a7349b22d93
downloadasciidoc-boilerplate-2b27c0ca0a11e53429b1d416ef93b38592c77e20.zip
asciidoc-boilerplate-2b27c0ca0a11e53429b1d416ef93b38592c77e20.tar.gz
asciidoc-boilerplate-2b27c0ca0a11e53429b1d416ef93b38592c77e20.tar.bz2
Initial asciidoc thesis boilerplate
-rw-r--r--image/HS-Wismar_Logo-FIW.pdfbin0 -> 37580 bytes
-rw-r--r--thesis.sty101
-rw-r--r--thesis.txt29
-rw-r--r--thesis.xsl10
4 files changed, 140 insertions, 0 deletions
diff --git a/image/HS-Wismar_Logo-FIW.pdf b/image/HS-Wismar_Logo-FIW.pdf
new file mode 100644
index 0000000..64000cd
--- /dev/null
+++ b/image/HS-Wismar_Logo-FIW.pdf
Binary files differ
diff --git a/thesis.sty b/thesis.sty
new file mode 100644
index 0000000..ad8a3e6
--- /dev/null
+++ b/thesis.sty
@@ -0,0 +1,101 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{thesis}[2013/01/15 HSW EuI Thesis-Style]
+\RequirePackageWithOptions{docbook}
+
+\usepackage[doublespacing]{setspace}
+\setlength{\textwidth}{17.5cm}
+
+\usepackage{listings}
+\lstset{
+ basicstyle=\singlespacing
+}
+
+\let\oldtableofcontents\tableofcontents
+\def\tableofcontents{
+\begin{singlespacing}
+ \oldtableofcontents
+\end{singlespacing}
+}
+
+\let\olditemize\itemize
+\renewcommand\itemize{
+\olditemize
+\setlength{\itemsep}{1pt}
+\setlength{\parskip}{0pt}
+\setlength{\parsep}{0pt}
+}
+
+% Start with every section on a new page.
+\let\oldsection\section
+\def\section{
+\newpage
+\oldsection
+}
+
+\def\DBKcover{
+\ifthenelse{\equal{\DBKedition}{}}{\def\edhead{}}{\def\edhead{Ed. \DBKedition}}
+
+% interligne double
+\setlength{\oldbaselineskip}{\baselineskip}
+\setlength{\baselineskip}{2\oldbaselineskip}
+\textsf{
+\vfill
+\vspace{2.5cm}
+\begin{center}
+ \huge{\textbf{\DBKtitle}}\\ %
+ \ifx\DBKsubtitle\relax\else%
+ \underline{\ \ \ \ \ \ \ \ \ \ \ }\\ %
+ \ \\ %
+ \huge{\textbf{\DBKsubtitle}}\\ %
+ \fi
+ \underline{\ \ \ \ \ \ \ \ \ \ \ }\\ %
+ \ \\ %
+ \large{\textbf{\DBKauthor}}\\ %
+\end{center}
+\vfill
+\setlength{\baselineskip}{\oldbaselineskip}
+\hspace{1cm}
+\vspace{1cm}
+\begin{center}
+%\begin{tabular}{p{7cm} p{7cm}}
+%\Large{\DBKreference{} \edhead} & \\
+%\end{tabular}
+\begin{figure}[!h]
+ \begin{minipage}{0.8\textwidth}
+ \textbf{Hochschule Wismar} \\ %
+ University of Applied Sciences \\ %
+ Technology, Business and Design \\ %
+ Fakultät für Ingenieurwissenschaften, Bereich EuI \\ %
+ %\rule{\textwidth}{0.5pt}
+ \end{minipage}
+ \begin{minipage}[r]{0.1\textwidth}
+ \begin{flushright}
+ \includegraphics[height=6\baselineskip]{image/HS-Wismar_Logo-FIW.pdf}
+ \end{flushright}
+ \end{minipage}
+\end{figure}
+\end{center}
+}
+
+% Format for the other pages
+\newpage
+\setlength{\baselineskip}{\oldbaselineskip}
+%\chead[]{\DBKcheadfront}
+\lfoot[]{}
+}
+
+
+%%% Following is a copy of asciidoc-dblatex.sty %%%
+
+% Sidebar is a boxed minipage that can contain verbatim.
+% Changed shadow box to double box.
+\renewenvironment{sidebar}[1][0.95\textwidth]{
+ \hspace{0mm}\newline%
+ \noindent\begin{Sbox}\begin{minipage}{#1}%
+ \setlength\parskip{\medskipamount}%
+}{
+ \end{minipage}\end{Sbox}\doublebox{\TheSbox}%
+}
+
+% For DocBook literallayout elements, see `./dblatex/dblatex-readme.txt`.
+\usepackage{alltt}
diff --git a/thesis.txt b/thesis.txt
new file mode 100644
index 0000000..da4d218
--- /dev/null
+++ b/thesis.txt
@@ -0,0 +1,29 @@
+= Thesis Title
+:author: Author's Name
+:lang: de
+// a2x: --dblatex-opts="-p thesis.xsl -s thesis.sty -b xetex"
+
+[abstract]
+== Zusammenfassung
+
+Zusammenfassung.
+
+== Sektion
+
+Erste Sektion.
+
+[appendix]
+Example Appendix
+----------------
+AsciiDoc article appendices are just just article sections with
+'specialsection' titles.
+
+
+ifdef::backend-docbook[]
+[index]
+Example Index
+-------------
+endif::backend-docbook[]
+
+
+// vim: set syntax=asciidoc tw=78 filetype=asciidoc:
diff --git a/thesis.xsl b/thesis.xsl
new file mode 100644
index 0000000..b568e4e
--- /dev/null
+++ b/thesis.xsl
@@ -0,0 +1,10 @@
+<?xml version="1.0"?>
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
+ version="1.0">
+
+<xsl:param name="latex.style">hsw</xsl:param>
+<xsl:param name="latex.class.options">a4paper,12pt,abstraction,titlepage</xsl:param>
+<xsl:param name="doc.publisher.show">0</xsl:param>
+<xsl:param name="latex.output.revhistory">0</xsl:param>
+<xsl:param name="latex.encoding">utf8</xsl:param>
+</xsl:stylesheet>