\documentclass[10pt, a4paper,oneside]{article} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % alle benötigten Pakete werden hier eingebunden %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{german} \usepackage[utf8]{inputenc} %Damit man ohne Probleme Umlaute eingeben kann \usepackage{fancyhdr} \usepackage{eso-pic} %% AddtoShipPicture nutzen \usepackage{booktabs} \usepackage{xcolor} \usepackage{longtable} \usepackage{graphicx} \usepackage{longtable} %lange Tabellen über mehrere Seiten erstellen \usepackage{lastpage} \usepackage{url} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Selbst definierte Style-Dateien %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \newenvironment{blatt}[2] { \ClearShipoutPicture \AddToShipoutPicture{ \renewcommand{\headrulewidth}{0.0pt} \renewcommand{\footrulewidth}{0.0pt} \thicklines \put(60,52){\framebox(480,735){}} \put(49,76){\rotatebox{90}{\makebox(100,7)[l]{\scriptsize\url{\VAR{full_path}}}}} \put(545,104){\rotatebox{90}{\makebox(100,22)[l]{\bfseries #1\,(\thepage/\,\pageref{LastPage})}}} \put(545,76){\includegraphics[height=20pt]{icons/#2}} \put(75,40){\makebox(100,7)[l]{\scriptsize \today }} } } { \newpage } %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Einzug verändert und größerer Zeilenabstand %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \parindent0.0em % 1. Zeile nicht einrücken %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Schriftart %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \renewcommand\familydefault{\sfdefault} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Abstände %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \pagestyle{empty} % Größe des Textbereiches in der Seite \setlength{\textwidth}{16.4cm} \setlength{\textheight}{24.5cm} % Kopf- und Fußzeile, Höhe und Abstand vom Text \setlength{\headheight}{0pt} \setlength{\headsep}{0pt} \setlength{\topmargin}{-1cm} % Linker Seiteneinzug \setlength{\oddsidemargin}{2.35cm} \addtolength{\oddsidemargin}{-1in} \setlength{\evensidemargin}{2.35cm} \addtolength{\evensidemargin}{-1in} \addtolength{\topmargin}{1.1cm} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% % Überschriftformatierung %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% \usepackage{titlesec} \titleformat{name=\section}[block] {\large} {} {0pt} {\colorsection} \titlespacing*{\section}{0pt}{\baselineskip}{\baselineskip} \newcommand{\colorsection}[1]{% \colorbox{black!25}{\parbox{\dimexpr\textwidth-2\fboxsep}{\bf #1}}} \titleformat{name=\subsection}[block] {\large} {} {0pt} {\colorsubsection} \titlespacing*{\subsection}{0pt}{\baselineskip}{\baselineskip} \newcommand{\colorsubsection}[1]{% \colorbox{black!10}{\parbox{\dimexpr\textwidth-2\fboxsep}{#1}}} \begin{document} %Schriftart setzen \begin{blatt}{Titel des Dokuments}{info} % Possible Icons: folie, info, merk, station \section{Überschrift} Text \end{blatt} \end{document}