Re: [NTG-context] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Marco Patzer
On Wed, 19 Dec 2018 18:29:33 +0100
Hans Hagen  wrote:

> \setupfloat
>[figure]
>[default=left,margin=1cm]

Thanks for the eye-opener. I realised I applied the margin on the item
group instead of the float. Sometimes it's the simple things…

Marco
___
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] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Hans Hagen

On 12/19/2018 1:15 PM, Marco Patzer wrote:

Hi!

The bullet of itemize lists runs into the boxes and caption of
floats. How to add spacing so the bullet doesn't touch the float?

Example:

\setupexternalfigures
   [location=default]

\setupfloat
   [figure]
   [default=left]

\setupitemize
   [packed, autointro]

\starttext
\startitemize
   \startitem
 Foo
 \startplacefigure [title=Lorem ipsum dolor sit amet consectetur]
\externalfigure [hacker]
 \stopplacefigure
 Bar
   \stopitem
   \dorecurse{15}{%%
 \startitem Foobar \stopitem
   }
\stopitemize
\stoptext


\setupfloat
  [figure]
  [default=left,margin=1cm]



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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] Itemize lists run into floats - how to add additional spacing

2018-12-19 Thread Marco Patzer
Hi!

The bullet of itemize lists runs into the boxes and caption of
floats. How to add spacing so the bullet doesn't touch the float?

Example:

\setupexternalfigures
  [location=default]

\setupfloat
  [figure]
  [default=left]

\setupitemize
  [packed, autointro]

\starttext
\startitemize
  \startitem
Foo
\startplacefigure [title=Lorem ipsum dolor sit amet consectetur]
   \externalfigure [hacker]
\stopplacefigure
Bar
  \stopitem
  \dorecurse{15}{%%
\startitem Foobar \stopitem
  }
\stopitemize
\stoptext

Marco
___
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] Itemize and natural tables

2018-09-25 Thread Wolfgang Schuster

Jan Willem Flamma schrieb am 24.09.18 um 08:48:

Thank you, also for the follow up in reporting the bug.

I have playing around with \item at various positions but hadn’t 
considered using \itemtag.


As a more general question:
My understanding is that in a tabulate environment \NI is short for 
\NC \itemtag \NC


Yes but you can also write \NI[] which is short for \NC 
\itemtag[] \NC


Is that the case as well in a TABLE environment. E.g., \NI is short 
for \bTD \itemtag \eTD?


There is no shortcut for the \itemtag command for natural tables.

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
___

Re: [NTG-context] Itemize and natural tables

2018-09-24 Thread Jan Willem Flamma
Thank you, also for the follow up in reporting the bug.

I have playing around with \item at various positions but hadn’t considered 
using \itemtag.

As a more general question:
My understanding is that in a tabulate environment \NI is short for \NC 
\itemtag \NC
Is that the case as well in a TABLE environment. E.g., \NI is short for \bTD 
\itemtag \eTD?




> On 23 Sep 2018, at 19:09, Wolfgang Schuster 
>  wrote:
> 
> You would use the \itemtag command in the same way as you would do it with 
> tabulate
> 
> \starttext
> 
> \startitemize[n]
> \bTABLE
> \bTR
> \bTD (\itemtag) Item 1 \eTD
> \eTR
> \eTABLE
> \stopitemize
> 
> \stoptext
> 
> but there is a bug which prevents the item counter to appear in the output 
> (which I will report in a different thread).
> 
> Wolfgang
> 
> 
> Jan Willem Flamma schrieb am 23.09.18 um 17:33:
>> Dear list members,
>> 
>> I’m able to combine itemize and tabulate as per:
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html 
>> 
>> 
>> Also, based on this discussion, I understand that combining modes and 
>> tabulate is not possible. Instead modes must be comined with natural tables.
>> https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html 
>> 
>> 
>> A logical follow up questions is if itemize can be combined with natural 
>> tables that include modes like in the MWE below.
>> 
>> MWE:
>> 
>> \startsetups [table]
>> \setupTABLE [start]  [frame=off,rulethickness=0pt,offset=0pt]
>> \setupTABLE [column] [1] [width=4cm,align=flushleft]
>> \setupTABLE [row][1] [toffset=5pt]
>> \setupTABLE [column] [2] [width=4cm,align=flushleft]
>> \stopsetups
>> 
>> \enablemode[test]
>> 
>> \starttext
>> 
>> \bTABLE [setups=table]
>> \bTR\bTC Item 1 \eTC\bTC Column 1 \eTC   \startmode[test] \bTC 
>> Column 2 \eTC \stopmode \eTR
>> \bTR\bTC Item 2 \eTC\bTC Column 1 \eTC  \startmode[test] \bTC Column 
>> 2 \eTC \stopmode \eTR
>> \eTABLE
>> 
>> \stoptext
>> 
>> Kind regards,
>> Jan Wilem Flamma
>> 
>> 
>> 
>> 
>> ___
>> 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
___

Re: [NTG-context] Itemize and natural tables

2018-09-23 Thread Wolfgang Schuster
You would use the \itemtag command in the same way as you would do it 
with tabulate


\starttext

\startitemize[n]
\bTABLE
    \bTR
        \bTD (\itemtag) Item 1 \eTD
    \eTR
\eTABLE
\stopitemize

\stoptext

but there is a bug which prevents the item counter to appear in the 
output (which I will report in a different thread).


Wolfgang


Jan Willem Flamma schrieb am 23.09.18 um 17:33:

Dear list members,

I’m able to combine itemize and tabulate as per:
https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html

Also, based on this discussion, I understand that combining modes and 
tabulate is not possible. Instead modes must be comined with natural 
tables.

https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html

A logical follow up questions is if itemize can be combined with 
natural tables that include modes like in the MWE below.


MWE:

\startsetups [table]
    \setupTABLE [start] [frame=off,rulethickness=0pt,offset=0pt]
    \setupTABLE [column] [1] [width=4cm,align=flushleft]
    \setupTABLE [row]    [1] [toffset=5pt]
    \setupTABLE [column] [2] [width=4cm,align=flushleft]
\stopsetups

\enablemode[test]

\starttext

\bTABLE [setups=table]
\bTR    \bTC Item 1 \eTC    \bTC Column 1 \eTC\startmode[test] \bTC 
Column 2 \eTC \stopmode \eTR
\bTR    \bTC Item 2 \eTC    \bTC Column 1 \eTC  \startmode[test] \bTC 
Column 2 \eTC \stopmode \eTR

\eTABLE

\stoptext

Kind regards,
Jan Wilem Flamma




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

[NTG-context] Itemize and natural tables

2018-09-23 Thread Jan Willem Flamma
Dear list members,

I’m able to combine itemize and tabulate as per:
https://www.mail-archive.com/ntg-context@ntg.nl/msg86189.html 


Also, based on this discussion, I understand that combining modes and tabulate 
is not possible. Instead modes must be comined with natural tables.
https://www.mail-archive.com/ntg-context@ntg.nl/msg88877.html 


A logical follow up questions is if itemize can be combined with natural tables 
that include modes like in the MWE below.

MWE:

\startsetups [table]
\setupTABLE [start]  [frame=off,rulethickness=0pt,offset=0pt]
\setupTABLE [column] [1] [width=4cm,align=flushleft]
\setupTABLE [row][1] [toffset=5pt]
\setupTABLE [column] [2] [width=4cm,align=flushleft]
\stopsetups

\enablemode[test]

\starttext

\bTABLE [setups=table]
\bTR\bTC Item 1 \eTC\bTC Column 1 \eTC  \startmode[test] \bTC Column 2 
\eTC \stopmode \eTR
\bTR\bTC Item 2 \eTC\bTC Column 1 \eTC  \startmode[test] \bTC Column 2 
\eTC \stopmode \eTR
\eTABLE

\stoptext

Kind regards,
Jan Wilem Flamma


___
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] \itemize unpacked?

2016-12-19 Thread Ulrike Fischer
Am Mon, 19 Dec 2016 14:26:12 +0100 schrieb Procházka Lukáš Ing.:

> Hello,
> 
> yes, that's right; but I thought there is an option to "override" the 
> default/set-up setting -
> 
> - what should "unpacked" do otherwise?

Imho while you can use packed locally unpacked is only for global
settings. At least it isn't mentioned as argument here
http://wiki.contextgarden.net/Enumerations

It works if you use unpacked in another \setupitemize:

\setupitemize[each][unpacked]



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] \itemize unpacked?

2016-12-19 Thread Thomas A. Schmitz

On 12/19/2016 02:26 PM, Procházka Lukáš Ing. wrote:

Also, in my case, there are more \itemize to be packed; and some of them
(in the middle of the document) should be "unpacked"; so grouping
itemize setting is not very comfortable here.


Then the cleanest (and most ConTeXt-like) solution would be to define 
several instances of itemize in the preamble and use those instead of 
applying the settings on the fly. 
(http://wiki.contextgarden.net/Command/defineitemgroup , but I guess you 
know about that.)


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] \itemize unpacked?

2016-12-19 Thread Procházka Lukáš Ing .

Hello,

yes, that's right; but I thought there is an option to "override" the 
default/set-up setting -

- what should "unpacked" do otherwise?

Also, in my case, there are more \itemize to be packed; and some of them (in the middle 
of the document) should be "unpacked"; so grouping itemize setting is not very 
comfortable here.

Best regards,

Lukas


On Mon, 19 Dec 2016 13:40:30 +0100, Herbert Voss  
wrote:


Am 19.12.2016 um 13:26 schrieb Procházka Lukáš Ing.:

Hello,

I have code that setups \itemize packed.

Is it possible to force "unpacked" option back (mentioned here:
http://wiki.contextgarden.net/Command/setupitemgroup)?


\starttext

  \startitemize[][]
\item 1a
\item 1b
  \stopitemize

  \setupitemize[each][packed,joinedup] % <--- Itemize to be 'packed'
from here on

  \startitemize[][]
\item 2a
\item 2b
  \stopitemize



you can make it a local setting:

{%
\setupitemize[each][packed,joinedup] % <--- Itemize to be 'packed' from
here on

\startitemize[][]
\item 2a
\item 2b
\stopitemize
}

Herbert



  \startitemize[unpacked][] % <--- Itemize still packed! - How to
disable it?
\item 3a
\item 3b
  \stopitemize

\stoptext


Best regards,

Lukas




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



--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

___
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] \itemize unpacked?

2016-12-19 Thread Herbert Voss

Am 19.12.2016 um 13:26 schrieb Procházka Lukáš Ing.:

Hello,

I have code that setups \itemize packed.

Is it possible to force "unpacked" option back (mentioned here:
http://wiki.contextgarden.net/Command/setupitemgroup)?


\starttext

  \startitemize[][]
\item 1a
\item 1b
  \stopitemize

  \setupitemize[each][packed,joinedup] % <--- Itemize to be 'packed'
from here on

  \startitemize[][]
\item 2a
\item 2b
  \stopitemize



you can make it a local setting:

{%
\setupitemize[each][packed,joinedup] % <--- Itemize to be 'packed' from 
here on


\startitemize[][]
\item 2a
\item 2b
\stopitemize
}

Herbert



  \startitemize[unpacked][] % <--- Itemize still packed! - How to
disable it?
\item 3a
\item 3b
  \stopitemize

\stoptext


Best regards,

Lukas




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

[NTG-context] \itemize unpacked?

2016-12-19 Thread Procházka Lukáš Ing .

Hello,

I have code that setups \itemize packed.

Is it possible to force "unpacked" option back (mentioned here: 
http://wiki.contextgarden.net/Command/setupitemgroup)?


\starttext

  \startitemize[][]
\item 1a
\item 1b
  \stopitemize

  \setupitemize[each][packed,joinedup] % <--- Itemize to be 'packed' from here 
on

  \startitemize[][]
\item 2a
\item 2b
  \stopitemize

  \startitemize[unpacked][] % <--- Itemize still packed! - How to disable it?
\item 3a
\item 3b
  \stopitemize

\stoptext


Best regards,

Lukas


--
Ing. Lukáš Procházka | mailto:l...@pontex.cz
Pontex s. r. o.  | mailto:pon...@pontex.cz | http://www.pontex.cz | 
IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Tel: +420 241 096 751 (+420 720 951 172)
Fax: +420 244 461 038

UnpItem.mkiv
Description: Binary data


UnpItem.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] itemize columns transposed

2016-10-11 Thread Mikael P. Sundqvist
On Tue, Oct 11, 2016 at 11:37 AM, Wolfgang Schuster
 wrote:
> Mikael P. Sundqvist
> 11. Oktober 2016 um 11:21
>
> Thank you, the notjoinedup works well, but I cannot see any difference
> using any of the keys unpacked or notpacked.
>
> Is there any chance to have the before, after and inbetween keys to
> set the space manually?
>
> The before should be usable when you add the "notjoinedup" but inbetween
> will never be supported
> for horizontal items because all entries are in a single paragraph.
>
>
> To increase the distance between the lines you can change the
> interlinespace, e.g.
>
> \starttext
>
> \startitemize[a,horizontal][inner={\setupinterlinespace[line=6ex]}]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
>
> \stoptext
>
>
> or add a invisible symbol with increased height/depth at the begin of each
> item, e.g.
>
> \define\HorizontalItem
>   {\phantombox[height=\strutht,depth=\dimexpr\strutdp+\lineheight\relax]}
>
> \starttext
>
> \startitemize[a,horizontal][command=\HorizontalItem]
> \startitem First \stopitem
> \startitem Second \stopitem
> \startitem Third \stopitem
> \startitem Fourth \stopitem
> \stopitemize
>
> \stoptext
>
> 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  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Many thanks Wolfgang!

Now I know that the inbetween will never work, but that is not a
problem, since your inner= solution worked very well in my document!

The setup I ended up using (and that seems to work all over the ~160
pages document) is

\defineitemgroup[abc]
\setupitemgroup[abc][each][a,horizontal,three,intro,notjoinedup][
stopper=,
right=),
margin=,
before={\blank[medium,samepage]},
inner={\setupinterlinespace[line=3.5ex]},
]

