new command for full page image

This commit is contained in:
Benjamin Kellermann 2013-08-02 23:57:44 +02:00
parent 5ae8dcf1ec
commit 4c066fea16
1 changed files with 33 additions and 13 deletions

View File

@ -110,7 +110,9 @@
\RequirePackage{float} \RequirePackage{float}
\pgfdeclareimage[height=5mm]{Pesthoernchen}{pesthoernchen} \pgfdeclareimage[height=5mm]{Pesthoernchen}{pesthoernchen}
\pgfdeclareimage[width=10mm]{Chaosknoten}{chaosknoten} \newcommand{\chaosknoten}[1]{%
\tikz[yscale=-#1,xscale=#1,every path/.style={fill=\DSPage@fg}]{\input{schleuderpackung/img/chaosknoten.tex}}%
}
\newfloat{impressum}{tpbh}{loi} %impressum als Float, damit kann Text fließen \newfloat{impressum}{tpbh}{loi} %impressum als Float, damit kann Text fließen
@ -122,14 +124,14 @@
} }
%FIXME: use pgfdeclared image for saving objects in pdf %FIXME: use pgfdeclared image for saving objects in pdf
\rehead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=0.9mm]{\pgfuseimage{Chaosknoten}};}} \rehead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=1.1mm]{\chaosknoten{0.017}};}}
\rohead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=0.9mm]{\pgfuseimage{Chaosknoten}};}} \rohead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=1.1mm]{\chaosknoten{0.017}};}}
\chead{\directlua{tex.print(ruhetmp or "Bitte runninghead setzen")}} \chead{\textcolor{\DSPage@fg}{\directlua{tex.print(ruhetmp or "Bitte runninghead setzen")}}}
\setheadsepline{0.5pt} \setheadsepline{0.5pt}[\color{\DSPage@fg}]
\ifoot[]{Datenschleuder. \@volume / \@year} \ifoot[]{\textcolor{\DSPage@fg}{Datenschleuder. \@volume / \@year}}
\ofoot[]{\texttt{0x\ifthenelse{\value{page}>15}{}{0}\hexadecimal{page}}} \ofoot[]{\textcolor{\DSPage@fg}{\texttt{0x\ifthenelse{\value{page}>15}{}{0}\hexadecimal{page}}}}
\setfootsepline{0.5pt} \setfootsepline{0.5pt}[\color{\DSPage@fg}]
%FIXME: use abstract environment in prior of nasty DSabstract command %FIXME: use abstract environment in prior of nasty DSabstract command
\renewenvironment{abstract}{% \renewenvironment{abstract}{%
@ -279,8 +281,8 @@
\RequirePackage{environ} \RequirePackage{environ}
\RequirePackage{eurosym} \RequirePackage{eurosym}
\newcommand{\DSTitlePage@fg}{black} \newcommand{\DSPage@fg}{black}
\define@key{DSTitlePage}{fg}[]{\renewcommand{\DSTitlePage@fg}{#1}} \define@key{DSTitlePage}{fg}[]{\renewcommand{\DSPage@fg}{#1}}
\newcommand{\DSTitlePage@bg}{white} \newcommand{\DSTitlePage@bg}{white}
\define@key{DSTitlePage}{bg}[]{\renewcommand{\DSTitlePage@bg}{#1}} \define@key{DSTitlePage}{bg}[]{\renewcommand{\DSTitlePage@bg}{#1}}
\newcommand{\DSTitlePage@price}{2,50\,\officialeuro} \newcommand{\DSTitlePage@price}{2,50\,\officialeuro}
@ -297,8 +299,8 @@
\begin{tikzpicture}[ \begin{tikzpicture}[
remember picture, remember picture,
overlay, overlay,
every node/.append style={color=\DSTitlePage@fg}, every node/.append style={color=\DSPage@fg},
color=\DSTitlePage@fg, color=\DSPage@fg,
] ]
\path[fill=\DSTitlePage@bg] (current page.north west) rectangle (current page.south east); \path[fill=\DSTitlePage@bg] (current page.north west) rectangle (current page.south east);
\node[ \node[
@ -322,7 +324,7 @@
\node[ \node[
above left=0cm of logo.east|-current page.south, above left=0cm of logo.east|-current page.south,
](chaosknoten){% ](chaosknoten){%
\tikz[yscale=-0.035,xscale=0.035,every path/.style={fill=\DSTitlePage@fg}]{\input{schleuderpackung/img/chaosknoten.tex}} \chaosknoten{0.035}
}; };
\node[ \node[
left=0cm of chaosknoten.north west, left=0cm of chaosknoten.north west,
@ -348,4 +350,22 @@
}; };
\end{tikzpicture}% \end{tikzpicture}%
\normalfont \normalfont
\clearpage
}
\define@key{DSFullImgPage}{fg}[]{\renewcommand{\DSPage@fg}{#1}}
\newcommand{\DSFullImgPage@running}{}
\define@key{DSFullImgPage}{runninghead}[]{\renewcommand{\DSFullImgPage@running}{#1}}
\define@key{DSFullImgPage}{picturepuzzle}[]{%
\renewcommand{\DSFullImgPage@running}{Das große Datenschleuder-Leser-Bilder-Rätsel}%
}
\newcommand{\DSFullImgPage}[2][runninghead=]{%
\setkeys{DSFullImgPage}{#1}
\clearpage
\manrunninghead{\DSFullImgPage@running}
\ifthenelse{\equal{\DSFullImgPage@running}{}}{\pagestyle{plain}}{}
\ThisCenterWallPaper{1}{#2}~
\clearpage
\renewcommand{\DSPage@fg}{black}
\pagestyle{scrheadings}
} }