From ffee4964e2aa0dad34efd5b7adeaec979098059a Mon Sep 17 00:00:00 2001 From: Stefan Junker Date: Wed, 7 Sep 2016 17:04:23 +0200 Subject: [PATCH] thesis: fix format --- src/docs/parts/research/research.tex | 10 ++--- src/docs/thesis.tex | 57 ++++++++++++++++++++++------ src/docs/title.tex | 30 +++++++-------- 3 files changed, 64 insertions(+), 33 deletions(-) diff --git a/src/docs/parts/research/research.tex b/src/docs/parts/research/research.tex index d5e747f..b902969 100644 --- a/src/docs/parts/research/research.tex +++ b/src/docs/parts/research/research.tex @@ -29,14 +29,14 @@ \end{description} \section{Spack} -Spack (https://github.com/LLNL/spack) is a package manager written in Python. +Spack (\url{https://github.com/LLNL/spack}) is a package manager written in Python. \begin{description} \item [Automatic Updates of Sources] { - } + } \item [Closure] { - http://software.llnl.gov/spack/basic\_usage.html\#filesystem-views Yeah - } + Explained on the website \url{http://software.llnl.gov/spack/basic_usage.html\#filesystem-views} + } \end{description} \chapter{Languages Used For Packaging} @@ -45,4 +45,4 @@ Spack (https://github.com/LLNL/spack) is a package manager written in Python. Guile implements Scheme and extends it with new features. -UX:https://logicgrimoire.wordpress.com/2012/08/25/a-first-guile-script/ +UX: \url{https://logicgrimoire.wordpress.com/2012/08/25/a-first-guile-script} diff --git a/src/docs/thesis.tex b/src/docs/thesis.tex index df89da1..978bffa 100644 --- a/src/docs/thesis.tex +++ b/src/docs/thesis.tex @@ -1,15 +1,18 @@ -\documentclass[11pt,a4paper]{report} +\documentclass[12pt,a4paper]{report} \usepackage[utf8]{inputenc} -\usepackage{titlesec,blindtext, color} % titleformat -\usepackage{fancyhdr} +\usepackage{titlesec} % titleformat +\usepackage{blindtext,color,fancyhdr} \usepackage{geometry} \geometry{a4paper, top=25mm, left=30mm, right=35mm, bottom=35mm, headsep=10mm, footskip=12mm} \usepackage{multirow,tabularx,tabu} +\usepackage[hyphens]{url} +\Urlmuskip = 0mu plus 1mu + \usepackage[numberedsection,toc,numberline,nopostdot]{glossaries} \makenoidxglossaries @@ -37,17 +40,47 @@ \author{authorOne} -\fancypagestyle{plain}{% - \fancyhead[L]{\small \authorOneInit} - \fancyhead[R]{} - \fancyhead[C]{} - - \fancyfoot[R]{\thepage{}} - \fancyfoot[C]{} +\usepackage{etoolbox} +\patchcmd{\part}{\thispagestyle{plain}}{\thispagestyle{empty}} + {}{\errmessage{Cannot patch \string\part}} + +\fancypagestyle{empty}{% + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} + \fancyhf{} } -\newcommand{\hsp}{\hspace{20pt}} -\titleformat{\chapter}[hang]{\vspace{-2cm}\Huge\bfseries}{\thechapter\hsp}{0cm}{} +\fancypagestyle{front}{% + \pagenumbering{roman} + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} + \fancyhf{} +} + +\fancypagestyle{preamble}{% + \pagenumbering{roman} + \renewcommand{\headrulewidth}{0pt} + \renewcommand{\footrulewidth}{0pt} + \fancyhf{} + \fancyfoot[R]{\thepage{}} +} + +\fancypagestyle{main}{% + \pagenumbering{arabic} + \renewcommand{\headrulewidth}{0.25pt} + \renewcommand{\footrulewidth}{0.25pt} + \fancyhf{} + \addtolength{\headwidth}{\marginparsep} + \headheight=15pt + \fancyhead[L]{\footnotesize\nouppercase{\leftmark}} + \fancyhead[C]{} + \fancyhead[R]{} + \fancyfoot[R]{\thepage{}} +} + +%\titlespacing*{\chapter}{0pt}{0pt}{0pt} +%\titleformat{\chapter}[hang]{\normalfont\Large\bfseries}{\thechapter}{10pt}{} + \makeatletter \renewcommand\paragraph{\startsection{paragraph}{4}{\z}% diff --git a/src/docs/title.tex b/src/docs/title.tex index d0a37a0..979a79c 100644 --- a/src/docs/title.tex +++ b/src/docs/title.tex @@ -1,6 +1,6 @@ -\thispagestyle{empty} -{\setlength{\parskip}{0.5cm} - \begin{center} +{ + \setlength{\parskip}{0.5cm} + \begin{center} \textbf{\huge Master's Thesis} \textbf{for achieving the academic degree} @@ -13,20 +13,18 @@ \textsf{\Large Faculty For Information Technology}\\ Studies \studies - \end{center} + \end{center} } \begin{center} - -\vspace*{2cm} - -\begin{tabular}{p{3cm}p{10cm}} -Topic: & \textbf{\large \topic} \\[15ex] -Applicant: & \authorOne, \authorOnestreet, \authorOnezip$ $ \authorOnecity, \authorOneCountry \\ -& Student Identification Number: \authorOneId\\[15ex] -1st Supervisor: & \supervisorOne\\ -2nd Supervisor: & \supervisorTwo\\[25ex] -Start Date: & \startdate\\ -Submit Date: & \submitdate\\ -\end{tabular} + \vspace*{2cm} + \begin{tabular}{p{3cm}p{10cm}} + Topic: & \textbf{\large \topic} \\[10ex] + Applicant: & \authorOne, \authorOnestreet, \authorOnezip$ $ \authorOnecity, \authorOneCountry \\ + & Student Identification Number: \authorOneId\\[10ex] + 1st Supervisor: & \supervisorOne\\ + 2nd Supervisor: & \supervisorTwo\\[10ex] + Start Date: & \startdate\\ + Submit Date: & \submitdate\\ + \end{tabular} \end{center}