lua magic for runningtitle workx

This commit is contained in:
john stone 2013-07-20 02:37:44 +02:00
parent ce2fd402c7
commit 948519f73c
2 changed files with 6 additions and 5 deletions

View File

@ -60,7 +60,7 @@
\rehead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=0.9mm]{\includegraphics[width=1cm]{Logo_CCC}};}}
\rohead[]{\tikz[overlay]{\node[xshift=0.3mm,yshift=0.9mm]{\includegraphics[width=1cm]{Logo_CCC}};}}
\chead{\directlua{tex.print(ruhetmp or "nrn")}}
\chead{\directlua{tex.print(ruhetmp or "Bitte runninghead setzen")}}
\setheadsepline{0.5pt}
\ifoot[]{Datenschleuder. \@volume / \@year}
@ -82,7 +82,6 @@
\twocolumn[
% \renewcommand{\@runninghead}{\@runningheadtmp}
\textsf{\Huge\@title}
\directlua{ruhetmp=nil}
\begin{center}%
\textsf{von \@author}%FIXME: implement mail and array of authors
@ -91,7 +90,7 @@
{\bfseries\@DSabstract}
\vspace*{3mm}
]
\directlua{ruhetmp=nxruhetmp nxruhetmp=nil}
\normalsize
}
@ -101,7 +100,8 @@
%\newcommand{\@runninghead}{}
%\newcommand{\@runningheadtmp}{}
%\newcommand{\runninghead}[1]{\renewcommand{\@runningheadtmp}{#1}}
\newcommand{\runninghead}[1]{\directlua{ruhetmp = "\luatexluaescapestring{#1}"}}
\newcommand{\runninghead}[1]{\directlua{nxruhetmp = "\luatexluaescapestring{#1}"}}
\newcommand{\manrunninghead}[1]{\directlua{ruhetmp = "\luatexluaescapestring{#1}"}}
\define@key{DSarticleKeys}{runninghead}[\@title]{\runninghead{#1}}
\newenvironment{DSarticle}[1][]{%

View File

@ -7,8 +7,9 @@
\usepackage{lipsum}
\begin{document}
\manrunninghead{Leserbriefe}
\runninghead{Leserbriefe}
\begin{letter}
\begin{question}
Liebe Redaktion, ich finde die neue Datenschleuder ganz toll! Macht weiter so!!!