* Bug with \setuphead
@ 2012-01-03 12:18 Aditya Mahajan
2012-01-03 12:44 ` Wolfgang Schuster
0 siblings, 1 reply; 3+ messages in thread
From: Aditya Mahajan @ 2012-01-03 12:18 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug with \setuphead
2012-01-03 12:18 Bug with \setuphead Aditya Mahajan
@ 2012-01-03 12:44 ` Wolfgang Schuster
2012-01-03 12:57 ` Aditya Mahajan
0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2012-01-03 12:44 UTC (permalink / raw)
To: mailing list for ConTeXt users; +Cc: Hans Hagen
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Bug with \setuphead
2012-01-03 12:44 ` Wolfgang Schuster
@ 2012-01-03 12:57 ` Aditya Mahajan
0 siblings, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2012-01-03 12:57 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-01-03 12:57 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-03 12:18 Bug with \setuphead Aditya Mahajan
2012-01-03 12:44 ` Wolfgang Schuster
2012-01-03 12:57 ` Aditya Mahajan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).