A LaTeX Course.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

latexkurs-uebung.cls 1.9KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. \NeedsTeXFormat{LaTeX2e}[1995/12/01]
  2. \ProvidesClass{latexkurs-uebung}[2016/09/18]
  3. \LoadClass[parskip=half-]{scrartcl}
  4. %%%
  5. \RequirePackage[T1]{fontenc}
  6. \RequirePackage[utf8]{inputenc}
  7. \RequirePackage[ngerman]{babel}
  8. \RequirePackage[scale=0.95]{tgpagella}
  9. \RequirePackage[scale=0.92]{tgheros}
  10. \RequirePackage[scaled=0.83]{beramono}
  11. \RequirePackage{mathpazo}
  12. \RequirePackage{pdfpages}
  13. \RequirePackage{csquotes}
  14. \RequirePackage{listings,xcolor}
  15. \lstset{language=[LaTeX]TeX,
  16. basicstyle=\ttfamily,
  17. keywordstyle={\color{blue}\bfseries},
  18. frame=tb,
  19. extendedchars=true,
  20. literate=%
  21. {ä}{{\"a}}1
  22. {ö}{{\"o}}1
  23. {ü}{{\"u}}1
  24. {Ä}{{\"A}}1
  25. {Ö}{{\"O}}1
  26. {Ü}{{\"U}}1
  27. {ß}{{\ss}}1,
  28. numbers=left,
  29. numberstyle=\tiny,
  30. stepnumber=1,
  31. morekeywords={[0]lvert,rvert,mathbb,maketitle,printbibliography,addbibresource,autocite,footcite,middle,
  32. visible,uncover,usetheme,only,frametitle,institute},
  33. escapeinside={(*@}{@*)},
  34. }
  35. \RequirePackage{etoolbox}
  36. \BeforeBeginEnvironment{lstlisting}{\medskip}
  37. \AfterEndEnvironment{lstlisting}{\medskip}
  38. \RequirePackage{tikz}
  39. \RequirePackage{graphicx}
  40. \RequirePackage{url}
  41. \RequirePackage{amsmath}
  42. \pagestyle{empty}
  43. %%%
  44. \input course-details
  45. %%%
  46. \renewcommand{\maketitle}{
  47. \begin{tikzpicture}[overlay]
  48. \node at (12.2,0.3) [black!50,text width=5.5cm,align=right] {\courseURL};
  49. \node at (4,0.4) {\scalebox{2}{\textcolor{black!20}{\Huge Einführung}}};
  50. \node at (12, -2.5) {\scalebox{2}{\textcolor{black!20}{\Huge in
  51. \LaTeX}}};
  52. \end{tikzpicture}
  53. \begin{center}
  54. \makeatletter
  55. \textcolor{black}{\LARGE \textbf{\textsc{\@title}}}
  56. \textcolor{black!70}{\@date}
  57. \makeatother
  58. \end{center}
  59. \textcolor{black!50}{\null }
  60. \medskip
  61. \vspace*{2\baselineskip}
  62. }
  63. \AtBeginDocument{\maketitle}
  64. %%%
  65. \newcounter{tasks}[enumi]
  66. \setcounter{tasks}{0}
  67. \newcommand{\NewTask}{
  68. \refstepcounter{tasks}
  69. \section*{\thetasks.~Aufgabe}
  70. }