
Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https://wiki.contextgarden.net/Document_layout_and_layers/Makeup, results in no margin text in the makeup with either luatex or lmtx. \definepapersize[sheet][width=208mm,height=222mm] \setuppapersize[A8][sheet] \setuppaper[nx=4,ny=3] \setuparranging[XY] \setupbodyfont[9pt] \setupalign[tolerant] \showframe \setuppagenumbering[alternative=doublesided, page=,] \setupmakeup[pagestate=start] \definemakeup[custom][align=middle] \starttext \startmakeup[custom] This is a \par \mono{custom}\par title page \stopmakeup \startmakeup[text] This is a \par \mono{text}\par title page \stopmakeup \startmakeup[middle] This is a \par \mono{middle}\par title page\inmargin{\color[red]{Ha!}} \stopmakeup \startmakeup[standard] This is a \par \mono{standard}\par title page \stopmakeup \startmakeup[page] This is a \par \mono{page}\par title page \stopmakeup \inmargin{\color[red]{Ha!}} \input zapf \stoptext -- Rik

Am 26.02.2025 um 17:02 schrieb Rik Kabel:
Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https://wiki.contextgarden.net/Document_layout_and_layers/Makeup, results in no margin text in the makeup with either luatex or lmtx.
\inmargin[scope=local]{...} Wolfgang

On 2025-02-26 11:39, Wolfgang Schuster wrote:
Am 26.02.2025 um 17:02 schrieb Rik Kabel:
Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https://wiki.contextgarden.net/Document_layout_and_layers/Makeup, results in no margin text in the makeup with either luatex or lmtx.
\inmargin[scope=local]{...}
Thank you. That works for the question I asked. Now, the question I should have asked: Is there a way to get a label placed in that margin. Updated example: *\definelabel[Test][text=,alternative=inright,headcolor=red,before=,after=] \showframe \starttext \startmakeup \Test[]This is makeup page \stopmakeup \Test[]This is not a makeup page \stoptext* -- Rik

Am 26.02.2025 um 18:08 schrieb Rik Kabel:
On 2025-02-26 11:39, Wolfgang Schuster wrote:
Am 26.02.2025 um 17:02 schrieb Rik Kabel:
Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https://wiki.contextgarden.net/Document_layout_and_layers/Makeup, results in no margin text in the makeup with either luatex or lmtx.
\inmargin[scope=local]{...}
Thank you. That works for the question I asked.
Now, the question I should have asked: Is there a way to get a label placed in that margin. Updated example:
*\definelabel[Test] [text=,alternative=inright,headcolor=red,before=,after=] \showframe \starttext \startmakeup \Test[]This is makeup page \stopmakeup \Test[]This is not a makeup page \stoptext*
Below is simplified example, the problem is: 1. The makeup environment uses \forgetall at the start, where 2. \inhibitmargindata\conditionalfalse is set. 3. When you now use the margin alternative for the label \inright is flushed in a local group. 4. Because of the local group \inhibitmargindata is never set brak to true and therefore no entries are placed. The ungrouped second \inright in the example sets the correct value to the conditional. Using \global to set the conditional fixes the problem but I'm unsure about side effects. % typo-mar.mkxl \permanent\tolerant\protected\def\typo_margins_data_yes ... - {\inhibitmargindata\conditionalfalse % flushing afterwards + {\global\inhibitmargindata\conditionalfalse % flushing afterwards \begingroup ...} %%%% begin example \starttext \forgetall %\inhibitmargindata\conditionalfalse \begingroup\inright[scope=local]{Entry 1}\endgroup\samplefile{lorem} \inright[scope=local]{Entry 2}\samplefile{lorem} \begingroup\inright[scope=local]{Entry 3}\endgroup\samplefile{lorem} \stoptext %%%% end example Wolfgang

On 2025-02-27 15:22, Wolfgang Schuster wrote:
Am 26.02.2025 um 18:08 schrieb Rik Kabel:
On 2025-02-26 11:39, Wolfgang Schuster wrote:
Am 26.02.2025 um 17:02 schrieb Rik Kabel:
Is there a way to get margin text in a makeup page? The following example, modified by the addition of \inmargin... from the wiki at https://wiki.contextgarden.net/Document_layout_and_layers/Makeup, results in no margin text in the makeup with either luatex or lmtx.
\inmargin[scope=local]{...}
Thank you. That works for the question I asked.
Now, the question I should have asked: Is there a way to get a label placed in that margin. Updated example:
*\definelabel[Test] [text=,alternative=inright,headcolor=red,before=,after=] \showframe \starttext \startmakeup \Test[]This is makeup page \stopmakeup \Test[]This is not a makeup page \stoptext*
Below is simplified example, the problem is:
1. The makeup environment uses \forgetall at the start, where
2. \inhibitmargindata\conditionalfalse is set.
3. When you now use the margin alternative for the label \inright is flushed in a local group.
4. Because of the local group \inhibitmargindata is never set brak to true and therefore no entries are placed.
The ungrouped second \inright in the example sets the correct value to the conditional.
Using \global to set the conditional fixes the problem but I'm unsure about side effects.
% typo-mar.mkxl \permanent\tolerant\protected\def\typo_margins_data_yes ... - {\inhibitmargindata\conditionalfalse % flushing afterwards + {\global\inhibitmargindata\conditionalfalse % flushing afterwards \begingroup ...}
%%%% begin example \starttext
\forgetall %\inhibitmargindata\conditionalfalse
\begingroup\inright[scope=local]{Entry 1}\endgroup\samplefile{lorem}
\inright[scope=local]{Entry 2}\samplefile{lorem}
\begingroup\inright[scope=local]{Entry 3}\endgroup\samplefile{lorem}
\stoptext %%%% end example
Wolfgang
Thank you, Wolfgang. That works for my problem document and appears to have no side effects on other of my documents. I do not, however, have a lot of variety in my test suite, so offer this success as simply one data point. -- Rik
participants (2)
-
Rik Kabel
-
Wolfgang Schuster