Best regards, Mikael
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-11 Thread Wolfgang Schuster

Mikael P. Sundqvist 
11. Oktober 2016 um 11:21

Thank you, the notjoinedup works well, but I cannot see any difference
using any of the keys unpacked or notpacked.

Is there any chance to have the before, after and inbetween keys to
set the space manually?
The before should be usable when you add the "notjoinedup" but inbetween 
will never be supported

for horizontal items because all entries are in a single paragraph.


To increase the distance between the lines you can change the 
interlinespace, e.g.


\starttext

\startitemize[a,horizontal][inner={\setupinterlinespace[line=6ex]}]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize

\stoptext


or add a invisible symbol with increased height/depth at the begin of 
each item, e.g.


\define\HorizontalItem
  {\phantombox[height=\strutht,depth=\dimexpr\strutdp+\lineheight\relax]}

\starttext

\startitemize[a,horizontal][command=\HorizontalItem]
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopitemize

\stoptext

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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-11 Thread Mikael P. Sundqvist
On Mon, Oct 10, 2016 at 10:28 AM, Hans Hagen  wrote:
> On 10/10/2016 10:24 AM, Hans Hagen wrote:
>
>> \setvalue{\??itemgroupkeyword\v!notpacked}%
>
>
> we already have unpacked
>
>
> -
>   Hans Hagen | PRAGMA ADE
>   Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Thank you, the notjoinedup works well, but I cannot see any difference
using any of the keys unpacked or notpacked.

Is there any chance to have the before, after and inbetween keys to
set the space manually?

/Mikael
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-10 Thread Hans Hagen

On 10/10/2016 10:24 AM, Hans Hagen wrote:


\setvalue{\??itemgroupkeyword\v!notpacked}%


we already have unpacked

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-10 Thread Hans Hagen

On 10/2/2016 8:08 PM, Mikael P. Sundqvist wrote:

\starttext

Some text before.
\startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize
some text after.
\stoptext


Something like this ... (unless WS sees a flaw):

\unprotect

\def\v!notpacked  {notpacked}
\def\v!notjoinedup{notjoinedup}

\setvalue{\??itemgroupkeyword\v!notpacked}%
  {\setfalse\c_strc_itemgroups_pack}

\setvalue{\??itemgroupkeyword\v!notjoinedup}%
  {\setfalse\c_strc_itemgroups_joined}

\unexpanded\def\stopcollectitems
  {\ifconditional\c_strc_itemgroups_collecting
 \c_strc_itemgroups_collected_done   \zerocount
 \c_strc_itemgroups_collected_current\zerocount
 \ifnum\c_strc_itemgroups_collected_stored>\zerocount
   \ifconditional\c_strc_itemgroups_horizontal
 \strc_itemgroups_before_command
 \setfalse\c_strc_itemgroups_first
 \strc_itemgroups_collected_flush
%\strc_itemgroups_after_command % triggered elsewhere
   \else
 \strc_itemgroups_collected_flush
   \fi
 \fi
   \fi}

\protect

\starttext

bla bla

\startitemize[a,horizontal,three,notjoinedup]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize

bla bla

\stoptext




-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-10-02 Thread Mikael P. Sundqvist
On Thu, Sep 22, 2016 at 8:44 AM, Mikael P. Sundqvist  wrote:
> On Sun, Sep 18, 2016 at 8:27 AM, Mikael P. Sundqvist  wrote:
>> On Sat, Sep 17, 2016 at 11:07 PM, Aditya Mahajan  wrote:
>>> On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote:


 Is there a reason why the above does not work using \item, like

 \startitemize[a,horizontal,three]
 \item $\int_0^2 1+2x\,dx$
 \item $\int_0^{\ln 2} e^s\,ds$
 \item $\int_0^{\ln 2} e^{2s}\,ds$
 \item $\int_0^{\pi} \sin t\,dt$
 \item $\int_0^{2\pi}\sin t\,dt$
 \item $\int_0^1\frac{1}{1+x^2}\,dx$
 \stopitemize

 but only with \startitem ... \stopitem? It is not that I have anything
 against using the \start...\stop... mechanism, but just curiosity.
>>>
>>>
>>> I haven't looked at the code, but most likely reason is that it uses a two
>>> pass mechanism. It is easier to grab the content of a \start-stop pair
>>> rather than a command that could be terminated by either an \item or a
>>> \stopitem
>>>
>>> At least, that is the reason why random option only works with \startitem ..
>>> \stopitem
>>>
>>> Aditya
>>>
>>> ___
>>> 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://tex.aanhet.net
>>> archive  : http://foundry.supelec.fr/projects/contextrev/
>>> wiki : http://contextgarden.net
>>> ___
>>
>> Thanks Aditya, I'll accept that there is a reason.
>>
>> Another related thing (sorry if I make this thread a bit difficult to read):
>>
>> Does the horizontal keyword force the list to be packed (and
>> joinedup)? I tried to add unpacked, but with no luck
>>
>> \starttext
>> Some text before.
>> \startitemize[a,horizontal,three,unpacked]
>> \startitem $\int_0^2 1+2x\,dx$ \stopitem
>> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
>> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
>> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
>> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
>> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
>> \stopitemize
>> some text after.
>> \stoptext
>>
>> I also tried to add some space before/after, like
>>
>> \starttext
>> Some text before.
>> \startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}]
>> \startitem $\int_0^2 1+2x\,dx$ \stopitem
>> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
>> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
>> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
>> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
>> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
>> \stopitemize
>> some text after.
>> \stoptext
>>
>> /Mikael
>
> Dear list,
>
> a shameless bump.
>
> (Or should I interpret the silence as it is currently not possible to
> change space before/after/between when one uses horizontal key?)
>
> Best regards, Mikael

Nobody?

Hans, could you confirm that it is not possible to use
before/after/inbetween together with the horizontal key? If so,
consider it being a feature request (I of course have no idea if it is
possible or not...) :)

I'm running closer to the dead line of this document, so I might end
up using another approach this time...

/Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-09-22 Thread Mikael P. Sundqvist
On Sun, Sep 18, 2016 at 8:27 AM, Mikael P. Sundqvist  wrote:
> On Sat, Sep 17, 2016 at 11:07 PM, Aditya Mahajan  wrote:
>> On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote:
>>>
>>>
>>> Is there a reason why the above does not work using \item, like
>>>
>>> \startitemize[a,horizontal,three]
>>> \item $\int_0^2 1+2x\,dx$
>>> \item $\int_0^{\ln 2} e^s\,ds$
>>> \item $\int_0^{\ln 2} e^{2s}\,ds$
>>> \item $\int_0^{\pi} \sin t\,dt$
>>> \item $\int_0^{2\pi}\sin t\,dt$
>>> \item $\int_0^1\frac{1}{1+x^2}\,dx$
>>> \stopitemize
>>>
>>> but only with \startitem ... \stopitem? It is not that I have anything
>>> against using the \start...\stop... mechanism, but just curiosity.
>>
>>
>> I haven't looked at the code, but most likely reason is that it uses a two
>> pass mechanism. It is easier to grab the content of a \start-stop pair
>> rather than a command that could be terminated by either an \item or a
>> \stopitem
>>
>> At least, that is the reason why random option only works with \startitem ..
>> \stopitem
>>
>> Aditya
>>
>> ___
>> 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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
>
> Thanks Aditya, I'll accept that there is a reason.
>
> Another related thing (sorry if I make this thread a bit difficult to read):
>
> Does the horizontal keyword force the list to be packed (and
> joinedup)? I tried to add unpacked, but with no luck
>
> \starttext
> Some text before.
> \startitemize[a,horizontal,three,unpacked]
> \startitem $\int_0^2 1+2x\,dx$ \stopitem
> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
> \stopitemize
> some text after.
> \stoptext
>
> I also tried to add some space before/after, like
>
> \starttext
> Some text before.
> \startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}]
> \startitem $\int_0^2 1+2x\,dx$ \stopitem
> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
> \stopitemize
> some text after.
> \stoptext
>
> /Mikael

Dear list,

a shameless bump.

(Or should I interpret the silence as it is currently not possible to
change space before/after/between when one uses horizontal key?)

Best regards, Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-09-18 Thread Mikael P. Sundqvist
On Sat, Sep 17, 2016 at 11:07 PM, Aditya Mahajan  wrote:
> On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote:
>>
>>
>> Is there a reason why the above does not work using \item, like
>>
>> \startitemize[a,horizontal,three]
>> \item $\int_0^2 1+2x\,dx$
>> \item $\int_0^{\ln 2} e^s\,ds$
>> \item $\int_0^{\ln 2} e^{2s}\,ds$
>> \item $\int_0^{\pi} \sin t\,dt$
>> \item $\int_0^{2\pi}\sin t\,dt$
>> \item $\int_0^1\frac{1}{1+x^2}\,dx$
>> \stopitemize
>>
>> but only with \startitem ... \stopitem? It is not that I have anything
>> against using the \start...\stop... mechanism, but just curiosity.
>
>
> I haven't looked at the code, but most likely reason is that it uses a two
> pass mechanism. It is easier to grab the content of a \start-stop pair
> rather than a command that could be terminated by either an \item or a
> \stopitem
>
> At least, that is the reason why random option only works with \startitem ..
> \stopitem
>
> Aditya
>
> ___
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Thanks Aditya, I'll accept that there is a reason.

Another related thing (sorry if I make this thread a bit difficult to read):

Does the horizontal keyword force the list to be packed (and
joinedup)? I tried to add unpacked, but with no luck

\starttext
Some text before.
\startitemize[a,horizontal,three,unpacked]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize
some text after.
\stoptext

I also tried to add some space before/after, like

\starttext
Some text before.
\startitemize[a,horizontal,three][before={\blank[big]},after={\blank[big]}]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize
some text after.
\stoptext

/Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-09-17 Thread Aditya Mahajan

On Sat, 17 Sep 2016, Mikael P. Sundqvist wrote:


Is there a reason why the above does not work using \item, like

\startitemize[a,horizontal,three]
\item $\int_0^2 1+2x\,dx$
\item $\int_0^{\ln 2} e^s\,ds$
\item $\int_0^{\ln 2} e^{2s}\,ds$
\item $\int_0^{\pi} \sin t\,dt$
\item $\int_0^{2\pi}\sin t\,dt$
\item $\int_0^1\frac{1}{1+x^2}\,dx$
\stopitemize

but only with \startitem ... \stopitem? It is not that I have anything
against using the \start...\stop... mechanism, but just curiosity.


I haven't looked at the code, but most likely reason is that it uses a two 
pass mechanism. It is easier to grab the content of a \start-stop pair 
rather than a command that could be terminated by either an \item or a 
\stopitem


At least, that is the reason why random option only works with \startitem 
.. \stopitem


Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-09-17 Thread Mikael P. Sundqvist
On Sat, Sep 17, 2016 at 2:12 PM, Mikael P. Sundqvist  wrote:
> On Sat, Sep 17, 2016 at 1:51 PM, Wolfgang Schuster
>  wrote:
>> Mikael P. Sundqvist
>> 17. September 2016 um 08:14
>> Hi!
>>
>> I wonder if it is possible to automatically have the itemize in
>> columns and have the order changed (in effect, the whole itemization
>> should be transposed) so that one gets
>>
>> a b c
>> d e f
>>
>> instead of
>>
>> a c e
>> b d f
>>
>> With automatically, I mean that one could use some keyword instead of adding
>> a
>> \stopitemize\startitemize[continued] in the middle (found here:
>> http://wiki.contextgarden.net/Enumerations#Multicolumn)
>>
>> \starttext
>>
>> \startitemize[a,horizontal,three]
>> \startitem $\int_0^2 1+2x\,dx$ \stopitem
>> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
>> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
>> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
>> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
>> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
>> \stopitemize
>>
>> \stoptext
>>
>> 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://tex.aanhet.net
>> archive  : http://foundry.supelec.fr/projects/contextrev/
>> wiki : http://contextgarden.net
>> ___
>
> Thank you very much!
>
> I updated the wiki entry
> (http://wiki.contextgarden.net/Enumerations#Multicolumn), I hope it is
> appropriate.
>
> /Mikael

Out of curiosity:

Is there a reason why the above does not work using \item, like

\startitemize[a,horizontal,three]
\item $\int_0^2 1+2x\,dx$
\item $\int_0^{\ln 2} e^s\,ds$
\item $\int_0^{\ln 2} e^{2s}\,ds$
\item $\int_0^{\pi} \sin t\,dt$
\item $\int_0^{2\pi}\sin t\,dt$
\item $\int_0^1\frac{1}{1+x^2}\,dx$
\stopitemize

but only with \startitem ... \stopitem? It is not that I have anything
against using the \start...\stop... mechanism, but just curiosity.

/Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-09-17 Thread Mikael P. Sundqvist
On Sat, Sep 17, 2016 at 1:51 PM, Wolfgang Schuster
 wrote:
> Mikael P. Sundqvist
> 17. September 2016 um 08:14
> Hi!
>
> I wonder if it is possible to automatically have the itemize in
> columns and have the order changed (in effect, the whole itemization
> should be transposed) so that one gets
>
> a b c
> d e f
>
> instead of
>
> a c e
> b d f
>
> With automatically, I mean that one could use some keyword instead of adding
> a
> \stopitemize\startitemize[continued] in the middle (found here:
> http://wiki.contextgarden.net/Enumerations#Multicolumn)
>
> \starttext
>
> \startitemize[a,horizontal,three]
> \startitem $\int_0^2 1+2x\,dx$ \stopitem
> \startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
> \startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
> \startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
> \startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
> \startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
> \stopitemize
>
> \stoptext
>
> 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://tex.aanhet.net
> archive  : http://foundry.supelec.fr/projects/contextrev/
> wiki : http://contextgarden.net
> ___

Thank you very much!

I updated the wiki entry
(http://wiki.contextgarden.net/Enumerations#Multicolumn), I hope it is
appropriate.

/Mikael
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize columns transposed

2016-09-17 Thread Wolfgang Schuster

Mikael P. Sundqvist 
17. September 2016 um 08:14
Hi!

I wonder if it is possible to automatically have the itemize in
columns and have the order changed (in effect, the whole itemization
should be transposed) so that one gets

a b c
d e f

instead of

a c e
b d f

With automatically, I mean that one could use some keyword instead of 
adding a

\stopitemize\startitemize[continued] in the middle (found here:
http://wiki.contextgarden.net/Enumerations#Multicolumn)

\starttext

\startitemize[a,horizontal,three]
\startitem $\int_0^2 1+2x\,dx$ \stopitem
\startitem $\int_0^{\ln 2} e^s\,ds$ \stopitem
\startitem $\int_0^{\ln 2} e^{2s}\,ds$ \stopitem
\startitem $\int_0^{\pi} \sin t\,dt$ \stopitem
\startitem $\int_0^{2\pi}\sin t\,dt$ \stopitem
\startitem $\int_0^1\frac{1}{1+x^2}\,dx$ \stopitem
\stopitemize

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] itemize columns transposed

2016-09-17 Thread Mikael P. Sundqvist
Hi!

I wonder if it is possible to automatically have the itemize in
columns and have the order changed (in effect, the whole itemization
should be transposed) so that one gets

a  b  c
d  e  f

instead of

a  c  e
b  d  f

With automatically, I mean that one could use some keyword instead of adding a
\stopitemize\startitemize[continued] in the middle (found here:
http://wiki.contextgarden.net/Enumerations#Multicolumn)

See the example below, resulting pdf is attached.

/Mikael

\starttext

\startitemize[a,columns,three,intro][stopper=,right=)]
\item $\int_0^2 1+2x\,dx$
\item $\int_0^{\ln 2} e^s\,ds$
\item $\int_0^{\ln 2} e^{2s}\,ds$
\item $\int_0^{\pi} \sin t\,dt$
\item $\int_0^{2\pi}\sin t\,dt$
\item $\int_0^1\frac{1}{1+x^2}\,dx$
\stopitemize

\input tufte

\startitemize[a,columns,three,intro][stopper=,right=)]
\item $\int_0^2 1+2x\,dx$
\item $\int_0^{\ln 2} e^s\,ds$
\item $\int_0^{\ln 2} e^{2s}\,ds$
\stopitemize
\startitemize[continue]
\item $\int_0^{\pi} \sin t\,dt$
\item $\int_0^{2\pi}\sin t\,dt$
\item $\int_0^1\frac{1}{1+x^2}\,dx$
\stopitemize

\stoptext


ctx-listexample13.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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
The list spacing parameters (fit) is not right for numbered
itemizations when using the dejavu fonts.

MWE:

\setupbodyfont [dejavu,10pt]
\starttext
\startitemize [n]
\dorecurse{10}{\startitem X\stopitem}
\stoptext


(switching to 100 items is even worse!)

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 11:14 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 The list spacing parameters (fit) is not right for numbered
 itemizations when using the dejavu fonts.
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)

You missed the \stopitemize after the last item.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 11:46:06 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

  MWE:
  
  \setupbodyfont [dejavu,10pt]
  \starttext
  \startitemize [n]
  \dorecurse{10}{\startitem X\stopitem}
  \stoptext
  
  (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.

Just in the email (and so-called MWE)
but not in the test (and my applications).

Adding the missing \stopitemize in the MWE above
does not change the problem.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 11:46:06 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.
 
 Just in the email (and so-called MWE)
 but not in the test (and my applications).
 
 Adding the missing \stopitemize in the MWE above
 does not change the problem.

When I add \stopitemize to your example and use the fit option which is missing 
in your example
there are no problems in the output but you have to use the distance key to put 
a space between
the last item number and the content.

\setupbodyfont [dejavu,10pt]
\starttext
\startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
\dorecurse{100}{\startitem X\stopitem}
\stopitemize
\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 12:39:08 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
  Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
  
  On Tue, 7 Apr 2015 11:46:06 +0200
  Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
  
  MWE:
  
  \setupbodyfont [dejavu,10pt]
  \starttext
  \startitemize [n]
  \dorecurse{10}{\startitem X\stopitem}
  \stoptext
  
  (switching to 100 items is even worse!)  
  
  You missed the \stopitemize after the last item.
  
  Just in the email (and so-called MWE)
  but not in the test (and my applications).
  
  Adding the missing \stopitemize in the MWE above
  does not change the problem.
 
 When I add \stopitemize to your example and use the fit option which
 is missing in your example there are no problems in the output but
 you have to use the distance key to put a space between the last item
 number and the content.
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
 \dorecurse{100}{\startitem X\stopitem}
 \stopitemize
 \stoptext

fit is without effect,
so it is distance= that does not have a reasonable default.

Other fonts are not so bad, but dejavu (which is a bit larger)
looks really bad, by default.

Ala
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Wolfgang Schuster

 Am 07.04.2015 um 13:31 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 12:39:08 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com 
 mailto:schuster.wolfg...@gmail.com wrote:
 
 
 Am 07.04.2015 um 12:29 schrieb Alan BRASLAU alan.bras...@cea.fr:
 
 On Tue, 7 Apr 2015 11:46:06 +0200
 Wolfgang Schuster schuster.wolfg...@gmail.com wrote:
 
 MWE:
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n]
 \dorecurse{10}{\startitem X\stopitem}
 \stoptext
 
 (switching to 100 items is even worse!)  
 
 You missed the \stopitemize after the last item.
 
 Just in the email (and so-called MWE)
 but not in the test (and my applications).
 
 Adding the missing \stopitemize in the MWE above
 does not change the problem.
 
 When I add \stopitemize to your example and use the fit option which
 is missing in your example there are no problems in the output but
 you have to use the distance key to put a space between the last item
 number and the content.
 
 \setupbodyfont [dejavu,10pt]
 \starttext
 \startitemize [n,fit]%[itemalign=flushright,distance=\spaceamount]
 \dorecurse{100}{\startitem X\stopitem}
 \stopitemize
 \stoptext
 
 fit is without effect,
 so it is distance= that does not have a reasonable default.
 
 Other fonts are not so bad, but dejavu (which is a bit larger)
 looks really bad, by default.

Can you show your output from the example and tell what you expect from the fit 
option.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize[n] and dejavu fonts

2015-04-07 Thread Alan BRASLAU
On Tue, 7 Apr 2015 13:37:54 +0200
Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 Can you show your output from the example and tell what you expect
 from the fit option.

For example:

\setupbodyfont [scola,10pt]
\startitemize [n]
...

yields a reasonable output:
10. X

\setupbodyfont [dejavu,10pt]
\startitemize [n]
...

the output is ugly:
10.X
where the period and the X almost touch.

AND if one goes to 100 items, then result is
100.X
where the 0 and the X overlap
(the period is in the right foot of the X).

Using the scola font, the result with 100 is similar to the result with
10 in dejavu, so going to a fourth digit would be just as horrible as
with three digits and dejavu.

\setupbodyfont [whatever]
\startitemize[n,fit]
yields
10.X
with no spacing in all fonts, and this is pretty ugly unless one also
specifies [distance=\spaceamount]. Perhaps this correct (with
distance=, by default) as fit should then fit with no spacing.

HOWEVER,
\startitemize [n]
with no other options should simply work correctly out of the box for
all fonts and not give such horrible results.

I understand now: the default is a fixed offset to the list body that
works OK for small itemizations (i.e. one digit) with most fonts and
more-or-less well with two digits, but not with dejavu. Choosing the
option fit and setting a distance gives a reasonable result, so we
cannot call this a bug, but the result by default is rather surprising.
Notice that \startitemize[R] works poorly with even less than 10 items.

May I suggest that the default spacing (i.e. the list setup) that is
used be enlarged a little bit, as two digit numbered itemizations are
not rare and dejavu is such a useful font. Indeed, this is obtained
with the option broad. Indeed, in the manual, broad (and
2*broad) is used in such examples. Perhaps the fixed spacing that is
presently tuned works well with simple symbol item lists and passably
with single digit numbered lists, which probably explains why this is
the default. Also, I suppose that there is some aesthetic value in
having item lists take a fixed, uniform distance by default in a
document which is why fit is not a default option. Thus, a design
choice (or compromise).

Moral: read the manual!

Alan
-- 
Alan Braslau
CEA DSM-IRAMIS-SPEC
CNRS URA 2464
Orme des Merisiers
91191 Gif-sur-Yvette cedex FRANCE
tel: +33 1 69 08 73 15
fax: +33 1 69 08 87 86
mailto:alan.bras...@cea.fr
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] Itemize and framed

2014-08-29 Thread Fabrice Couvreur
Hi,
Is this the best way to insert a list in a frame ?
thank you,
Fabrice

\setupcolors[state=start]
\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
\starttext
\framed[corner=06,frame=on,framecolor=H1prime,location=middle,background=color,backgroundcolor=H4]{%
\rbox{
\startitemize[1]
 \item planter le piquet 1 à côté de l'arbre 1 ;
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les
piquets 3 et 4 ;
\item se placer de manière à être aligné avec l'arbre 2 et le piquet 3
d'une part ;

 et avec l'arbre 1 et le piquet 4 d'autre part.
\item mesurer sa distance à l'arbre 1 ;
\item rechercher, dans le tableau, la distance correspondante entre les
deux arbres.
\stopitemize}}
\stoptext
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize and framed

2014-08-29 Thread Otared Kavian
Hi,

It looks fine, but you can as well use \startframedtext, as in:

\starttext
\definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
\definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
\starttext
\startframedtext[
width=\textwidth,
corner=06,
frame=on,
framecolor=H1prime,
location=middle,
background=color,
backgroundcolor=H4]

\startitemize[1] 
 \item planter le piquet 1 à côté de l'arbre 1 ; 
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
piquets 3 et 4 ;
\item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
part ;

 et avec l'arbre 1 et le piquet 4 d'autre part.
\item mesurer sa distance à l'arbre 1 ; 
\item rechercher, dans le tableau, la distance correspondante entre les deux 
arbres. 
\stopitemize

\stopframedtext

\stoptext

Best regards: OK


On 29 Aug 2014, at 15:19, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote:

 
 Hi, 
 Is this the best way to insert a list in a frame ? 
 thank you,
 Fabrice
 
 \setupcolors[state=start]
 \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
 \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
 \starttext
 \framed[corner=06,frame=on,framecolor=H1prime,location=middle,background=color,backgroundcolor=H4]{%
 \rbox{
 \startitemize[1] 
  \item planter le piquet 1 à côté de l'arbre 1 ; 
  \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
 piquets 3 et 4 ;
 \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
 part ;
 
  et avec l'arbre 1 et le piquet 4 d'autre part.
 \item mesurer sa distance à l'arbre 1 ; 
 \item rechercher, dans le tableau, la distance correspondante entre les deux 
 arbres. 
 \stopitemize}}
 \stoptext
 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Wolfgang Schuster

Am 29.08.2014 um 15:55 schrieb Otared Kavian ota...@gmail.com:

 Hi,
 
 It looks fine, but you can as well use \startframedtext, as in:
 
 \starttext
 \definecolor[H1prime][c=0.50, m=0.00, y=1.00, k=0.00]
 \definecolor[H4][c=0.07, m=0.00, y=0.15, k=0.00]
 \starttext
 \startframedtext[
   width=\textwidth,
   corner=06,
   frame=on,
   framecolor=H1prime,
   location=middle,
   background=color,
   backgroundcolor=H4]
 
 \startitemize[1] 
 \item planter le piquet 1 à côté de l'arbre 1 ; 
 \item aligner le piquet 1, le piquet 2 et les deux arbres puis fixer les 
 piquets 3 et 4 ;
 \item se placer de manière à être aligné avec l'arbre 2 et le piquet 3 d'une 
 part ;
 
 et avec l'arbre 1 et le piquet 4 d'autre part.
 \item mesurer sa distance à l'arbre 1 ; 
 \item rechercher, dans le tableau, la distance correspondante entre les deux 
 arbres. 
 \stopitemize
 
 \stopframedtext
 
 \stoptext

In this case framedtext is the better choice but it can be done with framed as 
well
but one has to set values for align and disable the strut, e.g.

\framed
  [align=right,strut=no]
  {\startitemize
   …
   \stopitemize}

and when you use MkIV replace \framed with \startframed, i.e.

\startframed[align=right,strut=no]
  \startitemize
  …
  \stopitemize
\stopframed

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Fabrice

Thank you for your answers, I continue to learn.
However, the solution should Otared me better because the numbering is 
less near the edge of the frame.

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize and framed

2014-08-29 Thread Otared Kavian
Hi Fabrice,

Actually with both solutions you can control the distance of the framed 
material to the frame by the key 
« offset=SomeMeasure »
For instance you can say:

\startframedtext[
width=\textwidth,
offset=.5em,
corner=06,
frame=on,
framecolor=H1prime,
location=middle,
background=color,
backgroundcolor=H4]

and changing .5em to another value you cans choose what you find better.

Best regards: OK

On 29 Aug 2014, at 19:30, Fabrice couvreur.fabr...@wanadoo.fr wrote:

 Thank you for your answers, I continue to learn.
 However, the solution should Otared me better because the numbering is less 
 near the edge of the frame.
 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda
On 20 Aug 2014, at 01:22, Aditya Mahajan adit...@umich.edu wrote:

 
 
 On Wed, 20 Aug 2014, Gerben Wierda wrote:
 
 On 19 Aug 2014, at 16:33, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I’d like to get \startitemize\stopitemize to indent the first level items 
 already with the equal amount of indentation as the start of a paragraph 
 (which is indented). Is there a way to do that?
 
 \setupindenting[yes,medium]
 
 \starttext
 
 \input knuth
 
 \startitemize[margin=standard]
 
 Does the margin thing, but incapacitates packed and joinedup, which are 
 ignored if the margin statement is there. So, I get indented items, but at 
 the price of losing joinedup and packed.
 
 \setupindenting[yes,medium]
 
 \starttext
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 \startitemize[joinedup,packed]
 \item Foo bar
 \item Foo bar
 \stopitemize
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 
 Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
 \startitemize[joinedup,packed,margin=standard]
 
 You need to separate keywords with assignments:
 
 \startitemize[joinedup, packed][margin=standard]

Thanks. I used

\setupitemize[each][margin=standard]

and this works. However, I've noticed that the normal pararaph indent is just a 
little bit more than the itemize margin. The bullets of the list are not 
aligned perfectly with the indented line. They are indented slightly less. 
Anything I can do about that?

G


 
 Aditya___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:

 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is just 
 a little bit more than the itemize margin. The bullets of the list are not 
 aligned perfectly with the indented line. They are indented slightly less. 
 Anything I can do about that?

Are you sure?

\setupindenting[yes,medium]

\definelayer[check][width=\paperwidth,height=\paperheight]

\setlayer[check][x=\dimexpr\backspace+1.5em\relax]{\blackrule[width=\linewidth,height=\paperheight]}

\setupbackgrounds[page][background=check]

\starttext

\input knuth

\startitemize[margin=standard]
\item \input ward
\stopitemize

\input tufte

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list are 
 not aligned perfectly with the indented line. They are indented slightly 
 less. Anything I can do about that?
 
 Are you sure?

Yes:

https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png

Your example works out fine.

G

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:

 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list are 
 not aligned perfectly with the indented line. They are indented slightly 
 less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png

Make a *working* minimal example.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.

Having that part in a smaller bodyfont is what triggers it:

\starttext
\setupbodyfont[12pt]

\setupindenting[small]
\indenting[yes]
\setupitemize[each][margin=standard]

\start
\switchtobodyfont[8pt]

Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar.
(PSA) becomes the Project Architecture (PA). As of that moment:
\startitemize[joinedup,packed]
\item Foo
\item Foo
\item Foo
\item Foo
\stopitemize

Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.
Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo
foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.
Bar foo foo bar. Bar foo foo bar. Bar foo foo bar. Bar foo foo bar.

\stop
\stoptext___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 17:53 schrieb Gerben Wierda gerben.wie...@rna.nl:

 
 On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.
 
 Having that part in a smaller bodyfont is what triggers it:
 
 \starttext
 \setupbodyfont[12pt]
 
 \setupindenting[small]
 \indenting[yes]

Don’t use \indenting, it’s a old command with the same meaning as 
\setupindenting.

 \setupitemize[each][margin=standard]

You ned absolute values for indentation and margin, e.g.

\setupindenting[yes,5mm]
\setupitemize[each][margin=5mm]

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Gerben Wierda

On 20 Aug 2014, at 18:01, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 20.08.2014 um 17:53 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:34, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 17:32 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 
 On 20 Aug 2014, at 17:23, Wolfgang Schuster schuster.wolfg...@gmail.com 
 wrote:
 
 
 Am 20.08.2014 um 16:07 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 Thanks. I used
 
 \setupitemize[each][margin=standard]
 
 and this works. However, I've noticed that the normal pararaph indent is 
 just a little bit more than the itemize margin. The bullets of the list 
 are not aligned perfectly with the indented line. They are indented 
 slightly less. Anything I can do about that?
 
 Are you sure?
 
 Yes:
 
 https://dl.dropboxusercontent.com/u/59305058/Screen%20Shot%202014-08-20%20at%2020%20August%2017.30.37.png
 
 Make a *working* minimal example.
 
 Having that part in a smaller bodyfont is what triggers it:
 
 \starttext
 \setupbodyfont[12pt]
 
 \setupindenting[small]
 \indenting[yes]
 
 Don’t use \indenting, it’s a old command with the same meaning as 
 \setupindenting.
 
 \setupitemize[each][margin=standard]
 
 You ned absolute values for indentation and margin, e.g.
 
 \setupindenting[yes,5mm]
 \setupitemize[each][margin=5mm]

Works ok at first level. Second level doesn't exactly align. But there is some 
startstopnarrower in play too. I'l try to create a minimal example.

 
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-20 Thread Wolfgang Schuster

Am 20.08.2014 um 19:01 schrieb Gerben Wierda gerben.wie...@rna.nl:

 Works ok at first level. Second level doesn't exactly align. But there is 
 some startstopnarrower in play too. I'l try to create a minimal example.

The narrower environment does also use font dependent values for the left and 
right margins.

A good method to set a global value for all environments is to set the 
dimension with the
\definemeasure command and access it with the \measure command.

% engine=pdftex

\definemeasure[myindent][12pt]

\setupindenting[yes,\measure{myindent}]

\setupnarrower
  [  left=\measure{myindent},
right=\measure{myindent},
   middle=\measure{myindent}]

\setupitemize[each][margin=\measure{myindent}]%,width=\measure{myindent}]

