Aufgabe 3 bearbeitet.

This commit is contained in:
Kremitzl 2019-05-10 11:05:21 +02:00
parent b4a864b6c9
commit 89ebf0a729
4 changed files with 253 additions and 266 deletions

View File

@ -1,14 +1,3 @@
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[ngerman]{babel}
\usepackage{hyperref}
\usepackage{csquotes}
\begin{document}
\tableofcontents
\section{Allgemeines} \label{sec:allgemeines}
@ -172,6 +161,3 @@ Wenn der Texteditor keine Schnittstelle anbietet, um \LaTeX{} direkt aus einem M
\texttt{pdflatex masterarbeit.tex}
Das Ergebnis des Aufrufs ist eine PDF-Datei, die wie die Eingabedatei heißt, nur mit der Endung \texttt{.pdf}. \LaTeX\ gibt einige Meldungen auf der Konsole aus, die beispielsweise Auskunft über die Anzahl der Seiten des Dokuments geben.
\end{document}

Binary file not shown.

View File

@ -1,255 +1,4 @@
% This is l2kurz.tex - LaTeX2e Kurzbeschreibung v3.0
% Siehe https://github.com/texdoc/l2kurz
%!TEX TS-program = Arara
% arara: pdflatex: {synctex: true}
% arara: bibtex
% arara: pdflatex: {synctex: true}
% arara: pdflatex: {synctex: true}
\newcommand{\lkver}{3.0c} % laufende Versionsnummer ...
\newcommand{\lkdate}{8.\ April 2018} % ... und Datum
\typeout{ LaTeX2e-Kurzbeschreibung}
\typeout{ Copyright 2012--2016 Marco Daniel, Patrick Gundlach }
\typeout{ Copyright 1998--2003 W.Schmidt, J.Knappen, H.Partl, I.Hyna }
\typeout{ Copyright 1994, 1995 J.Knappen, H.Partl, E.Schlegl, I.Hyna }
\typeout{ Copyright 1987 H.Partl, E.Schlegl, I.Hyna }
\documentclass[11pt,a4paper,DIV=calc,footinclude=false]{scrartcl}
\NeedsTeXFormat{LaTeX2e}
% für die Bearbeitung ist ein großer rechter Rand von Vorteil
%\geometry{%
% textheight=46\baselineskip,
% textwidth=5.2in,
% left=1cm,
% marginpar=5cm,
%}
\usepackage[USenglish,ngerman]{babel}
% EN: Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/
% DE: Optischer Randausgleich und Grauwerktkorrektur
% Falls bei einer Silbentrennung ploetzlich eine ganze Zeile fehlt (passiert unter Windows XP mit MikTex 2.5 und foxit reader als pdfreader oder \usepackage{pdfcprot}
% ausprobieren. Dieses erzeugt allerdings nur für Palatino (in dieser Vorlage die Default-Schrift) einen guten optischen Randausgleich
% Falls alle Stricke reissen, muss leider auf den optischen Randausgleich verzichtet werden.
\usepackage[
babel=true, % EN: enable language-specific kerning. Take language-settings from the languge of the current document (see Section 6 of microtype.pdf)
expansion=alltext,
protrusion=alltext-nott, % EN: Ensure that at listings, there is no change at the margin of the listing
final % EN: Always enable microtype, even if in draft mode. This helps finding bad boxes quickly.
% In the standard configuration, this template is always in the final mode, so this option only makes a difference if "pros" use the draft mode
]{microtype}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{dtk-logos}
\usepackage{textcomp,ragged2e,csquotes}
\usepackage{latexsym}
\usepackage{graphicx}
\usepackage[ngerman]{varioref}
\usepackage{array,longtable,tabularx,booktabs}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{caption}
\makeatletter
\def\midrule{%
\noalign{\ifnum0=`}\fi
\penalty\@M%
\@aboverulesep=\aboverulesep
\global\@belowrulesep=\belowrulesep
\global\@thisruleclass=\@ne
\@ifnextchar[{\@BTrule}{\@BTrule[\lightrulewidth]}}
\def\arraystretch{1.5}
\makeatother
\usepackage[normalem]{ulem}
\usepackage{showexpl}
\makeatletter
\let\LTXexample\@undefined
\let\endLTXexample\@undefined
\let\LTXexample@\@undefined
\lstnewenvironment{LTXexample}[1][]
{%
\@temptokena{#1}%
\begingroup
\advance\c@ltxexample\@ne \advance\c@lstlisting\@ne
\expandafter\lstset\expandafter{\SX@explpreset,#1}%
\edef\x{\endgroup
\def\noexpand\SX@codefile{\SX@codefile}%
\def\noexpand\SX@graphicname{\SX@graphicname}%
\def\noexpand\SX@graphicparam{\SX@graphicparam}}%
\x
\xdef\SX@@explpreset{\the\@temptokena,codefile=\SX@codefile,
graphic={[\SX@graphicparam]{\SX@graphicname}}}%
\setbox\@tempboxa=\hbox\bgroup% Warum noetig?
\def\lst@literate{}%
\lstset{extendedchars=true,inputencoding=latin1}%
\lst@BeginWriteFile{\SX@codefile}%
}
{%
\lst@EndWriteFile\egroup
\inputencoding{utf8}%
\lstset{extendedchars=true,inputencoding=utf8}%
\SX@put@code@result
}
\makeatother
\usepackage[hyperref,dvipsnames]{xcolor}
\definecolor{darkblue}{rgb}{0,0,.5}
% für todo-notes, kann später raus
\colorlet{done}{green!40}
\lstset{%
%Sprachdefinition
language=[LaTeX]TeX,
%Definition fuer das Paket showexpl,
pos=i,
hsep=1cm,
width=6cm,
rframe={},
explpreset={},
numbers=none,
%Definition für listings
basicstyle=\ttfamily\small,%
texcsstyle=*\bfseries,
columns=fullflexible,%
fontadjust=true,%
basewidth=0.65em,%
extendedchars=true,
inputencoding={utf8},
upquote=true,
%Mit Farbe:
keywordstyle=\color{blue!70!black}\bfseries,
texcsstyle=*\color{blue!70!black}\bfseries,
moretexcs={part,maketitle,SelectInputMappings,tableofcontents,subsection,subsubsection,chapter,mathcal,midrule,toprule,bottomrule,text,includegraphics},
% keywordsprefix={\ },
literate=
{\{}{\textcolor{red!70!black}{\{}}1
{\}}{\textcolor{red!70!black}{\}}}1
{]}{\textcolor{red!70!black}{]}}1
{[}{\textcolor{red!70!black}{[}}1
{Ö}{{\"O}}1
{Ä}{{\"A}}1
{Ü}{{\"U}}1
{ß}{{\ss}}1
{ü}{{\"u}}1
{ä}{{\"a}}1
{ö}{{\"o}}1,
}
\lstnewenvironment{example}[1][]
{\lstset{xleftmargin=2cm,xrightmargin=2cm,frame=lines,belowcaptionskip=\bigskipamount,#1}}
{}
% \usepackage[textsize=footnotesize]{todonotes}
% Zum Schluss laden:
\usepackage[unicode, pdfpagelabels,pageanchor=false, linktoc=all]{hyperref}
\usepackage{hyperxmp}
\hypersetup{%
pdftitle={LaTeX2e-Kurzbeschreibung},
pdfauthor={Marco Daniel, Patrick Gundlach, Walter Schmidt et al.},
% pdfcopyright={Copyright (C) 2017, <AUTOR(EN)>. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License},
pdfsubject={LaTeX Kurzanleitung},
pdfkeywords={LaTeX, TeX, DANTE e.V.},%ggf. anpassen
%pdflicenseurl={http://creativecommons.org/licenses/by-sa/4.0/},
pdfcaptionwriter={},
pdfcontactaddress={},
pdfcontactcity={},
pdfcontactpostcode={},
pdfcontactcountry={Germany},
pdfcontactphone={},
pdfcontactemail={},
pdfcontacturl={},
pdflang={de},
pdfmetalang={de},
breaklinks=true,
bookmarks=true, % show bookmarks bar
pdftoolbar=true, % show Acrobats toolbar
pdfmenubar=true, % show Acrobats menu
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdfcreator={Creator}, % creator of the document
pdfproducer={Producer}, % producer of the document
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=darkblue, % color of internal links
filecolor=darkblue, % color of file links
citecolor=darkblue, % color of file links
urlcolor=darkblue % color of external links
}
%
% Seitenzahlen oben, aber keine Kopfzeile
%
\pagestyle{myheadings}
\markboth{}{}
% Make float placement easier
\renewcommand{\textfraction}{.1}
\renewcommand{\floatpagefraction}{.7}
\makeatletter
% LaTeXe-Symbol fuer cmss/sbc mit groesserem Absstand L-a und
% halbfettem Epsilon
\DeclareRobustCommand{\sbLaTeXe}{{\fontseries{sbc}\selectfont\boldmath%
L\kern-.25em% -.36
{\sbox\z@ T%
\vbox to\ht\z@{\hbox{\check@mathfonts
\fontsize\sf@size\z@
\math@fontsfalse\selectfont
A}%
\vss}%
}%
\kern-.15em%
\TeX\kern.15em2$_{\textstyle\varepsilon}$}}
\makeatother
\newcommand{\cs}[1]{\texttt{\textbackslash #1}}
\newcommand\exa{\nopagebreak \begin{flushleft}\smallskip \nopagebreak
\begin{minipage}[t]{6cm}\sloppy}
\newcommand\exb{\end{minipage}\kern 1cm\begin{minipage}[t]{8cm}\sloppy }
\newcommand\exc{\end{minipage}\kern -3cm \smallskip\end{flushleft}}
\newenvironment{beispiel}{\begin{verse}}{\end{verse}}
\newenvironment{lminipage}[1]{%
\begin{center}\begin{minipage}{#1}\noindent\hrule\medskip}%
{\par\noindent\hrule \end{minipage}\end{center}}
\newenvironment{ttdescription}{%
\renewcommand{\descriptionlabel}[1]{%
\hspace{\labelsep}\texttt{##1}}%
\begin{description}%
}{%
\end{description}%
}
\newcommand{\manual}{\emph{\LaTeX-Handbuch}~\cite{manual}}
\newcommand{\local}{\emph{Local Guide}~\cite{local}}
\newenvironment{symbols}{%
\begin{tabbing}
\hspace{1cm}\=\hspace{3.5cm}\= \hspace{1cm}\=\hspace{3.5cm}\=
\hspace{1cm}\=\hspace{3.5cm}\= \kill
}{%
\end{tabbing}}
\newcommand{\nfrac}[2]{\leavevmode\kern.1em%
\raise.5ex\hbox{\scriptsize #1}%
\kern-.1em/\kern-.15em%
\lower.25ex\hbox{\scriptsize #2}}
\input{praeambel}
\begin{document}
\nonfrenchspacing % babel sets frenchspacing automatically.

252
praeambel.tex Normal file
View File

@ -0,0 +1,252 @@
% This is l2kurz.tex - LaTeX2e Kurzbeschreibung v3.0
% Siehe https://github.com/texdoc/l2kurz
%!TEX TS-program = Arara
% arara: pdflatex: {synctex: true}
% arara: bibtex
% arara: pdflatex: {synctex: true}
% arara: pdflatex: {synctex: true}
\newcommand{\lkver}{3.0c} % laufende Versionsnummer ...
\newcommand{\lkdate}{8.\ April 2018} % ... und Datum
\typeout{ LaTeX2e-Kurzbeschreibung}
\typeout{ Copyright 2012--2016 Marco Daniel, Patrick Gundlach }
\typeout{ Copyright 1998--2003 W.Schmidt, J.Knappen, H.Partl, I.Hyna }
\typeout{ Copyright 1994, 1995 J.Knappen, H.Partl, E.Schlegl, I.Hyna }
\typeout{ Copyright 1987 H.Partl, E.Schlegl, I.Hyna }
\documentclass[11pt,a4paper,DIV=calc,footinclude=false]{scrartcl}
\NeedsTeXFormat{LaTeX2e}
% für die Bearbeitung ist ein großer rechter Rand von Vorteil
%\geometry{%
% textheight=46\baselineskip,
% textwidth=5.2in,
% left=1cm,
% marginpar=5cm,
%}
\usepackage[USenglish,ngerman]{babel}
% EN: Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/
% DE: Optischer Randausgleich und Grauwerktkorrektur
% Falls bei einer Silbentrennung ploetzlich eine ganze Zeile fehlt (passiert unter Windows XP mit MikTex 2.5 und foxit reader als pdfreader oder \usepackage{pdfcprot}
% ausprobieren. Dieses erzeugt allerdings nur für Palatino (in dieser Vorlage die Default-Schrift) einen guten optischen Randausgleich
% Falls alle Stricke reissen, muss leider auf den optischen Randausgleich verzichtet werden.
\usepackage[
babel=true, % EN: enable language-specific kerning. Take language-settings from the languge of the current document (see Section 6 of microtype.pdf)
expansion=alltext,
protrusion=alltext-nott, % EN: Ensure that at listings, there is no change at the margin of the listing
final % EN: Always enable microtype, even if in draft mode. This helps finding bad boxes quickly.
% In the standard configuration, this template is always in the final mode, so this option only makes a difference if "pros" use the draft mode
]{microtype}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{lmodern}
\usepackage{dtk-logos}
\usepackage{textcomp,ragged2e,csquotes}
\usepackage{latexsym}
\usepackage{graphicx}
\usepackage[ngerman]{varioref}
\usepackage{array,longtable,tabularx,booktabs}
\usepackage{enumitem}
\usepackage{amsmath}
\usepackage{caption}
\makeatletter
\def\midrule{%
\noalign{\ifnum0=`}\fi
\penalty\@M%
\@aboverulesep=\aboverulesep
\global\@belowrulesep=\belowrulesep
\global\@thisruleclass=\@ne
\@ifnextchar[{\@BTrule}{\@BTrule[\lightrulewidth]}}
\def\arraystretch{1.5}
\makeatother
\usepackage[normalem]{ulem}
\usepackage{showexpl}
\makeatletter
\let\LTXexample\@undefined
\let\endLTXexample\@undefined
\let\LTXexample@\@undefined
\lstnewenvironment{LTXexample}[1][]
{%
\@temptokena{#1}%
\begingroup
\advance\c@ltxexample\@ne \advance\c@lstlisting\@ne
\expandafter\lstset\expandafter{\SX@explpreset,#1}%
\edef\x{\endgroup
\def\noexpand\SX@codefile{\SX@codefile}%
\def\noexpand\SX@graphicname{\SX@graphicname}%
\def\noexpand\SX@graphicparam{\SX@graphicparam}}%
\x
\xdef\SX@@explpreset{\the\@temptokena,codefile=\SX@codefile,
graphic={[\SX@graphicparam]{\SX@graphicname}}}%
\setbox\@tempboxa=\hbox\bgroup% Warum noetig?
\def\lst@literate{}%
\lstset{extendedchars=true,inputencoding=latin1}%
\lst@BeginWriteFile{\SX@codefile}%
}
{%
\lst@EndWriteFile\egroup
\inputencoding{utf8}%
\lstset{extendedchars=true,inputencoding=utf8}%
\SX@put@code@result
}
\makeatother
\usepackage[hyperref,dvipsnames]{xcolor}
\definecolor{darkblue}{rgb}{0,0,.5}
% für todo-notes, kann später raus
\colorlet{done}{green!40}
\lstset{%
%Sprachdefinition
language=[LaTeX]TeX,
%Definition fuer das Paket showexpl,
pos=i,
hsep=1cm,
width=6cm,
rframe={},
explpreset={},
numbers=none,
%Definition für listings
basicstyle=\ttfamily\small,%
texcsstyle=*\bfseries,
columns=fullflexible,%
fontadjust=true,%
basewidth=0.65em,%
extendedchars=true,
inputencoding={utf8},
upquote=true,
%Mit Farbe:
keywordstyle=\color{blue!70!black}\bfseries,
texcsstyle=*\color{blue!70!black}\bfseries,
moretexcs={part,maketitle,SelectInputMappings,tableofcontents,subsection,subsubsection,chapter,mathcal,midrule,toprule,bottomrule,text,includegraphics},
% keywordsprefix={\ },
literate=
{\{}{\textcolor{red!70!black}{\{}}1
{\}}{\textcolor{red!70!black}{\}}}1
{]}{\textcolor{red!70!black}{]}}1
{[}{\textcolor{red!70!black}{[}}1
{Ö}{{\"O}}1
{Ä}{{\"A}}1
{Ü}{{\"U}}1
{ß}{{\ss}}1
{ü}{{\"u}}1
{ä}{{\"a}}1
{ö}{{\"o}}1,
}
\lstnewenvironment{example}[1][]
{\lstset{xleftmargin=2cm,xrightmargin=2cm,frame=lines,belowcaptionskip=\bigskipamount,#1}}
{}
% \usepackage[textsize=footnotesize]{todonotes}
% Zum Schluss laden:
\usepackage[unicode, pdfpagelabels,pageanchor=false, linktoc=all]{hyperref}
\usepackage{hyperxmp}
\hypersetup{%
pdftitle={LaTeX2e-Kurzbeschreibung},
pdfauthor={Marco Daniel, Patrick Gundlach, Walter Schmidt et al.},
% pdfcopyright={Copyright (C) 2017, <AUTOR(EN)>. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License},
pdfsubject={LaTeX Kurzanleitung},
pdfkeywords={LaTeX, TeX, DANTE e.V.},%ggf. anpassen
%pdflicenseurl={http://creativecommons.org/licenses/by-sa/4.0/},
pdfcaptionwriter={},
pdfcontactaddress={},
pdfcontactcity={},
pdfcontactpostcode={},
pdfcontactcountry={Germany},
pdfcontactphone={},
pdfcontactemail={},
pdfcontacturl={},
pdflang={de},
pdfmetalang={de},
breaklinks=true,
bookmarks=true, % show bookmarks bar
pdftoolbar=true, % show Acrobats toolbar
pdfmenubar=true, % show Acrobats menu
pdffitwindow=false, % window fit to page when opened
pdfstartview={FitH}, % fits the width of the page to the window
pdfcreator={Creator}, % creator of the document
pdfproducer={Producer}, % producer of the document
pdfnewwindow=true, % links in new window
colorlinks=true, % false: boxed links; true: colored links
linkcolor=darkblue, % color of internal links
filecolor=darkblue, % color of file links
citecolor=darkblue, % color of file links
urlcolor=darkblue % color of external links
}
%
% Seitenzahlen oben, aber keine Kopfzeile
%
\pagestyle{myheadings}
\markboth{}{}
% Make float placement easier
\renewcommand{\textfraction}{.1}
\renewcommand{\floatpagefraction}{.7}
\makeatletter
% LaTeXe-Symbol fuer cmss/sbc mit groesserem Absstand L-a und
% halbfettem Epsilon
\DeclareRobustCommand{\sbLaTeXe}{{\fontseries{sbc}\selectfont\boldmath%
L\kern-.25em% -.36
{\sbox\z@ T%
\vbox to\ht\z@{\hbox{\check@mathfonts
\fontsize\sf@size\z@
\math@fontsfalse\selectfont
A}%
\vss}%
}%
\kern-.15em%
\TeX\kern.15em2$_{\textstyle\varepsilon}$}}
\makeatother
\newcommand{\cs}[1]{\texttt{\textbackslash #1}}
\newcommand\exa{\nopagebreak \begin{flushleft}\smallskip \nopagebreak
\begin{minipage}[t]{6cm}\sloppy}
\newcommand\exb{\end{minipage}\kern 1cm\begin{minipage}[t]{8cm}\sloppy }
\newcommand\exc{\end{minipage}\kern -3cm \smallskip\end{flushleft}}
\newenvironment{beispiel}{\begin{verse}}{\end{verse}}
\newenvironment{lminipage}[1]{%
\begin{center}\begin{minipage}{#1}\noindent\hrule\medskip}%
{\par\noindent\hrule \end{minipage}\end{center}}
\newenvironment{ttdescription}{%
\renewcommand{\descriptionlabel}[1]{%
\hspace{\labelsep}\texttt{##1}}%
\begin{description}%
}{%
\end{description}%
}
\newcommand{\manual}{\emph{\LaTeX-Handbuch}~\cite{manual}}
\newcommand{\local}{\emph{Local Guide}~\cite{local}}
\newenvironment{symbols}{%
\begin{tabbing}
\hspace{1cm}\=\hspace{3.5cm}\= \hspace{1cm}\=\hspace{3.5cm}\=
\hspace{1cm}\=\hspace{3.5cm}\= \kill
}{%
\end{tabbing}}
\newcommand{\nfrac}[2]{\leavevmode\kern.1em%
\raise.5ex\hbox{\scriptsize #1}%
\kern-.1em/\kern-.15em%
\lower.25ex\hbox{\scriptsize #2}}