summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/latex/lshort-german/l2kurz.tex
blob: 7c2dc76bda75bd6a9d984139571eb2f43936e79c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
% 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 Acrobat’s toolbar
  pdfmenubar=true,                   % show Acrobat’s 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}}

\begin{document}
\nonfrenchspacing      % babel sets frenchspacing automatically.
%  However, some examples are pointless with frenchspacing in action.
%  Besides, the larger space after a sentence make the text more readable.

%: Einleitung
\input{einleitung}
\clearpage

\tableofcontents
\clearpage

%: Allgemeines
\input{allgemeines}
\clearpage

\input{eingabefile}
\clearpage

%: Textsatz
\input{textsatz}
\clearpage

 %: Mathematik
\input{mathematik}
\clearpage

 %: Bilder
\input{bilder}
\clearpage

%: Seitenaufbau
\input{seitenaufbau}
\clearpage

%: Schriften
\input{schriften}
\clearpage

%: Spezialitäten
\input{spezialitaeten}
\clearpage

%: Anhang
\input{anhang}
\clearpage

%: Literaturverzeichnis
\phantomsection
\addcontentsline{toc}{section}{\refname}
\bibliographystyle{unsrtdin}
{\RaggedRight
\bibliography{l2kurz}}

\end{document}