\starttext

\input knuth

\startitemize
\item \input ward
\stopitemize

\startnarrower
\input zapf
\stopnarrower

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] itemize: how to get the first level items indented?

2014-08-19 Thread Gerben Wierda
I’d like to get \startitemize\stopitemize to indent the first level items 
already with the equal amount of indentation as the start of a paragraph (which 
is indented). Is there a way to do that?

mkii

G
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-19 Thread Wolfgang Schuster

Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:

 I’d like to get \startitemize\stopitemize to indent the first level items 
 already with the equal amount of indentation as the start of a paragraph 
 (which is indented). Is there a way to do that?

\setupindenting[yes,medium]

\starttext

\input knuth

\startitemize[margin=standard]
\item \input ward
\stopitemize

\input tufte

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-19 Thread Gerben Wierda
On 19 Aug 2014, at 16:33, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:

 
 Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:
 
 I’d like to get \startitemize\stopitemize to indent the first level items 
 already with the equal amount of indentation as the start of a paragraph 
 (which is indented). Is there a way to do that?
 
 \setupindenting[yes,medium]
 
 \starttext
 
 \input knuth
 
 \startitemize[margin=standard]

Does the margin thing, but incapacitates packed and joinedup, which are ignored 
if the margin statement is there. So, I get indented items, but at the price of 
losing joinedup and packed.

\setupindenting[yes,medium]

\starttext
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. 
\startitemize[joinedup,packed]
\item Foo bar
\item Foo bar
\stopitemize
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. 

Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. 
\startitemize[joinedup,packed,margin=standard]
\item Foo bar
\item Foo bar
\stopitemize
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo. 
\stoptext


G

 \item \input ward
 \stopitemize
 
 \input tufte
 
 \stoptext
 
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize: how to get the first level items indented?

2014-08-19 Thread Aditya Mahajan



On Wed, 20 Aug 2014, Gerben Wierda wrote:


On 19 Aug 2014, at 16:33, Wolfgang Schuster schuster.wolfg...@gmail.com wrote:



Am 19.08.2014 um 16:27 schrieb Gerben Wierda gerben.wie...@rna.nl:


I’d like to get \startitemize\stopitemize to indent the first level items 
already with the equal amount of indentation as the start of a paragraph (which 
is indented). Is there a way to do that?


\setupindenting[yes,medium]

\starttext

\input knuth

\startitemize[margin=standard]


Does the margin thing, but incapacitates packed and joinedup, which are ignored 
if the margin statement is there. So, I get indented items, but at the price of 
losing joinedup and packed.

\setupindenting[yes,medium]

\starttext
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
\startitemize[joinedup,packed]
\item Foo bar
\item Foo bar
\stopitemize
Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.

Foo bar bar foo. Foo bar bar foo. Foo bar bar foo.
\startitemize[joinedup,packed,margin=standard]


You need to separate keywords with assignments:

\startitemize[joinedup, packed][margin=standard]

Aditya___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

[NTG-context] itemize

2013-03-04 Thread Meer, H. van der
How does one forces the item nubers to the right. The goal is have the units 
above each other and not above the tens:

 1   1
..not
 9   9
10   10

Could not find it in the command refs of the contextgarden.

Hans van der Meer



___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize

2013-03-04 Thread Marco Patzer
On 2013–03–04 Meer, H. van der wrote:

 How does one forces the item nubers to the right. The goal is have the units 
 above each other and not above the tens:

Here's an ugly solution using a box. Maybe there's a more clean
solution.

\setupitemgroup [itemize] [left=\simplealignedbox{1em}{flushright}]
\starttext
  \startitemize [n, packed, columns]
\dorecurse{32}{\startitem foo \stopitem}
  \stopitemize
\stoptext

Marco


signature.asc
Description: Digital signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize

2013-03-04 Thread Meer, H. van der
A lucky guess did me look into the code. Whereas I got no results with [align=] 
it turns out that [itemalign=flushright] does the trick. Spares you the ugly 
solution. Maybe someone more apt to do things in the contextgarden, will be so 
kind as put this there.

Hans van der Meer



On 4 mrt. 2013, at 14:19, Marco Patzer 
home...@lavabit.commailto:home...@lavabit.com wrote:

On 2013–03–04 Meer, H. van der wrote:

How does one forces the item nubers to the right. The goal is have the units 
above each other and not above the tens:

Here's an ugly solution using a box. Maybe there's a more clean
solution.

\setupitemgroup [itemize] [left=\simplealignedbox{1em}{flushright}]
\starttext
 \startitemize [n, packed, columns]
   \dorecurse{32}{\startitem foo \stopitem}
 \stopitemize
\stoptext

Marco
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nlmailto:ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize

2013-03-04 Thread Marco Patzer
On 2013–03–04 Meer, H. van der wrote:

 A lucky guess did me look into the code. Whereas I got no results
 with [align=] it turns out that [itemalign=flushright] does the
 trick. Spares you the ugly solution.

That's indeed much better :)

 Maybe someone more apt to do things in the contextgarden, will be
 so kind as put this there.

Done.

Marco


signature.asc
Description: Digital signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize behaviour

2012-07-05 Thread Wolfgang Schuster

Am 03.07.2012 um 21:43 schrieb Meer, H. van der:

 I do not understand the workings of the itemize.
 What I want is two nested itemlists. The outer one unpacked, the inner one 
 packed. In the inner one the itemlist should be joinedup with the text before 
 it.
 I do not get this working, see the examples. The inner list is separated from 
 the Intro to inner list. It looks like the joinedup in the second example 
 has no effect, because deleting it makes no difference. Switching the 
 joinedup over to the outer itemize in the third example pulls everything 
 together and destroys the unpacked of the first list.
 
 How to achieve the following?
 --
 - Intro to inner list
   o one inner list
   o two inner list
 
 - second outer item
 --

You need the “paragraph” option.

\starttext

\setupitemgroup[itemize][1][4,unpacked]
\setupitemgroup[itemize][2][5,packed,paragraph]

\startitemize
\startitem
Intro to inner list.
\startitemize
\startitem one inner list \stopitem
\startitem two inner list \stopitem
\stopitemize
\stopitem
\startitem
second outer item
\stopitem
\stopitemize

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize behaviour

2012-07-05 Thread Meer, H. van der
Thanks. Is the [joinedup] deprecated? Or has it another use?

Hans van der Meer



On 5 jul. 2012, at 20:16, Wolfgang Schuster wrote:

You need the “paragraph” option.

\starttext

\setupitemgroup[itemize][1][4,unpacked]
\setupitemgroup[itemize][2][5,packed,paragraph]

___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize behaviour

2012-07-05 Thread Wolfgang Schuster

Am 05.07.2012 um 21:47 schrieb Meer, H. van der:

 Thanks. Is the [joinedup] deprecated? Or has it another use?

The “joinedup” option works as intended, the problem in your example is that 
the inner itemgroup acts different for the first item.

When you use ”joinedup” context ignores the “before” value which is inserted 
before the first item but in the inner item group context uses the “inbetween” 
value of the previous/outer itemgroup and you have to use the “paragraph” 
keyword for the inner itemgroup to prevent this.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] itemize behaviour

2012-07-03 Thread Meer, H. van der
I do not understand the workings of the itemize.
What I want is two nested itemlists. The outer one unpacked, the inner one 
packed. In the inner one the itemlist should be joinedup with the text before 
it.
I do not get this working, see the examples. The inner list is separated from 
the Intro to inner list. It looks like the joinedup in the second example has 
no effect, because deleting it makes no difference. Switching the joinedup over 
to the outer itemize in the third example pulls everything together and 
destroys the unpacked of the first list.

How to achieve the following?
--
- Intro to inner list
  o one inner list
  o two inner list

- second outer item
--

Hans van der Meer

\starttext
\setupitemgroup[itemize][1][unpacked][symbol=4]
\setupitemgroup[itemize][2][unpacked][symbol=5]
\startitemize
\startitem
Intro to inner list.
\startitemize
\startitem one inner list \stopitem
\startitem two inner list \stopitem
\stopitemize
\stopitem
\startitem second outer item \stopitem
\stopitemize
\blank\thinrule\blank
\setupitemgroup[itemize][1][unpacked][symbol=4]
\setupitemgroup[itemize][2][packed,joinedup][symbol=5]
\startitemize
\startitem
Intro to inner list.
\startitemize
\startitem one inner list \stopitem
\startitem two inner list \stopitem
\stopitemize
\stopitem
\startitem second outer item \stopitem
\stopitemize
\blank\thinrule\blank
\setupitemgroup[itemize][1][unpacked,joinedup][symbol=4]
\setupitemgroup[itemize][2][packed][symbol=5]
\startitemize
\startitem
Intro to inner list.
\startitemize
\startitem one inner list \stopitem
\startitem two inner list \stopitem
\stopitemize
\stopitem
\startitem second outer item \stopitem
\stopitemize
\stoptext



itemize.pdf
Description: itemize.pdf
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-30 Thread Marcin Borkowski
Dnia 2012-06-30, o godz. 07:05:36
Otared Kavian ota...@gmail.com napisał(a):

 Hi,
 
 The mechanisms of columns in itemize (which I think is the same as
 startcolumns) and in simplecolumns are indeed different, as Hans
 indicated once. The issue you encountered is indeed a bug as you
 point out: once (a few months ago) I had an analogous problem and
 Wolfgang S. suggested me to use simplecolumns to avoid the strange
 page breaks.

Oh, now I remember: I found that thread when searching through the
archives!

Hans, are there any chances of fixing this?  (Not necessarily within
hours/days, of course, maybe months, but not years;)?)

Best,

-- 
Marcin Borkowski
http://mbork.pl
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-30 Thread Wolfgang Schuster

Am 29.06.2012 um 23:30 schrieb Marcin Borkowski:

 Hello,
 
 I encountered a weird problem with
 
 \startitemize[columns]
 
 Namely, sometimes ConTeXt (MkIV) puts a pagebreak before the
 itemization.  I tried to distill the problem to a minimal example,
 until now without success, but I'll post a ME if I'm able to reproduce
 a problem in a small file.
 
 Anybody encountered this, too?  Are there any solutions/workarounds
 known?


Use this setting for your chapter headings (adjust the test page/blank values 
to your needs).

\setuphead[chapter][page=no,sectionstopper=.,before={\testpage[6]\blank[big]}]

BTW: You can replace your numbercommand setting with sectionstopper.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Marcin Borkowski
Hello,

I encountered a weird problem with

\startitemize[columns]

Namely, sometimes ConTeXt (MkIV) puts a pagebreak before the
itemization.  I tried to distill the problem to a minimal example,
until now without success, but I'll post a ME if I'm able to reproduce
a problem in a small file.

Anybody encountered this, too?  Are there any solutions/workarounds
known?

Best,

-- 
Marcin Borkowski
http://mbork.pl
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Marcin Borkowski
Dnia 2012-06-29, o godz. 23:30:13
Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):

 Hello,
 
 I encountered a weird problem with
 
 \startitemize[columns]
 
 Namely, sometimes ConTeXt (MkIV) puts a pagebreak before the
 itemization.  I tried to distill the problem to a minimal example,
 until now without success, but I'll post a ME if I'm able to reproduce
 a problem in a small file.

OK, so I didn't succeed in isolating this problem.  I attach the
complete file (it's in Polish, sorry;)).  The problem appears at page 3
in the resulting pdf (line 141 of the source file).

 Anybody encountered this, too?  Are there any solutions/workarounds
 known?

I naively tried putting \page[no] in various places around the
problematic line, but to no avail.  Also, while trying to isolate the
problem, for instance by removing things before the itemization, it
turned out that it's difficult to reproduce it: often, everything is
fine (at the beginning of the page as well as near the end).

Any ideas?

-- 
Marcin Borkowski
http://mbork.pl

% Ćwiczenia na Newtona o grach

\mainlanguage[pl]

\usetypescript[pagella]
\setupbodyfont[pagella]

\def\todo#1{{\em \kap{do dopisania}: #1}}

\enablemode[nauczyciel]

\def\startteacher{\grabbufferdata[teacher][startteacher][stopteacher]}
\doifmodeelse{nauczyciel}{\def\stopteacher{\getbuffer[teacher]}}{\def\stopteacher{}}

\def\startanswer{\grabbufferdata[answer][startanswer][stopanswer]}
\doifmodeelse{nauczyciel}{\def\stopanswer{\blank[small]{\sl Odpowiedź.} \getbuffer[answer]}}{\def\stopanswer{}}

\def\putdotafter#1{#1.}
\setuphead[subsubject][style=bold,after={},alternative=text,distance=0.25em,textcommand=\putdotafter]
\setuphead[section][numbercommand=\putdotafter]
\setuphead[chapter][numbercommand=\putdotafter,page=no]

\defineitemgroup[exercises]
\setupitemgroup[exercises][1][n][before={},inbetween={\blank[medium]}]

\def\ppauza{\unskip\kern.2em--\hskip.2em\ignorespaces}

\starttext

\startalignment[middle]
  \tfb Gry (materiały na ćwiczenia w~czwartek)
  \par\blank[big]
\stopalignment

\completecontent


\startchapter[title={Gry macierzowe}]

\startexercises
  \startitem
Jakie są strategie optymalne dla obu graczy w~grze o~poniższej
macierzy?
\startformula
  \startmathmatrix[n=2,left={\left(\,},right={\,\right)},align=right]
\NC 1 \NC 2 \NR
\NC 3 \NC 4 \NR
  \stopmathmatrix
\stopformula
\startanswer
  Pierwszy gracz, wybierając drugi wiersz, w~każdym wypadku
  wygrywa więcej, niż gdyby wybrał pierwszy; powinien więc wybrać
  drugi wiersz (dominujący).  Drugi gracz, wybierając pierwszą
  kolumnę, w~każdym przypadku traci mniej, niż gdyby wybrał drugą;
  powinien więc wybrać pierwszą (dominującą) kolumnę.
\stopanswer
  \stopitem
  \startitem
Rozważmy grę z~następującą macierzą:
\startformula
  \startmathmatrix[n=3,left={\left(\,},right={\,\right)},align=right]
\NC 4 \NC 1 \NC -1 \NR
\NC 0 \NC 1 \NC  6 \NR
\NC 3 \NC 2 \NC 5  \NR
  \stopmathmatrix
\stopformula
Jaka jest optymalna strategia dla każdego z~graczy?
\startanswer
  Żaden wiersz ani kolumna nie są dominujące, ale ponieważ
  \math{2} w~trzecim rzędzie i~drugiej kolumnie jest {\em
najmniejszą} wartością w~swoim rzędzie i~{\em największą}
  wartością w~swojej kolumnie, optymalną strategią dla I~gracza
  jest trzecia, a~dla II~gracza druga.
\stopanswer
  \stopitem
  \startitem
Gra {\em parzyste czy nieparzyste} polega na tym, że dwóch graczy
wybiera (równocześnie) liczbę \math{1} lub~\math{2}.  Jeśli suma
wybranych liczb jest nieparzysta, wygrywa gracz~I; jeśli jest
parzysta, wygrywa gracz~II.  Gracz, który przegrał, oddaje
drugiemu kwotę równą sumie wybranych liczb.  Narysuj macierz tej
gry.  Jaka jest optymalna strategia każdego z~graczy?  Czy gra
jest sprawiedliwa?
\startanswer
  Macierz:
  \startformula
\startmathmatrix[n=2,left={\left(\,},right={\,\right)},align=right]
\NC -2 \NC  3 \NR
\NC  3 \NC -4 \NR
\stopmathmatrix
  \stopformula
  Powyższa macierz nie ma strategii dominujących ani punktów
  siodłowych, trzeba więc zastosować inną metodę.

  Załóżmy, że gracz~I wybiera~\math{1}
  z~prawdopodobieństwem~\math{p} i~\math{2}
  z~prawdopodobieństwem~\math{1-p}.  Wyznaczymy~\math{p} tak, żeby
  gracz~I wygrywał przeciętnie {\em tyle samo}, obojętnie, co
  zrobi gracz~II.

  Jeśli gracz~II wybierze~\math{1}, przeciętna wygrana~I wynosi
  \math{-2p+3(1-p)}.  Jeśli II wybierze~\math{2}, przeciętna
  wygrana~I wynosi~\math{3p-4(1-p)}.  Aby wartości te były równe,
  musi być \math{p=\frac{7}{12}}.  Zatem gracz~I powinien
  wybrać~\math{1} z~prawdopodobieństwem \math{\frac{7}{12}},
  a~\math{2} z~prawdopodobieństwem~\math{\frac{5}{12}}.  Jego
  przeciętna wygrana 

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Otared Kavian
Hi Marcin,

I tested your file and noticed the issue you are reporting. In your case you 
can use \startsimplecolumns to get rid of the page break (however there is a 
small problem with the distance between the text and the items): 

\startchapter[title={Nim-suma liczb całkowitych nieujemnych}]

\startexercises
  \startitem
Przelicz następujące liczby w~zapisie dwójkowym na system
dziesiątkowy:

\startsimplecolumns
\startitemize[r][left=(,right=),stopper={}]
  \startitem
\math{(101)_2}
  \stopitem
  \startitem
\math{(101011)_2}
  \stopitem
\stopitemize
\stopsimplecolumns
  \stopitem
  \startitem
Przelicz następujące liczby na system dwójkowy:

\startsimplecolumns
\startitemize[r][left=(,right=),stopper={}]
  \startitem
\math{10}
  \stopitem
  \startitem
\math{77}
  \stopitem
\stopitemize
\stopsimplecolumns
  \stopitem
\stopexercises
\stopchapter

Best regards: OK

On 30 juin 2012, at 00:16, Marcin Borkowski wrote:

 Dnia 2012-06-29, o godz. 23:30:13
 Marcin Borkowski mb...@wmi.amu.edu.pl napisał(a):
 
 Hello,
 
 I encountered a weird problem with
 
 \startitemize[columns]
 
 Namely, sometimes ConTeXt (MkIV) puts a pagebreak before the
 itemization.  I tried to distill the problem to a minimal example,
 until now without success, but I'll post a ME if I'm able to reproduce
 a problem in a small file.
 
 OK, so I didn't succeed in isolating this problem.  I attach the
 complete file (it's in Polish, sorry;)).  The problem appears at page 3
 in the resulting pdf (line 141 of the source file).
 
 Anybody encountered this, too?  Are there any solutions/workarounds
 known?
 
 I naively tried putting \page[no] in various places around the
 problematic line, but to no avail.  Also, while trying to isolate the
 problem, for instance by removing things before the itemization, it
 turned out that it's difficult to reproduce it: often, everything is
 fine (at the beginning of the page as well as near the end).
 
 Any ideas?
 
 -- 
 Marcin Borkowski
 http://mbork.pl
 itemize-columns-test.tex___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Marcin Borkowski
Dnia 2012-06-30, o godz. 05:05:31
Otared Kavian ota...@gmail.com napisał(a):

 Hi Marcin,
 
 I tested your file and noticed the issue you are reporting. In your
 case you can use \startsimplecolumns to get rid of the page break
 (however there is a small problem with the distance between the text
 and the items): 

I knew that - but as you probably have noticed, the columns done by
\startsimplecolumns and by \startitemize[columns] do not align
correctly.  So this is rather a workaround than a solution.  (Well,
thanks anyway!)

Currently I changed the file a bit and the problem disappeared,
but still I'd like to know what's going on, since this tends to happen
from time to time.  (And this bug - because I guess it's a bug indeed -
has been around for quite a few years: I noticed it for the first time
something like 3 years ago...)

Best,

-- 
Marcin Borkowski
http://mbork.pl
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] itemize in two columns and pagebreaks

2012-06-29 Thread Otared Kavian
Hi,

The mechanisms of columns in itemize (which I think is the same as 
startcolumns) and in simplecolumns are indeed different, as Hans indicated once.
The issue you encountered is indeed a bug as you point out: once (a few months 
ago) I had an analogous problem and Wolfgang S. suggested me to use 
simplecolumns to avoid the strange page breaks.

Best regards: OK

On 30 juin 2012, at 06:53, Marcin Borkowski wrote:

 Dnia 2012-06-30, o godz. 05:05:31
 Otared Kavian ota...@gmail.com napisał(a):
 
 Hi Marcin,
 
 I tested your file and noticed the issue you are reporting. In your
 case you can use \startsimplecolumns to get rid of the page break
 (however there is a small problem with the distance between the text
 and the items): 
 
 I knew that - but as you probably have noticed, the columns done by
 \startsimplecolumns and by \startitemize[columns] do not align
 correctly.  So this is rather a workaround than a solution.  (Well,
 thanks anyway!)
 
 Currently I changed the file a bit and the problem disappeared,
 but still I'd like to know what's going on, since this tends to happen
 from time to time.  (And this bug - because I guess it's a bug indeed -
 has been around for quite a few years: I noticed it for the first time
 something like 3 years ago...)
 
 Best,
 
 -- 
 Marcin Borkowski
 http://mbork.pl
 ___
 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://tex.aanhet.net
 archive  : http://foundry.supelec.fr/projects/contextrev/
 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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-22 Thread Mojca Miklavec
On Thu, Mar 22, 2012 at 03:01, Kip Warner wrote:
 On Tue, 2012-03-20 at 18:22 -0400, Aditya Mahajan wrote:
 Anything else will leave to undersirable behaviour (or segfaults :) ) As I
 had said in one of my earlier emails, this is the case for ALL context
 macros that take both options and assignments.

 Fair enough. I got it to work now with,

 \startitemize[R,2*broad][start=11,before=\startlinecorrection,after=
 \stoplinecorrection]

 My only concern here is that, for something as incredibly fundamental
 and recurring in the world of ConTeXt, the caveats and distinctions to
 be made between options and assignments, that can and have taken down
 entire operating systems, or cause hour after hour of no end of vague
 syntactical errors, or even successful compilations with the wrong
 effects, shouldn't that probably have been mentioned at least once, even
 if only in passing, somewhere within the 369 page user manual? The word
 assignment I couldn't locate once.

- The fact that assignments and simple options have to be separated is
not a limitation of TeX, but the way how ConTeXt is programmed. Hans
uses a single command that takes all options inside brackets at once
that defines (results in) something similar to (syntax is not exact
and is probably completely different in MKIV) \@@itmstart - 11,
\@@itmbefore - \startlinecorrection, etc.

- Maybe it could be more explicit, but if you ever take a look at
documentation, for example
http://wiki.contextgarden.net/Command/setupitemgroup
you will notice that some brackets are depicted with [...,...] and
others with [...,...=...,...]

- The fact that luatex crashes is simply a bug that should be fixed,
so if you didn't do it already, please add a ticket to the tracker. It
would help a lot if somebody could come up with plain LuaTeX example
that does approximately the same since it might happen that until the
bug gets fixed, Hans might reimplement some functionality and then
LuaTeX won't crash on the same input any more. Lots and lots of bugs
in LuaTeX have been fixed in past, but most of them happened on
regular/proper/allowed input. Not many people use wrong ConTeXt syntax
on regular basis to be able to spot such problems. I also bet that if
somebody else would start writing his own TeX format comparable to
ConTeXt, quite some new bugs might have surfaced that one would never
stumble upon during regular use.

Mojca
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-22 Thread Hans Hagen

On 22-3-2012 11:38, Mojca Miklavec wrote:


- The fact that assignments and simple options have to be separated is
not a limitation of TeX, but the way how ConTeXt is programmed. Hans
uses a single command that takes all options inside brackets at once
that defines (results in) something similar to (syntax is not exact
and is probably completely different in MKIV) \@@itmstart -  11,
\@@itmbefore -  \startlinecorrection, etc.


fyi:

In mkiv the principle is the same but it's a bit more more dynamic:

\namespaceinstance:key

with namespace being efficiently shortcut deep down in context. The new 
fashion is then \namespaceparameter{key} given that 
\currentnamespace == instance is set. This is the new commandhandler 
approach that we use in overhauled core code as well as in Wolfgangs and 
Adityas modules. The dynamic approach is somewhat slower but it's 
compensated by way less hash entries and other speedups in the overhaul.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-22 Thread Hans Hagen

On 22-3-2012 11:38, Mojca Miklavec wrote:


- The fact that assignments and simple options have to be separated is
not a limitation of TeX, but the way how ConTeXt is programmed. Hans
uses a single command that takes all options inside brackets at once
that defines (results in) something similar to (syntax is not exact
and is probably completely different in MKIV) \@@itmstart -  11,
\@@itmbefore -  \startlinecorrection, etc.


fyi:

In mkiv the principle is the same but it's a bit more more dynamic:

\namespaceinstance:key

with namespace being efficiently shortcut deep down in context. The new 
fashion is then \namespaceparameter{key} given that 
\currentnamespace == instance is set. This is the new commandhandler 
approach that we use in overhauled core code as well as in Wolfgangs and 
Adityas modules. The dynamic approach is somewhat slower but it's 
compensated by way less hash entries and other speedups in the overhaul.


Hans



-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-22 Thread Philipp Gesang
On 2012-03-22 11:38, Mojca Miklavec wrote:
 On Thu, Mar 22, 2012 at 03:01, Kip Warner wrote:
  On Tue, 2012-03-20 at 18:22 -0400, Aditya Mahajan wrote:
  Anything else will leave to undersirable behaviour (or segfaults :) ) As I
  had said in one of my earlier emails, this is the case for ALL context
  macros that take both options and assignments.
 
  Fair enough. I got it to work now with,
 
  \startitemize[R,2*broad][start=11,before=\startlinecorrection,after=
  \stoplinecorrection]
 
  My only concern here is that, for something as incredibly fundamental
  and recurring in the world of ConTeXt, the caveats and distinctions to
  be made between options and assignments, that can and have taken down
  entire operating systems, or cause hour after hour of no end of vague
  syntactical errors, or even successful compilations with the wrong
  effects, shouldn't that probably have been mentioned at least once, even
  if only in passing, somewhere within the 369 page user manual? The word
  assignment I couldn't locate once.

You’re right, it can cause confusion to people migrating from
Latex where package options, afair, allows mixed key-value/list
syntax (like e.g. Lua does as well). Random example from the
KOMA-Script manual:

  \documentclass[BCOR=12mm,DIV=calc,twoside]{scrartcl}
 ^  ^^^
 assignment  …  switch

Therefore the difference to Context deserves mention at least
somewhere in
http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt
which said migrators are most likely to consult first.

 - Maybe it could be more explicit, but if you ever take a look at
 documentation, for example
 http://wiki.contextgarden.net/Command/setupitemgroup
 you will notice that some brackets are depicted with [...,...] and
 others with [...,...=...,...]

And while we are handing out reading assignments (pun intended)
here are two wiki links that provide background information:
http://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists
http://wiki.contextgarden.net/System_Macros/Key_Value_Assignments
Perhaps it makes most sense to think of Comma Lists v. Assignment
Lists in terms of the two different argument parsers being used
to process them.

Regards
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpqFhjIkDqmZ.pgp
Description: PGP signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-22 Thread Philipp Gesang
On 2012-03-22 12:21, Philipp Gesang wrote:
 Therefore the difference to Context deserves mention at least
 somewhere in
 http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt
 which said migrators are most likely to consult first.

Fyi I just added a couple words to the article:
http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups
please expand as needed!

Regards
Philipp

-- 
()  ascii ribbon campaign - against html e-mail
/\  www.asciiribbon.org   - against proprietary attachments


pgpCe70K85Jxz.pgp
Description: PGP signature
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-22 Thread luigi scarso
On Thu, Mar 22, 2012 at 3:01 AM, Kip Warner k...@thevertigo.com wrote:

What's probably happening is eventually the system runs out of memory,
the swap gets depleted as well, and as a last act of desperation, the
kernel finally denies an allocation request to luatex which is pretty
rare. The latter probably then dereferences the null pointer and then it
blows.
Yes, can be, but LuaTex has it's memory manager that  should manage
this situation
just to avoid segmentation faults. I will see if I'm able to setup a vm .


 I'm not sure if this is a concept inherited from TeX, but if it is, it's
 probably not a good idea for the documentation and the user interface to
 assume that ConTeXt users have a background with TeX or derived.
Hm, ConTeXt is rooted in TeX and plain TeX.
It helps a lot to know TeX (and eTeX and pdfTeX).


-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-22 Thread luigi scarso
On Thu, Mar 22, 2012 at 1:05 PM, luigi scarso luigi.sca...@gmail.com wrote:
 On Thu, Mar 22, 2012 at 3:01 AM, Kip Warner k...@thevertigo.com wrote:

What's probably happening is eventually the system runs out of memory,
the swap gets depleted as well, and as a last act of desperation, the
kernel finally denies an allocation request to luatex which is pretty
rare. The latter probably then dereferences the null pointer and then it
blows.
 Yes, can be, but LuaTex has it's memory manager that  should manage
 this situation
 just to avoid segmentation faults. I will see if I'm able to setup a vm .
On a qemu vm Suse 11.3
Linux linux 2.6.34-12-desktop #1 SMP PREEMPT 2010-06-29 02:39:08 +0200
x86_64 x86_64 x86_64 GNU/Linux
at runlevel 3
after 7minuts I have

Runaway argument?
{before=\startlinecorrection ,after=\stoplinecorrection
}]{\dodoubleemptyYESone \ETC.
! TeX capacity exceeded, sorry [token memory size=226427358].

The vm  was slow but usable, the max load factor was 2.3 . No
segmentation fault.

-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 11:38 +0100, Mojca Miklavec wrote:
 - Maybe it could be more explicit, but if you ever take a look at
 documentation

Sorry, but which documentation should one obviously be looking at? The
half a dozen PDFs, the several versions of the wiki, the mailing list,
one of the actual hard copy books, the source code? Bits and pieces are
scattered everywhere with little rhyme or reason at times.

 , for example
 http://wiki.contextgarden.net/Command/setupitemgroup
 you will notice that some brackets are depicted with [...,...] and
 others with [...,...=...,...]

Yes, and where was the thinking behind that explained in the user
manual? It wasn't. Look for the word assignment.

 - The fact that luatex crashes is simply a bug that should be fixed,
 so if you didn't do it already, please add a ticket to the tracker. 

I cc'd the minimal example to the luatex mailing list, but I won't have
time right now to get more details for them on their tracker.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 12:21 +0100, Philipp Gesang wrote:
 You’re right, it can cause confusion to people migrating from
 Latex where package options, afair, allows mixed key-value/list
 syntax (like e.g. Lua does as well). Random example from the
 KOMA-Script manual:
 
   \documentclass[BCOR=12mm,DIV=calc,twoside]{scrartcl}
  ^  ^^^
  assignment  …  switch

Thanks Philipp. I'm finding that one of the big weaknesses of ConTeXt is
similar to a common criticism of the first one listed on Git here:

https://steveko.wordpress.com/2012/02/24/10-things-i-hate-about-git/

It requires users to know too much about how ConTeXt actually works
internally (e.g. its information model). Maybe this is necessary. Maybe
it isn't. I'm fairly new to typesetting and never came from a background
of decades of experience with TeX. But it seems to me like any
programming language, and ConTeXt is a kind of one for document
engineering, should have users focusing on creating beautiful books and
not on the language's information and processing model. 

Just my two cents.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-22 Thread Kip Warner
On Thu, 2012-03-22 at 12:58 +0100, Philipp Gesang wrote:
 Fyi I just added a couple words to the article:
 http://wiki.contextgarden.net/From_LaTeX_to_ConTeXt#Optional_Arguments_and_Setups
 please expand as needed!

Thank you.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-21 Thread Kip Warner
On Tue, 2012-03-20 at 18:22 -0400, Aditya Mahajan wrote:
 Anything else will leave to undersirable behaviour (or segfaults :) ) As I 
 had said in one of my earlier emails, this is the case for ALL context 
 macros that take both options and assignments.

Fair enough. I got it to work now with,

\startitemize[R,2*broad][start=11,before=\startlinecorrection,after=
\stoplinecorrection]

My only concern here is that, for something as incredibly fundamental
and recurring in the world of ConTeXt, the caveats and distinctions to
be made between options and assignments, that can and have taken down
entire operating systems, or cause hour after hour of no end of vague
syntactical errors, or even successful compilations with the wrong
effects, shouldn't that probably have been mentioned at least once, even
if only in passing, somewhere within the 369 page user manual? The word
assignment I couldn't locate once. 

I'm not sure if this is a concept inherited from TeX, but if it is, it's
probably not a good idea for the documentation and the user interface to
assume that ConTeXt users have a background with TeX or derived.

Thanks for the help,

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-20 Thread Hans Hagen

On 20-3-2012 01:43, Kip Warner wrote:

On Mon, 2012-03-19 at 22:49 +0100, Hans Hagen wrote:

On 19-3-2012 00:29, Kip Warner wrote:


I've cc'd the luatex user mailing list since this is probably, I
suppose, a luatex issue more than a ConTeXt one.


not that probable


Actually highly probably, since the seg fault is raised in luatex and
not context. Even if context is feeding it malformed input, luatex
should not ever crash.


it depends ... if some node list juggling happens in macros/lua code and 
something is done wrong there, one can run out of memory (for instance)


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-20 Thread Hans Hagen

On 20-3-2012 06:49, Kip Warner wrote:

On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:

TeX has it’s problem with certain errors, accept it.


It is not a problem with the program raising an error, it was how it
went about doing it. It should not have to take down the entire
operating system to indicate to the user that there was a non-intuitive
syntactical error in typesetting.


tex is a macro language and that has benefits but also drawbacks; as 
soon as you end up in unwanted expansion things can get nasty; anyhow, I get


Runaway argument?
{before=\startlinecorrection ,after= \stoplinecorrection 
}]{\dodoubleemptyYESone \ETC.

! TeX capacity exceeded, sorry [token memory size=90996078].

which is not really a crash of my operating system; there is not much I 
can do about this issue I fear.


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-20 Thread luigi scarso
On Tue, Mar 20, 2012 at 9:17 AM, Hans Hagen pra...@wxs.nl wrote:
 On 20-3-2012 06:49, Kip Warner wrote:

 On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:

 TeX has it’s problem with certain errors, accept it.


 It is not a problem with the program raising an error, it was how it
 went about doing it. It should not have to take down the entire
 operating system to indicate to the user that there was a non-intuitive
 syntactical error in typesetting.


 tex is a macro language and that has benefits but also drawbacks; as soon as
 you end up in unwanted expansion things can get nasty; anyhow, I get

 Runaway argument?
 {before=\startlinecorrection ,after= \stoplinecorrection
 }]{\dodoubleemptyYESone \ETC.
 ! TeX capacity exceeded, sorry [token memory size=90996078].

 which is not really a crash of my operating system; there is not much I can
 do about this issue I fear.

Even here
Runaway argument?
{before=\startlinecorrection ,after=\stoplinecorrection
}]{\dodoubleemptyYESone \ETC.
! TeX capacity exceeded, sorry [token memory size=188689465].

on Linux  32bit kernel (on a 64bit processor) -- is  the example on a
64bit kernel ?

-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 09:17 +0100, Hans Hagen wrote:
 which is not really a crash of my operating system; there is not much
 I 
 can do about this issue I fear. 

Totally up to you. I just wanted to bring it to your attention.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-20 Thread Kip Warner
On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
 You can’t have a assignment in both parameters because this would lead
 to the same problem as before,
 combine both settings in one argument and it works. 

I must not be doing it right because the item numbers are gone now and
replaced with hyphens:

\startitemize[R,2*broad,before=\startlinecorrection,after=
\stoplinecorrection,start=11]
\setupitemize[left=(, right=)]
\item foo.
\item foo.
\stopitemize

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-20 Thread Aditya Mahajan

On Tue, 20 Mar 2012, Kip Warner wrote:


On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:

You can’t have a assignment in both parameters because this would lead
to the same problem as before,
combine both settings in one argument and it works.


I must not be doing it right because the item numbers are gone now and
replaced with hyphens:

   \startitemize[R,2*broad,before=\startlinecorrection,after=
\stoplinecorrection,start=11]
   \setupitemize[left=(, right=)]
   \item foo.
   \item foo.
   \stopitemize


You are back to square one :)

You cannot mix options (R, 2*broad, anything without an = sign) with 
assignments (before=..., after=..., anything with an = sign). The format 
of \startitemize is


\startitemize[options][assignments]

or

\startitemize[options]

or

\startitemize[assignments]

Anything else will leave to undersirable behaviour (or segfaults :) ) As I 
had said in one of my earlier emails, this is the case for ALL context 
macros that take both options and assignments.


Aditya___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-19 Thread Wolfgang Schuster

Am 19.03.2012 um 00:29 schrieb Kip Warner:

 On Sun, 2012-03-18 at 16:25 -0700, Kip Warner wrote:
 On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
 Am 17.03.2012 um 10:21 schrieb luigi scarso:
 
 On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
 Hey list,
 
 Is there any way to hint to ConTeXt that the contents of a \startitemize
 \stopitemize pair should try to be all on the same page?
 plain old tex
 \vbox{%
 \startitemize
 \stopitemize%
 }
 
 Better:
 
 \startitemize[before=\startlinecorrection,after=\stoplinecorrection]
 
 \stopitemize
 
 You can control the space before/after the linecorrection environment with 
 the optional
 argument which accepts all values for \blank, e.g. 
 \startlinecorrection[2*line].
 
 Wolfgang
 
 Hey Wolfgang,
 
 The good news is that this is probably what I need. The bad news is
 luatex completely blows itself to pieces, allocating memory until the
 system crashes. 
 
 After much grinding of the machine, I managed to finally SIGSTOP and
 attach gdb to the naughty process.
 
 I've cc'd the luatex user mailing list since this is probably, I
 suppose, a luatex issue more than a ConTeXt one.
 
 I am using luatex beta-0.71.0-2012030522 (rev 4364) through context
 version 2012.03.13 21:26 on amd64 hardware running Ubuntu Maverick.
 
 One other thing that I should have made more clear, this only happens
 when I insert the aforementioned line correction commands.


Make a example because this works:

\starttext

%\dorecurse{2}{\input tufte\par}
\dorecurse{3}{\input tufte\par}

\startitemize[before={\startlinecorrection[blank]},after=\stoplinecorrection]
\dorecurse{4}{\startitem \input ward \stopitem}
\stopitemize

\dorecurse{3}{\input tufte\par}

\stoptext

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-19 Thread Hans Hagen

On 19-3-2012 00:29, Kip Warner wrote:


I've cc'd the luatex user mailing list since this is probably, I
suppose, a luatex issue more than a ConTeXt one.


not that probable


One other thing that I should have made more clear, this only happens
when I insert the aforementioned line correction commands.


test needed

Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-19 Thread Hans Hagen

On 19-3-2012 00:25, Kip Warner wrote:


The good news is that this is probably what I need. The bad news is
luatex completely blows itself to pieces, allocating memory until the
system crashes.


Packaging itemizes are on a todo list as I sometimes need it myself, but 
it has a low priority


Hans

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com
 | www.pragma-pod.nl
-
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-19 Thread Kip Warner
On Mon, 2012-03-19 at 22:49 +0100, Hans Hagen wrote:
 On 19-3-2012 00:29, Kip Warner wrote:
 
  I've cc'd the luatex user mailing list since this is probably, I
  suppose, a luatex issue more than a ConTeXt one.
 
 not that probable

Actually highly probably, since the seg fault is raised in luatex and
not context. Even if context is feeding it malformed input, luatex
should not ever crash.

 test needed

On it. My book is a couple hundred pages long, so hopefully I will be
able to come up with one.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-19 Thread Kip Warner
On Mon, 2012-03-19 at 22:50 +0100, Hans Hagen wrote:
 Packaging itemizes are on a todo list as I sometimes need it myself, but 
 it has a low priority

Ok, but I thought they were already packaged with context?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-19 Thread Kip Warner
On Mon, 2012-03-19 at 09:17 +0100, Wolfgang Schuster wrote:
 Make a example because this works:
 
 \starttext
 
 %\dorecurse{2}{\input tufte\par}
 \dorecurse{3}{\input tufte\par}
 
 \startitemize[before={\startlinecorrection[blank]},after=
 \stoplinecorrection]
 \dorecurse{4}{\startitem \input ward \stopitem}
 \stopitemize
 
 \dorecurse{3}{\input tufte\par}
 
 \stoptext 

I concur that your example works. Attached is an example of a minimal
that does not for me. ConTeXt does its thing, invoking luatex which
quickly gets nasty and starts spinning the clock - endlessly allocating
memory until a 4GB system is run into the ground.

This is what I see:

$ context minimal.tex 

resolvers   | resolving | loading configuration file
'selfautodir:/share/texmf/web2c/contextcnf.lua'
resolvers   | resolving | loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
mtx-context | run 1: luatex
--fmt=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en
 
--lua=/home/kip/.texmf-var/luatex-cache/context/e570cb3e0e3ab0118ca08dd148bbec7d/formats/cont-en.lui
 --backend=pdf ./minimal.tex \stoptext
This is LuaTeX, Version beta-0.71.0-2012030522 (rev 4364) 
 \write18 enabled.

resolversresolving  loading configuration file
'/usr/share/texmf/web2c/contextcnf.lua'
(minimal.tex

ConTeXt  ver: 2012.03.13 21:26 MKIV  fmt: 2012.3.14  int:
english/english

system   cont-new.mkiv loaded
(/usr/share/texmf/tex/context/base/cont-new.mkiv
system   beware: some patches loaded from cont-new.mkiv
)
system   minimal.top loaded
(minimal.top)
fontslatin modern fonts are not preloaded
languageslanguage en is active
{/usr/share/texmf/fonts/map/pdftex/context/mkiv-base.map}
fontspreloading latin modern fonts (second stage)
fontstypescripts  unknown: library 'loc'
{/usr/share/texmf/fonts/map/dvips/lm/lm-math.map}{/usr/share/texmf/fonts/map/dvips/lm/lm-rm.map}
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath7-Regular subfont 9
with name stmary10.afm at 458752 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath9-Regular subfont 9
with name stmary10.afm at 589824 is skipped, not found
fontsdefining  forced type afm of stmary10 not found
fontsdefining  font with asked name 'stmary10' is not
found using lookup 'file'
fontsvirtual math  loading font LMMath12-Regular subfont 9
with name stmary10.afm at 786432 is skipped, not found
fontsfallback modern rm 12pt is loaded

[***hangs at this point***]

I am using ConTeXt and LuaTeX packages off of Adam's PPA. These are
luatex version beta-0.71.0-2012030522 (rev 4364) under context version
2012.03.13 21:26 on amd64 hardware using Ubuntu Maverick.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
\starttext

\startitemize[before=\startlinecorrection,after=\stoplinecorrection][]
\item foo
\stopitemize

\stoptext



signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-19 Thread Wolfgang Schuster

Am 20.03.2012 um 02:04 schrieb Kip Warner:

 On Mon, 2012-03-19 at 09:17 +0100, Wolfgang Schuster wrote:
 Make a example because this works:
 
 \starttext
 
 %\dorecurse{2}{\input tufte\par}
 \dorecurse{3}{\input tufte\par}
 
 \startitemize[before={\startlinecorrection[blank]},after=
 \stoplinecorrection]
 \dorecurse{4}{\startitem \input ward \stopitem}
 \stopitemize
 
 \dorecurse{3}{\input tufte\par}
 
 \stoptext 
 
 I concur that your example works. Attached is an example of a minimal
 that does not for me. ConTeXt does its thing, invoking luatex which
 quickly gets nasty and starts spinning the clock - endlessly allocating
 memory until a 4GB system is run into the ground.


The problem is the empty second argument.

\startitemize[before=\startlinecorrection,after=\stoplinecorrection][]

When you pass two arguments with \startitemize the first argument os for 
keywords (e.g. packed or fit)
and second argument is for assignments (e.g. width=3cm) in your case context is 
looking for the keywords
“before=\startlinecorrection” and “after=\stoplinecorrection” which results in 
a loop.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-19 Thread Kip Warner
On Tue, 2012-03-20 at 06:22 +0100, Wolfgang Schuster wrote:
 The problem is the empty second argument.
 
 \startitemize[before=\startlinecorrection,after=\stoplinecorrection][]
 
 When you pass two arguments with \startitemize the first argument os for 
 keywords (e.g. packed or fit)
 and second argument is for assignments (e.g. width=3cm) in your case context 
 is looking for the keywords
 “before=\startlinecorrection” and “after=\stoplinecorrection” which results 
 in a loop.

Even if that were the case, that's a fragility that no program should
its users endure. It should probably have bailed with an error message
after seeing that the second argument was empty rather than taking down
the entire operating system with it.

But regardless, this does not seem to be the case. The following minimal
still blows up, even with an assignment in the second parameter.

\starttext

\startitemize[before=\startlinecorrection,after=
\stoplinecorrection][start=11]
\item foo
\stopitemize

\stoptext

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-19 Thread Wolfgang Schuster

Am 20.03.2012 um 06:31 schrieb Kip Warner:

 On Tue, 2012-03-20 at 06:22 +0100, Wolfgang Schuster wrote:
 The problem is the empty second argument.
 
 \startitemize[before=\startlinecorrection,after=\stoplinecorrection][]
 
 When you pass two arguments with \startitemize the first argument os for 
 keywords (e.g. packed or fit)
 and second argument is for assignments (e.g. width=3cm) in your case context 
 is looking for the keywords
 “before=\startlinecorrection” and “after=\stoplinecorrection” which results 
 in a loop.
 
 Even if that were the case, that's a fragility that no program should
 its users endure. It should probably have bailed with an error message
 after seeing that the second argument was empty rather than taking down
 the entire operating system with it.

TeX has it’s problem with certain errors, accept it.

 But regardless, this does not seem to be the case. The following minimal
 still blows up, even with an assignment in the second parameter.
 
 \starttext
 
\startitemize[before=\startlinecorrection,after=
 \stoplinecorrection][start=11]
\item foo
\stopitemize
 
 \stoptext

You can’t have a assignment in both parameters because this would lead to the 
same problem as before,
combine both settings in one argument and it works.

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-19 Thread Kip Warner
On Tue, 2012-03-20 at 06:46 +0100, Wolfgang Schuster wrote:
 TeX has it’s problem with certain errors, accept it.

It is not a problem with the program raising an error, it was how it
went about doing it. It should not have to take down the entire
operating system to indicate to the user that there was a non-intuitive
syntactical error in typesetting.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-18 Thread Kip Warner
On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
 Am 17.03.2012 um 10:21 schrieb luigi scarso:
 
  On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
  Hey list,
  
  Is there any way to hint to ConTeXt that the contents of a \startitemize
  \stopitemize pair should try to be all on the same page?
  plain old tex
  \vbox{%
  \startitemize
  \stopitemize%
  }
 
 Better:
 
 \startitemize[before=\startlinecorrection,after=\stoplinecorrection]
 
 \stopitemize
 
 You can control the space before/after the linecorrection environment with 
 the optional
 argument which accepts all values for \blank, e.g. 
 \startlinecorrection[2*line].
 
 Wolfgang

Hey Wolfgang,

The good news is that this is probably what I need. The bad news is
luatex completely blows itself to pieces, allocating memory until the
system crashes. 

After much grinding of the machine, I managed to finally SIGSTOP and
attach gdb to the naughty process.

I've cc'd the luatex user mailing list since this is probably, I
suppose, a luatex issue more than a ConTeXt one.

I am using luatex beta-0.71.0-2012030522 (rev 4364) through context
version 2012.03.13 21:26 on amd64 hardware running Ubuntu Maverick.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com
$ gdb luatex 8477
GNU gdb (GDB) 7.2-ubuntu
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later http://gnu.org/licenses/gpl.html
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type show copying
and show warranty for details.
This GDB was configured as x86_64-linux-gnu.
For bug reporting instructions, please see:
http://www.gnu.org/software/gdb/bugs/...
Reading symbols from /usr/bin/luatex...Reading symbols from /usr/lib/debug/usr/bin/luatex...done.
done.
Attaching to program: /usr/bin/luatex, process 8477
Reading symbols from /lib/libpng12.so.0...(no debugging symbols found)...done.
Loaded symbols for /lib/libpng12.so.0
Reading symbols from /lib/libz.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libz.so.1
Reading symbols from /lib/libdl.so.2...Reading symbols from /usr/lib/debug/lib/libdl-2.12.1.so...done.
done.
Loaded symbols for /lib/libdl.so.2
Reading symbols from /usr/lib/libstdc++.so.6...(no debugging symbols found)...done.
Loaded symbols for /usr/lib/libstdc++.so.6
Reading symbols from /lib/libm.so.6...Reading symbols from /usr/lib/debug/lib/libm-2.12.1.so...done.
done.
Loaded symbols for /lib/libm.so.6
Reading symbols from /lib/libgcc_s.so.1...(no debugging symbols found)...done.
Loaded symbols for /lib/libgcc_s.so.1
Reading symbols from /lib/libc.so.6...Reading symbols from /usr/lib/debug/lib/libc-2.12.1.so...done.
done.
Loaded symbols for /lib/libc.so.6
Reading symbols from /lib64/ld-linux-x86-64.so.2...Reading symbols from /usr/lib/debug/lib/ld-2.12.1.so...done.
done.
Loaded symbols for /lib64/ld-linux-x86-64.so.2
0x004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
154	../../../source/texk/web2c/luatexdir/tex/textoken.w: No such file or directory.
	in ../../../source/texk/web2c/luatexdir/tex/textoken.w
(gdb) bt full
#0  0x004a24d1 in get_avail () at ../../../source/texk/web2c/luatexdir/tex/textoken.w:154
p = 273242622
t = 273242621
#1  0x00471ded in macro_call () at ../../../source/texk/web2c/luatexdir/tex/expand.w:658
r = 273242622
p = 273242621
q = 273242622
s = -2109026328
t = value optimised out
u = 1572864
v = value optimised out
rbrace_ptr = value optimised out
n = value optimised out
unbalance = 9
m = 257
ref_count = 163662
save_scanner_status = 0
save_warning_index = 3331
match_chr = 35
#2  0x00472a45 in get_x_token () at ../../../source/texk/web2c/luatexdir/tex/expand.w:384
No locals.
#3  0x00511819 in test_for_cs () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:176
m = value optimised out
s = value optimised out
p = 526371
#4  conditional () at ../../../source/texk/web2c/luatexdir/tex/conditional.w:483
b = value optimised out
r = value optimised out
m = value optimised out
n = value optimised out
p = value optimised out
---Type return to continue, or q return to quit---
q = value optimised out
save_scanner_status = value optimised out
save_cond_ptr = 74229
this_if = value optimised out
#5  0x00472695 in expand () at ../../../source/texk/web2c/luatexdir/tex/expand.w:236
t = value optimised out
p = value optimised out
cur_ptr = value optimised out
cv_backup = 1
cvl_backup = 0
radix_backup = 0
co_backup = 0
backup_backup = 0
save_scanner_status = 0
#6  0x00472a7d in 

Re: [NTG-context] Itemize without page break

2012-03-18 Thread luigi scarso
On Mon, Mar 19, 2012 at 12:25 AM, Kip Warner k...@thevertigo.com wrote:
 On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
 Am 17.03.2012 um 10:21 schrieb luigi scarso:

  On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
  Hey list,
 
  Is there any way to hint to ConTeXt that the contents of a \startitemize
  \stopitemize pair should try to be all on the same page?
  plain old tex
  \vbox{%
  \startitemize
  \stopitemize%
  }

 Better:

 \startitemize[before=\startlinecorrection,after=\stoplinecorrection]

 \stopitemize

 You can control the space before/after the linecorrection environment with 
 the optional
 argument which accepts all values for \blank, e.g. 
 \startlinecorrection[2*line].

 Wolfgang

 Hey Wolfgang,

 The good news is that this is probably what I need. The bad news is
 luatex completely blows itself to pieces, allocating memory until the
 system crashes.
example ?
-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-18 Thread Kip Warner
On Sun, 2012-03-18 at 16:25 -0700, Kip Warner wrote:
 On Sat, 2012-03-17 at 11:21 +0100, Wolfgang Schuster wrote:
  Am 17.03.2012 um 10:21 schrieb luigi scarso:
  
   On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
   Hey list,
   
   Is there any way to hint to ConTeXt that the contents of a \startitemize
   \stopitemize pair should try to be all on the same page?
   plain old tex
   \vbox{%
   \startitemize
   \stopitemize%
   }
  
  Better:
  
  \startitemize[before=\startlinecorrection,after=\stoplinecorrection]
  
  \stopitemize
  
  You can control the space before/after the linecorrection environment with 
  the optional
  argument which accepts all values for \blank, e.g. 
  \startlinecorrection[2*line].
  
  Wolfgang
 
 Hey Wolfgang,
 
 The good news is that this is probably what I need. The bad news is
 luatex completely blows itself to pieces, allocating memory until the
 system crashes. 
 
 After much grinding of the machine, I managed to finally SIGSTOP and
 attach gdb to the naughty process.
 
 I've cc'd the luatex user mailing list since this is probably, I
 suppose, a luatex issue more than a ConTeXt one.
 
 I am using luatex beta-0.71.0-2012030522 (rev 4364) through context
 version 2012.03.13 21:26 on amd64 hardware running Ubuntu Maverick.

One other thing that I should have made more clear, this only happens
when I insert the aforementioned line correction commands.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize without page break

2012-03-17 Thread luigi scarso
On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
 Hey list,

 Is there any way to hint to ConTeXt that the contents of a \startitemize
 \stopitemize pair should try to be all on the same page?
plain old tex
\vbox{%
\startitemize
\stopitemize%
}
?

-- 
luigi
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize without page break

2012-03-17 Thread Wolfgang Schuster

Am 17.03.2012 um 10:21 schrieb luigi scarso:

 On Sat, Mar 17, 2012 at 2:47 AM, Kip Warner k...@thevertigo.com wrote:
 Hey list,
 
 Is there any way to hint to ConTeXt that the contents of a \startitemize
 \stopitemize pair should try to be all on the same page?
 plain old tex
 \vbox{%
 \startitemize
 \stopitemize%
 }

Better:

\startitemize[before=\startlinecorrection,after=\stoplinecorrection]
…
\stopitemize

You can control the space before/after the linecorrection environment with the 
optional
argument which accepts all values for \blank, e.g. \startlinecorrection[2*line].

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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


[NTG-context] Itemize without page break

2012-03-16 Thread Kip Warner
Hey list,

Is there any way to hint to ConTeXt that the contents of a \startitemize
\stopitemize pair should try to be all on the same page?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize Prefixes

2012-03-05 Thread Kip Warner
On Sun, 2012-03-04 at 23:26 -0500, Aditya Mahajan wrote:
 On Sun, 4 Mar 2012, Kip Warner wrote:
 
  Hey list,
 
  I'd like an itemized list using the following format...
 
  Article I ...
  Article II ...
  Article III ...
 
  ...and so on. I've tried defining the behaviour with...
 
  \defineenumeration[article]
 [location=top,
 text=Article,
 between=\blank,
 before=\blank,
 after=\blank]
  \setupenumerations[article][R]
 
  ...but the problem is that after a list of items provided with matching
  \startarticle \stoparticle pairs, the last count persists to the next
  list of items which should start at 'I' again. I am assuming I am not
  doing this correctly and would appreciate any suggestions.
 
 Use itemgroup rather than enumerations.

Thanks Aditya, but could you give me an example of how to do this? As
usual, I am not able to take much away from the ConTeXt wiki. Sorry.

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Itemize Prefixes

2012-03-05 Thread Aditya Mahajan

On Mon, 5 Mar 2012, Kip Warner wrote:


On Sun, 2012-03-04 at 23:26 -0500, Aditya Mahajan wrote:

On Sun, 4 Mar 2012, Kip Warner wrote:


Hey list,

I'd like an itemized list using the following format...

Article I ...
Article II ...
Article III ...

...and so on. I've tried defining the behaviour with...

\defineenumeration[article]
   [location=top,
   text=Article,
   between=\blank,
   before=\blank,
   after=\blank]
\setupenumerations[article][R]

...but the problem is that after a list of items provided with matching
\startarticle \stoparticle pairs, the last count persists to the next
list of items which should start at 'I' again. I am assuming I am not
doing this correctly and would appreciate any suggestions.


Use itemgroup rather than enumerations.


Thanks Aditya, but could you give me an example of how to do this? As
usual, I am not able to take much away from the ConTeXt wiki. Sorry.


\defineitemgroup[article]

\setupitemgroup
  [article]
  [
left={Article },
stopper=,
symbol=R,
before=\blank,
after=\blank,
distance=0.5em,
  ]

\setupitemgroup
  [article]
  [broad,fit]


\starttext

\startarticle
  \item First article
  \item Second article
\stoparticle

Again

\startarticle
  \item First article
  \item Second article
\stoparticle
\stoptext

Aditya
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___


Re: [NTG-context] Itemize Prefixes

2012-03-05 Thread Kip Warner
On Mon, 2012-03-05 at 22:10 -0500, Aditya Mahajan wrote:

Thanks Aditya. A couple questions for you.

 \defineitemgroup[article]
 
 \setupitemgroup
[article]
[
  left={Article },
  stopper=,
  symbol=R,
  before=\blank,
  after=\blank,
  distance=0.5em,
]
 
 \setupitemgroup
[article]
[broad,fit]

Why is another \setupitemgroup being used here when broad,fit could have
been merged with its previous one that both affected the article
itemgroup?

 
 \starttext
 
 \startarticle
\item First article
\item Second article
 \stoparticle
 
 Again

How do I add an extra line after the header? I tried adding another
\blank to the after parameter of \setupitemgroup, but it didn't seem to
use it.

 \startarticle
\item First article
\item Second article
 \stoparticle
 \stoptext
 
 Aditya

Lastly, how do I change the text colour of the item header? I tried the
following to no avail,

\setuphead
  [article]
  [color=colour_head]

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com


signature.asc
Description: This is a digitally signed message part
___
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

  1   2   3   >