ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: fv leung via ntg-context <ntg-context@ntg.nl>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Cc: fv leung <fvleung@gmail.com>
Subject: Re: itemize problems
Date: Tue, 7 Sep 2021 16:50:48 +0800	[thread overview]
Message-ID: <CAN-yaTm221zdAYchtPvTTvDYgwBCUNmT60AfMwxxzw2hjnRBMw@mail.gmail.com> (raw)
In-Reply-To: <CACNy3NBPrRqnyNLg5R2q1cLwk1qRYsQyKSuAOtLoQrUkQqMCLg@mail.gmail.com>


[-- Attachment #1.1: Type: text/plain, Size: 4634 bytes --]

Use

 \startitemize[A,text][lefttext=,righttext=,stopper=]

then.

Maybe that's the new way.

Sylvain Hubert via ntg-context <ntg-context@ntg.nl> 於 2021年9月7日 週二 下午4:32寫道:

> Thanks, but this doesn't seem to work on my laptop:
>
>     \starttext
>     \startitemize[A,text][left=,right=,stopper=]
>     \item 1
>     \item 2
>     \stopitemize
>     \stoptext
>
>     %output: (A) 1 (B) 2
>
> On 07/09/2021, fv leung via ntg-context <ntg-context@ntg.nl> wrote:
> > I add
> >
> > left=,right=,
> >
> > in the second option group.
> >
> > 在 2021年9月7日週二 07:02,Sylvain Hubert via ntg-context <ntg-context@ntg.nl>
> 寫道:
> >
> >> A few more information:
> >>
> >> For the 1st problem:
> >>
> >> It seems that \setupitemize accepts two option groups, to which
> >> n,packed and margin belong accordingly. However,
> >> \setupitemize[n][margin=2em] does not seem to work.
> >>
> >> For the 2nd problem:
> >>
> >> \setupitemize[columns,one], although doing nothing in theory, seems to
> >> fix the problem.
> >>
> >> For the 4th problem:
> >>
> >> I've found that we can do \setupitemize[A,text] which makes it like
> >>
> >>     (A.) 0 (B.) 1 (C.) 2 (D.) 3
> >>
> >> The problem now is, how can we remove the parentheses around the item
> >> labels?
> >>
> >> On 07/09/2021, Sylvain Hubert <champignoom@gmail.com> wrote:
> >> > Dear List,
> >> >
> >> > Here's a collection of four problems about item groups that I've just
> >> > encountered.
> >> >
> >> > 1. 'n' and 'packed' not playing well with other options.
> >> >
> >> > This works:
> >> >
> >> >     \defineitemgroup[myitems][itemize][margin=2em,before=before]
> >> >     \setupmyitems[n,packed]
> >> >
> >> >     \starttext
> >> >     text
> >> >     \startmyitems
> >> >     \item 1
> >> >     \item 2
> >> >     \stopmyitems
> >> >     \stoptext
> >> >
> >> > This does not:
> >> >
> >> >
> >> > \defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]
> >> >
> >> > This does not either:
> >> >
> >> >     \defineitemgroup[myitems][itemize]
> >> >     \setupmyitems[n,packed,margin=2em,before=before]
> >> >
> >> > Is there a rule for this glitch which makes it worth memorizing, or is
> >> > this just a bug?
> >> >
> >> > 2. 'before' not working in nested item groups.
> >> >
> >> >     \starttext
> >> >     \startitemize[before=before1]
> >> >     \item 1
> >> >     \startitemize[before=before2]
> >> >     \item 2
> >> >     \stopitemize
> >> >     \stopitemize
> >> >     \stoptext
> >> >
> >> > Both before1 and before2 should appear, but only before1 is shown.
> >> >
> >> > 3. How to wrap the line under the bulletin or number?
> >> >
> >> > To be more precise, the current wrapping behavior of, say, "\item 0 1
> >> > 2 3 4 5 6 7 8 9" is:
> >> >
> >> >     * 0 1 2 3 4 5 6 7
> >> >       8 9
> >> >
> >> > How can we remove the indentation of the second line and make it like
> >> >
> >> >     * 0 1 2 3 4 5 6 7
> >> >     8 9
> >> >
> >> > 4. How to put the items on the same line?
> >> >
> >> > That is, for "\item 0 \item 1 \item 2", I would like it to be like
> >> >
> >> >     * 0   * 1   * 2
> >> >
> >> > instead of
> >> >
> >> >     * 0
> >> >     * 1
> >> >     * 2
> >> >
> >> > My context version: 2021.03.05 19:11, texlive.
> >> >
> >> > Any help with any of the problems above would be greatly appreciated.
> >> >
> >> > Best,
> >> > Sylvain
> >> >
> >>
> >>
> ___________________________________________________________________________________
> >> 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
> >>
> >>
> ___________________________________________________________________________________
> >>
> >>
> >
>
> ___________________________________________________________________________________
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 7489 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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-09-07  8:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-06 22:40 Sylvain Hubert via ntg-context
2021-09-06 23:02 ` Sylvain Hubert via ntg-context
2021-09-06 23:32   ` fv leung via ntg-context
2021-09-07  8:32     ` Sylvain Hubert via ntg-context
2021-09-07  8:50       ` fv leung via ntg-context [this message]
2021-09-07  9:00         ` Sylvain Hubert 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=CAN-yaTm221zdAYchtPvTTvDYgwBCUNmT60AfMwxxzw2hjnRBMw@mail.gmail.com \
    --to=ntg-context@ntg.nl \
    --cc=fvleung@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).