![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Hi Hans, When \setupnote is called in preamble footnotes are placed wrong. %\setuppapersize[A4] \setupnote[footnote][] \starttext Text\footnote{Note}. \stoptext This happens because \dimen\currentnoteins is set to 1pt (the current value of \textheight before \starttext). The problem is the following setting in page-app.mkiv \setuplayout [fittingpage] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle] which changes the \textheight dimension (from the value set in page-lay.mkiv). Merging \definelayout and \setuplayout from \definelayout [fittingpage] [\v!page] \setuplayout [fittingpage] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle] to \definelayout [fittingpage] [\v!page] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle] solves the problem. Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 14-1-2012 19:55, Wolfgang Schuster wrote:
The problem is the following setting in page-app.mkiv
\setuplayout [fittingpage] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle]
which changes the \textheight dimension (from the value set in page-lay.mkiv).
Merging \definelayout and \setuplayout from
\definelayout [fittingpage] [\v!page]
\setuplayout [fittingpage] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle]
to
\definelayout [fittingpage] [\v!page] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle]
solves the problem.
aha, I had noticed some weird side effects in other cases ... so I wonder when this was introduced, but it's a more serious issue then So, in the next beta check \installswitchsetuphandler In the switch variant we now have a dedicated token register for synchronization. Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
![](https://secure.gravatar.com/avatar/93131e1e6e2204bd13501390d768dbdc.jpg?s=120&d=mm&r=g)
Am 15.01.2012 um 18:14 schrieb Hans Hagen:
On 14-1-2012 19:55, Wolfgang Schuster wrote:
The problem is the following setting in page-app.mkiv
\setuplayout [fittingpage] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle]
which changes the \textheight dimension (from the value set in page-lay.mkiv).
Merging \definelayout and \setuplayout from
\definelayout [fittingpage] [\v!page]
\setuplayout [fittingpage] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle]
to
\definelayout [fittingpage] [\v!page] [\c!width=\d_page_fitting_width, \c!height=\d_page_fitting_height, \c!location=\v!middle]
solves the problem.
aha, I had noticed some weird side effects in other cases ... so I wonder when this was introduced, but it's a more serious issue then
So, in the next beta check
\installswitchsetuphandler
In the switch variant we now have a dedicated token register for synchronization.
Why is \previouslayout defined as token register when it’s later only used to save the value of \currentlayout? Wolfgang
![](https://secure.gravatar.com/avatar/49e63acb01f2ca80efce7eed08310ce8.jpg?s=120&d=mm&r=g)
On 15-1-2012 20:05, Wolfgang Schuster wrote:
Why is \previouslayout defined as token register when it’s later only used to save the value of \currentlayout?
a left-over from a previous variant (where i has everyswitchsetup) ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------
participants (2)
-
Hans Hagen
-
Wolfgang Schuster