l2kurz.tex 9.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308
  1. % This is l2kurz.tex - LaTeX2e Kurzbeschreibung v3.0
  2. % Siehe https://github.com/texdoc/l2kurz
  3. %!TEX TS-program = Arara
  4. % arara: pdflatex: {synctex: true}
  5. % arara: bibtex
  6. % arara: pdflatex: {synctex: true}
  7. % arara: pdflatex: {synctex: true}
  8. \newcommand{\lkver}{3.0c} % laufende Versionsnummer ...
  9. \newcommand{\lkdate}{8.\ April 2018} % ... und Datum
  10. \typeout{ LaTeX2e-Kurzbeschreibung}
  11. \typeout{ Copyright 2012--2016 Marco Daniel, Patrick Gundlach }
  12. \typeout{ Copyright 1998--2003 W.Schmidt, J.Knappen, H.Partl, I.Hyna }
  13. \typeout{ Copyright 1994, 1995 J.Knappen, H.Partl, E.Schlegl, I.Hyna }
  14. \typeout{ Copyright 1987 H.Partl, E.Schlegl, I.Hyna }
  15. \documentclass[11pt,a4paper,DIV=calc,footinclude=false]{scrartcl}
  16. \NeedsTeXFormat{LaTeX2e}
  17. % für die Bearbeitung ist ein großer rechter Rand von Vorteil
  18. %\geometry{%
  19. % textheight=46\baselineskip,
  20. % textwidth=5.2in,
  21. % left=1cm,
  22. % marginpar=5cm,
  23. %}
  24. \usepackage[USenglish,ngerman]{babel}
  25. % EN: Character protrusion and font expansion. See http://www.ctan.org/tex-archive/macros/latex/contrib/microtype/
  26. % DE: Optischer Randausgleich und Grauwerktkorrektur
  27. % 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}
  28. % ausprobieren. Dieses erzeugt allerdings nur für Palatino (in dieser Vorlage die Default-Schrift) einen guten optischen Randausgleich
  29. % Falls alle Stricke reissen, muss leider auf den optischen Randausgleich verzichtet werden.
  30. \usepackage[
  31. babel=true, % EN: enable language-specific kerning. Take language-settings from the languge of the current document (see Section 6 of microtype.pdf)
  32. expansion=alltext,
  33. protrusion=alltext-nott, % EN: Ensure that at listings, there is no change at the margin of the listing
  34. final % EN: Always enable microtype, even if in draft mode. This helps finding bad boxes quickly.
  35. % 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
  36. ]{microtype}
  37. \usepackage[utf8]{inputenc}
  38. \usepackage[T1]{fontenc}
  39. \usepackage{lmodern}
  40. \usepackage{dtk-logos}
  41. \usepackage{textcomp,ragged2e,csquotes}
  42. \usepackage{latexsym}
  43. \usepackage{graphicx}
  44. \usepackage[ngerman]{varioref}
  45. \usepackage{array,longtable,tabularx,booktabs}
  46. \usepackage{enumitem}
  47. \usepackage{amsmath}
  48. \usepackage{caption}
  49. \makeatletter
  50. \def\midrule{%
  51. \noalign{\ifnum0=`}\fi
  52. \penalty\@M%
  53. \@aboverulesep=\aboverulesep
  54. \global\@belowrulesep=\belowrulesep
  55. \global\@thisruleclass=\@ne
  56. \@ifnextchar[{\@BTrule}{\@BTrule[\lightrulewidth]}}
  57. \def\arraystretch{1.5}
  58. \makeatother
  59. \usepackage[normalem]{ulem}
  60. \usepackage{showexpl}
  61. \makeatletter
  62. \let\LTXexample\@undefined
  63. \let\endLTXexample\@undefined
  64. \let\LTXexample@\@undefined
  65. \lstnewenvironment{LTXexample}[1][]
  66. {%
  67. \@temptokena{#1}%
  68. \begingroup
  69. \advance\c@ltxexample\@ne \advance\c@lstlisting\@ne
  70. \expandafter\lstset\expandafter{\SX@explpreset,#1}%
  71. \edef\x{\endgroup
  72. \def\noexpand\SX@codefile{\SX@codefile}%
  73. \def\noexpand\SX@graphicname{\SX@graphicname}%
  74. \def\noexpand\SX@graphicparam{\SX@graphicparam}}%
  75. \x
  76. \xdef\SX@@explpreset{\the\@temptokena,codefile=\SX@codefile,
  77. graphic={[\SX@graphicparam]{\SX@graphicname}}}%
  78. \setbox\@tempboxa=\hbox\bgroup% Warum noetig?
  79. \def\lst@literate{}%
  80. \lstset{extendedchars=true,inputencoding=latin1}%
  81. \lst@BeginWriteFile{\SX@codefile}%
  82. }
  83. {%
  84. \lst@EndWriteFile\egroup
  85. \inputencoding{utf8}%
  86. \lstset{extendedchars=true,inputencoding=utf8}%
  87. \SX@put@code@result
  88. }
  89. \makeatother
  90. \usepackage[hyperref,dvipsnames]{xcolor}
  91. \definecolor{darkblue}{rgb}{0,0,.5}
  92. % für todo-notes, kann später raus
  93. \colorlet{done}{green!40}
  94. \lstset{%
  95. %Sprachdefinition
  96. language=[LaTeX]TeX,
  97. %Definition fuer das Paket showexpl,
  98. pos=i,
  99. hsep=1cm,
  100. width=6cm,
  101. rframe={},
  102. explpreset={},
  103. numbers=none,
  104. %Definition für listings
  105. basicstyle=\ttfamily\small,%
  106. texcsstyle=*\bfseries,
  107. columns=fullflexible,%
  108. fontadjust=true,%
  109. basewidth=0.65em,%
  110. extendedchars=true,
  111. inputencoding={utf8},
  112. upquote=true,
  113. %Mit Farbe:
  114. keywordstyle=\color{blue!70!black}\bfseries,
  115. texcsstyle=*\color{blue!70!black}\bfseries,
  116. moretexcs={part,maketitle,SelectInputMappings,tableofcontents,subsection,subsubsection,chapter,mathcal,midrule,toprule,bottomrule,text,includegraphics},
  117. % keywordsprefix={\ },
  118. literate=
  119. {\{}{\textcolor{red!70!black}{\{}}1
  120. {\}}{\textcolor{red!70!black}{\}}}1
  121. {]}{\textcolor{red!70!black}{]}}1
  122. {[}{\textcolor{red!70!black}{[}}1
  123. {Ö}{{\"O}}1
  124. {Ä}{{\"A}}1
  125. {Ü}{{\"U}}1
  126. {ß}{{\ss}}1
  127. {ü}{{\"u}}1
  128. {ä}{{\"a}}1
  129. {ö}{{\"o}}1,
  130. }
  131. \lstnewenvironment{example}[1][]
  132. {\lstset{xleftmargin=2cm,xrightmargin=2cm,frame=lines,belowcaptionskip=\bigskipamount,#1}}
  133. {}
  134. % \usepackage[textsize=footnotesize]{todonotes}
  135. % Zum Schluss laden:
  136. \usepackage[unicode, pdfpagelabels,pageanchor=false, linktoc=all]{hyperref}
  137. \usepackage{hyperxmp}
  138. \hypersetup{%
  139. pdftitle={LaTeX2e-Kurzbeschreibung},
  140. pdfauthor={Marco Daniel, Patrick Gundlach, Walter Schmidt et al.},
  141. % pdfcopyright={Copyright (C) 2017, <AUTOR(EN)>. This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License},
  142. pdfsubject={LaTeX Kurzanleitung},
  143. pdfkeywords={LaTeX, TeX, DANTE e.V.},%ggf. anpassen
  144. %pdflicenseurl={http://creativecommons.org/licenses/by-sa/4.0/},
  145. pdfcaptionwriter={},
  146. pdfcontactaddress={},
  147. pdfcontactcity={},
  148. pdfcontactpostcode={},
  149. pdfcontactcountry={Germany},
  150. pdfcontactphone={},
  151. pdfcontactemail={},
  152. pdfcontacturl={},
  153. pdflang={de},
  154. pdfmetalang={de},
  155. breaklinks=true,
  156. bookmarks=true, % show bookmarks bar
  157. pdftoolbar=true, % show Acrobat’s toolbar
  158. pdfmenubar=true, % show Acrobat’s menu
  159. pdffitwindow=false, % window fit to page when opened
  160. pdfstartview={FitH}, % fits the width of the page to the window
  161. pdfcreator={Creator}, % creator of the document
  162. pdfproducer={Producer}, % producer of the document
  163. pdfnewwindow=true, % links in new window
  164. colorlinks=true, % false: boxed links; true: colored links
  165. linkcolor=darkblue, % color of internal links
  166. filecolor=darkblue, % color of file links
  167. citecolor=darkblue, % color of file links
  168. urlcolor=darkblue % color of external links
  169. }
  170. %
  171. % Seitenzahlen oben, aber keine Kopfzeile
  172. %
  173. \pagestyle{myheadings}
  174. \markboth{}{}
  175. % Make float placement easier
  176. \renewcommand{\textfraction}{.1}
  177. \renewcommand{\floatpagefraction}{.7}
  178. \makeatletter
  179. % LaTeXe-Symbol fuer cmss/sbc mit groesserem Absstand L-a und
  180. % halbfettem Epsilon
  181. \DeclareRobustCommand{\sbLaTeXe}{{\fontseries{sbc}\selectfont\boldmath%
  182. L\kern-.25em% -.36
  183. {\sbox\z@ T%
  184. \vbox to\ht\z@{\hbox{\check@mathfonts
  185. \fontsize\sf@size\z@
  186. \math@fontsfalse\selectfont
  187. A}%
  188. \vss}%
  189. }%
  190. \kern-.15em%
  191. \TeX\kern.15em2$_{\textstyle\varepsilon}$}}
  192. \makeatother
  193. \newcommand{\cs}[1]{\texttt{\textbackslash #1}}
  194. \newcommand\exa{\nopagebreak \begin{flushleft}\smallskip \nopagebreak
  195. \begin{minipage}[t]{6cm}\sloppy}
  196. \newcommand\exb{\end{minipage}\kern 1cm\begin{minipage}[t]{8cm}\sloppy }
  197. \newcommand\exc{\end{minipage}\kern -3cm \smallskip\end{flushleft}}
  198. \newenvironment{beispiel}{\begin{verse}}{\end{verse}}
  199. \newenvironment{lminipage}[1]{%
  200. \begin{center}\begin{minipage}{#1}\noindent\hrule\medskip}%
  201. {\par\noindent\hrule \end{minipage}\end{center}}
  202. \newenvironment{ttdescription}{%
  203. \renewcommand{\descriptionlabel}[1]{%
  204. \hspace{\labelsep}\texttt{##1}}%
  205. \begin{description}%
  206. }{%
  207. \end{description}%
  208. }
  209. \newcommand{\manual}{\emph{\LaTeX-Handbuch}~\cite{manual}}
  210. \newcommand{\local}{\emph{Local Guide}~\cite{local}}
  211. \newenvironment{symbols}{%
  212. \begin{tabbing}
  213. \hspace{1cm}\=\hspace{3.5cm}\= \hspace{1cm}\=\hspace{3.5cm}\=
  214. \hspace{1cm}\=\hspace{3.5cm}\= \kill
  215. }{%
  216. \end{tabbing}}
  217. \newcommand{\nfrac}[2]{\leavevmode\kern.1em%
  218. \raise.5ex\hbox{\scriptsize #1}%
  219. \kern-.1em/\kern-.15em%
  220. \lower.25ex\hbox{\scriptsize #2}}
  221. \begin{document}
  222. \nonfrenchspacing % babel sets frenchspacing automatically.
  223. % However, some examples are pointless with frenchspacing in action.
  224. % Besides, the larger space after a sentence make the text more readable.
  225. %: Einleitung
  226. \input{einleitung}
  227. \clearpage
  228. \tableofcontents
  229. \clearpage
  230. %: Allgemeines
  231. \input{allgemeines}
  232. \clearpage
  233. \input{eingabefile}
  234. \clearpage
  235. %: Textsatz
  236. \input{textsatz}
  237. \clearpage
  238. %: Mathematik
  239. \input{mathematik}
  240. \clearpage
  241. %: Bilder
  242. \input{bilder}
  243. \clearpage
  244. %: Seitenaufbau
  245. \input{seitenaufbau}
  246. \clearpage
  247. %: Schriften
  248. \input{schriften}
  249. \clearpage
  250. %: Spezialitäten
  251. \input{spezialitaeten}
  252. \clearpage
  253. %: Anhang
  254. \input{anhang}
  255. \clearpage
  256. %: Literaturverzeichnis
  257. \phantomsection
  258. \addcontentsline{toc}{section}{\refname}
  259. \bibliographystyle{unsrtdin}
  260. {\RaggedRight
  261. \bibliography{l2kurz}}
  262. \end{document}