ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "kauśika via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: kauśika <citturs@gmail.com>
Subject: Re: Enumeration numbering in the left margin
Date: Sat, 20 Nov 2021 18:58:08 +0530	[thread overview]
Message-ID: <2606058.mvXUDI8C0e@sreeramtplt> (raw)
In-Reply-To: <5769502.lOV4Wx5bFT@sreeramtplt>

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
___________________________________________________________________________________

  reply	other threads:[~2021-11-20 13:28 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 [this message]
2021-11-20 15:04   ` Wolfgang Schuster via ntg-context
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=2606058.mvXUDI8C0e@sreeramtplt \
    --to=ntg-context@ntg.nl \
    --cc=citturs@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).