[NTG-context] right and left alignment in header w/ linebreak sign

Wolfgang Schuster schuster.wolfgang at googlemail.com
Sun Jul 17 18:37:45 CEST 2011


Am 17.07.2011 um 17:48 schrieb Peter Schorsch:

> % define header
> \define\CurrentChapter%
> 	{\doiftextelse {\getmarking[chapternumber]}%
> 		{\getmarking[chapternumber].~\getmarking[chapter]}%
> 		{\getmarking[chapter]}%
> 	}

\appendtoks\def\\{ }\to\simplifiedcommands

\define\CurrentChapter
  {\bgroup\simplifycommands
   \doiftextelse{\getmarking[chapternumber]}
     {\getmarking[chapternumber].~\getmarking[chapter]}
     {\getmarking[chapter]}%
   \egroup}

or use

\startchapter[title={…\\…},marking={…}]
…
\stopchapter

Wolfgang



More information about the ntg-context mailing list