Re: [NTG-context] itemize columns transposed

2016-09-17 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
___