=]
\definelabel[Qi][text={\hbox to 15pt}, alternative=inright]
\startbuffer[fn]
\Qi
\stopbuffer
\starttext
\Qi Between here\par
aaa\endnote{xxx\getbuffer[fn]}\Qi and here
\placenotes[endnote]
\stoptext
--
Rik
On 2025-08-14 02:56, Hans Hagen via ntg-context wrote:
On 8/14/2025 1:01 AM, Rik Kabel wrote:
With the latest (2025-08-13) I get an error from the following:
\setupinteraction
[state=stop]
\definelabel[Qi]
[text={\hbox to \dimexpr +15pt\relax{}},
alternative
On 8/14/2025 1:01 AM, Rik Kabel wrote:
With the latest (2025-08-13) I get an error from the following:
\setupinteraction
[state=stop]
\definelabel[Qi]
[text={\hbox to \dimexpr +15pt\relax{}},
alternative=inright,
way=bytext,
headstyle=small
Sorry, the initial condition to show the error is
\setupinteraction[state=start] .
On August 13, 2025 7:01:41 PM EDT, Rik Kabel
wrote:
>With the latest (2025-08-13) I get an error from the following:
>
> \setupinteraction
> [state=stop]
>
> \definelabel[Qi]
>
With the latest (2025-08-13) I get an error from the following:
\setupinteraction
[state=stop]
\definelabel[Qi]
[text={\hbox to \dimexpr +15pt\relax{}},
alternative=inright,
way=bytext,
headstyle=small,
before=,after
.
\definelabel [X]
% [alternative=intext]
[alternative=inmargin]
\definemakeup [mkup]
[doublesided=no]
\starttext
\startmakeup [mkup]
abc\X[abc]\par
\ref[number][abc]\par
\stopmakeup
def\X[def]\par
\ref[number][def]\par
\Context\ version\par
Am 12.06.2025 um 22:08 schrieb Rik Kabel:
The following example fails to generate a label in the makeup page. With
20250428 it does generate the label.
With alternative=intext, all is as expected.
The counter is incremented in all cases.
\definelabel [X]
% [alternative=intext
.
With alternative=intext, all is as expected.
The counter is incremented in all cases.
\definelabel [X]
% [alternative=intext]
[alternative=inmargin]
\definemakeup [mkup]
[doublesided=no]
\starttext
\startmakeup [mkup]
abc\X[abc]\par
\ref[number][abc]\par
\stopmake
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
:
*\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
,
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
Hello all,
As the subject says, labels (\definelabel) with alternative=inmargin are
not placed on makeup pages. (Left and right placement works.) The
following example demonstrates this. (ConTeXt ver: 2024.08.16 15:49
LMTX fmt: 2024.8.16 int: english/english)
\showframe
,
width=max,
height=fit,
style=italic]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Définition");
p := textext.rt("\white\framedtextparameter{Title}");
%p := textext.rt("\white\getva
On 12/6/2022 10:04 PM, Rik Kabel via ntg-context wrote:
On 2022-12-06 15:32, Hans Hagen via ntg-context wrote:
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote:
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber
On 2022-12-06 15:32, Hans Hagen via ntg-context wrote:
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote:
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber{G}{\ref[number][b]}
\stopTEXpage
maybe like this
On 12/6/2022 9:06 PM, Rik Kabel via ntg-context wrote:
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber{G}{\ref[number][b]}
\stopTEXpage
maybe like this:
\definelabel[X][text=]
\startTEXpage[offset=1cm]
(\X
On 2022-01-19 12:39, Rik Kabel via ntg-context wrote:
This is still a problem with the current standalone.
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber{G}{\ref[number][b]}
\stopTEXpage
This is still a problem with the current standalone.
\definelabel[X][text=]
\startTEXpage[offset=1cm]
\X\X[a]\X[b]\X\par
\convertnumber{R}{\ref[number][a]}
\convertnumber{G}{\ref[number][b]}
\stopTEXpage
%% The above example fails to compile when there is no tuc
On 2022-01-15 14:29, Hans Hagen wrote:
> > On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote:
> >> MWE:
> >>
> >> \definelabel[xx][headcolor=red]
> >> \starttext
> >> ab\xx
> >> \stoptext
> >>
> >> fails,
On 2022-01-15 14:29, Hans Hagen wrote:
On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote:
MWE:
\definelabel[xx][headcolor=red]
\starttext
ab\xx
\stoptext
fails, reporting in log:
tex error > tex error on line 4 in file G:/Desktop/mwe.tex: !
Undefined cont
On 1/15/2022 7:34 PM, Rik Kabel via ntg-context wrote:
MWE:
\definelabel[xx][headcolor=red]
\starttext
ab\xx
\stoptext
fails, reporting in log:
tex error > tex error on line 4 in file G:/Desktop/mwe.tex: !
Undefined control sequence
\c!symbolco
MWE:
\definelabel[xx][headcolor=red]
\starttext
ab\xx
\stoptext
fails, reporting in log:
tex error > tex error on line 4 in file G:/Desktop/mwe.tex: !
Undefined control sequence
\c!symbolcolor
\labelparameter #1->\csname \ifcsname \??labels \currentlab
ble glue units , pointing to the second \convertnumber line.
\definelabel[XX]%[text=,before=,after=,alternative=inright]
\startTEXpage[offset=2em]
abc\XX[xx]\par
\ref[number][xx] ·
\convertnumber{r}{1} ·
\convertnumber{R}{\ref[number][xx]}
\stopTEXpage
In this case I
ond \convertnumber line.
\definelabel[XX]%[text=,before=,after=,alternative=inright]
\startTEXpage[offset=2em]
abc\XX[xx]\par
\ref[number][xx] ·
\convertnumber{r}{1} ·
\convertnumber{R}{\ref[number][xx]}
\stopTEXpage
In this case I am trying to display with roman numer
following fails with ConTeXt ver: 2021.10.24 21:45 MKIV but works
with the companion LMTX. The error message is:tex error > tex
error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible
glue units , pointing to the second \convertnumber line.
\definelabel[XX]%[text=,bef
Hello list,
The following fails with ConTeXt ver: 2021.10.24 21:45 MKIV but works
with the companion LMTX. The error message is:tex error > tex
error on line 6 in file G:/TestConTeXt/convert.tex: ! Incompatible glue
units , pointing to the second \convertnumber line.
\definela
On 5/21/2021 00:16, Wolfgang Schuster wrote:
Rik Kabel schrieb am 21.05.2021 um 04:31:
In the following example:
\definelabel[BB][alternative=inright,headcolor=red,text=]
\startTEXpage
Where is the label?\BB
\stopTEXpage
The label is not displayed if a TEXpage is used, but if
Rik Kabel schrieb am 21.05.2021 um 04:31:
In the following example:
\definelabel[BB][alternative=inright,headcolor=red,text=]
\startTEXpage
Where is the label?\BB
\stopTEXpage
The label is not displayed if a TEXpage is used, but if the start/stop
is changed to starttext
On Thu, 20 May 2021, Rik Kabel wrote:
> Consider the following example:
>
>\define \HighlightColor {red}
Why not just use:
\definecolor[HighlightColor][red]
and then use color=HighlightColor, etc.
>\definehighlight[RED][color=\HighlightColor]
> \definelabel[
Consider the following example:
\define \HighlightColor {red}
\definehighlight[RED][color=\HighlightColor]
\definelabel[AA][alternative=inright,headcolor=\HighlightColor,text=]
\definelabel[BB][alternative=inright,headcolor=red,text=]
\noheaderandfooterlines
\starttext
In the following example:
\definelabel[BB][alternative=inright,headcolor=red,text=]
\startTEXpage
Where is the label?\BB
\stopTEXpage
The label is not displayed if a TEXpage is used, but if the start/stop
is changed to starttext/stoptext, all is well.
Is this expected?
--
Rik
On 11/24/2020 22:09, Rik Kabel wrote:
Hello all,
What I thought should be a simple conversion escapes me.
I have a reference (created originally via a label defined by
\definelabel) that, when referenced as \in[label] or
\ref[number][label] displays a number, and that is how I normally use
Hello all,
What I thought should be a simple conversion escapes me.
I have a reference (created originally via a label defined by
\definelabel) that, when referenced as *\in[label]* or
*\ref[number][label]* displays a number, and that is how I normally use
it. However, I want to display it
about this incorrectly?
>> Thanks in advance!
>
> Are you looking for this: https://wiki.contextgarden.net/Command/definelabel
> <https://wiki.contextgarden.net/Command/definelabel> ?
>
> HTH
>
> Thomas
>
[myTagCounter]}
Doesn’t work. But perhaps I’m going about this incorrectly?
Thanks in advance!
Are you looking for this:
https://wiki.contextgarden.net/Command/definelabel ?
HTH
Thomas
___
If your question is of interest
With the latest beta, labels do not work for me.
With the following code:
\definelabel[Q]
\starttext
Label: \Q[abc]
Label: see \in[abc].
Reference: \reference[def]{2}
Reference: see \in[def].
\stoptext
I get:
and the log states:
references > unknown refere
nd=MyFrame,
> width=\textwidth,
> location=right]
>
> \defineoverlay
>[MyFrame]
>[\useMPgraphic{MyFrame}]
>
> \definelabel
>[Définition]
>[headstyle=\bf\smallcaps]
>
>
> \startuseMPgraphic{MyFrame}
> picture p ;
> p :=
ColorB][c=0.00, m=0.62, y=1.00, k=0.00]
> \definecolor[MyColorA][.75(MyColorB,white)]
>
> \defineframedtext
>[MyText]
>[frame=off,
> background=MyFrame,
> width=\textwidth,
> location=right]
>
> \defineoverlay
>[MyFrame]
>[\useMPgra
=\textwidth,
location=right]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
picture p ;
p := textext.rt(\MPstring{MyFrame}) ;
p := p shifted (0,OverlayHeight-ypart center p
On 07/15/2018 07:54 PM, Rik wrote:
> Easier than counters:
>
> \definelabel [QQ][text=,headcolor=red]
> \starttext
> \startxtable
> \startxrow
> \startxcell one \stopxcell
> \startxcell two \QQ[there] \stopxcell
> \
minimal sample?
I don‘t use labels and I don’t know how to use them with counters in
xtables.
Many thanks for your help,
Pablo
Easier than counters:
\definelabel [QQ][text=,headcolor=red]
\starttext
\startxtable
\startxrow
\startxcell one \stopxcell
\startxcell two
make a request to put into the queue. Currently references
(via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms
as well) do not generate ID attributes where they are created, and so
references to them (which do generate href=#...) link to nothing. Even
creating an empty div with
. Currently references
(via \reference or \definelabel[xyz] ... \xyz, perhaps other mechanisms
as well) do not generate ID attributes where they are created, and so
references to them (which do generate href=#...) link to nothing. Even
creating an empty div with an appropriate class (labelname
mber paragraphs you can create a counter with \definelabel.
\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{
}]
\starttext
\startchapter[title={First},reference={}]
\Paragraph\input ward
\Paragraph\input ward
\stopchapter
\startchapter[title={Second},refe
ilto:schuster.wolfg...@gmail.com>
25. Juni 2018 um 13:41
To number paragraphs you can create a counter with \definelabel.
\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{
}]
\starttext
\startchapter[title={First},reference={}]
\Paragraph\input ward
\Paragraph\in
On Mon, 25 Jun 2018 05:41:15 -0600, Wolfgang Schuster
wrote:
To number paragraphs you can create a counter with \definelabel.
Yes - and tested some paragraph options yesterday. Many thanks for the
sample below.
But this particular project is very large with countless cross-references
To number paragraphs you can create a counter with \definelabel.
\definelabel[Paragraph][text=,numberstopper={.},headcommand=\groupedcommand{}{
}]
\starttext
\startchapter[title={First},reference={}]
\Paragraph\input ward
\Paragraph\input ward
\stopchapter
\startchapter[title={Second
On Sun, 20 May 2018 08:02:46 -0600, Wolfgang Schuster
wrote:
\definelabel[idris][text=,headstyle=,numberconversion=R]
\defineframed
[NUM]
[width=fit,
align=middle,
frame=off,
background=color,
backgroundcolor=green,
top={\idris\par},
location=bottom
\definelabel[idris][text=,headstyle=,numberconversion=R]
\defineframed
[NUM]
[width=fit,
align=middle,
frame=off,
background=color,
backgroundcolor=green,
top={\idris\par},
location=bottom]
\starttext
\dorecurse{5}{Unnumbered Text \NUM{Numbered Text} }
\stoptext
Wolfgang
}
\defineenumeration
[Enu]
[alternative=mylabel,
display=no,
before=,
after=]
\definelabel
[Lab]
[alternative=mylabel,
before=,
after=]
\definenote
[endnote]
\setupnotation
[endnote]
[way=bytext,
location=none
On 1/14/2018 9:37 PM, Rik Kabel wrote:
On 2018-01-14 09:46, Hans Hagen wrote:
On 1/13/2018 10:17 PM, Rik Kabel wrote:
I would like to request the restoration of labels (\definelabel) to
full citizenship in MKIV. While enumerations are more flexible in
many ways, they cannot replace one
On 2018-01-14 09:46, Hans Hagen wrote:
On 1/13/2018 10:17 PM, Rik Kabel wrote:
I would like to request the restoration of labels (\definelabel) to
full citizenship in MKIV. While enumerations are more flexible in
many ways, they cannot replace one particular use of labels if find
necessary
On 1/13/2018 10:17 PM, Rik Kabel wrote:
I would like to request the restoration of labels (\definelabel) to full
citizenship in MKIV. While enumerations are more flexible in many ways,
they cannot replace one particular use of labels if find necessary.
Enumerations are paragraph entities
How about:
\setupitemize[each][text][before=]
Alan
On Sat, 13 Jan 2018 16:17:54 -0500
Rik Kabel wrote:
> I would like to request the restoration of labels (\definelabel) to
> full citizenship in MKIV. While enumerations are more flexible in
> many ways, they cannot replace one parti
I would like to request the restoration of labels (\definelabel) to full
citizenship in MKIV. While enumerations are more flexible in many ways,
they cannot replace one particular use of labels if find necessary.
Enumerations are paragraph entities, while labels are not so restricted.
I use
On 2018-01-12 17:46, Hans Hagen wrote:
On 1/12/2018 10:31 PM, Rik Kabel wrote:
maybe putting a \dontleavehmode in front helps
Indeed. Thank you. Adding it to the before key of \defineenumeration
appears to have no unwanted side effects. Can you think of a reason
not to do that?
something te
On 1/12/2018 10:31 PM, Rik Kabel wrote:
maybe putting a \dontleavehmode in front helps
Indeed. Thank you. Adding it to the before key of \defineenumeration
appears to have no unwanted side effects. Can you think of a reason not
to do that?
something tex ... one starts a group at the start of
On 2018-01-12 15:50, Hans Hagen wrote:
On 1/12/2018 8:24 PM, Rik Kabel wrote:
On 2018-01-12 13:27, Hans Hagen wrote:
On 1/12/2018 6:58 PM, Rik Kabel wrote:
Bump.
On 2015-08-11 14:45, Rik Kabel wrote:
The example below documents the problems. In short, \definelabel
suppresses paragraph
On 1/12/2018 8:24 PM, Rik Kabel wrote:
On 2018-01-12 13:27, Hans Hagen wrote:
On 1/12/2018 6:58 PM, Rik Kabel wrote:
Bump.
On 2015-08-11 14:45, Rik Kabel wrote:
The example below documents the problems. In short, \definelabel
suppresses paragraph indent when the label is at the beginning of
On 2018-01-12 13:27, Hans Hagen wrote:
On 1/12/2018 6:58 PM, Rik Kabel wrote:
Bump.
On 2015-08-11 14:45, Rik Kabel wrote:
The example below documents the problems. In short, \definelabel
suppresses paragraph indent when the label is at the beginning of a
paragraph and fails to print the
On 1/12/2018 6:58 PM, Rik Kabel wrote:
Bump.
On 2015-08-11 14:45, Rik Kabel wrote:
The example below documents the problems. In short, \definelabel
suppresses paragraph indent when the label is at the beginning of a
paragraph and fails to print the label or generate references with
Bump.
On 2015-07-27 22:08, Rik Kabel wrote:
I have a document with hundreds of labels generated by \definelabel.
They are used to index quotations in the text. Some of these occur in
notes. Previously I had all such notes at the end of the book, as
endnotes, but an editor requested a version
Bump.
On 2015-08-11 14:45, Rik Kabel wrote:
The example below documents the problems. In short, \definelabel
suppresses paragraph indent when the label is at the beginning of a
paragraph and fails to print the label or generate references with
alternative=inmargin (or inright, or inleft) when
[MyFrame]
[before={\blank[3*big]},
after={\blank[5*big]},
frame=off,
background=MyFrame,
%width=\textwidth,
width=max,
height=fit,
style={\setupbodyfont[9pt]}]
% Defining a label
\definelabel
[Definition]
[headstyle=\bf\smallcaps
background=MyFrame,
%width=\textwidth,
width=max,
height=fit,
style={\setupbodyfont[9pt]}]
% Defining a label
\definelabel
[Definition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Definition");
p := tex
Hi Wolfgang,
On Sun, 06 Aug 2017 03:09:16 -0600, Wolfgang Schuster
wrote:
\setupwhitespace[big]
\definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]
\setupparagraphintro[each][\ParagraphNumber]
\starttext
\section{Section}
\input ward
\input ward
\input ward
\stoptext
ce[big]
\definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]
\setupparagraphintro[each][\ParagraphNumber]
\starttext
\section{Section}
\input ward
\input ward
\input ward
\stoptext
Wolfgang
___
I
inition]
> [before={\blank[line,halfline]},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=\textwidth,
>height=fit,
>location=left,
>style=italic]
>
> \defineoverlay
> [MyFrame]
> [\useMPgraphic{MyFrame}]
>
> \definelabel
>
e macro is not
>>> compiled.
>>> Thanks,
>>> Fabrice
>>>
>>> % macros=mkvi
>>>
>>> \setupcolors[state=start]
>>> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
>>> \definecolor[MyColorA][c=0.00, m=0.1
olorB][c=0.00, m=0.62, y=1.00, k=0.00]
> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00]
>
>
> \defineframedtext
> [MyDefinition]
> [before={\blank[line,halfline]},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=\textwidth,
>
;> compiled.
>>> Thanks,
>>> Fabrice
>>>
>>> % macros=mkvi
>>>
>>> \setupcolors[state=start]
>>> \definecolor[MyColorB][c=0.00, m=0.62, y=1.00, k=0.00]
>>> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00]
>
olorB][c=0.00, m=0.62, y=1.00, k=0.00]
>> \definecolor[MyColorA][c=0.00, m=0.10, y=0.20, k=0.00]
>>
>>
>> \defineframedtext
>> [MyDefinition]
>> [before={\blank[line,halfline]},
>>after={\blank},
>>frame=off,
>>background=MyF
,halfline]},
> after={\blank},
> frame=off,
> background=MyFrame,
> width=\textwidth,
> height=fit,
> location=left,
> style=italic]
>
>\defineoverlay
> [MyFrame]
> [\useMPgraphic{MyFrame}]
>
>\definelabel
> [Définition]
> [headstyl
width=\textwidth,
height=fit,
location=left,
style=italic]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b ;
picture p ;
p := textext.rt("\white\Définition") ;
Mohammad Hossein Bateni <mailto:bat...@gmail.com>
27. Oktober 2016 um 17:59
How does one reset the counter then? Normally one would like it to
start from 1 within each algorithmic block. But definelabel seems to
have bytext and bysection options only.
You can use \resetc
How does one reset the counter then? Normally one would like it to start
from 1 within each algorithmic block. But definelabel seems to have bytext
and bysection options only.
On Wed, Oct 26, 2016 at 2:00 PM, Wolfgang Schuster <
schuster.wolfg...@gmail.com> wrote:
> Javier M M
t
\stopplacealgorithm
* In algorithms, I think it has more sense to number only "logical"
lines. The second state is so long that wraps into another line. Is it
possible to number only logical lines?
Not with linenumbering, what you need is counter which is inserted at
the begin of each
idth=0.12\textwidth,type=\tfx,offset=1ex]
> \setupTABLE[column][first]
>[align={middle,right},width=0.52\textwidth]
> \setupTABLE[1][1][frame=off]
> \stopsetups
>
> \definelabel[TableRow][text=,numbercommand=\FRAME]
>
> \starttext
>
> \startmidaligned
> \bTABLE[se
[align={middle,lohi},width=0.12\textwidth,type=\tfx,offset=1ex]
\setupTABLE[column][first]
[align={middle,right},width=0.52\textwidth]
\setupTABLE[1][1][frame=off]
\stopsetups
\definelabel[TableRow][text=,numbercommand=\FRAME]
\starttext
\startmidaligned
\bTABLE[setups=table:initial
.12\textwidth,type=\tfx,offset=1ex]
\setupTABLE[column][first]
[align={middle,right},width=0.52\textwidth]
\setupTABLE[1][1][frame=off]
\stopsetups
\definelabel[TableRow][text=,numbercommand=\FRAME]
\starttext
\startmidaligned
\bTABLE[setups=table:initialize]
\bTR
\bTD \
e,lohi},width=0.12\textwidth,type=\tfx,offset=1ex]
\setupTABLE[column][first]
[align={middle,right},width=0.52\textwidth]
\setupTABLE[1][1][frame=off]
\stopsetups
\definelabel[TableRow][text=,numbercommand=\FRAME]
\starttext
\startmidaligned
\bTABLE[setups=table:initialize]
\bTR
\
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
%width=\textwidth,
width=max,
height=fit]
\definelabel
[Definition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Definition");
p := textext.rt("\white\framedtextparameter{
autorisation.]
%~ \setupsymbolset[text]
% Début de la définition d'un texte encadré en rouge
\defineframedtext
[MyFrame]
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
%width=\textwidth,
width=max,
height=fit]
\definelabel
[Definition]
[headstyle=\bf\smallcaps]
\startuseMPgraph
width=max,
height=fit,
style=regular]
\definelabel
[Definition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Definition");
p := textext.rt("\white\framedtextparameter{Title}");
%p := textext.rt("\whit
the sample code :
% Begin framed text settings
\defineframedtext
[MyFrame]
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
%width=\textwidth,
width=max,
height=fit,
style=regular]
\definelabel
[Definition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
pa
ter={\blank},
frame=off,
background=MyFrame,
%width=\textwidth,
width=max,
height=fit,
style=italic]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Définition");
p := textext.rt("\white\framedtex
lyoung
%%%
\setupbodyfont[pagella,11pt]
\setupcolors[state=start]
\defineframedtext
[MyFrame]
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
%width=\textwidth,
width=max,
height=fit,
style=italic]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
]
\defineframedtext
[MyFrame]
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
%width=\textwidth,
width=max,
height=fit,
style=italic]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
%p := textext.rt("\white\Définition
ot much to gain
>>
>> correctness? mayhe use "lightgray" and "darkred" for consistency
>>
>> typography? sure, but more a discussion topic at the ctx meeting
>>
>> Thanks,
>> Fabrice
>>
>> \setu
\defineframedtext
[MyDefinition]
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
width=\textwidth,
height=fit,
style=italic]
\definelabel
[Définition]
[headst
Definition]
>> [before={\blank},
>>after={\blank},
>>frame=off,
>>background=MyFrame,
>>width=\textwidth,
>>height=fit,
>>style=italic]
>>
>> \definelabel
>> [Définition]
>> [headstyle=\bf\smallcaps]
>>
>
t;> \defineframedtext
>> [MyDefinition]
>> [before={\blank},
>>after={\blank},
>>frame=off,
>>background=MyFrame,
>>width=\textwidth,
>>height=fit,
>>style=italic]
>>
>> \definelabel
>> [Définition
background=MyFrame,
width=\textwidth,
height=fit,
style=italic]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
p := textext.rt("\white\Définition");
p := p shifted (2BodyFontSize,OverlayHeight-ypart center p+.25
]
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
width=\textwidth,
height=fit,
style=italic]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b;
picture p;
p := textext.rt("\white\Définition");
p := p shifted (2Bo
]
[features=default]
\definetypeface [mainface] [tt] [mono] [modern] [default]
[features=default,
rscale=1.1]
\definetypeface [mainface] [mm] [math] [pagella] [default]
[encoding=texnansi]
\setupbodyfont[mainface,11pt]
\definelabel
[Propriété]
[headstyle=bolditalic,way=bytext]
\setuptextrules
The following code, a slight addition to test suite
descriptions/labels-003.tex, when using ConTeXt from 20150904 and
earlier works properly. Between that release and 20151004 something
changed, and it fails with the labels shifted to reflect the temporarily
narrowed text.
\definelabel
ith attempts.
Can something other than page numbers be the indexed item?
I have a book with many quotations, each identified by a number
(generated by \definelabel). For an index of quotations, it would be
more useful to point to that quotation number than the page number.
Perhaps the l
phic{Funny}]
\definelabel
[MÉTHODE]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{Funny}
interim linejoin := mitered ;
interim linecap := squared ;
path b ;
picture p ;
picture pic ;
pic := textext.rt("\darkgreen Calculer les coordonnées d'un milieu")
y=0.00, k=0.10]
>
>
> \defineframedtext
> [MyDefinition]
> [before={\blank},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=\textwidth,
>height=fit,
>location=left,
>style=italic]
>
> \defineoverlay
> [MyFrame]
defineframedtext
[MyDefinition]
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
width=\textwidth,
height=fit,
location=left,
style=italic]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseM
1 - 100 of 152 matches
Mail list logo