Skip to content

Instantly share code, notes, and snippets.

@zedeus
Created December 17, 2016 20:52
Show Gist options
  • Save zedeus/8dbd5795cbb788ab31f169536cbfb0cb to your computer and use it in GitHub Desktop.
Save zedeus/8dbd5795cbb788ab31f169536cbfb0cb to your computer and use it in GitHub Desktop.
LaTeX thesis title page
\documentclass[letterpaper]{article}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{epigraph}
\usepackage{lipsum}
\usepackage[danish]{babel}
\renewcommand\epigraphflush{flushright}
\renewcommand\epigraphsize{\normalsize}
\setlength\epigraphwidth{0.72\textwidth}
\definecolor{titlepagecolor}{cmyk}{.0,.70,.6,.40}
\DeclareFixedFont{\titlefont}{T1}{ppl}{b}{it}{0.5in}
\DeclareFixedFont{\subtitlefont}{T1}{ppl}{b}{it}{0.22in}
\makeatletter
\def\printauthor{%
{\large \@author}}
\makeatother
\author{}
% The following code is borrowed from: http://tex.stackexchange.com/a/86310/10898
\newcommand\titlepagedecoration{%
\begin{tikzpicture}[remember picture,overlay,shorten >= -10pt]
\coordinate (aux1) at ([yshift=-15pt]current page.north east);
\coordinate (aux2) at ([yshift=-410pt]current page.north east);
\coordinate (aux3) at ([xshift=-4.5cm]current page.north east);
\coordinate (aux4) at ([yshift=-150pt]current page.north east);
\begin{scope}[titlepagecolor!40,line width=12pt,rounded corners=12pt]
\draw
(aux1) -- coordinate (a)
++(225:5) --
++(-45:5.1) coordinate (b);
\draw[shorten <= -10pt]
(aux3) --
(a) --
(aux1);
\draw[opacity=0.6,titlepagecolor,shorten <= -10pt]
(b) --
++(225:2.2) --
++(-45:2.2);
\end{scope}
\draw[titlepagecolor,line width=8pt,rounded corners=8pt,shorten <= -10pt]
(aux4) --
++(225:0.8) --
++(-45:0.8);
\begin{scope}[titlepagecolor!70,line width=6pt,rounded corners=8pt]
\draw[shorten <= -10pt]
(aux2) --
++(225:3) coordinate[pos=0.45] (c) --
++(-45:3.1);
\draw
(aux2) --
(c) --
++(135:2.5) --
++(45:2.5) --
++(-45:2.5) coordinate[pos=0.3] (d);
\draw
(d) -- +(45:1);
\end{scope}
\end{tikzpicture}%
}
\begin{document}
\begin{titlepage}
\noindent
{\titlefont Free Software}\\{\subtitlefont - etik og brugervenlighed}\par
\epigraph{Proprietary software keeps users divided and helpless. Divided because each user is forbidden to redistribute it to others, and helpless because the users can't change it since they don't have the source code. They can't study what it really does. So the proprietary program is a system of unjust power.}%
{\textsc{Dr. Richard Stallman}}
\null\vfill
\vspace*{1cm}
\noindent
\hfill
\begin{minipage}{0.45\linewidth}
\large
\begin{flushright}
\textbf{Zed the Fish}, 3.kitZ \\
Kom/IT A, Teknologi B\\
\hphantom{aa} \\
Studieretningsprojekt \\
Absolute Autism \\
\today
\end{flushright}
\end{minipage}
%
\begin{minipage}{0.02\linewidth}
\rule{1pt}{95pt}
\end{minipage}
\titlepagedecoration
\end{titlepage}
\lipsum[1-2]
\end{document}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment