Re: [NTG-context] How to use \setupitemgroup?

2017-02-04 Thread Thomas A. Schmitz

On 02/04/2017 11:55 PM, Csikos Bela wrote:



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?



Ah, I see, I misunderstood your intention. If all you want to do is 
setup the default itemize, you can simply have


\setupitemize[each][packed,joinedup,n][stopper=!]

This is explained on the setupitemgroup page:

"\setupitemgroup[.1.][.2.][.3.][.4.]

1: name of the itemgroup to change (e.g. itemize for \startitemize). You

  get the same effect when using \setupitemize[.2.][.3.][.4.]"

Thomas



___
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
___

Re: [NTG-context] How to use \setupitemgroup?

2017-02-04 Thread Csikos Bela
"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
___

Re: [NTG-context] How to use \setupitemgroup?

2017-02-04 Thread Thomas A. Schmitz

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:


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=)]

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. And lastly: I 
couldn't test with the old standalone you use.


Hope that helps.

Thomas
___
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
___

[NTG-context] How to use \setupitemgroup?

2017-02-04 Thread Csikos Bela
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:

\definefontfamily[docu][rm][Tex Gyre Heros] % I want to use ss fonts only
\setupbodyfont[docu,12pt]
\setuppagenumbering[state=stop]
\setupitemgroup[itemize][each][packed,joinedup][n] % or use this:
%\setupitemgroup[itemize][each][packed,joinedup][n,stopper=)]
\starttext

\startalignment[middle]
{\tfa PINK FLOYD}

{\tfa The Wall}
\stopalignment
\blank

{\bf Compact Disc 1}

\startitemize
\item In The Flesh? 3:19
\item The Thin Ice  2:29
\item Another Brick In The Wall (Part 1)3:09
\item The Happiest Days Of Our Lives1:50
\item Another Brick In The Wall (Part 2)3:59
\item Mother5:33
\item Goodbye Blue Sky  2:47
\item Empty Spaces  2:08
\item Young Lust3:31
\item One Of My Turns   3:36
\item Don't Leave Me Now4:16
\item Another Brick In The Wall (Part 3)1:14
\item Goodbye Cruel World   1:15
\stopitemize
\blank

{\bf Compact Disc 2}

\startitemize
\item Hey You   4:41
\item Is There Anybody Out There?   2:40
\item Nobody Home   3:24
\item Vera  1:33
\item Bring The Boys Back Home  1:27
\item Comfortably Numb  6:21
\item The Show Must Go On   1:36
\item In The Flesh  4:16
\item Run Like Hell 4:23
\item Waiting For The Worms 3:58
\item Stop  0:30
\item The Trial 5:19
\item Outside The Wall  1:43
\stopitemize

\stoptext


itemize-example1a.pdf
Description: Adobe PDF document


itemize-example1b.pdf
Description: Adobe PDF document
___
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
___

Re: [NTG-context] URL styling in btx bibliography

2017-02-04 Thread Alan Braslau
On Sat, 4 Feb 2017 09:10:33 -0700
Alan Braslau  wrote:

> On Fri, 3 Feb 2017 17:26:35 -0500
> Rik Kabel  wrote:
> 
> > Is there a user-level control for the styling of urls in the new 
> > bibliography system? I use
> > 
> > \setupurl[style=\addff{f:ns}\ss]
> > 
> > (where f:ns is a fontfeature definition for lining/new style
> > numerals) for the rest of the document. The bibliography honors this
> > formatting for urls present in bibtex note entries, but persists in
> > serif and oldstyle (the document defaults) for urls provided by
> > bibtex url entries.
> 
> The bibliography specifications use the command \hyphenatedurl{} to
> flush the url (or doi) field.
> 
> Alan

Hans,

This should probably be replaced by \url[]?

Alan

\unexpanded\def\url[#label]% move \hyphenatedurl to lua end (is already lua)
{\dontleavehmode
   \begingroup
   \useurlstyleandcolor\c!style\c!color
   \hyphenatedurl{\clf_geturl{#label}}%
   \endgroup}
___
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
___

Re: [NTG-context] URL styling in btx bibliography

2017-02-04 Thread Alan Braslau
On Fri, 3 Feb 2017 17:26:35 -0500
Rik Kabel  wrote:

> Is there a user-level control for the styling of urls in the new 
> bibliography system? I use
> 
> \setupurl[style=\addff{f:ns}\ss]
> 
> (where f:ns is a fontfeature definition for lining/new style
> numerals) for the rest of the document. The bibliography honors this
> formatting for urls present in bibtex note entries, but persists in
> serif and oldstyle (the document defaults) for urls provided by
> bibtex url entries.

The bibliography specifications use the command \hyphenatedurl{} to
flush the url (or doi) field.

Alan
___
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
___