From b6da6172ff7535c115692602faa0158f0bc724cd Mon Sep 17 00:00:00 2001 From: rschoene <rene.schoene@tu-dresden.de> Date: Tue, 8 Aug 2023 16:18:17 +0200 Subject: [PATCH] Several improvements - align with german template - use serif font - use some good-to-have packages - add environment for draft content - add options for printing --- header.tex | 70 ++++++++++++++++++++++++++++++++++++++ sections/eval.tex | 6 ++++ thesis.tex | 85 +++++------------------------------------------ 3 files changed, 85 insertions(+), 76 deletions(-) create mode 100644 header.tex diff --git a/header.tex b/header.tex new file mode 100644 index 0000000..306ab2e --- /dev/null +++ b/header.tex @@ -0,0 +1,70 @@ +\usepackage[T1]{fontenc} +\usepackage{hyphsubst} +\usepackage{gentium} +\usepackage{inconsolata} +\usepackage{babel} +\usepackage{isodate} + +\setkomafont{disposition}{\normalcolor\bfseries\sffamily} + +\usepackage[ + style=numeric-comp, + backend=biber, + url=false, + doi=false, + isbn=false, + hyperref, +]{biblatex} +\addbibresource{bibliography.bib} +\AtEveryBibitem{% + \clearfield{note}% +} + +\usepackage{hyperref} % makes all links clickable + +\usepackage[obeyFinal,textwidth=30mm,colorinlistoftodos,prependcaption,textsize=tiny]{todonotes} + +\usepackage{graphicx} +\usepackage{blindtext} % add blindtext +\usepackage[babel]{microtype} % Improve font layout (spacing, hyphenation etc.) +\usepackage{doi} % Add links for DOIs, handle "_" in dois +\usepackage{csquotes} % provide \enquote +\usepackage{fnpct} % punctuation, especially together with footnotes +\usepackage{ifdraft} % for detecting draft/final mode +\usepackage{version} % conditionally to exclude parts of document +\usepackage{tcolorbox} % make colored boxes + +\usepackage{caption} +\usepackage{subcaption} + +\usepackage{booktabs} % must-have for tables +\usepackage{tabularx} % tabularx environment +\usepackage{multirow} % for combining multiple rows +\usepackage{makecell} % enables line breaks in cells + +\usepackage{quoting} + +\usepackage{xfrac} + +\input{lst.tex} + +\usepackage[capitalise,nameinlink,noabbrev]{cleveref} % automatically inserts Fig. X in the text with \cref{..} + +% if you need mathy stuff +\newtheorem{lem}{Lemma} +\crefname{lem}{Lemma}{Lemmas} +\newtheorem{thm}{Theorem} +\crefname{thm}{Theorem}{Theorems} +\newtheorem{defs}{Definition} +\crefname{defs}{Def.}{Defs.} + +\newenvironment{draftcontent}[1][,]{% +\begin{tcolorbox}[title=Draft of content,#1]\begin{itemize}}{% +\end{itemize}\end{tcolorbox}} + +% Exclude draftcontent environment, if "final" is selected +\ifoptionfinal{ + \excludeversion{draftcontent} +}{ + \includeversion{draftcontent} +} diff --git a/sections/eval.tex b/sections/eval.tex index 2c4cb4c..ee57cd4 100644 --- a/sections/eval.tex +++ b/sections/eval.tex @@ -1,4 +1,10 @@ \chapter{Evaluation of the concept} \label{ch:evaluation} +\begin{draftcontent} +\item Describe objectives of evaluation +\item Present structure and used material of evaluation +\item Show and explain results of evaluation +\end{draftcontent} + \blindtext diff --git a/thesis.tex b/thesis.tex index 0306742..d99d857 100644 --- a/thesis.tex +++ b/thesis.tex @@ -1,84 +1,18 @@ -\documentclass[english,BCOR=1.5cm,twoside]{tudscrreprt} - -\iftutex - \usepackage{fontspec} -\else - \usepackage[T1]{fontenc} - \usepackage{hyphsubst} -\fi - -\usepackage[utf8]{inputenc} -\usepackage{babel} -\usepackage{isodate} - -\usepackage[ - style=numeric-comp, - backend=biber, - url=false, - doi=false, - isbn=false, - hyperref, -]{biblatex} -\addbibresource{bibliography.bib} -\AtEveryBibitem{% - \clearfield{note}% -} - -\usepackage[hidelinks]{hyperref} % makes all links clickable but hides ugly boxes - -\usepackage[colorinlistoftodos,prependcaption,textsize=tiny]{todonotes} - -\usepackage{graphicx} - -\usepackage{blindtext} - -%\usepackage{tudscrsupervisor} % if you want to copy the sources of the task description into the thesis - -\usepackage{csquotes} - - - -\usepackage{caption} -\captionsetup{font=sf,labelfont=bf,labelsep=space} -\usepackage{floatrow} -\floatsetup{font=sf} -\floatsetup[table]{style=plaintop} -\captionsetup{singlelinecheck=off,format=hang,justification=raggedright} -\DeclareCaptionSubType[alph]{figure} -\DeclareCaptionSubType[alph]{table} -\captionsetup[subfloat]{labelformat=brace,list=off} +\PassOptionsToPackage{dvipsnames}{xcolor} +\PassOptionsToPackage{hidelinks}{hyperref} +% to print the document, use the following additional options (after "BCOR=6mm"): +% ,twoside +\documentclass[a4paper,english,cdgeometry=no,DIV=10,cdfont=no,cleardoublespecialpage=true,open=right,BCOR=6mm]{tudscrreprt} -\usepackage{booktabs} -\usepackage{array} -\usepackage{tabularx} -\usepackage{longtable} - -\usepackage{quoting} - -\usepackage[babel]{microtype} - -\usepackage{xfrac} - - - -\input{lst.tex} - -\usepackage[capitalise,nameinlink,noabbrev]{cleveref} % automatically inserts Fig. X in the text with \cref{..} -% if you need mathy stuff -\newtheorem{lem}{Lemma} -\crefname{lem}{Lemma}{Lemmas} -\newtheorem{thm}{Theorem} -\crefname{thm}{Theorem}{Theorems} -\newtheorem{defs}{Definition} -\crefname{defs}{Def.}{Defs.} +\input{header.tex} \begin{document} -%\department{} \faculty{Faculty of Computer Science} -\institute{Institute of Software- and Multimedia-Technology} -\chair{Softwaretechnology Group} +%\department{} +%\institute{Institute of Software and Multimedia Technology} +\chair{Chair of Software Technology} \title{% My Thesis Title } @@ -96,7 +30,6 @@ %\graduation[Dipl.Inf.]{Diplom-Informatiker} \author{Mickey Mouse} -\emailaddress[]{mickey.mouse@tu-dresden.de} \matriculationnumber{12345678} \matriculationyear{2016} \dateofbirth{1.1.1990} -- GitLab