A LaTeX Course.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

latexkurs-uebung.cls 1.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  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=none,
  29. numberstyle=\tiny,
  30. stepnumber=1,
  31. }
  32. \RequirePackage{etoolbox}
  33. \BeforeBeginEnvironment{lstlisting}{\medskip}
  34. \AfterEndEnvironment{lstlisting}{\medskip}
  35. \RequirePackage{tikz}
  36. \RequirePackage{graphicx}
  37. \RequirePackage{url}
  38. \RequirePackage{amsmath}
  39. \pagestyle{empty}
  40. %%%
  41. \input course-details
  42. %%%
  43. \renewcommand{\maketitle}{
  44. \begin{tikzpicture}[overlay]
  45. \node at (12.2,0.3) [black!50,text width=5.5cm,align=right] {\courseURL};
  46. \node at (4,0.4) {\scalebox{2}{\textcolor{black!20}{\Huge Einführung}}};
  47. \node at (12, -2.5) {\scalebox{2}{\textcolor{black!20}{\Huge in
  48. \LaTeX}}};
  49. \end{tikzpicture}
  50. \begin{center}
  51. \makeatletter
  52. \textcolor{black}{\LARGE \textbf{\textsc{\@title}}}
  53. \textcolor{black!70}{\@date}
  54. \makeatother
  55. \end{center}
  56. \textcolor{black!50}{\null }
  57. \medskip
  58. \vspace*{2\baselineskip}
  59. }
  60. \AtBeginDocument{\maketitle}
  61. %%%
  62. \newcounter{tasks}[enumi]
  63. \setcounter{tasks}{0}
  64. \newcommand{\NewTask}{
  65. \refstepcounter{tasks}
  66. \section*{\thetasks.~Aufgabe}
  67. }