Skip to content
Snippets Groups Projects
Commit 4726199b authored by abrahas55's avatar abrahas55
Browse files

updated scrartcl.tex, minor changes overall

parent fad7757d
No related branches found
No related tags found
No related merge requests found
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
\begin{enumerate} \begin{enumerate}
\item does the compilation work? \item does the compilation work?
\item have you changed the general information in scrartl.tex? \item have you changed the general information in scrartcl.tex?
\item ideas for changes? open a merge request or issue! \item ideas for changes? open a merge request or issue!
\end{enumerate} \end{enumerate}
......
\documentclass{scrartcl} \documentclass[numbers=endperiod]{scrartcl}
% Set \germantrue if the document is in German language
\newif\ifgerman
%\germanfalse
\germantrue
\ifgerman
\def\babellanguage{ngerman}
% Most fonts do not advertise a specialised
% Latin/English (latn.ENG) or
% Latin/German
% but only Latin (latn) script.
% Thus, when loading fonts, ask for the generic version.
\def\babelfontlanguage{Default}
\def\babelscript{Latin}
\def\biblatexsorting{de_DE}
\def\namecorollary{Korollar}
\def\namedefinition{Definition}
\def\nameexercise{Aufgabe}
\def\namelemma{Lemma}
\def\nameproposition{Aussage}
\def\nameremark{Anmerkung}
\def\nametheorem{Satz}
\else
\def\babellanguage{english}
\def\babelfontlanguage{Default}
\def\babelscript{Latin}
\def\biblatexsorting{en_US}
\def\namecorollary{Corollary}
\def\namedefinition{Definition}
\def\nameexercise{Exercise}
\def\namelemma{Lemma}
\def\nameproposition{Proposition}
\def\nameremark{Remark}
\def\nametheorem{Theorem}
\fi
% these packages are used for math symbols
\usepackage{amsmath} \usepackage{amsmath}
\usepackage{amsfonts} \usepackage{amsfonts}
\usepackage{amssymb} \usepackage{amssymb}
\usepackage{amsthm} \usepackage{amsthm}
% You can declare additional operators, eg.
% fancy floor and ceil %\DeclareMathOperator{\rem}{rem}
\newcommand{\floor}[1]{\lfloor #1 \rfloor}
\providecommand{\ceil}[1]{\left \lceil #1 \right \rceil } % tikz stuff
% if you want to draw pretty things
\usepackage{tikz}
\usepackage{pgfplots}
\usepackage{tikz-3dplot}
\usetikzlibrary{calc, arrows.meta, positioning,through}
\usetikzlibrary{angles, quotes,backgrounds,shapes,arrows,positioning,calc,snakes,fit}
\usepgflibrary{decorations.markings}
\tdplotsetmaincoords{60}{115}
\pgfplotsset{compat=newest}
% allows to create extended matrizes by adding e.g. [c c | r] afterwards
\makeatletter
\renewcommand*\env@matrix[1][*\c@MaxMatrixCols c]{%
\hskip -\arraycolsep
\let\@ifnextchar\new@ifnextchar
\array{#1}}
\makeatother
\usepackage{iftex}
\ifPDFTeX
% Warning: Inputenc is only a hack to teach pdfTeX Unicode. Beware of dragons!
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage[\babellanguage]{babel}
\else
\usepackage{fontspec} \usepackage{fontspec}
\defaultfontfeatures{Mapping=TeX} \usepackage{babel}
\babelprovide[import,
language=\babelfontlanguage,
script=\babelscript,
main]{\babellanguage}
\usepackage{unicode-math}
% Load the Computer Modern Unicode OTF fonts from the system. Also see README.md
\babelfont{rm}%
% Use non-lining numerals for non-math text
[Numbers=OldStyle]
{CMU Serif}
\babelfont{sf}{CMU Sans Serif}
\babelfont{tt}{CMU Typewriter Text}
% Make it look more like CM Math
% % https://tex.stackexchange.com/q/140754/90407
\setmathfont{Latin Modern Math}
\setmathfont[range=\mathbb]{TeX Gyre Termes Math}
% LM Math only provides the U+2216 code point for "set minus", however,
% unicode-math maps \setminus the "reverse solidus operator" U+29F5 which LMM
% doesn't provide, instead mapping \smallsetminus to U+2216. However, whether
% you want a "small" set minux or a "long" is a font decision (IMHO), so
% remap \setminus to the correct Unicode code point.
% https://tex.stackexchange.com/a/140343/90407
% https://tex.stackexchange.com/a/161873/90407
\ExplSyntaxOn
\AtBeginDocument
{
\__um_process_symbol_noparse:nnn {"02216}{\setminus}{\mathbin}
}
\ExplSyntaxOff
\fi
% micro typography, removes many problems % Protruding punctuation
\usepackage{microtype} \usepackage{microtype}
% Internationalisation % \enquote{} for setting things in "quotes"
\usepackage{polyglossia}
% NOTE: change here for other languages (e.g. english)
\setdefaultlanguage{german}
% \enquote for properly enclosed quotes
\usepackage{csquotes} \usepackage{csquotes}
\usepackage[labelfont=bf]{caption} % captionof % Additional [H] specifier for floats that actually shouldn't be floats
%\begin{center} % but still be considered figures
% \includegraphics{...}% whatever ... \usepackage{float}
% \captionof{figure}{description}\label{fig:test}
%\end{center}
\usepackage{xcolor} % To create custom itemizations, eg.
% define your colors here % \begin{itemize}[label=\alph*)]
\definecolor{mygreen}{rgb}{0,0.6,0} \usepackage{enumitem}
\definecolor{mygray}{rgb}{0.5,0.5,0.5}
\definecolor{mymauve}{rgb}{0.58,0,0.82}
\definecolor{mygreenblue}{rgb}{0.1,0.6,0.4}
% sane defaults % Typesetting code, setup for C by default
\usepackage{xcolor}
\usepackage{listings} \usepackage{listings}
\lstdefinestyle{default}{% \lstdefinestyle{default}{%
numbers=left, numbers=left,
stepnumber=1, stepnumber=1,
numberstyle=\scriptsize, numberstyle=\tiny,
numbersep=2pt, basicstyle=\ttfamily,
% lineskip=1pt, % fixes some white stripes between lines
basicstyle=\ttfamily\footnotesize,
backgroundcolor=\color{gray!8}, backgroundcolor=\color{gray!8},
commentstyle=\color{mygreenblue}, commentstyle=\color{green!60!blue}\itshape,
keywordstyle=\color{blue}, keywordstyle=\color{blue},
stringstyle=\color{mymauve}, stringstyle=\color{blue!30!red},
tabsize=4, tabsize=4,
keepspaces=true, keepspaces=true,
} }
\lstdefinestyle{defaultInline}{ \lstset{style=default, language=C}
style=default,
basicstyle=\ttfamily, % Break URLs at hyphens
\PassOptionsToPackage{hyphens}{url}
% Make PDF links work with non-latin languages via Unicode
\usepackage[pdfusetitle,pdfencoding=auto]{hyperref}
\pdfstringdefDisableCommands{
\def\@{}
} }
\lstset{style=defaultInline, language=C}
% small URL style
\PassOptionsToPackage{hyphens}{url}\usepackage{hyperref}
\usepackage{enumitem}
% bits and bytes
\usepackage[binary-units=true]{siunitx}
% Bibliography with biber backend % Typeset units with
% \SI{8}{\bit} or \si{\bit}
\usepackage[
binary-units=true,
% Make \num{42} and $\num{42}$ behave differently.
detect-mode,
detect-family,
detect-inline-family=math,
]{siunitx}
% Disable warning for biblatex < 3.14
\makeatletter\def\blx@nowarnpolyglossia{}\makeatother
\usepackage[ \usepackage[
natbib=true, natbib=true,
backend=biber, backend=biber,
style=numeric, style=numeric,
citestyle=numeric, citestyle=numeric,
sorting=nty, sorting=nty,
sortlocale=de_DE, sortlocale=\biblatexsorting,
seconds=true, seconds=true,
alldates=iso, alldates=iso,
]{biblatex} ]{biblatex}
%\addbibresource{./bib.bib}
\addbibresource{scrartcl.bib} % Headers & Footers
% \theauthor, etc.
\usepackage{titling}
% More space
\usepackage[left=3.0cm,right=2.5cm,top=4cm,bottom=3cm]{geometry}
% Headers and Footers
\usepackage[headsepline]{scrlayer-scrpage} \usepackage[headsepline]{scrlayer-scrpage}
\pagestyle{scrheadings} \pagestyle{scrheadings}
% titling conflicts with \maketitle etc. from KOMA, but as long as we don't use
% that this is fine.
\usepackage{titling}
\lohead*{\theauthor} \lohead*{\theauthor}
\cohead*{\thetitle} \cohead*{\thetitle}
\rohead*{\today} \rohead*{\today}
\cofoot*{\thepage} \cofoot*{\thepage}
% Data % define specific math symbols
\author{your name} \usepackage{mathtools}
\title{course} \DeclarePairedDelimiter\ceil{\lceil}{\rceil}
\DeclarePairedDelimiter\floor{\lfloor}{\rfloor}
\begin{document} \begin{document}
% TODO add your name here
\author{name}
\title{course}
% Add some neat environments for scripts and exercises
\theoremstyle{definition} \theoremstyle{definition}
\newtheorem{definition}{Definition} \newtheorem{definition}{\namedefinition}
\theoremstyle{remark} \theoremstyle{remark}
\newtheorem{remark}{Anmerkung} \newtheorem{remark}{\nameremark}
\theoremstyle{plain} \theoremstyle{plain}
\newtheorem{proposition}{Aussage} \newtheorem{proposition}{\nameproposition}
\newtheorem{theorem}{Satz} \newtheorem{theorem}{\nametheorem}
\newtheorem{lemma}{Lemma} \newtheorem{lemma}{\namelemma}
\newtheorem{corollary}{Korollar} \newtheorem{corollary}{\namecorollary}
\newtheoremstyle{exercise}% name of the style to be used \newtheoremstyle{exercise}% name of the style to be used
{} % measure of space to leave above the theorem. E.g.: 3pt {} % measure of space to leave above the theorem. E.g.: 3pt
{} % measure of space to leave below the theorem. E.g.: 3pt {} % measure of space to leave below the theorem. E.g.: 3pt
{} % name of font to use in the body of the theorem {\upshape} % name of font to use in the body of the theorem
{} % measure of space to indent {} % measure of space to indent
{\bfseries}% name of head font {\bfseries}% name of head font
{} % punctuation between head and body {} % punctuation between head and body
{ } % space after theorem head; " " = normal interword space {\newline} % space after theorem head; " " = normal interword space
{% {%
\thmname{#1} \thmnumber{#2}.\thmnote{ (#3)}% Manually specify head \thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}% Manually specify head
} }
\theoremstyle{exercise} \theoremstyle{exercise}
\newtheorem{exercise}{Exercise}[subsection] \newtheorem{exercise}{\nameexercise}[section]
% here you can add things as you wish. This allows to compile specific
% here you can include which files to compile % assignments or everything at once
% this way you can either just produce one pdf per exercise or build the \include{00}
% complete set by including every file. %\include{01}
%\include{02}
\include{exercise00} %\include{03}
%\include{04}
%\include{05}
%\include{06}
%\include{07}
%\include{08}
%\include{09}
%\include{10}
%\include{11}
%\include{12}
\end{document} \end{document}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment