ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Csikos Bela <bcsikos425@freemail.hu>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: How to use \setupitemgroup?
Date: Sat, 4 Feb 2017 23:55:10 +0100 (CET)	[thread overview]
Message-ID: <freemail.20170204235510.87303.1@fmxmldata05.freemail.hu> (raw)
In-Reply-To: <c6ca1fe0-9111-c773-152e-f6c8150babec@uni-bonn.de>

"Thomas A. Schmitz" írta:
>On 02/04/2017 10:41 PM, Csikos Bela wrote:
>> Dear context users:
>>
>> I have troubles using \setupitemgroup. I tried to use it based on the
>> contextgarden wiki page (http://wiki.contextgarden.net/Command/setupitemgroup),
>>  description, but either my understanding how to use it is not correct or the
>> command doesn't behave as described on the wiki page.
>>
>> In the following example I want the items to be in a numbered, packed list, where the
>> item numbers are followed by ), like 1) 2) etc. If I don't add stopper=) option, I get
>> a numbered list, but it's not packed. If I add stopper=), the list becomes an unnumbered
>> list, but packed. I use context standalone ConTeXt  ver: 2016.09.24 12:40 MKIV beta.
>> I attach the resulted pdfs.
>>
>> What do I do wrong?
>>
>> Thanks,
>>
>> bcsikos
>>
>>
>> example code:

Dear Thomas:

Thank you very  much for your fast response.

>Most importantly: do not mix keywords and assignments. There are dozens 
>of messages on the list with your exact problem; maybe we need some sort 
>of very explicit, scary warning on the wiki. So
>
>\setupitemgroup[itemize][each][packed,joinedup][n,stopper=)]
>
>should be
>
>\setupitemgroup[itemize][each][packed,joinedup,n][stopper=)]

Thanks, I see. Unfortunately the wiki page doesn't mention n among the
keywords, and there is one n on the list of the assignments (without
mentioning its function). This might have caused me mixing it up.

>Then a couple of smaller things: bonus points for providing an example, 
>but please remove stuff that has nothing to do with your question. For 
>your private names, use uppercase or mixed-case so you don't clash with 
>system macros, so please do not define an itemgroup "itemize," but 
>"Itemize," or better still give it a more expressive name.

I haven't intended to define my own itemize command. I wanted to change
the default settings of \startitemize.  Is this not the proper way to redefine
\startitemize default options? (I wanted to use \setupitemize but
the wiki site directs to \setupitemgroup page.)  The wiki page says that
"\setupitemgroup[.1.][.2.][.3.][.4.]
1: name of the itemgroup to change (e.g. itemize for \startitemize)".
And if I wanted to setup my own itemize command, should not I define it
first using \defineitemgroup?

> And lastly: I 
>couldn't test with the old standalone you use.
>
>Hope that helps.

Yes, practically you solved my problem.

Thanks again,

bcsikos

___________________________________________________________________________________
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:[~2017-02-04 22:55 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-04 21:41 Csikos Bela
2017-02-04 22:13 ` Thomas A. Schmitz
2017-02-04 22:55   ` Csikos Bela [this message]
2017-02-04 23:18     ` Thomas A. Schmitz

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=freemail.20170204235510.87303.1@fmxmldata05.freemail.hu \
    --to=bcsikos425@freemail.hu \
    --cc=ntg-context@ntg.nl \
    /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).