ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster via ntg-context <ntg-context@ntg.nl>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>,
	"kauśika via ntg-context" <ntg-context@ntg.nl>
Cc: Wolfgang Schuster <wolfgang.schuster.lists@gmail.com>
Subject: Re: Enumeration numbering in the left margin
Date: Sat, 20 Nov 2021 16:04:52 +0100	[thread overview]
Message-ID: <7d0e6790-f4b2-c105-fad7-27fa924d1bc9@gmail.com> (raw)
In-Reply-To: <2606058.mvXUDI8C0e@sreeramtplt>

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
___________________________________________________________________________________

  reply	other threads:[~2021-11-20 15:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-20  6:01 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 [this message]
2021-11-21  4:01     ` kauśika via ntg-context

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7d0e6790-f4b2-c105-fad7-27fa924d1bc9@gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=wolfgang.schuster.lists@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).