Last active
November 28, 2015 19:13
-
-
Save 5p4k/80456c83fdcf8db15ecc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\NeedsTeXFormat{LaTeX2e} | |
\ProvidesPackage{bonntitle}[2015/10/27] | |
\newcommand*{\university}[1]{\def\@university{#1}} | |
\newcommand*{\institute}[1]{\def\@institute{#1}} | |
\newcommand*{\birthday}[1]{\def\@birthday{#1}} | |
\newcommand*{\birthplace}[1]{\def\@birthplace{#1}} | |
\newcommand*{\worktype}[1]{\def\@worktype{#1}} | |
\newcommand*{\advisor}[1]{\def\@advisor{#1}} | |
\newcommand*{\theadvisor}{Advisor:~\@advisor} | |
\newcommand*{\secondadvisor}[1]{\def\@secondadvisor{#1}} | |
\newcommand*{\thesecondadvisor}{% | |
\ifx\@secondadvisor\empty~\else Second Advisor:~\@secondadvisor\fi% | |
} | |
\university{% | |
Mathematisch-Naturwissenschaftliche Fakult\"at der\\[.8em]% | |
Rheinischen Friedrich-Wilhelms-Universit\"at Bonn% | |
} | |
\institute{Mathematical Institute} | |
\birthday{\fbox{\texttt{birthday}}} | |
\birthplace{\fbox{\texttt{birthplace}}} | |
\date{\today} | |
\author{\fbox{\texttt{author}}} | |
\worktype{Master's Thesis Mathematics} | |
\advisor{\fbox{\texttt{advisor}}} | |
\secondadvisor{} | |
\renewcommand\maketitle{\begin{titlepage}% | |
\let\footnotesize\small | |
\let\footnoterule\relax | |
\let\footnote\thanks | |
\null\vfil | |
\begin{center} | |
\parbox{10cm}{\centering\huge\bfseries\@title\par}\\[2.25em] | |
{\Large\@author}\\[1em] | |
Born~\@birthday~in~\@birthplace\\[1em] | |
\large% | |
\@date\\[9.25em] | |
\@worktype\\[.91em] | |
\theadvisor\\[.91em] | |
\thesecondadvisor\\[.91em] | |
\sc% | |
\@institute\\[8.15em] | |
\@university | |
\end{center} | |
\vfil\null | |
\end{titlepage}% | |
\setcounter{footnote}{0}% | |
\global\let\thanks\relax | |
\global\let\maketitle\relax | |
\global\let\@thanks\@empty | |
\global\let\@author\@empty | |
\global\let\@date\@empty | |
\global\let\@title\@empty | |
\global\let\title\relax | |
\global\let\author\relax | |
\global\let\date\relax | |
\global\let\and\relax | |
} | |
\endinput |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\documentclass[11pt, a4paper, oneside]{book} | |
% \documentclass[11pt, a4paper]{article} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Some package recommendations %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Must-have for scientific typesetting | |
\usepackage{amsmath, amsthm, amssymb, subcaption} | |
% Allows to type directly accents (save .tex with the UTF8 encoding!!) | |
\usepackage[utf8]{inputenc} | |
% Hypenation, spelling of some special keywords | |
\usepackage[english]{babel} | |
% Bibliography appears in table of contents, table of contents itsef doesn't | |
\usepackage[nottoc]{tocbibind} | |
% Inserts vspace between paragraphs instead of indent | |
% \usepackage[parfill]{parskip} | |
% Changes numbering system for equations | |
% \usepackage{chngcntr} | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Title page setup %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\usepackage{bonntitle} | |
% Mandatory fields: | |
\title{Dialogue Concerning the Two Chief World Systems} | |
\author{Galileo Galilei} | |
\birthday{15\textsuperscript{th} February 1564} | |
\birthplace{Pisa, Italy} | |
\date{22\textsuperscript{nd} February 1632} | |
\advisor{Prof. Dr. Ferdinando II de' Medici} | |
\institute{Mathematical Institute} | |
% Optional fields and their defaults: | |
% | |
% \secondadvisor{Dr. Matthias Bernegger} % Defaults to an empty line | |
% | |
% \worktype{Master's Thesis Mathematics} | |
% | |
% \university{ | |
% Mathematisch-Naturwissenschaftliche Fakult\"at der\\[.8em]% | |
% Rheinischen Friedrich-Wilhelms-Universit\"at Bonn%} | |
% } | |
% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Some basic tweaking %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% Define definition, theorem lemma, remark, corollary, proposition with | |
% numbering. Numbering is continuous within chapters, <chapter>.<statement>. | |
\newtheorem{definition}{Definition}[chapter] | |
% Put here "section" if you want ^^^^^^^ | |
% the numbering to be <section>.<statement> | |
% Apply the same numbering to Figure. | |
\numberwithin{figure}{chapter} | |
% Continuous equation numbering (doesn't depend on chapter) | |
% Requires \usepackage{chngcntr} | |
% \counterwithout{equation}{chapter} | |
% Equation numbering within section: | |
% \numberwithin{equation}{section} | |
\newtheorem{theorem}[definition]{Theorem} | |
\newtheorem{lemma}[definition]{Lemma} | |
\newtheorem{remark}[definition]{Remark} | |
\newtheorem{corollary}[definition]{Corollary} | |
\newtheorem{proposition}[definition]{Proposition} | |
% This code fixes some spacing issue with parskip and amsthm: | |
\begingroup | |
\makeatletter | |
\@for\theoremstyle:=definition,remark,plain\do{% | |
\expandafter\g@addto@macro\csname th@\theoremstyle\endcsname{% | |
\addtolength\thm@preskip\parskip | |
}% | |
} | |
\endgroup | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
\begin{document} | |
\maketitle | |
\end{document} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment