Skip to content
Snippets Groups Projects
Commit 8224a42f authored by Jan Wille's avatar Jan Wille
Browse files

add `todos` class-option

parent 0f817e31
No related branches found
No related tags found
No related merge requests found
......@@ -5,6 +5,17 @@
150
],
"ltex.language": "de-DE",
"todo-tree.general.tagGroups": {"ToDo":["TODO", "ToDo", "\\todo["]},
"todo-tree.general.tags": [
"TODO",
"ToDo",
],
"todo-tree.regex.regex": "(%|^|^[ \\t]*(-|\\d+.))\\s*($TAGS)|(\\\\todo[\\[\\{])",
"todo-tree.filtering.excludeGlobs": [
"**/.vscode/**",
"**/.aux/**",
"**/src/**",
],
"latex-workshop.latex.autoBuild.run": "onSave",
"latex-workshop.showContextMenu": true,
"latex-workshop.latex.recipes": [
......
No preview for this file type
\documentclass[f1,twoside]{HsH-report} % documentclass
\documentclass[
f1,
%twoside, % mutually exclude with `todos'
todos,
]{HsH-report} % documentclass
% include packages here
\usepackage{hyperref}
......
\begin{abstract}
\todo[inline]{kommt als letztes}
\end{abstract}
......@@ -28,4 +28,4 @@
\section{Ziele der Arbeit} \label{sec: ziele}
ToDo
\todo[inline]{Ist das Kapitel sinnvoll??}
......@@ -30,6 +30,7 @@
\newcommand{\HsHlogoPage}{1}
\newcommand{\includeHsHlogohere}[1][5cm]{\includegraphics[width=#1,page=\HsHlogoPage]{\HsHlogoPath}}
\newif\if@german%
\newif\if@todos\@todosfalse%
%% document options -------------------------------------------------------------------------------
\DeclareOption{german}{
......@@ -62,6 +63,9 @@
\DeclareOption{roman}{
\renewcommand{\familydefault}{\rmdefault}
}
\DeclareOption{todos}{
\@todostrue
}
\DeclareOption*{\expandafter\PassOptionsToClass\expandafter{\CurrentOption}{scrreprt}}
\ExecuteOptions{fontsize=11pt,a4paper,ngerman,sans} % default options
\ProcessOptions\relax
......@@ -78,7 +82,11 @@
\RequirePackage{graphicx}
\RequirePackage{amsmath}
\if@german\RequirePackage{ziffer}\fi
\if@todos
\PassOptionsToPackage{left=1cm,right=5cm,top=3cm,bottom=3cm}{geometry}
\else
\PassOptionsToPackage{left=3cm,right=2.5cm,top=3cm,bottom=3cm}{geometry}
\fi
\RequirePackage{geometry}
\if@german\PassOptionsToPackage{ngerman}{babel}\else\PassOptionsToPackage{english}{babel}\fi
\RequirePackage{babel}
......@@ -94,6 +102,19 @@
\if@german\PassOptionsToPackage{german=quotes}{csquotes}\fi
\RequirePackage{csquotes}
\MakeOuterQuote{"}
\if@todos
\PassOptionsToPackage{
textwidth=4.5cm,
textsize=small,
figwidth=.6\textwidth
}{todonotes}
\RequirePackage{todonotes}
\setlength{\marginparwidth}{5.2cm}
\else
\newcommand{\listoftodos}[1][]{}
\newcommand{\todo}[2][]{}
\newcommand{\missingfigure}[2][]{}
\fi
\RequirePackage{pgffor}
%% options for not loaded packages ----------------------------------------------------------------
\PassOptionsToPackage{backend=biber,style=alphabetic,sorting=nyt}{biblatex}
......
......@@ -17,6 +17,13 @@
isbn=false,
}
}{}
\@ifpackageloaded{todonotes}{
\setuptodonotes{
backgroundcolor=orange!60!white,
linecolor=orange,
bordercolor=white
}
}{}
\@ifpackageloaded{siunitx}{
\if@german
\sisetup{output-decimal-marker={,}} % use comma as dezimal
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment