A bin folder, holding helpfull scripts and commands
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. \documentclass[12pt, 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. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  16. % Selbst definierte Style-Dateien
  17. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  18. \newenvironment{blatt}[2]
  19. {
  20. \ClearShipoutPicture
  21. \AddToShipoutPicture{
  22. \renewcommand{\headrulewidth}{0.0pt}
  23. \renewcommand{\footrulewidth}{0.0pt}
  24. \thicklines
  25. \put(50,42){\framebox(500,755){}}
  26. \put(39,66){\rotatebox{90}{\makebox(100,7)[l]{\scriptsize{\tt \VAR{full_folder}}}}}
  27. \put(555,94){\rotatebox{90}{\makebox(100,22)[l]{\bfseries #1\,(\thepage/\,\pageref{LastPage})}}}
  28. \put(555,66){\includegraphics[height=20pt]{icons/#2}}
  29. \put(65,30){\makebox(100,7)[l]{\scriptsize \today }}
  30. }
  31. }
  32. {
  33. \newpage
  34. }
  35. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  36. % Einzug verändert und größerer Zeilenabstand
  37. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  38. \parindent0.0em % 1. Zeile nicht einrücken
  39. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  40. % Schriftart
  41. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  42. \renewcommand\familydefault{\sfdefault}
  43. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  44. % Abstände
  45. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  46. \pagestyle{empty}
  47. % Größe des Textbereiches in der Seite
  48. \setlength{\textwidth}{16.4cm}
  49. \setlength{\textheight}{24.5cm}
  50. % Kopf- und Fußzeile, Höhe und Abstand vom Text
  51. \setlength{\headheight}{0pt}
  52. \setlength{\headsep}{0pt}
  53. \setlength{\topmargin}{-1cm}
  54. % Linker Seiteneinzug
  55. \setlength{\oddsidemargin}{2.35cm} \addtolength{\oddsidemargin}{-1in}
  56. \setlength{\evensidemargin}{2.35cm} \addtolength{\evensidemargin}{-1in}
  57. \addtolength{\topmargin}{1.1cm}
  58. \setlength{\parskip}{0,75em}
  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}