,
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
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
,
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.
\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
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
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
Frame,
> width=\textwidth,
> location=right]
>
> \defineoverlay
>[MyFrame]
>[\useMPgraphic{MyFrame}]
>
> \definelabel
>[Définition]
>[headstyle=\bf\smallcaps]
>
>
> \startuseMPgraphic{MyFrame}
> picture p ;
> p := texte
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
> \
with a 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
to 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
. 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
agraphs 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},reference={}]
ter.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\input ward
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
<schuster.wolfg...@gmail.com> wrote:
\definelabel[idris][text=,headstyle=,numberconversion=R]
\defineframed
[NUM]
[width=fit,
align=middle,
frame=off,
background=color,
backgroundcolor=green,
top={\idr
\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 <cont...@rik.users.panix.com> wrote:
> I would like to request the restoration of labels (\definelabel) to
> full citizenship in MKIV. While enumerations are more flexible in
> many wa
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
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
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
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
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
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
ramed text
\defineframedtext
[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]
nd=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 := textext.rt("\
Hi Wolfgang,
On Sun, 06 Aug 2017 03:09:16 -0600, Wolfgang Schuster
<schuster.wolfg...@gmail.com> wrote:
\setupwhitespace[big]
\definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]
\setupparagraphintro[each][\ParagraphNumber]
\starttext
\section{Section}
\input ward
ce[big]
\definelabel[ParagraphNumber][text=Paragraph,closesymbol={\hspace[big]}]
\setupparagraphintro[each][\ParagraphNumber]
\starttext
\section{Section}
\input ward
\input ward
\input ward
\stoptext
Wolfgang
___
I
y=0.20, k=0.00]
>
>
> \defineframedtext
> [MyDefinition]
> [before={\blank[line,halfline]},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=\textwidth,
>height=fit,
>location=left,
>style=italic]
>
> \defineoverlay
&
I make a C-c C-c, all I get is the text in italics, the 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]
>&
t; % 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]
>
>
> \defineframedtext
> [MyDefinition]
> [before={\blank[line,halfline]},
> after={\blank},
m=0.10, y=0.20, k=0.00]
>>>
>>>
>>> \defineframedtext
>>> [MyDefinition]
>>> [before={\blank[line,halfline]},
>>>after={\blank},
>>>frame=off,
>>>background=MyFrame,
>>>width=\textwidth,
&
color[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]
>>
>>
>> \defineframedtext
>> [MyDefinition]
>> [before={\blank[line,halfline]},
>> after={\blank},
>>frame=off,
>&g
efore={\blank[line,halfline]},
> after={\blank},
> frame=off,
> background=MyFrame,
> width=\textwidth,
> height=fit,
> location=left,
> style=italic]
>
>\defineoverlay
> [MyFrame]
> [\useMPgraphic{MyFrame}]
>
>\definelabel
> [Définition]
&
=\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") ;
p :=
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 Mora <
opplacealgorithm
* 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 line.
\d
alize]
> \setupTABLE[start]
>[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=,number
[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
\
ter={\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{Title}");
%p :=
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]
\startuseMPgraphic{My
=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("\white\getvariable{text}{
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}
path b;
picture p;
%p := textext.rt
\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\framedtextpara
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
what sense ...
>>
>> speed? not much to gain
>>
>> correctness? mayhe use "lightgray" and "darkred" for consistency
>>
>> typography? sure, but more a discussion topic at the ctx meeting
>>
>> Thanks,
>>
\setupcolors[state=start]
\defineframedtext
[MyDefinition]
[before={\blank},
after={\blank},
frame=off,
background=MyFrame,
width=\textwidth,
height=fit,
style=italic]
\definelabel
[MyDefinition]
>> [before={\blank},
>>after={\blank},
>>frame=off,
>>background=MyFrame,
>>width=\textwidth,
>>height=fit,
>>style=italic]
>>
>> \definelabel
>> [Définition]
>> [headstyle=\bf\smal
=start]
>>
>> \defineframedtext
>> [MyDefinition]
>> [before={\blank},
>>after={\blank},
>>frame=off,
>>background=MyFrame,
>>width=\textwidth,
>>height=fit,
>>style=italic]
>>
>> \definelabel
>
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
ess with 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
0.3, m=0.00, y=0.00, k=0.05]
>
> \definecolor[MyColorD][c=0.6, m=0.00, y=0.00, k=0.10]
>
>
> \defineframedtext
> [MyDefinition]
> [before={\blank},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=\textwidth,
> height=fit,
>loca
]
\definecolor[MyColorD][c=0.6, m=0.00, 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]
[\useMPgraphic{MyFrame}]
\definelabel
on]
> [before={\blank},
>after={\blank},
>frame=off,
>background=MyFrame,
>width=\textwidth,
>height=fit,
>location=left,
>style=italic]
>
> \defineoverlay
> [MyFrame]
> [\useMPgraphic{MyFrame}]
>
> \definelabel
> [Défini
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
Thanks. I would not have thought of that. In the reference manual headcolor
occurs in 13.2 \setupdescriptions and in 13.5 \definelabel only. I did not
connect that with footnotes. Is \setupnotation a special form of
\setupdescriptions?
By the way, is a separate call to \setupnote[footnote
[MyFrame]
[\useMPgraphic{MyFrame}]
\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+.25ExHeight)
;
b := boundingbox p
]
[\useMPgraphic{MyFrame}]
\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+.25ExHeight) ;
b := boundingbox p leftenlarged
[MyText]
[frame=off,
background=MyFrame,
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
]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\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+.25ExHeight
[MyColorA][.75(MyColorB,white)]
\defineframedtext
[MyText]
[frame=off,
background=MyFrame,
width=\textwidth,
height=fit,
location=left,
style=italic]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic
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 in a footnote.
\defineenumeration fails
)]
\defineframedtext
[MyText]
[frame=off,
background=MyFrame,
width=\textwidth,
location=right]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b ;
picture p
,
location=right]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\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+.25ExHeight
]
[\useMPgraphic{MyFrame}]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b ;
picture p ;
p := textext.rt(\white\Définition) ; % some day textext might handle
it okay
p := p shifted (2BodyFontSize,OverlayHeight-ypart center
p
]
\defineoverlay
[MyFrame]
[\useMPgraphic{MyFrame}]
\definelabel
[Définition]
[headstyle=\bf\smallcaps]
\startuseMPgraphic{MyFrame}
path b ;
picture p ;
p := textext.rt(\white\Définition) ; % some day textext might
handle it okay
p := p shifted (2BodyFontSize,OverlayHeight
1 - 100 of 138 matches
Mail list logo