Skip to content
Snippets Groups Projects
Commit f35a1059 authored by Rolf Niepraschk's avatar Rolf Niepraschk
Browse files

weitere Anpassungen zum Hintergrundtext

parent eccfcaff
No related branches found
No related tags found
No related merge requests found
No preview for this file type
...@@ -22,7 +22,8 @@ ...@@ -22,7 +22,8 @@
\myfax{7777} \myfax{7777}
\myemail{Rolf.Niepraschk@ptb.de} \myemail{Rolf.Niepraschk@ptb.de}
\overprint*{ENTWURF} \colorlet{bgTextColor}{red!20}
\bgText*{ENTWURF}
% Ausblenden des Fußbereiches % Ausblenden des Fußbereiches
% \setkomavar{firstfoot}{} % \setkomavar{firstfoot}{}
...@@ -71,10 +72,11 @@ Klassenoptionen: ...@@ -71,10 +72,11 @@ Klassenoptionen:
"`A4"' festgelegt. Als Eingabe-Kodierung wird ausschließlich "`UTF-8"' "`A4"' festgelegt. Als Eingabe-Kodierung wird ausschließlich "`UTF-8"'
unterstützt. unterstützt.
Das Text, der dem Makro \verb|\overprint| übergeben wird, erscheint auf jeder Das Text, der dem Makro \verb|\bgText| übergeben wird, erscheint auf jeder
Seite auf dem Textbereich als hellgrauer Hintergrunddruck schräg in großer Seite auf dem Textbereich als hellgrauer Hintergrunddruck schräg in großer
Schrift. Wird die Sternvariante (\verb|\overprint*|) benutzt, erscheint der Schrift. Wird die Sternvariante (\verb|\bgText*|) benutzt, erscheint der
Hintergrunddruck nur auf der ersten Seite. Hintergrunddruck nur auf der ersten Seite. Die Farbe dieses Textes kann durch Definition der Farbe »bgTextColor« geschehen, z.\,B.\ so:
\verb|\definecolor{bgTextColor}{gray}{0.9}|
%\closing{\MHG} %\closing{\MHG}
\closing{\MFG} \closing{\MFG}
......
...@@ -283,30 +283,30 @@ ...@@ -283,30 +283,30 @@
\newkomavar[\myfaxname]{myfax} \newkomavar[\myfaxname]{myfax}
\newkomavar[\handledbyname]{handledby} \newkomavar[\handledbyname]{handledby}
\newcommand*\ptb@overprintI{} \newcommand*\ptb@bgTextI{}
\newcommand*\ptb@overprintII{} \newcommand*\ptb@bgTextII{}
\newcommand*\overprint{% \newcommand*\bgText{%
\@ifstar{\@tempswatrue\ptb@overprint}{\@tempswafalse\ptb@overprint}% \@ifstar{\@tempswatrue\ptb@bgText}{\@tempswafalse\ptb@bgText}%
} }
\newcommand*\ptb@overprint[1]{% \newcommand*\ptb@bgText[1]{%
\if@tempswa \if@tempswa
\xdef\ptb@overprintI{#1}% \xdef\ptb@bgTextI{#1}%
\else \else
\xdef\ptb@overprintII{#1}% \xdef\ptb@bgTextII{#1}%
\fi \fi
} }
\RequirePackage{eso-pic} \RequirePackage{eso-pic}
\definecolor{BGtextcolor}{gray}{0.9} \definecolor{bgTextColor}{gray}{0.9}
\AtBeginDocument{% \AtBeginDocument{%
\ifx\ptb@overprintI\@empty \ifx\ptb@bgTextI\@empty
\ifx\ptb@overprintII\@empty\else \ifx\ptb@bgTextII\@empty\else
\AddToShipoutPictureBG{% \AddToShipoutPictureBG{%
\AtTextCenter{% \AtTextCenter{%
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{% \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{54.7}{% \rotatebox{54.7}{%
\textnormal{\textsf{\textbf{% \textnormal{\textsf{\textbf{%
\color{BGtextcolor}\ptb@overprintII}}}}}}% \color{bgTextColor}\ptb@bgTextII}}}}}}%
}% }%
}% }%
\fi \fi
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
\makebox(0,0)[c]{\resizebox{\textwidth}{!}{% \makebox(0,0)[c]{\resizebox{\textwidth}{!}{%
\rotatebox{54.7}{% \rotatebox{54.7}{%
\textnormal{\textsf{\textbf{% \textnormal{\textsf{\textbf{%
\color{BGtextcolor}\ptb@overprintI}}}}}}% \color{bgTextColor}\ptb@bgTextI}}}}}}%
}% }%
}% }%
\fi \fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment