Bug with \setuphead
Hi, \setuphead[section] [ alternative=middle, header=high, page=yes, ] \starttext \section{Test} \stoptext with ConTeXt ver: 2012.01.02 21:59 MKIV gives: ! Undefined control sequence. system > tex > error on line 9 in file test.tex: Undefined control sequence ... 1 \setuphead[section] 2 [ 3 alternative=middle, 4 header=high, 5 page=yes, 6 ] 7 \starttext 8 9 >> \section{Test} 10 \stoptext 11 \page_layouts_synchronize_element_indeed ...ounds \else \ifx \previoustextst... \page_layouts_synchronize_element ...t_indeed {#1} \fi <inserted text> ..._element \currentlayoutelement \fi \docommand ...=high]\the \everysetuplayoutelement \next1 #1,->\docommand {#1} \syst_helpers_do_process_comma_item \syst_helpers_do_process_comma_list ...rgument #1, ]\relax \global \advance \... ... l.9 \section{Test} Aditya
Am 03.01.2012 um 13:18 schrieb Aditya Mahajan:
Hi,
\setuphead[section] [ alternative=middle, header=high, page=yes, ] \starttext \section{Test} \stoptext
Old internal command (\recalculatebackgrounds) was used in page-txt.mkvi. % \def\page_layouts_synchronize_element_indeed#vertical% % {\ifx\currenttextstate \v!high \calculatevsizes\recalculatebackgrounds \else % \ifx\previoustextstate\v!high \calculatevsizes\recalculatebackgrounds \else % \ifx\currenttextstate \v!none \calculatevsizes\recalculatebackgrounds \else % \ifx\previoustextstate\v!none \calculatevsizes\recalculatebackgrounds \fi\fi\fi\fi % \letgvalue{\??layouttextssynchronize#vertical}\currenttextstate} \def\page_layouts_synchronize_element_indeed#vertical% {\ifx\currenttextstate \v!high \calculatevsizes\page_backgrounds_recalculate \else \ifx\previoustextstate\v!high \calculatevsizes\page_backgrounds_recalculate \else \ifx\currenttextstate \v!none \calculatevsizes\page_backgrounds_recalculate \else \ifx\previoustextstate\v!none \calculatevsizes\page_backgrounds_recalculate \fi\fi\fi\fi \letgvalue{\??layouttextssynchronize#vertical}\currenttextstate} Wolfgang
On Tue, 3 Jan 2012, Wolfgang Schuster wrote:
Am 03.01.2012 um 13:18 schrieb Aditya Mahajan:
Hi,
\setuphead[section] [ alternative=middle, header=high, page=yes, ] \starttext \section{Test} \stoptext
Old internal command (\recalculatebackgrounds) was used in page-txt.mkvi.
% \def\page_layouts_synchronize_element_indeed#vertical% % {\ifx\currenttextstate \v!high \calculatevsizes\recalculatebackgrounds \else % \ifx\previoustextstate\v!high \calculatevsizes\recalculatebackgrounds \else % \ifx\currenttextstate \v!none \calculatevsizes\recalculatebackgrounds \else % \ifx\previoustextstate\v!none \calculatevsizes\recalculatebackgrounds \fi\fi\fi\fi % \letgvalue{\??layouttextssynchronize#vertical}\currenttextstate}
\def\page_layouts_synchronize_element_indeed#vertical% {\ifx\currenttextstate \v!high \calculatevsizes\page_backgrounds_recalculate \else \ifx\previoustextstate\v!high \calculatevsizes\page_backgrounds_recalculate \else \ifx\currenttextstate \v!none \calculatevsizes\page_backgrounds_recalculate \else \ifx\previoustextstate\v!none \calculatevsizes\page_backgrounds_recalculate \fi\fi\fi\fi \letgvalue{\??layouttextssynchronize#vertical}\currenttextstate}
Thanks. Works perfectly. Aditya
participants (2)
-
Aditya Mahajan
-
Wolfgang Schuster