interaction between header texts and typing environments
I'm trying to have header texts on every page. There are also some long typing environments in the document. It seems that when the page breaks within the typing environment processing the header texts leads to an error. If I put a \ifprocessingverbatim\else .... \fi around the table in the header text, I do not get the error. So I should turn off the typing environment temporarily to get the header text out. How should I do that? \stoptyping ... \starttyping do not do it. Thanks, Marko \startproduct test \setupheadertexts[{\starttable[|w(.8\textwidth) l|w(.15\textwidth)l|] \HL \VL \VL page \pagenumber\ of \totalnumberofpages \VL\FR \VL \VL \VL \LR \HL \stoptable}] \starttyping test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test test \stoptyping \stopproduct
Marko � wrote:
I'm trying to have header texts on every page. There are also some long typing environments in the document. It seems that when the page breaks within the typing environment processing the header texts leads to an error.
weird indeed has to do with catcodes and verbatim; for the moment use \setnormalcatcodes \startsetups heading \starttable[|w(.8\textwidth)l|w(.15\textwidth)l|] \HL \VL \VL page \pagenumber\ of \totalnumberofpages \VL\FR \VL \VL \VL \LR \HL \stoptable \stopsetups \starttext \setupheadertexts[\setnormalcatcodes\setups{heading}] ..... \stoptext Hans
Marko � wrote:
I'm trying to have header texts on every page. There are also some long typing environments in the document. It seems that when the page breaks within the typing environment processing the header texts leads to an error.
If I put a \ifprocessingverbatim\else .... \fi around the table in the header text, I do not get the error. So I should turn off the typing environment temporarily to get the header text out. How should I do that? \stoptyping ... \starttyping do not do it.
my guess is that the following should work ok (this current code is quite old and dates from previous century) \unprotect \bgroup \catcode`\|=\@@active \catcode`\"=\@@active \gdef\pushouterbarandquote {\ifForgetTableBarAndQuote \ifnum\catcode`\|=\@@active \let\outertablebar|% \else \let\outertablebar\relax \fi \ifnum\catcode`\"=\@@active \let\outertablequote"% \else \let\outertablequote\relax \fi \fi} \gdef\popouterbarandquote {\ifForgetTableBarAndQuote \ifx\outertablebar \relax\else\let|\outertablebar \fi \ifx\outertablequote\relax\else\let"\outertablequote\fi \else \redefinetablebarandquote \fi} \egroup \protect
participants (2)
-
Hans Hagen Test
-
Marko Schütz