diff --git a/datenschleuder.cls b/datenschleuder.cls index c9f52f3..c77d689 100644 --- a/datenschleuder.cls +++ b/datenschleuder.cls @@ -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{\@runninghead} +\chead{\directlua{tex.print(ruhetmp or "nrn")}} \setheadsepline{0.5pt} \ifoot[]{Datenschleuder. \@volume / \@year} @@ -80,8 +80,9 @@ \renewcommand{\maketitle}{% \twocolumn[ - \renewcommand{\@runninghead}{\@runningheadtmp} + % \renewcommand{\@runninghead}{\@runningheadtmp} \textsf{\Huge\@title} + \directlua{ruhetmp=nil} \begin{center}% \textsf{von \@author}%FIXME: implement mail and array of authors @@ -97,9 +98,10 @@ \define@key{DSarticleKeys}{title}{\title{#1}}% \define@key{DSarticleKeys}{author}{\author{#1}} \define@key{DSarticleKeys}{DSabstract}{\renewcommand{\@DSabstract}{#1}} -\newcommand{\@runninghead}{} -\newcommand{\@runningheadtmp}{} -\newcommand{\runninghead}[1]{\renewcommand{\@runningheadtmp}{#1}} +%\newcommand{\@runninghead}{} +%\newcommand{\@runningheadtmp}{} +%\newcommand{\runninghead}[1]{\renewcommand{\@runningheadtmp}{#1}} +\newcommand{\runninghead}[1]{\directlua{ruhetmp = "\luatexluaescapestring{#1}"}} \define@key{DSarticleKeys}{runninghead}[\@title]{\runninghead{#1}} \newenvironment{DSarticle}[1][]{% diff --git a/example/Makefile b/example/Makefile index 03b6441..b593cd7 100644 --- a/example/Makefile +++ b/example/Makefile @@ -22,7 +22,7 @@ ############################################################################ # the documents to be compiled by default -DOC=$(foreach i,$(shell grep -l documentclass *.tex), $(basename $i)) +#DOC=$(foreach i,$(shell grep -l documentclass *.tex), $(basename $i)) DOC=schleuderbeispiel # if svgs should be compiled as pdf or png SVG_TARGET_EXT=pdf