A bin folder, holding helpfull scripts and commands
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

merkblatt.tex 3.0KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. \documentclass[10pt, a4paper,oneside]{article}
  2. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  3. % alle benötigten Pakete werden hier eingebunden
  4. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  5. \usepackage{german}
  6. \usepackage[utf8]{inputenc} %Damit man ohne Probleme Umlaute eingeben kann
  7. \usepackage{fancyhdr}
  8. \usepackage{eso-pic} %% AddtoShipPicture nutzen
  9. \usepackage{booktabs}
  10. \usepackage{xcolor}
  11. \usepackage{longtable}
  12. \usepackage{graphicx}
  13. \usepackage{longtable} %lange Tabellen über mehrere Seiten erstellen
  14. \usepackage{lastpage}
  15. \usepackage{url}
  16. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  17. % Selbst definierte Style-Dateien
  18. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  19. \newenvironment{blatt}[2]
  20. {
  21. \ClearShipoutPicture
  22. \AddToShipoutPicture{
  23. \renewcommand{\headrulewidth}{0.0pt}
  24. \renewcommand{\footrulewidth}{0.0pt}
  25. \thicklines
  26. \put(60,52){\framebox(480,735){}}
  27. \put(49,76){\rotatebox{90}{\makebox(100,7)[l]{\scriptsize\url{\VAR{full_path}}}}}
  28. \put(545,104){\rotatebox{90}{\makebox(100,22)[l]{\bfseries #1\,(\thepage/\,\pageref{LastPage})}}}
  29. \put(545,76){\includegraphics[height=20pt]{icons/#2}}
  30. \put(75,40){\makebox(100,7)[l]{\scriptsize \today }}
  31. }
  32. }
  33. {
  34. \newpage
  35. }
  36. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  37. % Einzug verändert und größerer Zeilenabstand
  38. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  39. \parindent0.0em % 1. Zeile nicht einrücken
  40. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  41. % Schriftart
  42. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  43. \renewcommand\familydefault{\sfdefault}
  44. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  45. % Abstände
  46. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  47. \pagestyle{empty}
  48. % Größe des Textbereiches in der Seite
  49. \setlength{\textwidth}{16.4cm}
  50. \setlength{\textheight}{24.5cm}
  51. % Kopf- und Fußzeile, Höhe und Abstand vom Text
  52. \setlength{\headheight}{0pt}
  53. \setlength{\headsep}{0pt}
  54. \setlength{\topmargin}{-1cm}
  55. % Linker Seiteneinzug
  56. \setlength{\oddsidemargin}{2.35cm} \addtolength{\oddsidemargin}{-1in}
  57. \setlength{\evensidemargin}{2.35cm} \addtolength{\evensidemargin}{-1in}
  58. \addtolength{\topmargin}{1.1cm}
  59. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  60. % Überschriftformatierung
  61. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  62. \usepackage{titlesec}
  63. \titleformat{name=\section}[block]
  64. {\large}
  65. {}
  66. {0pt}
  67. {\colorsection}
  68. \titlespacing*{\section}{0pt}{\baselineskip}{\baselineskip}
  69. \newcommand{\colorsection}[1]{%
  70. \colorbox{black!25}{\parbox{\dimexpr\textwidth-2\fboxsep}{\bf #1}}}
  71. \titleformat{name=\subsection}[block]
  72. {\large}
  73. {}
  74. {0pt}
  75. {\colorsubsection}
  76. \titlespacing*{\subsection}{0pt}{\baselineskip}{\baselineskip}
  77. \newcommand{\colorsubsection}[1]{%
  78. \colorbox{black!10}{\parbox{\dimexpr\textwidth-2\fboxsep}{#1}}}
  79. \begin{document}
  80. %Schriftart setzen
  81. \begin{blatt}{Titel des Dokuments}{info} % Possible Icons: folie, info, merk, station
  82. \section{Überschrift}
  83. Text
  84. \end{blatt}
  85. \end{document}