* Enumeration numbering in the left margin
@ 2021-11-20 6:01 kauśika via ntg-context
2021-11-20 13:28 ` kauśika via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: kauśika via ntg-context @ 2021-11-20 6:01 UTC (permalink / raw)
To: ntg-context; +Cc: kauśika
Dear list,
I have the following enumeration block.
\defineenumeration[verse]
\setupenumeration[verse]
[alternative=leftmargin,
text=,
width=fit,
distance=1em,
way=bysection]
I actually want to (flush) left align the enumeration's number inside the left
margin and give it a blue color. But even if I have
\setupmargindata[inleftmargin][color=bblue4,align=flushleft]
there is no alignment, no color.
However, if I do
\setupenumeration[verse]
[alternative=leftmargin,
text=,
width=\leftmarginwidth,
headcolor=bblue4,
distance=0em,
way=bysection]
I am able to get the desired effect.
Is this the 'correct' way to do it? I mean to ask, am I doing something wrong
with \setupmargindata or is this expected behaviour.
Thanks,
kauśika
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Enumeration numbering in the left margin
2021-11-20 6:01 Enumeration numbering in the left margin kauśika via ntg-context
@ 2021-11-20 13:28 ` kauśika via ntg-context
2021-11-20 15:04 ` Wolfgang Schuster via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: kauśika via ntg-context @ 2021-11-20 13:28 UTC (permalink / raw)
To: ntg-context; +Cc: kauśika
On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote:
> Dear list,
>
> I have the following enumeration block.
>
> \defineenumeration[verse]
> \setupenumeration[verse]
> [alternative=leftmargin,
> text=,
> width=fit,
> distance=1em,
> way=bysection]
>
> I actually want to (flush) left align the enumeration's number inside the
> left margin and give it a blue color. But even if I have
> \setupmargindata[inleftmargin][color=bblue4,align=flushleft]
> there is no alignment, no color.
>
> However, if I do
> \setupenumeration[verse]
> [alternative=leftmargin,
> text=,
> width=\leftmarginwidth,
> headcolor=bblue4,
> distance=0em,
> way=bysection]
> I am able to get the desired effect.
>
> Is this the 'correct' way to do it? I mean to ask, am I doing something
> wrong with \setupmargindata or is this expected behaviour.
>
> Thanks,
> kauśika
Also
\setupenumeration[verse]
[alternative=left,
text=,
headcommand=\inleftmargin,
distance=0em,
way=bysection]
along with
\setupmargindata[inleftmargin][color=bblue4,align=flushleft]
achieves the required effect.
So then am I using alternative=leftmargin incorrectly?
Thanks,
kauśika
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Enumeration numbering in the left margin
2021-11-20 13:28 ` kauśika via ntg-context
@ 2021-11-20 15:04 ` Wolfgang Schuster via ntg-context
2021-11-21 4:01 ` kauśika via ntg-context
0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Schuster via ntg-context @ 2021-11-20 15:04 UTC (permalink / raw)
To: mailing list for ConTeXt users, kauśika via ntg-context
Cc: Wolfgang Schuster
kauśika via ntg-context schrieb am 20.11.2021 um 14:28:
> On Saturday, November 20, 2021 11:31:24 AM IST kauśika wrote:
>> Dear list,
>>
>> I have the following enumeration block.
>>
>> \defineenumeration[verse]
>> \setupenumeration[verse]
>> [alternative=leftmargin,
>> text=,
>> width=fit,
>> distance=1em,
>> way=bysection]
>>
>> I actually want to (flush) left align the enumeration's number inside the
>> left margin and give it a blue color. But even if I have
>> \setupmargindata[inleftmargin][color=bblue4,align=flushleft]
>> there is no alignment, no color.
>>
>> However, if I do
>> \setupenumeration[verse]
>> [alternative=leftmargin,
>> text=,
>> width=\leftmarginwidth,
>> headcolor=bblue4,
>> distance=0em,
>> way=bysection]
>> I am able to get the desired effect.
>>
>> Is this the 'correct' way to do it? I mean to ask, am I doing something
>> wrong with \setupmargindata or is this expected behaviour.
>>
>> Thanks,
>> kauśika
> Also
> \setupenumeration[verse]
> [alternative=left,
> text=,
> headcommand=\inleftmargin,
> distance=0em,
> way=bysection]
> along with
> \setupmargindata[inleftmargin][color=bblue4,align=flushleft]
> achieves the required effect.
>
> So then am I using alternative=leftmargin incorrectly?
Provide a complete minimal example to increase your chances for an answer.
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-11-21 4:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-11-20 6:01 Enumeration numbering in the left margin kauśika via ntg-context
2021-11-20 13:28 ` kauśika via ntg-context
2021-11-20 15:04 ` Wolfgang Schuster via ntg-context
2021-11-21 4:01 ` kauśika via ntg-context
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).