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}
\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
@ -122,14 +124,14 @@
}
%FIXME: use pgfdeclared image for saving objects in pdf
\rehead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=0.9mm]{\pgfuseimage{Chaosknoten}};}}
\rohead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=0.9mm]{\pgfuseimage{Chaosknoten}};}}
\chead{\directlua{tex.print(ruhetmp or "Bitte runninghead setzen")}}
\setheadsepline{0.5pt}
\rehead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=1.1mm]{\chaosknoten{0.017}};}}
\rohead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=1.1mm]{\chaosknoten{0.017}};}}
\chead{\textcolor{\DSPage@fg}{\directlua{tex.print(ruhetmp or "Bitte runninghead setzen")}}}
\setheadsepline{0.5pt}[\color{\DSPage@fg}]
\ifoot[]{Datenschleuder. \@volume / \@year}
\ofoot[]{\texttt{0x\ifthenelse{\value{page}>15}{}{0}\hexadecimal{page}}}
\setfootsepline{0.5pt}
\ifoot[]{\textcolor{\DSPage@fg}{Datenschleuder. \@volume / \@year}}
\ofoot[]{\textcolor{\DSPage@fg}{\texttt{0x\ifthenelse{\value{page}>15}{}{0}\hexadecimal{page}}}}
\setfootsepline{0.5pt}[\color{\DSPage@fg}]
%FIXME: use abstract environment in prior of nasty DSabstract command
\renewenvironment{abstract}{%
@ -279,8 +281,8 @@
\RequirePackage{environ}
\RequirePackage{eurosym}
\newcommand{\DSTitlePage@fg}{black}
\define@key{DSTitlePage}{fg}[]{\renewcommand{\DSTitlePage@fg}{#1}}
\newcommand{\DSPage@fg}{black}
\define@key{DSTitlePage}{fg}[]{\renewcommand{\DSPage@fg}{#1}}
\newcommand{\DSTitlePage@bg}{white}
\define@key{DSTitlePage}{bg}[]{\renewcommand{\DSTitlePage@bg}{#1}}
\newcommand{\DSTitlePage@price}{2,50\,\officialeuro}
@ -297,8 +299,8 @@
\begin{tikzpicture}[
remember picture,
overlay,
every node/.append style={color=\DSTitlePage@fg},
color=\DSTitlePage@fg,
every node/.append style={color=\DSPage@fg},
color=\DSPage@fg,
]
\path[fill=\DSTitlePage@bg] (current page.north west) rectangle (current page.south east);
\node[
@ -322,7 +324,7 @@
\node[
above left=0cm of logo.east|-current page.south,
](chaosknoten){%
\tikz[yscale=-0.035,xscale=0.035,every path/.style={fill=\DSTitlePage@fg}]{\input{schleuderpackung/img/chaosknoten.tex}}
\chaosknoten{0.035}
};
\node[
left=0cm of chaosknoten.north west,
@ -348,4 +350,22 @@
};
\end{tikzpicture}%
\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}
}