[NTG-context] Re: A new problem with space in third itemize

2024-02-29 Thread Ursula Hermann
Dear Mikael,


Many Thanks, works perfect.


Many Regards

Uschi


Von: Mikael Sundqvist 
Gesendet: Donnerstag, 29. Februar 2024 16:45:03
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: A new problem with space in third itemize

Hi Uschi,

Your coding style is interesting. I do not understand the purpose of
the \it for example. I did put something together that you can try,
but I don't know if this is what you are looking for.

\starttext
\startitemize[n]
\startitem
\m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1},
\stopitem
\startitem
\m{\forall n \in \naturalnumbers\mtp{:} 3\divides n \implies 4 \divides n},
\stopitem
\startitem
\m{\forall n \in \naturalnumbers\mtp{:} n^3 \mtext{ ungerade }
\implies n \mtext{ ungerade}}.
\stopitem
\stopitemize
\stoptext

To quote Pablo, I hope it helps.

/Mikael

On Thu, Feb 29, 2024 at 4:10 PM Ursula Hermann
 wrote:
>
> Dear List,
>
>
> This is my little example: the problem is, that everything was fine, in 
> itemize 1 and  2. In the third itemize  i have a problem, because after n^3 
> and after \Rightarrow  there should be a spaace , if I want to write : 
> \Rightarrow n ungerade, but it says nungerade, what I dont want,.
>
>
> \startitemize[n]
> {\it \item \m{\forall n ∈ \naturalnumbers:n^2 >n\Rightarrow>1,\par}\nospace
> \par \item \m{\forall n ∈ \naturalnumbers:3\mid n\Rightarrow 4 \mid n,\par} 
> \nospace
> \par \item \m{\forall n ∈ \naturalnumbers:n^3  ungerade \Rightarrow n  
> ungerade \par}
>
> Uschi
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: A new problem with space in third itemize

2024-02-29 Thread Mikael Sundqvist
Hi Uschi,

Your coding style is interesting. I do not understand the purpose of
the \it for example. I did put something together that you can try,
but I don't know if this is what you are looking for.

\starttext
\startitemize[n]
\startitem
\m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1},
\stopitem
\startitem
\m{\forall n \in \naturalnumbers\mtp{:} 3\divides n \implies 4 \divides n},
\stopitem
\startitem
\m{\forall n \in \naturalnumbers\mtp{:} n^3 \mtext{ ungerade }
\implies n \mtext{ ungerade}}.
\stopitem
\stopitemize
\stoptext

To quote Pablo, I hope it helps.

/Mikael

On Thu, Feb 29, 2024 at 4:10 PM Ursula Hermann
 wrote:
>
> Dear List,
>
>
> This is my little example: the problem is, that everything was fine, in 
> itemize 1 and  2. In the third itemize  i have a problem, because after n^3 
> and after \Rightarrow  there should be a spaace , if I want to write : 
> \Rightarrow n ungerade, but it says nungerade, what I dont want,.
>
>
> \startitemize[n]
> {\it \item \m{\forall n ∈ \naturalnumbers:n^2 >n\Rightarrow>1,\par}\nospace
> \par \item \m{\forall n ∈ \naturalnumbers:3\mid n\Rightarrow 4 \mid n,\par} 
> \nospace
> \par \item \m{\forall n ∈ \naturalnumbers:n^3  ungerade \Rightarrow n  
> ungerade \par}
>
> Uschi
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] A new problem with space in third itemize

2024-02-29 Thread Ursula Hermann
Dear List,


This is my little example: the problem is, that everything was fine, in itemize 
1 and  2. In the third itemize  i have a problem, because after n^3 and after 
\Rightarrow  there should be a spaace , if I want to write : \Rightarrow n 
ungerade, but it says nungerade, what I dont want,.


\startitemize[n]
{\it \item \m{\forall n ∈ \naturalnumbers:n^2 >n\Rightarrow>1,\par}\nospace
\par \item \m{\forall n ∈ \naturalnumbers:3\mid n\Rightarrow 4 \mid n,\par} 
\nospace
\par \item \m{\forall n ∈ \naturalnumbers:n^3  ungerade \Rightarrow n  ungerade 
\par}


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Nested itemize lists: unexpected spacing

2024-02-01 Thread Jim
Consider the following:

\starttext

Text before.
\startitemize[1,nowhite]
\item item 1
\item item 2
\startitemize[5,nowhite]
\item sub-item 1
\item sub-item 2
\stopitemize
\item item 3
\stopitemize
Text after.

\stoptext

Notwithstanding the "nowhite" options, there is a blank line before
sub-item 1, which I do not want.

Oddly (to me), if I change the first "nowhite" to "packed", the space
before sub-item 1 goes away, but then I get undesired space before and
after the out itemization.

Q1: Can someone explain the Zen of this?  That is, why does the blank
line before sub-item 1 go away with "packed", but not "nowhite"?



Poking around on the internet, I find that if I leave the "nowhite"s, but
precede "Text before." with
\unprotect
\c_strc_itemgroups_spacing_mode=1  % 0 works too, but 2 doesn't
\protect
then I get the spacing I want.

Q2: \c_strc_itemgroups_spacing_mode seems to be an undocumented "feature".
Is there a "documented" way of making the unwanted blank line
    go away, without introducing unwanted blank lines before and
after the outer itemize list?


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-16 Thread Jim
On Tue, Jan 16, 2024 at 01:15 (+), Bruce Horrocks wrote:

> On 15 Jan 2024, at 16:15, Jim  wrote:

>> I would like
>> something which automagically "does the right thing".

> Not pretty, but... :-)

> \setupwhitespace [big]
> \setuppapersize [letter]

> \define[1]\mystopitemize{\stopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}}

> \starttext
> This is a short paragraph.

> This is a line before an itemization.
> \startitemize[nowhite]
> \item First item.
> \item Second item.
> \mystopitemize
> This is a short paragraph immediately following.

> This is a line before a {\bf nowhite, after} itemization.
> \startitemize[nowhite]
> \item First item.
> \item Second item.
> \mystopitemize

> This is the next short paragraph, not part of the above.

> \stoptext

Bruce,

thanks very much for that code.  Given that (apparently?) there is no
option to itemize to do what I want, what you have is a good choice.

I just tried this:


\let\originalstopitemize=\stopitemize
\define[1]\stopitemize{\originalstopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}}

and it works with the above test, after replacing \mystopitemize with the
usual \stopitemize.

I'm not sure what this might break going forward, but I guess time will tell.
(Or perhaps someone with more ConTeXt knowledge than me will tell me first.)

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Bruce Horrocks
On 15 Jan 2024, at 16:15, Jim  wrote:
> 
> I would like
> something which automagically "does the right thing".

Not pretty, but... :-)

\setupwhitespace [big]
\setuppapersize [letter]

\define[1]\mystopitemize{\stopitemize\doifsamestringelse{#1}{\par}{\blank}{#1}}

\starttext
This is a short paragraph.

This is a line before an itemization.
\startitemize[nowhite]
\item First item.
\item Second item.
\mystopitemize
This is a short paragraph immediately following.

This is a line before a {\bf nowhite, after} itemization.
\startitemize[nowhite]
\item First item.
\item Second item.
\mystopitemize

This is the next short paragraph, not part of the above.

\stoptext

—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
On Mon, Jan 15, 2024 at 20:33 (+0100), Henning Hraban Ramm wrote:

> Am 15.01.24 um 17:15 schrieb Jim:
>> "after" does the trick, but not in an automatic way.  I would like
>> something which automagically "does the right thing".

> With “automagically”, do you mean for all instances?

I hate to go out on a limb and say "all", but I mean that if there is text
"immediately" following the \stopitemize (i.e., no \par token or vertical
mode material before more text), then there is no white space following the
last \item.  But if there is a blank line following the last \item, there
will be vertical white space corresponding to the current \setupwhitespace
setting following the last item.

> \setupitemgroup[itemize][nowhite,after]

>>> Sorry, then you need "nowhite". Usually that’s synonymous to
>>> "packed,joineup", but apparently not if whitespace is active.

>> "Usually" is in the eye of the beholder.  ;-)

>> I would have thought that having non-zero whitespace between paragraphs is
>> common.  For example, Aditya's blog linked to above has whitespace between
>> paragraphs.  Are you suggesting that is uncommon, or (showing my
>> Context-noobness) is \setupwhitespace not the usual ConTeXt way to do this?

> Yes, it’s common, and \setupwhitespace is right.

OK, thanks for the confirmation.

> I just don’t remember all the setups in my many environments all the time.

>>> I added a few comments to
>>> https://wiki.contextgarden.net/Command/setupitemgroup
>>> Unfortunately, this is one of the areas where we have a plethora of options
>>> and no documentation about them.

>> Thanks for adding them.  I see you did not document the all-important (to
>> me) "after" (or "before") in the wiki.  Would you like to add that?  If
>> you don't have time right now, I'd be happy to do so.

> It’s there now.

Thanks, I have already seen them!

> I’m not sure about the options regarding width

I've done some more exploration about items in the last hour or so.  I'm
not sure I am yet ready to update the wiki (I am concerned that incomplete
information may be worse than no information), but if/when I feel
confident, I will add some information about some options.  (I guess the
implementation code is the current definitive documentation!)

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 17:15 schrieb Jim:

"after" does the trick, but not in an automatic way.  I would like
something which automagically "does the right thing".


With “automagically”, do you mean for all instances?

\setupitemgroup[itemize][nowhite,after]


Sorry, then you need "nowhite". Usually that’s synonymous to
"packed,joineup", but apparently not if whitespace is active.


"Usually" is in the eye of the beholder.  ;-)

I would have thought that having non-zero whitespace between paragraphs is
common.  For example, Aditya's blog linked to above has whitespace between
paragraphs.  Are you suggesting that is uncommon, or (showing my
Context-noobness) is \setupwhitespace not the usual ConTeXt way to do this?


Yes, it’s common, and \setupwhitespace is right.

I just don’t remember all the setups in my many environments all the time.


I added a few comments to
https://wiki.contextgarden.net/Command/setupitemgroup
Unfortunately, this is one of the areas where we have a plethora of options
and no documentation about them.


Thanks for adding them.  I see you did not document the all-important (to
me) "after" (or "before") in the wiki.  Would you like to add that?  If
you don't have time right now, I'd be happy to do so.


It’s there now.
I’m not sure about the options regarding width

Hraban

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
On Mon, Jan 15, 2024 at 17:39 (+0100), Wolfgang Schuster wrote:

> Jim schrieb am 15.01.2024 um 01:42:
>> I have

>> \setupwhitespace [big]

>> so that I get "a blank line" between paragraphs.

>> I would like to *not* have "blank lines" before and after my items.  For
>> example, if there is more "paragraph text" after the last item I would like
>> to see this structure:

>> --

>> Some text preceding the list of items:
>> a. Item one.
>> b. Second item.
>> This sentence is part of the same paragraph.

>> The next paragraph starts here...

>> --

>> and if there is no "paragraph text" after the last item, I'd like to see
>> this structure:

>> --

>> Some text preceding the list of items:
>> a. Item one.
>> b. Second item.

>> The next paragraph starts here...

>> --

>> Try as I might, I can't find the right options to give to \startitemize.

>> The closest I have found is to start with
>> \startitemize[a,nowhite]
>> but that prevents the "blank line" even in the second case above, which is
>> not what I want.  Further, 'packed' and 'joinedup' seem to behave
>> identically here, both leaving "a blank line" before the first item and
>> after the last item.

>> Clearly, I can force a blank line before the following paragraph with a
>> \vskip, but that seems like a crude way to do it.

>> Can someone either enlighten me on either
>> (a) the Right ConTeXt Way to do this, or
>> (b) a document that would tell me this, if I knew to read it?

>> I've looked in the wiki, the not-so-short intro to ConTeXt, and "ConTeXt:
>> an excursion" with no luck.

> Hi Jim,

> such a feature exists only to suppress paragraph indentation but not to
> ignore whitespace
> between paragraphs.

> \setupitemize[indentnext=auto]

> \setupindenting[yes,medium]

> \starttext

> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa
> turpis,
> semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
> \unknown

> \startitemize
> \startitem Lorem ipsum \unknown \stopitem
> \stopitemize

> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa
> turpis,
> semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
> \unknown

> \startitemize
> \startitem Lorem ipsum \unknown \stopitem
> \stopitemize
> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa
> turpis,
> semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi
> \unknown

> \stoptext

Hi Wolfgang,

thanks for that information.

I would have thought that what I want to do is not so unusual that ConTeXt
does not have the ability to handle it, especially in light of the
indentnext=auto feature which shows that (presumably) some people want to
handle the text following \stopitemize differently, depending on whether or
not the following text is part of the same paragraph.

Perhaps I need to go and contemplate the sins of my formatting
choices... :-)

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Wolfgang Schuster

Jim schrieb am 15.01.2024 um 01:42:

I have

\setupwhitespace [big]

so that I get "a blank line" between paragraphs.

I would like to *not* have "blank lines" before and after my items.  For
example, if there is more "paragraph text" after the last item I would like
to see this structure:

--

Some text preceding the list of items:
a. Item one.
b. Second item.
This sentence is part of the same paragraph.

The next paragraph starts here...

--

and if there is no "paragraph text" after the last item, I'd like to see
this structure:

--

Some text preceding the list of items:
a. Item one.
b. Second item.

The next paragraph starts here...

--

Try as I might, I can't find the right options to give to \startitemize.

The closest I have found is to start with
\startitemize[a,nowhite]
but that prevents the "blank line" even in the second case above, which is
not what I want.  Further, 'packed' and 'joinedup' seem to behave
identically here, both leaving "a blank line" before the first item and
after the last item.

Clearly, I can force a blank line before the following paragraph with a
\vskip, but that seems like a crude way to do it.

Can someone either enlighten me on either
(a) the Right ConTeXt Way to do this, or
(b) a document that would tell me this, if I knew to read it?

I've looked in the wiki, the not-so-short intro to ConTeXt, and "ConTeXt:
an excursion" with no luck.


Hi Jim,

such a feature exists only to suppress paragraph indentation but not to 
ignore whitespace

between paragraphs.

\setupitemize[indentnext=auto]

\setupindenting[yes,medium]

\starttext

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi 
\unknown


\startitemize
\startitem Lorem ipsum \unknown \stopitem
\stopitemize

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi 
\unknown


\startitemize
\startitem Lorem ipsum \unknown \stopitem
\stopitemize
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur massa 
turpis,
semper quis fringilla ut, viverra nec risus. Pellentesque habitant morbi 
\unknown


\stoptext

Wolfgang

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: [External] Re: Looking for itemize help

2024-01-15 Thread Jim
Hi Michael,

thanks for getting back.  But the problem is not the text in front of the
items, but rather vertical whitespace that I don't want.  (Or, with
'nowhite', vertical space that I might want not being there.)

Cheers.
Jim

On Mon, Jan 15, 2024 at 15:51 (+), Rogers, Michael K wrote:

> Hi Jim,

> I think you want alternative “a”, if the dot instead of a letter is the 
> problem and not the whitespace:

> %%

> \starttext

> This is a short paragraph.

> This is a line before a {\bf packed, joinedup} itemization.
> \startitemize[a,packed,joinedup]
> \item First item.
> \item Second item.
> \stopitemize
> This is a line immediately following the above itemization.

> This is a short paragraph.

> \stoptext

> %%

> Cheers,

> Michael

>> On Jan 15, 2024, at 6:36 AM, Jim  wrote:

>> Hi Hraban,

>> thanks for your response.  But...

>> On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote:

>>> Am 15.01.24 um 01:42 schrieb Jim:

 Some text preceding the list of items:
 a. Item one.
 b. Second item.
 This sentence is part of the same paragraph.

 The next paragraph starts here...

>>> \startitemize[packed,joinedup] should be the right combination.

>> I won't argue about "should", but I will point out it isn't, at least on my
>> computer with a recently updated context.

>> Here is a non-minimal but short non-working example.

>> %%%

>> \setupwhitespace [big]

>> \setuppapersize [letter]

>> \starttext
>> This is a short paragraph.

>> This is a line before a {\bf packed, joinedup} itemization.
>> \startitemize[packed,joinedup]
>> \item First item.
>> \item Second item.
>> \stopitemize
>> This is a line immediately following the above itemization.

>> This is a short paragraph.

>> This is a line before a {\bf packed, joinedup} itemization.
>> \startitemize[packed,joinedup]
>> \item First item.
>> \item Second item.
>> \stopitemize

>> This is another short paragraph.

>> \stoptext

>> %%%

>> Thoughts?

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

>> maillist : ntg-context@ntg.nl / 
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage  : https://www.pragma-ade.nl/ / https://context.aanhet.net/ (mirror)
>> archive  : https://github.com/contextgarden/context
>> wiki : https://wiki.contextgarden.net/
>> ___

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

> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
Two replies in one...

On Mon, Jan 15, 2024 at 15:47 (+0100), Aditya Mahajan wrote:

> On Mon, 15 Jan 2024, Jim wrote:

>> Thoughts?


> \startitemize[nowhite, after]
>   . . .
> \stopitemize

> See: https://adityam.github.io/context-blog/post/spacing-in-itemize/

Aditya,

thanks for the suggestion, and thanks for the link.

"after" does the trick, but not in an automatic way.  I would like
something which automagically "does the right thing".

Perhaps it just doesn't exist in ConTeXt.  The plain TeX macros I wrote for
itemization do what I want, so I know it isn't (at least in plain TeX) a
difficult thing.



On Mon, Jan 15, 2024 at 16:08 (+0100), Henning Hraban Ramm wrote:

> Am 15.01.24 um 15:36 schrieb Jim:
>>> \startitemize[packed,joinedup] should be the right combination.

>> I won't argue about "should", but I will point out it isn't, at least on my
>> computer with a recently updated context.

>> Here is a non-minimal but short non-working example.

> Sorry, then you need "nowhite". Usually that’s synonymous to
> "packed,joineup", but apparently not if whitespace is active.

"Usually" is in the eye of the beholder.  ;-)

I would have thought that having non-zero whitespace between paragraphs is
common.  For example, Aditya's blog linked to above has whitespace between
paragraphs.  Are you suggesting that is uncommon, or (showing my
Context-noobness) is \setupwhitespace not the usual ConTeXt way to do this?

> I added a few comments to
> https://wiki.contextgarden.net/Command/setupitemgroup
> Unfortunately, this is one of the areas where we have a plethora of options
> and no documentation about them.

Thanks for adding them.  I see you did not document the all-important (to
me) "after" (or "before") in the wiki.  Would you like to add that?  If
you don't have time right now, I'd be happy to do so.

Cheers.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: [External] Re: Looking for itemize help

2024-01-15 Thread Rogers, Michael K
Hi Jim,

I think you want alternative “a”, if the dot instead of a letter is the problem 
and not the whitespace:

%%

\starttext

This is a short paragraph.

This is a line before a {\bf packed, joinedup} itemization.
\startitemize[a,packed,joinedup]
\item First item.
\item Second item.
\stopitemize
This is a line immediately following the above itemization.

This is a short paragraph.

\stoptext

%%

Cheers,

Michael

> On Jan 15, 2024, at 6:36 AM, Jim  wrote:
>
> Hi Hraban,
>
> thanks for your response.  But...
>
> On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote:
>
>> Am 15.01.24 um 01:42 schrieb Jim:
>
>>> Some text preceding the list of items:
>>> a. Item one.
>>> b. Second item.
>>> This sentence is part of the same paragraph.
>
>>> The next paragraph starts here...
>
>> \startitemize[packed,joinedup] should be the right combination.
>
> I won't argue about "should", but I will point out it isn't, at least on my
> computer with a recently updated context.
>
> Here is a non-minimal but short non-working example.
>
> %%%
>
> \setupwhitespace [big]
>
> \setuppapersize [letter]
>
> \starttext
> This is a short paragraph.
>
> This is a line before a {\bf packed, joinedup} itemization.
> \startitemize[packed,joinedup]
> \item First item.
> \item Second item.
> \stopitemize
> This is a line immediately following the above itemization.
>
> This is a short paragraph.
>
> This is a line before a {\bf packed, joinedup} itemization.
> \startitemize[packed,joinedup]
> \item First item.
> \item Second item.
> \stopitemize
>
> This is another short paragraph.
>
> \stoptext
>
> %%%
>
> Thoughts?
>
>Jim
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl/ / https://context.aanhet.net/ (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net/
> ___

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Henning Hraban Ramm

Am 15.01.24 um 15:36 schrieb Jim:

\startitemize[packed,joinedup] should be the right combination.


I won't argue about "should", but I will point out it isn't, at least on my
computer with a recently updated context.

Here is a non-minimal but short non-working example.


Sorry, then you need "nowhite". Usually that’s synonymous to 
"packed,joineup", but apparently not if whitespace is active.


I added a few comments to 
https://wiki.contextgarden.net/Command/setupitemgroup
Unfortunately, this is one of the areas where we have a plethora of 
options and no documentation about them.


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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Aditya Mahajan
On Mon, 15 Jan 2024, Jim wrote:

> Thoughts?


\startitemize[nowhite, after]
  . . .
\stopitemize

See: https://adityam.github.io/context-blog/post/spacing-in-itemize/

Aditya

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Jim
Hi Hraban,

thanks for your response.  But...

On Mon, Jan 15, 2024 at 08:17 (+0100), Henning Hraban Ramm wrote:

> Am 15.01.24 um 01:42 schrieb Jim:

>> Some text preceding the list of items:
>> a. Item one.
>> b. Second item.
>> This sentence is part of the same paragraph.

>> The next paragraph starts here...

> \startitemize[packed,joinedup] should be the right combination.

I won't argue about "should", but I will point out it isn't, at least on my
computer with a recently updated context.

Here is a non-minimal but short non-working example.

%%%

\setupwhitespace [big]

\setuppapersize [letter]

\starttext
This is a short paragraph.

This is a line before a {\bf packed, joinedup} itemization.
\startitemize[packed,joinedup]
\item First item.
\item Second item.
\stopitemize
This is a line immediately following the above itemization.

This is a short paragraph.

This is a line before a {\bf packed, joinedup} itemization.
\startitemize[packed,joinedup]
\item First item.
\item Second item.
\stopitemize
 
This is another short paragraph.

\stoptext

%%%

Thoughts?

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Looking for itemize help

2024-01-14 Thread Henning Hraban Ramm

Am 15.01.24 um 01:42 schrieb Jim:


Some text preceding the list of items:
a. Item one.
b. Second item.
This sentence is part of the same paragraph.

The next paragraph starts here...


\startitemize[packed,joinedup] should be the right combination.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Looking for itemize help

2024-01-14 Thread Jim
I have

\setupwhitespace [big]

so that I get "a blank line" between paragraphs.

I would like to *not* have "blank lines" before and after my items.  For
example, if there is more "paragraph text" after the last item I would like
to see this structure:

--

Some text preceding the list of items:
a. Item one.
b. Second item.
This sentence is part of the same paragraph.

The next paragraph starts here...

--

and if there is no "paragraph text" after the last item, I'd like to see
this structure:

--

Some text preceding the list of items:
a. Item one.
b. Second item.

The next paragraph starts here...

--

Try as I might, I can't find the right options to give to \startitemize.

The closest I have found is to start with
\startitemize[a,nowhite]
but that prevents the "blank line" even in the second case above, which is
not what I want.  Further, 'packed' and 'joinedup' seem to behave
identically here, both leaving "a blank line" before the first item and
after the last item.  

Clearly, I can force a blank line before the following paragraph with a
\vskip, but that seems like a crude way to do it.

Can someone either enlighten me on either
(a) the Right ConTeXt Way to do this, or
(b) a document that would tell me this, if I knew to read it?

I've looked in the wiki, the not-so-short intro to ConTeXt, and "ConTeXt:
an excursion" with no luck.

Thanks.

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: numbered itemize list item label alignment

2023-10-19 Thread Csikos Bela
 Eredeti levél Feladó: Aditya Mahajan Dátum: 
2023 október 15 22:32:37Tárgy: Re: [NTG-context] Re: numbered itemize list item 
label alignmentCímzett: mailing list for ConTeXt users On 
Sun, 15 Oct 2023, Wolfgang Schuster wrote:  > Csikos Bela schrieb am 15.10.2023 
um 15:51: > > Hello: > > > > I would like to make a long numbered itemize list, 
where the numbers > > increase up to three digits. > > I would like the 
numbered labels aligned to the right and the widest > > label's left side 
located at the left margin. > > I tried the below code but the 3 digit labels' 
left sides go into the left > > margin. How can I fix it? > > > > Code: > > > > 
\showframe > > \starttext > > \startitemize[n,broad][itemalign=flushright] > > 
\dorecurse{250}{\item } > > \stopitemize > > \stoptext > > You can use the 
width-key to set a value for the number, below is a example > for method > to 
calculate the width based on the number of items but I would use fixed > value 
> (e.g. width=2em) to let all items (independent of the entries) start on the > 
same position.  I normally use the `fit` key with an appropriate value of 
`distance`. For example:  \showframe[text][text]  \starttext  
\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] 
\dorecurse{1}{\startitem xxx\stopitem} \stopitemize  \page  
\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] 
\dorecurse{11}{\startitem xxx\stopitem} \stopitemize  \page  
\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright] 
\dorecurse{111}{\startitem xxx\stopitem} \stopitemize  \stoptext  Thank you, 
the fit option worked well.bcsikos___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Aditya Mahajan
On Sun, 15 Oct 2023, Wolfgang Schuster wrote:

> Csikos Bela schrieb am 15.10.2023 um 15:51:
> > Hello:
> >
> > I would like to make a long numbered itemize list, where the numbers
> > increase up to three digits.
> > I would like the numbered labels aligned to the right and the widest
> > label's left side located at the left margin.
> > I tried the below code but the 3 digit labels' left sides go into the left
> > margin. How can I fix it?
> >
> > Code:
> >
> > \showframe
> > \starttext
> > \startitemize[n,broad][itemalign=flushright]
> > \dorecurse{250}{\item }
> > \stopitemize
> > \stoptext
> 
> You can use the width-key to set a value for the number, below is a example
> for method
> to calculate the width based on the number of items but I would use fixed
> value
> (e.g. width=2em) to let all items (independent of the entries) start on the
> same position.

I normally use the `fit` key with an appropriate value of `distance`. For 
example:

\showframe[text][text]

\starttext

\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright]
\dorecurse{1}{\startitem xxx\stopitem}
\stopitemize

\page

\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright]
\dorecurse{11}{\startitem xxx\stopitem}
\stopitemize

\page

\startitemize[n,fit,broad][distance=0.25em,itemalign=flushright]
\dorecurse{111}{\startitem xxx\stopitem}
\stopitemize

\stoptext

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Wolfgang Schuster

Csikos Bela schrieb am 15.10.2023 um 15:51:

Hello:

I would like to make a long numbered itemize list, where the numbers 
increase up to three digits.
I would like the numbered labels aligned to the right and the widest 
label's left side located at the left margin.
I tried the below code but the 3 digit labels' left sides go into the 
left margin. How can I fix it?


Code:

\showframe
\starttext
\startitemize[n,broad][itemalign=flushright]
\dorecurse{250}{\item }
\stopitemize
\stoptext


You can use the width-key to set a value for the number, below is a 
example for method
to calculate the width based on the number of items but I would use 
fixed value
(e.g. width=2em) to let all items (independent of the entries) start on 
the same position.


\defineexpandable\ItemWidth
  {\ifnum\lastcountervalue[itemgroup:itemize]>99
 \widthofstring{000.}%
   \orelse\ifnum\lastcountervalue[itemgroup:itemize]>9
 \widthofstring{00.}%
   \else
 \widthofstring{0.}%
   \fi}

\showframe[text][text]

\starttext

\startitemize[n][width=\ItemWidth,itemalign=flushright]
\dorecurse{1}{\startitem xxx\stopitem}
\stopitemize

\page

\startitemize[n][width=\ItemWidth,itemalign=flushright]
\dorecurse{11}{\startitem xxx\stopitem}
\stopitemize

\page

\startitemize[n][width=\ItemWidth,itemalign=flushright]
\dorecurse{111}{\startitem xxx\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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Pablo Rodriguez
On 10/15/23 15:51, Csikos Bela wrote:
> Hello:
>
> I would like to make a long numbered itemize list, where the numbers
> increase up to three digits.
> I would like the numbered labels aligned to the right and the widest
> label's left side located at the left margin.
> I tried the below code but the 3 digit labels' left sides go into the
> left margin. How can I fix it?

Hi Csikos,

width is the key, such as in:

  \showframe\showgrid\showstruts
  \starttext
  \startitemize[n,broad][width=.125tw, itemalign=flushright]
  \dorecurse{250}{\item }
  \stopitemize
  \stoptext

I assigned ⅛ text width to the number width to clearly display it.

Just in case it helps,

Pablo

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

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] numbered itemize list item label alignment

2023-10-15 Thread Csikos Bela
Hello:I would like to make a long numbered itemize list, where the numbers 
increase up to three digits.I would like the numbered labels aligned to the 
right and the widest label's left side located at the left margin.I tried the 
below code but the 3 digit labels' left sides go into the left margin. How can 
I fix 
it?Code:\showframe\starttext\startitemize[n,broad][itemalign=flushright]\dorecurse{250}{\item
 }\stopitemize\stoptextThe resulted pdf is attached as 
context-itemize-label-alignment.pdf.Thank you in advance,bcsikos

context-itemize-label-alignment.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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Vertical Space between Text and Itemize List

2023-09-06 Thread Mikael Sundqvist
Hi,

You can use before, inbetween and after.

\setupitemgroup
[itemize]
[inbetween={\blank[1cm]},
before={\blank[2cm]},
after={\blank[3cm]}]

\starttext

\samplefile{ward}

\startitemize
\dorecurse{4}{
\startitem
\samplefile{knuthmath}
\stopitem
}
\stopitemize

\samplefile{ward}

\stoptext

/Mikael

On Thu, Sep 7, 2023 at 12:57 AM Jeroen  wrote:
>
> To get a packed itemize list I use this in the preamble
>
> \setupitemgroup
>   [itemize]
>   [packed]
>
> To get less vspace between the text and the first item, i changed it to this
>
> \setupitemgroup
>   [itemize]
>   [packed,
>nowhite]
>
> now there is indeed no whitespace. Is there a more granular way to place just 
> a little vertical whitespace between the text and the first item?
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Vertical Space between Text and Itemize List

2023-09-06 Thread Jeroen
To get a packed itemize list I use this in the preamble

\setupitemgroup
  [itemize]
  [packed]

To get less vspace between the text and the first item, i changed it to this

\setupitemgroup
  [itemize]
  [packed,
   nowhite]

now there is indeed no whitespace. Is there a more granular way to place
just a little vertical whitespace between the text and the first item?
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Nested itemize

2023-08-22 Thread fv leung
It seems that displaystyle fractions insert extra vertical space before the
main item.
With textstyle fractions, the code works fine.
\blank[back,overlay] can get rid of the gap above the first row, but not
the space inserted by \dfrac.


\defineitemgroup[alex]

\setupitemgroup
 [alex]
 [each]
 [a,two]
 [
 margin=2cm,
 before={\blank[overlay,-depth]},
 after={\blank[nowhite]},
 stopper=)
 ]

%\showboxes
\autofences

\starttext
\samplefile{ward}
\startitemize[n][style=\bf,before={\blank[back,overlay]},after={\blank[medium]}]
  \startitem
\startalextable
  \startitem
\m{6(x - \frac{5}{12})^2 - \frac{1}{24}}
  \stopitem
  \startitem
\m{-3(x - \frac{1}{3})^2 + \frac{1}{3}}
  \stopitem
  \startitem
\m{7(x + \frac{5}{14})^2 + \frac{199}{28}}
  \stopitem
  \startitem
\m{-\frac{1}{2}(x + 2)^2 + \frac{9}{2}}
  \stopitem
\stopalextable
  \stopitem
\stopitemize

\samplefile{ward}
\stoptext

Alexandre Christe  於 2023年8月22日 週二 下午5:48寫道:

> Hi Mikael,
>
> That looks very attractive. However, with the following code, I end up
> with a large gap above the first row.
>
> \defineitemgroup[alex]
>
> \setupitemgroup
>  [alex]
>  [each]
>  [a,two]
>  [
>  margin=2cm,
>  before=\blank[overlay,-depth],
>  stopper=)
>  ]
>
> \showboxes
> \autofences
>
> \starttext
> \samplefile{ward}
>
> \startitemize[n][style=\bf]
>  \startitem
>  \startalextable
>  \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem
>  \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem
>  \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem
>  \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitem
>  \stopalextable
>  \stopitem
> \stopitemize
>
> \samplefile{ward}
> \stoptext
>
> A. Christe
> Le 22 août 2023 à 07:12 +0200, Alexandre Christe ,
> a écrit :
>
> It’s true that \vtop{…} does the job for a single line of items, but it
> doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom.
>
> Here’s a modified MWE
>
> \startitemize[n][style=\bf]
>   \item \godown[-\lineheight] \startitemize
> [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>   \stopitemize
> \stopitemize
>
> A. Christe
> Le 22 août 2023 à 04:08 +0200, fv leung , a écrit :
>
> I'd do it this way:
>
> \starttext
> \startitemize[n][style=\bf]
> \item\vtop{%
>   \startitemize[a,horizontal,four][stopper=\)]
> \startitem
>   $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \stopitem
> \startitem
>   $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \stopitem
> \startitem
>   $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \stopitem
> \startitem
>   $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> \stopitem
>   \stopitemize
> }
> \stopitemize
>
> \stoptext
>
> Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:
>
>> Dear ConTeXt users,
>>
>> Time goes by but I haven't yet found a nice solution to this issue. When
>> having mathematics, I'd not like to adjust by hand the factor of \linewidth
>> for the \godown command.
>>
>> Here's a MWE
>>
>> \starttext
>>
>> \startitemize[n][style=\bf]
>>   \item \godown[-\lineheight] \startitemize
>> [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
>> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
>> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
>> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
>> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>>   \stopitemize
>> \stopitemize
>>
>> \stoptext
>>
>> Thanks in advance.
>>
>> Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context <
>> ntg-context@ntg.nl> a écrit :
>>
>>>
>>> \starttext
>>>
>>> \startitemize[n]
>>> \item\godown[-\lineheight]
>>>
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \item\godown[-\lineheight]
>>>
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \item\godown[-\lineheight]
>>>
>>> \star

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
Hi Mikael,

That looks very attractive. However, with the following code, I end up with a 
large gap above the first row.

\defineitemgroup[alex]

\setupitemgroup
 [alex]
 [each]
 [a,two]
 [
 margin=2cm,
 before=\blank[overlay,-depth],
 stopper=)
 ]

\showboxes
\autofences

\starttext
\samplefile{ward}

\startitemize[n][style=\bf]
 \startitem
 \startalextable
 \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem
 \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem
 \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem
 \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitem
 \stopalextable
 \stopitem
\stopitemize

\samplefile{ward}
\stoptext

A. Christe
Le 22 août 2023 à 07:12 +0200, Alexandre Christe , a 
écrit :
> It’s true that \vtop{…} does the job for a single line of items, but it 
> doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom.
>
> Here’s a modified MWE
>
> \startitemize[n][style=\bf]
>   \item \godown[-\lineheight] \startitemize 
> [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
>     \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
>     \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
>     \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
>     \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>   \stopitemize
> \stopitemize
>
> A. Christe
> Le 22 août 2023 à 04:08 +0200, fv leung , a écrit :
> > I'd do it this way:
> >
> > \starttext
> > \startitemize[n][style=\bf]
> > \item\vtop{%
> >   \startitemize[a,horizontal,four][stopper=\)]
> >     \startitem
> >       $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> >     \stopitem
> >     \startitem
> >       $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> >     \stopitem
> >     \startitem
> >       $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> >     \stopitem
> >     \startitem
> >       $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> >     \stopitem
> >   \stopitemize
> > }
> > \stopitemize
> >
> > \stoptext
> >
> > > Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:
> > > > Dear ConTeXt users,
> > > >
> > > > Time goes by but I haven't yet found a nice solution to this issue. 
> > > > When having mathematics, I'd not like to adjust by hand the factor of 
> > > > \linewidth for the \godown command.
> > > >
> > > > Here's a MWE
> > > >
> > > > \starttext
> > > >
> > > > \startitemize[n][style=\bf]
> > > >   \item \godown[-\lineheight] \startitemize 
> > > > [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
> > > >     \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> > > >     \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> > > >     \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> > > >     \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> > > >   \stopitemize
> > > > \stopitemize
> > > >
> > > > \stoptext
> > > >
> > > > Thanks in advance.
> > > >
> > > > > Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context 
> > > > >  a écrit :
> > > > > >
> > > > > > \starttext
> > > > > >
> > > > > > \startitemize[n]
> > > > > > \item\godown[-\lineheight]
> > > > > >   
> > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \stopitemize
> > > > > > \item\godown[-\lineheight]
> > > > > >   
> > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \stopitemize
> > > > > > \item\godown[-\lineheight]
> > > > > >   
> > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > >

[NTG-context] Re: Nested itemize

2023-08-22 Thread Mikael Sundqvist
Hi,

On Tue, Aug 22, 2023 at 7:16 AM Alexandre Christe
 wrote:
>
> It’s true that \vtop{…} does the job for a single line of items, but it 
> doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom.
>
> Here’s a modified MWE
>
> \startitemize[n][style=\bf]
>   \item \godown[-\lineheight] \startitemize 
> [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>   \stopitemize
> \stopitemize
>
> A. Christe
> Le 22 août 2023 à 04:08 +0200, fv leung , a écrit :
>
> I'd do it this way:
>
> \starttext
> \startitemize[n][style=\bf]
> \item\vtop{%
>   \startitemize[a,horizontal,four][stopper=\)]
> \startitem
>   $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \stopitem
> \startitem
>   $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \stopitem
> \startitem
>   $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \stopitem
> \startitem
>   $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> \stopitem
>   \stopitemize
> }
> \stopitemize
>
> \stoptext
>
> Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:
>>
>> Dear ConTeXt users,
>>
>> Time goes by but I haven't yet found a nice solution to this issue. When 
>> having mathematics, I'd not like to adjust by hand the factor of \linewidth 
>> for the \godown command.
>>
>> Here's a MWE
>>
>> \starttext
>>
>> \startitemize[n][style=\bf]
>>   \item \godown[-\lineheight] \startitemize 
>> [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
>> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
>> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
>> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
>> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>>   \stopitemize
>> \stopitemize
>>
>> \stoptext
>>
>> Thanks in advance.
>>
>> Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context  
>> a écrit :
>>>
>>>
>>> \starttext
>>>
>>> \startitemize[n]
>>> \item\godown[-\lineheight]
>>>   
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \item\godown[-\lineheight]
>>>   
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \item\godown[-\lineheight]
>>>   
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \stopitemize
>>>
>>> \stoptext
>>>
>>> Alexandre Christe via ntg-context  於 2022年9月2日 週五 
>>> 下午5:08寫道:
>>>>
>>>> Dear all,
>>>>
>>>> I'm struggling to setup a nested itemize with no blank line and several 
>>>> columns.
>>>>
>>>> What I mean is something like
>>>> 1. a) bla   c) bla
>>>> b) bla   d) bla
>>>>
>>>> The following MWE is my starting point
>>>>
>>>> \starttext
>>>> \startitemize[n]
>>>> \item \blank[-line]
>>>> \startitemize[a,horizontal,two] [margin=2cm]
>>>> \item First
>>>> \item Second
>>>> \item Third
>>>> \item Fourth
>>>> \stopitemize
>>>> \item \blank[-line]
>>>> \startitemize[a,horizontal,columns,two]
>>>> \item First
>>>> \item Second
>>>> \item Third
>>>> \item Fourth
>>>> \stopitemize
>>>> \stopitemize
>>>> \stoptext
>>>>
>>>> Thanks in advance

Not really tested, but \blank[overlay,-depth] seems to work OK (thanks Hans!).

I also take the opportunity to push a bit for the new itemtable mechanism:

\defineitemgroup[alex]

\setupitemgroup
[alex]
[each]
[a,two]
[margin=2cm,
before=\blank[overlay,-depth]]

\showboxes

\starttext
\startitemize[n]
\startitem
\startalextable
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopalextable
\stopitem
\stopitemize
\stoptext

Please test for a larger document to see if it works well.

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
It’s true that \vtop{…} does the job for a single line of items, but it doesn’t 
in the case there’re multiple (\vtop{}) aligns with the bottom.

Here’s a modified MWE

\startitemize[n][style=\bf]
  \item \godown[-\lineheight] \startitemize 
[a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
    \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
    \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
    \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
    \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
  \stopitemize
\stopitemize

A. Christe
Le 22 août 2023 à 04:08 +0200, fv leung , a écrit :
> I'd do it this way:
>
> \starttext
> \startitemize[n][style=\bf]
> \item\vtop{%
>   \startitemize[a,horizontal,four][stopper=\)]
>     \startitem
>       $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
>     \stopitem
>     \startitem
>       $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
>     \stopitem
>     \startitem
>       $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
>     \stopitem
>     \startitem
>       $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>     \stopitem
>   \stopitemize
> }
> \stopitemize
>
> \stoptext
>
> > Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:
> > > Dear ConTeXt users,
> > >
> > > Time goes by but I haven't yet found a nice solution to this issue. When 
> > > having mathematics, I'd not like to adjust by hand the factor of 
> > > \linewidth for the \godown command.
> > >
> > > Here's a MWE
> > >
> > > \starttext
> > >
> > > \startitemize[n][style=\bf]
> > >   \item \godown[-\lineheight] \startitemize 
> > > [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
> > >     \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> > >     \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> > >     \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> > >     \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> > >   \stopitemize
> > > \stopitemize
> > >
> > > \stoptext
> > >
> > > Thanks in advance.
> > >
> > > > Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context 
> > > >  a écrit :
> > > > >
> > > > > \starttext
> > > > >
> > > > > \startitemize[n]
> > > > > \item\godown[-\lineheight]
> > > > >   
> > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \stopitemize
> > > > > \item\godown[-\lineheight]
> > > > >   
> > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \stopitemize
> > > > > \item\godown[-\lineheight]
> > > > >   
> > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \stopitemize
> > > > > \stopitemize
> > > > >
> > > > > \stoptext
> > > > >
> > > > > > Alexandre Christe via ntg-context  於 2022年9月2日 
> > > > > > 週五 下午5:08寫道:
> > > > > > > Dear all,
> > > > > > >
> > > > > > > I'm struggling to setup a nested itemize with no blank line and 
> > > > > > > several columns.
> > > > > > >
> > > > > > > What I mean is something like
> > > > > > > 1. a) bla   c) bla
> > > > > > >     b) bla   d) bla
> > > > > > >
> > > > > > > The following MWE is my starting point
> > > > > > >
> > > > > > > \starttext
> > > > > > > \startitemize[n]
> > > > > > > \item \blank[-line]
> > > > > > > \startitemize[a,horizontal,two] [margin=2cm]
> > > > > > > \item First
> > > > > > > \item Second
> > > > > > > \item T

[NTG-context] Re: Nested itemize

2023-08-21 Thread fv leung
I'd do it this way:

\starttext
\startitemize[n][style=\bf]
\item\vtop{%
  \startitemize[a,horizontal,four][stopper=\)]
\startitem
  $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
\stopitem
\startitem
  $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
\stopitem
\startitem
  $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
\stopitem
\startitem
  $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
\stopitem
  \stopitemize
}
\stopitemize

\stoptext

Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:

> Dear ConTeXt users,
>
> Time goes by but I haven't yet found a nice solution to this issue. When
> having mathematics, I'd not like to adjust by hand the factor of \linewidth
> for the \godown command.
>
> Here's a MWE
>
> \starttext
>
> \startitemize[n][style=\bf]
>   \item \godown[-\lineheight] \startitemize
> [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>   \stopitemize
> \stopitemize
>
> \stoptext
>
> Thanks in advance.
>
> Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context 
> a écrit :
>
>>
>> \starttext
>>
>> \startitemize[n]
>> \item\godown[-\lineheight]
>>
>> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \stopitemize
>> \item\godown[-\lineheight]
>>
>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \stopitemize
>> \item\godown[-\lineheight]
>>
>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \stopitemize
>> \stopitemize
>>
>> \stoptext
>>
>> Alexandre Christe via ntg-context  於 2022年9月2日 週五
>> 下午5:08寫道:
>>
>>> Dear all,
>>>
>>> I'm struggling to setup a nested itemize with no blank line and several
>>> columns.
>>>
>>> What I mean is something like
>>> 1. a) bla   c) bla
>>> b) bla   d) bla
>>>
>>> The following MWE is my starting point
>>>
>>> \starttext
>>> \startitemize[n]
>>> \item \blank[-line]
>>> \startitemize[a,horizontal,two] [margin=2cm]
>>> \item First
>>> \item Second
>>> \item Third
>>> \item Fourth
>>> \stopitemize
>>> \item \blank[-line]
>>> \startitemize[a,horizontal,columns,two]
>>> \item First
>>> \item Second
>>> \item Third
>>> \item Fourth
>>> \stopitemize
>>> \stopitemize
>>> \stoptext
>>>
>>> Thanks in advance
>>>
>>> ___
>>> If your question is of interest to others as well, please add an entry
>>> to the Wiki!
>>>
>>> maillist : ntg-context@ntg.nl /
>>> https://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : https://contextgarden.net
>>>
>>> ___
>>>
>>
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>>
>> ___
>>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
Dear ConTeXt users,

Time goes by but I haven't yet found a nice solution to this issue. When
having mathematics, I'd not like to adjust by hand the factor of \linewidth
for the \godown command.

Here's a MWE

\starttext

\startitemize[n][style=\bf]
  \item \godown[-\lineheight] \startitemize
[a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
\item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
\item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
\item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
\item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
  \stopitemize
\stopitemize

\stoptext

Thanks in advance.

Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context 
a écrit :

>
> \starttext
>
> \startitemize[n]
> \item\godown[-\lineheight]
>
> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \stopitemize
> \item\godown[-\lineheight]
>
> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \stopitemize
> \item\godown[-\lineheight]
>
> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \stopitemize
> \stopitemize
>
> \stoptext
>
> Alexandre Christe via ntg-context  於 2022年9月2日 週五
> 下午5:08寫道:
>
>> Dear all,
>>
>> I'm struggling to setup a nested itemize with no blank line and several
>> columns.
>>
>> What I mean is something like
>> 1. a) bla   c) bla
>> b) bla   d) bla
>>
>> The following MWE is my starting point
>>
>> \starttext
>> \startitemize[n]
>> \item \blank[-line]
>> \startitemize[a,horizontal,two] [margin=2cm]
>> \item First
>> \item Second
>> \item Third
>> \item Fourth
>> \stopitemize
>> \item \blank[-line]
>> \startitemize[a,horizontal,columns,two]
>> \item First
>> \item Second
>> \item Third
>> \item Fourth
>> \stopitemize
>> \stopitemize
>> \stoptext
>>
>> Thanks in advance
>>
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>>
>> ___
>>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context

Hi,

There has been some additions to itemize wrt columns. One problem with 
columns is that we have a 'cross page' and 'balancing' situation. The 
existing columns features has been improved a bit.


That leaves the problem that mixing single and multi columns is not 
really tex's strong point. So, when Mikael and I were looking at one of 
his documents that mixes a lot of math into itemized situations, a 
different variant was made (ok, there was another reason but that's a 
bit technical).


At that time, I had already adapted itemize to work a bit better with 
bTABLE and starttabulate (nesting, trial mode etc), think of


\bTABLE \bTR \bTD
\startitemize[a]
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\startitemize[n]
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\stopitemize
\stopitem
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\stopitemize
\eTD \eTR \eTABLE

or with tabulate

\startitemize[n]
\starttabulate[||k2|]
\NC \startitem test \stopitem
\NC \startitem test \stopitem \NC \NR
\NC \startitem test \stopitem
\NC \startitem test \stopitem \NC \NR
\stoptabulate
\stopitemize

so basically inside these tables items can be dealt with. Don't wonder 
too much how this translates into structure.


So, back the columns, a logical next step was to add tabulated columns 
to itemize:


\startitemizetable[n,four]
\dorecurse{10}{
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{x^5}}
\stopitem
\startitem
\im{\frac{x^5}{x^5}}
\stopitem
}
\stopitemizetable

or with

\defineitemgroup[]

because every itemgroup also gets an additional pair of commands defined.

\starttable[n,four][inbetween={\blank[big]}]
\dorecurse{10}{
\startitem
\im{\sqrt{1/x}}
\stopitem
\startitem
\im{\sqrt{\frac{2}{x}}}
\stopitem
\startitem
\im{\frac{3}{x}}
\stopitem
}
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{x^5}}
\stopitem
\stoptable

etc etc. The distance can be set with columndistance and vertical 
spacing with inbetween.


This kind of columnizing has the advantage that esp with math that has 
different heights all aligns rather well. A limitation is that we number 
horizontally but that actually makes sense when we cross pages (I might 
cook up a transposed numbering but it's not entirely trivial).


The first one who uses this other than Mikael is invited to wikify it.

Hans

ps. The page columns also have some improvements but that's for next month.

-
  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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] itemize

2023-08-15 Thread Hans Hagen via ntg-context

Hi,

There has been some additions to itemize wrt columns. One problem with 
columns is that we have a 'cross page' and 'balancing' situation. The 
existing columns features has been improved a bit.


That leaves the problem that mixing single and multi columns is not 
really tex's strong point. So, when Mikael and I were looking at one of 
his documents that mixes a lot of math into itemized situations, a 
different variant was made (ok, there was another reason but that's a 
bit technical).


At that time, I had already adapted itemize to work a bit better with 
bTABLE and starttabulate (nesting, trial mode etc), think of


\bTABLE \bTR \bTD
\startitemize[a]
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\startitemize[n]
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\stopitemize
\stopitem
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\stopitemize
\eTD \eTR \eTABLE

or with tabulate

\startitemize[n]
\starttabulate[||k2|]
\NC \startitem test \stopitem
\NC \startitem test \stopitem \NC \NR
\NC \startitem test \stopitem
\NC \startitem test \stopitem \NC \NR
\stoptabulate
\stopitemize

so basically inside these tables items can be dealt with. Don't wonder 
too much how this translates into structure.


So, back the columns, a logical next step was to add tabulated columns 
to itemize:


\startitemizetable[n,four]
\dorecurse{10}{
\startitem
\im{\sqrt{\frac{1}{x^4}}}
\stopitem
\startitem
\im{\sqrt{x^5}}
\stopitem
\startitem
\im{\frac{x^5}{x^5}}
\stopitem
}
\stopitemizetable

or with


Hans

ps. The page columns also have some improvements but that's for next month.

-
  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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Gerion Entrup via ntg-context
Am Montag, 6. März 2023, 14:34:28 CET schrieb Aditya Mahajan via ntg-context:
> On Mon, 6 Mar 2023, Gerion Entrup via ntg-context wrote:
> 
> > Hi,
> > 
> > I'm trying to use a description environment in conjunction with an
> > itemize with the latest luametatex. Is this supposed to work?
> > 
> > Here is an MWE:
> > ```
> > \definedescription[desc][headstyle=bold]
> > 
> > \starttext
> > Foo
> > 
> > \desc{Some title} Some text
> > \startitemize
> > \item Some item
> > \stopitemize
> > 
> > \stoptext
> 
> Use \startdesc ... \stopdesc
> 
> \definedescription[desc][headstyle=bold]
> 
> \starttext
> Foo
> 
> \startdesc[title={Some title}]
>   Some text
> \startitemize
> \item Some item
> \stopitemize
> \stopdesc
> 
> \stoptext

That worked. Thank you!


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Aditya Mahajan via ntg-context
On Mon, 6 Mar 2023, Gerion Entrup via ntg-context wrote:

> Hi,
> 
> I'm trying to use a description environment in conjunction with an
> itemize with the latest luametatex. Is this supposed to work?
> 
> Here is an MWE:
> ```
> \definedescription[desc][headstyle=bold]
> 
> \starttext
> Foo
> 
> \desc{Some title} Some text
>   \startitemize
>   \item Some item
>   \stopitemize
> 
> \stoptext

Use \startdesc ... \stopdesc

\definedescription[desc][headstyle=bold]

\starttext
Foo

\startdesc[title={Some title}]
  Some text
\startitemize
\item Some item
\stopitemize
\stopdesc

\stoptext

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Gerion Entrup via ntg-context
Hi,

I'm trying to use a description environment in conjunction with an
itemize with the latest luametatex. Is this supposed to work?

Here is an MWE:
```
\definedescription[desc][headstyle=bold]

\starttext
Foo

\desc{Some title} Some text
\startitemize
\item Some item
\stopitemize

\stoptext
```

This currently fails with:
```
resolvers   | formats | executing runner 'run luametatex format': 
/home/gerion/context/tex/texmf-linux-64/bin/luametatex --jobname="./test.tex" 
--fmt=/home/gerion/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/home/gerion/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" 
--c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/home/gerion/context/tex/texmf-linux-64/bin"
system  >
system  > ConTeXt  ver: 2023.02.23 21:26 LMTX  fmt: 2023.3.4  int: 
english/english
system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/gerion/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/home/gerion/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './test', input './test.tex', result './test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './test.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern rm 12pt' is loaded
lua error   > lua error on line 8 in file ./test.tex:

registered function call [809]: 
...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: attempt to 
index a nil value (local 'd')
stack traceback:
...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:448: in 
function <...ext/tex/texmf-context/tex/context/base/mkiv/strc-num.lua:442>
(...tail calls...)
 1 \definedescription[desc][headstyle=bold]
 2
 3 \starttext
 4 Foo
 5
 6 \desc{Some title} Some text
 7  \startitemize
 8 >>   \item Some item
 9  \stopitemize
10
11 \stoptext
12
mtx-context | fatal error: return code: 1
```

Best,
Gerion


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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Margin figure in itemize

2022-11-22 Thread Alain Delmotte via ntg-context

Hi!

Le 21/11/2022 à 14:00, Alexandre Christe via ntg-context a 
écrit :

Dear list,

With the following MWE I end up with big gaps between 
margin figures in an itemized list. Is there a way to 
remove that space in the text and place the figures in the 
margin one below the other the best one can?


\setuppagenumbering
  [alternative=doublesided, location=margin]

\setuplayout
  [header=0pt,
   margin=4cm,
   footerdistance=.5cm,
   topspace=1cm,
   backspace=1cm,
   cutspace=2cm,
   width=fit,
   height=\dimexpr
\paperheight-\topspace+\footerheight+\footerdistance-4cm\relax]

% \showframe

\definefloat
  [marginfigure]
  [figure]

\setupfloat
  [marginfigure]
  [outermargindistance=-\outermargintotal,
  default={outermargin,height,high,low,none}]

\starttext

\startstaticMPfigure{square}
  draw fullsquare scaled 3cm;
\stopstaticMPfigure

\startitemize
  \placemarginfigure{}{\usestaticMPfigure[square]}
  \item bla
  \item bla
  \placemarginfigure{}{\usestaticMPfigure[square]}
  \item bla
\stopitemize

\stoptext

Thanks in advance,
Alex

For me it looks alright, in particular if you have longer 
text in the \item. The figures are aligned with the \item's.


One thing which changes is the space between de items: 
between 2 and 3. I have no answer for that.


---
Alain


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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Margin figure in itemize

2022-11-21 Thread Alexandre Christe via ntg-context
Dear list,

With the following MWE I end up with big gaps between margin figures in an
itemized list. Is there a way to remove that space in the text and place
the figures in the margin one below the other the best one can?

\setuppagenumbering
  [alternative=doublesided, location=margin]

\setuplayout
  [header=0pt,
   margin=4cm,
   footerdistance=.5cm,
   topspace=1cm,
   backspace=1cm,
   cutspace=2cm,
   width=fit,
   height=\dimexpr
\paperheight-\topspace+\footerheight+\footerdistance-4cm\relax]

% \showframe

\definefloat
  [marginfigure]
  [figure]

\setupfloat
  [marginfigure]
  [outermargindistance=-\outermargintotal,
  default={outermargin,height,high,low,none}]

\starttext

\startstaticMPfigure{square}
  draw fullsquare scaled 3cm;
\stopstaticMPfigure

\startitemize
  \placemarginfigure{}{\usestaticMPfigure[square]}
  \item bla
  \item bla
  \placemarginfigure{}{\usestaticMPfigure[square]}
  \item bla
\stopitemize

\stoptext

Thanks in advance,
Alex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Formula has excess vertical spacing when in two column itemize

2022-10-21 Thread Gavin via ntg-context
Hi List,

I am getting better at adjusting the space in enumerations, but I just put a 
formula inside an enumeration, and the formula’s vertical spacing became 
excessive. I’m not sure how the enumeration caused this problem.


\starttext

Evaluate the following derivatives.

\startitemize[n, columns, two, nowhite, after]

\item\hspace[big] $\frac{d}{dx} x^2$

This is where the solution should be. Text answers look fine, but formulas have 
too much space above, below and between lines\dots.

\item\hspace[big] $\frac{d}{dx}\left( x^3 + 2x \right)$

\item\hspace[big] $\frac{d}{dx}\left( x^{-2} \right)$

\item\hspace[big] $\frac{d}{dt}\left( 4t^4 - 3t^{\onehalf} \right) $

\item\hspace[big] $\frac{d}{dt}( 9 - 3t )$

\startformula\startmathalignment
\NC \frac{d}{dt}( 9 - 3t ) \NC= \frac{d}{dt} 9 - \frac{d}{dt} 3t \NR
\NC  \NC= 0 - 3\frac{d}{dt} t \NR
\NC  \NC= -3\cdot 1t^0 \NR
\NC  \NC= -3 \NR
\stopmathalignment\stopformula

\item\hspace[big] $\frac{d}{dp}\left( p^3 - 2p \right)$

\stopitemize

\stoptext


I’m also attaching a file with the above issue followed by the correct spacing 
in one-column for comparison.

I’m using LMTX (today’s upload, ver: 2022.10.21 21:13 LMTX  fmt: 2022.10.21) on 
an M1 Mac.

Any ideas?
Gavin



TwoColumnProblems.pdf
Description: Adobe PDF document


TwoColumnProblems.tex
Description: Binary data
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Nested itemize

2022-09-02 Thread fv leung via ntg-context
\starttext

\startitemize[n]
\item\godown[-\lineheight]

\startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
  \item bla
  \item bla
  \item bla
  \item bla
  \stopitemize
\item\godown[-\lineheight]

\startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
  \item bla
  \item bla
  \item bla
  \item bla
  \item bla
  \item bla
  \stopitemize
\item\godown[-\lineheight]

\startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
  \item bla
  \item bla
  \item bla
  \item bla
  \item bla
  \item bla
  \item bla
  \item bla
  \stopitemize
\stopitemize

\stoptext

Alexandre Christe via ntg-context  於 2022年9月2日 週五
下午5:08寫道:

> Dear all,
>
> I'm struggling to setup a nested itemize with no blank line and several
> columns.
>
> What I mean is something like
> 1. a) bla   c) bla
> b) bla   d) bla
>
> The following MWE is my starting point
>
> \starttext
> \startitemize[n]
> \item \blank[-line]
> \startitemize[a,horizontal,two] [margin=2cm]
> \item First
> \item Second
> \item Third
> \item Fourth
> \stopitemize
> \item \blank[-line]
> \startitemize[a,horizontal,columns,two]
> \item First
> \item Second
> \item Third
> \item Fourth
> \stopitemize
> \stopitemize
> \stoptext
>
> Thanks in advance
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Nested itemize

2022-09-02 Thread Alexandre Christe via ntg-context
Dear all,

I'm struggling to setup a nested itemize with no blank line and several
columns.

What I mean is something like
1. a) bla   c) bla
b) bla   d) bla

The following MWE is my starting point

\starttext
\startitemize[n]
\item \blank[-line]
\startitemize[a,horizontal,two] [margin=2cm]
\item First
\item Second
\item Third
\item Fourth
\stopitemize
\item \blank[-line]
\startitemize[a,horizontal,columns,two]
\item First
\item Second
\item Third
\item Fourth
\stopitemize
\stopitemize
\stoptext

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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Line up itemize list with answer block

2022-08-23 Thread Jan Willem Flamma via ntg-context


Dear list members,

How can I ensure that the itemize list in the answers line up with the 
counter?

Or, put simply: I want '1.1' and 'a) Answer 1' to line up.

Regards,
Jan Willem Flamma

PDF result:
https://live.contextgarden.net/cgi-bin/result.cgi?id=VtEh2Y


MWE:

\defineblock[question]
\defineblock[answer]

\hideblocks[question]
\hideblocks[answer]

\defineenumeration
    [question]
    [text=Question,
 after={\blank[2*big]},
 inbetween={\blank[nowhite]},
 way=bychapter,
 prefixsegments=chapter,
 prefix=yes]

\defineenumeration
    [answer]
    [counter=answer,
 text=,
 width=,
 before={\blank[nowhite]},
 after={\blank[nowhite]},
 indenting=no,
 titledistance=1cm,
 location=inmargin,
 alternative=left,
 headstyle=,
 way=bychapter,
 prefixsegments=chapter,
 prefix=yes]

\starttext

\startchapter[title={Chapter}]

\beginquestion
\startquestion
\startitemize[a,packed][stopper=,right=)]
\item Question 1
\item Question 2
\stopitemize
\stopquestion
\endquestion
\beginanswer
\startanswer
\startitemize[a,packed][stopper=,right=)]
\item Answer 1
\item Answer 2
\stopitemize

\stopanswer
\endanswer


\startsection[title={Questions}]
\useblocks[question]
\stopsection

\blank[big]

\startsection[title={Answers}]
\useblocks[answer]
\stopsection

\stopchapter

\stoptext


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

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Problems with itemize with several columns

2022-02-25 Thread Xavier B. via ntg-context
It seems that putting \column before itemize of 'c', forces 'c' together with 
this content. Repeating this step produces what I want:

\startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
Opereu:
\startitemize[a, columns, three]
\item \startformula 3 \cdot \frac{5}{3} \stopformula
\item \startformula \frac{3}{4} \cdot \frac{2}{5} \stopformula
\column
\item \startformula \frac{1}{3} \cdot \frac{3}{4} \div \frac{1}{5} \stopformula
\item \startformula 5 \div \frac{7}{10} \cdot 7 \div \frac{2}{5} \stopformula
\column
\item \startformula \frac{1}{2} \cdot \frac{1}{2} \stopformula
\item \startformula \frac{3}{2} \div \frac{2}{3} \div \frac{5}{4} \stopformula
\column
\item \startformula \frac{2}{3} \colon \frac{2}{5} \stopformula
\item \startformula \frac{3}{4} \colon \frac{1}{2} \cdot 6 \stopformula
\item \startformula \frac{2}{3} \colon \frac{3}{4} \cdot \frac{1}{2} 
\stopformula
\stopitemize
\stopexercici

@fv leung said I have to replace frac for dfrac, but it mess up the following 
content in my book.

Thanks all,


On Thu, 24 Feb 2022 23:04:43 +
Bruce Horrocks  ha escrit:

> 
> 
> > On 24 Feb 2022, at 22:10, Xavier B. via ntg-context  
> > wrote:
> > 
> > Even if I change 
> > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i 
> > divisió} Opereu:
> > \startitemize[a, columns, three]
> > 
> > 
> > for
> > 
> > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i 
> > divisió} Opereu:
> > \startitemize[a, columns]
> > 
> > 
> > the 'c' jumps.
> > 
> > Isn't ConTeXt capable of handle that?
> 
> Please see the attached PDF.
> 
> The green line shows how much space is needed to fully print item (b).  Item 
> (c) will need the same amount of space, shown by the red line. However, this 
> would take you into the footer area (shown by the blue arrows), so item (c) 
> is split: the item label fits into the space at the bottom of the column and 
> so is printed there; the fraction doesn't fit and so is moved to the next 
> column.
> 
> The solution to your problem would be some way of forcing the item body to 
> stay with the label. I don't know what that command is - hopefully someone 
> here does know.
> 
> —
> Bruce Horrocks
> Hampshire, UK
___
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] Problems with itemize with several columns

2022-02-25 Thread Xavier B. via ntg-context
Thanks, Bruce, for clarifying this. But can we put 'c' character in the second 
column. So 'c' and its math content were together.
The annoying thing is that the letter is in one column and its content in 
another.

Thanks,

On Thu, 24 Feb 2022 23:04:43 +
Bruce Horrocks  ha escrit:

> 
> 
> > On 24 Feb 2022, at 22:10, Xavier B. via ntg-context  
> > wrote:
> > 
> > Even if I change 
> > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i 
> > divisió} Opereu:
> > \startitemize[a, columns, three]
> > 
> > 
> > for
> > 
> > \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i 
> > divisió} Opereu:
> > \startitemize[a, columns]
> > 
> > 
> > the 'c' jumps.
> > 
> > Isn't ConTeXt capable of handle that?
> 
> Please see the attached PDF.
> 
> The green line shows how much space is needed to fully print item (b).  Item 
> (c) will need the same amount of space, shown by the red line. However, this 
> would take you into the footer area (shown by the blue arrows), so item (c) 
> is split: the item label fits into the space at the bottom of the column and 
> so is printed there; the fraction doesn't fit and so is moved to the next 
> column.
> 
> The solution to your problem would be some way of forcing the item body to 
> stay with the label. I don't know what that command is - hopefully someone 
> here does know.
> 
> —
> Bruce Horrocks
> Hampshire, UK
___
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] Problems with itemize with several columns

2022-02-25 Thread Bruce Horrocks via ntg-context

> On 24 Feb 2022, at 22:10, Xavier B. via ntg-context  
> wrote:
> 
> Even if I change 
> \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
> Opereu:
> \startitemize[a, columns, three]
> 
> 
> for
> 
> \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
> Opereu:
> \startitemize[a, columns]
> 
> 
> the 'c' jumps.
> 
> Isn't ConTeXt capable of handle that?

Please see the attached PDF which is your sample with the command 
\showmakeup[vbox] added after \starttext

The green line shows how much space is needed to fully print item (b).  Item 
(c) will need the same amount of space, shown by the red line. However, this 
would take you into the footer area (shown by the blue arrows), so item (c) is 
split: the item label fits into the space at the bottom of the column and so is 
printed there; the fraction doesn't fit and so is moved to the next column.

We can confirm this theory by setting the footer to nothing with the command 
\setuplayout[footer=0mm] and then the columns are as you wish. However that 
only works for this example and the situation would inevitably arise again.

The solution to your problem would be some way of forcing the item body to stay 
with the label. I don't know what that command is - hopefully someone here can 
tell us.

—
Bruce Horrocks
Hampshire, UK


columns annotated.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] Problems with itemize with several columns

2022-02-24 Thread fv leung via ntg-context
Avoid using \startformula \stopformula in itemize. Use \dfrac to get
display style fraction.


\defineenumeration
  [exercici]
  [alternative=serried, before={\blank[medium]\testpage[1]},
text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss,
distance=0.25em, width=fit, headcolor=exercici_color, title=yes,
titlestyle=\ss, titledistance=0em, left={\bgroup\bf}, right={\egroup},
after={\blank[big]}, prefix=yes, prefixsegments=section, way=section]
\starttext

\section{Operacions amb fraccions}

\subject{Preguntes}

\startexercici[exercici:operacions-amb-fraccions-1]{suma i resta} Opereu:
\startitemize[a, columns, three]
\item\m{\dfrac{2}{7} + \dfrac{6}{7} - \dfrac{1}{7}}
\item\m{\dfrac{5}{8} + \dfrac{9}{8}}
\item\m{\dfrac{1}{4} + 5 - \dfrac{1}{4}}
\item\m{\dfrac{3}{5} - \dfrac{2}{5} + \dfrac{11}{5}}
\item\m{\dfrac{2}{3} + \dfrac{1}{4}}
\item\m{5 + \dfrac{4}{5}}
\item\m{\dfrac{2}{3} + \dfrac{5}{8} - \dfrac{1}{9}}
\item\m{10 - \dfrac{1}{6} + \dfrac{6}{8}}
\item\m{\dfrac{3}{10} + \dfrac{7}{12}}
\stopitemize
\stopexercici

\startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i
divisió} Opereu:
\startitemize[a, columns, three]
\item\m{3 \cdot \dfrac{5}{3}}
\item\m{\dfrac{3}{4} \cdot \dfrac{2}{5}}
\item\m{\dfrac{1}{3} \cdot \dfrac{3}{4} \div \dfrac{1}{5}}
%\column
\item\m{5 \div \dfrac{7}{10} \cdot 7 \div \dfrac{2}{5}}
\item\m{\dfrac{1}{2} \cdot \dfrac{1}{2}}
\item\m{\dfrac{3}{2} \div \dfrac{2}{3} \div \dfrac{5}{4}}
%\column
\item\m{\dfrac{2}{3} \colon \dfrac{2}{5}}
\item\m{\dfrac{3}{4} \colon \dfrac{1}{2} \cdot 6}
\item\m{\dfrac{2}{3} \colon \dfrac{3}{4} \cdot \dfrac{1}{2}}
\stopitemize
\stopexercici

\startexercici[exercici:operacions-amb-fraccions-3]{operacions combinades}
\startitemize[a, columns, three]
\item\m{\dfrac{3}{4} + \dfrac{2}{5} \cdot \dfrac{1}{2}}
\item\m{\dfrac{2}{5} \div \dfrac{3}{5} - \dfrac{1}{4}}
\item\m{\left( 2 + \dfrac{3}{5} \right) \div \dfrac{4}{3}}
\item\m{\dfrac{2}{3} - \dfrac{5}{6}\cdot 8}
\item\m{4 + \dfrac{3}{5} - \left(2 - \dfrac{1}{2}\right)}
\item\m{4 \cdot \left(\dfrac{5}{6} - \dfrac{1}{4} + \dfrac{4}{9}\right)}
\item\m{\dfrac{5}{6} - \left(\dfrac{1}{5} + \dfrac{1}{3}\right)}
\item\m{\dfrac{5}{6} \div \left( \dfrac{2}{5} - \dfrac{1}{10}\right)}
\item\m{4 \cdot \dfrac{2}{3} \cdot \left(\dfrac{2}{4} \div
\dfrac{8}{10}\right)}
\item\m{\dfrac{3}{4} + \dfrac{1}{2} \cdot \dfrac{4}{10}}
\item\m{\dfrac{10}{12} - \left(\dfrac{1}{10} + \dfrac{3}{8}\right)}
\item\m{\left(\dfrac{1}{2} + 2\right) \cdot \left(2 - \dfrac{1}{4}\right)}
\item\m{\left(\dfrac{3}{4} + \dfrac{1}{4}\right) \div \left(\dfrac{5}{6} -
\dfrac{1}{3}\right)}
\item\m{5 + 10 - \dfrac{1}{10} + 25}
\item\m{\dfrac{1}{3} + \dfrac{1}{2} - \dfrac{2}{5}}
\item\m{\left(\dfrac{1}{2} + \dfrac{2}{10}\right) \cdot \dfrac{2}{6}}
\item\m{5 + \dfrac{1}{3} \cdot \dfrac{5}{3}}
\item\m{\left( 5 + \dfrac{1}{3} \right) \cdot \dfrac{5}{3}}
\stopitemize
\stopexercici
\stoptext


Xavier B. via ntg-context  於 2022年2月25日 週五 上午6:10寫道:

> Even if I change
> \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i
> divisió} Opereu:
> \startitemize[a, columns, three]
>
>
> for
>
> \startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i
> divisió} Opereu:
> \startitemize[a, columns]
>
>
> the 'c' jumps.
>
> Isn't ConTeXt capable of handle that?
>
> ___
> 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] Problems with itemize with several columns

2022-02-24 Thread Xavier B. via ntg-context
Even if I change 
\startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
Opereu:
\startitemize[a, columns, three]


for

\startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
Opereu:
\startitemize[a, columns]


the 'c' jumps.

Isn't ConTeXt capable of handle that?
___
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] Problems with itemize with several columns

2022-02-23 Thread Luis Montgomery via ntg-context
Could you define this in the preamble


%\unprotect
\defineitemgroup [Ex]
\setupitemgroup [Ex] [each]
[before={\blank[medium]\testpage[1]},after={\blank[big]},option={a,
columns,three,fit}]
%\protect

\startexercici[exercici:operacions-amb-fraccions-1]{suma i resta} Opereu:
\startEx
%\startitemize[a, columns, three]
...
\stopEx
\stopexercici


Good luck,

L. Montgomery


El mié., 23 de febrero de 2022 15:04, Xavier B. via ntg-context <
ntg-context@ntg.nl> escribió:

> On Wed, 23 Feb 2022 17:52:08 +
> Bruce Horrocks  ha escrit:
>
> >
> >
> > > On 23 Feb 2022, at 11:28, Xavier B. via ntg-context <
> ntg-context@ntg.nl> wrote:
> > >
> > > In my previous post [
> https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't
> know the reason, but the attached code des not display very well in mailing
> list. I put it here:
> > >
> > > \defineenumeration
> > >  [exercici]
> > >  [alternative=serried, before={\blank[medium]\testpage[1]},
> text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss,
> distance=0.25em, width=fit, headcolor=exercici_color, title=yes,
> titlestyle=\ss, titledistance=0em, left={\bgroup\bf}, right={\egroup},
> after={\blank[big]}, prefix=yes, prefixsegments=section, way=section]
> > [snip]
> >
> > Removing "alternative=serried" gives a more grid like layout and
> (possibly coincidentally) the problem of the 'c' and 'h' labels being
> orphaned at the bottom of the page goes away.
> >
> > However the Exercici 1.3 heading is now too close to the end of the
> previous set. Perhaps changing your "before=" setting might improve things.
> >
> > This is on version 2022.01.10 08:36
> > —
> > Bruce Horrocks
> > Hampshire, UK
> >
>
> Thanks, Bruce, but removing alternative=serried is not an option.
>
> I don't understand that 'e' fits the space and 'c' doesn't.
>
> @Luis: joinedup does not produce changes
>
> In conclusion, I have the same problem ;-)
>
> ___
> 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] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
On Wed, 23 Feb 2022 17:52:08 +
Bruce Horrocks  ha escrit:

> 
> 
> > On 23 Feb 2022, at 11:28, Xavier B. via ntg-context  
> > wrote:
> > 
> > In my previous post 
> > [https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't 
> > know the reason, but the attached code des not display very well in mailing 
> > list. I put it here:
> > 
> > \defineenumeration
> >  [exercici]
> >  [alternative=serried, before={\blank[medium]\testpage[1]}, 
> > text={Exercici}, stopper={.\space}, width=fit, headstyle=\ss, 
> > distance=0.25em, width=fit, headcolor=exercici_color, title=yes, 
> > titlestyle=\ss, titledistance=0em, left={\bgroup\bf}, right={\egroup}, 
> > after={\blank[big]}, prefix=yes, prefixsegments=section, way=section]
> [snip]
> 
> Removing "alternative=serried" gives a more grid like layout and (possibly 
> coincidentally) the problem of the 'c' and 'h' labels being orphaned at the 
> bottom of the page goes away.
> 
> However the Exercici 1.3 heading is now too close to the end of the previous 
> set. Perhaps changing your "before=" setting might improve things.
> 
> This is on version 2022.01.10 08:36
> —
> Bruce Horrocks
> Hampshire, UK
> 

Thanks, Bruce, but removing alternative=serried is not an option.

I don't understand that 'e' fits the space and 'c' doesn't.

@Luis: joinedup does not produce changes

In conclusion, I have the same problem ;-)
___
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] Problems with itemize with several columns

2022-02-23 Thread Bruce Horrocks via ntg-context


> On 23 Feb 2022, at 11:28, Xavier B. via ntg-context  
> wrote:
> 
> In my previous post 
> [https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know 
> the reason, but the attached code des not display very well in mailing list. 
> I put it here:
> 
> \defineenumeration
>  [exercici]
>  [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici}, 
> stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit, 
> headcolor=exercici_color, title=yes, titlestyle=\ss, titledistance=0em, 
> left={\bgroup\bf}, right={\egroup}, after={\blank[big]}, prefix=yes, 
> prefixsegments=section, way=section]
[snip]

Removing "alternative=serried" gives a more grid like layout and (possibly 
coincidentally) the problem of the 'c' and 'h' labels being orphaned at the 
bottom of the page goes away.

However the Exercici 1.3 heading is now too close to the end of the previous 
set. Perhaps changing your "before=" setting might improve things.

This is on version 2022.01.10 08:36
—
Bruce Horrocks
Hampshire, UK

___
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] Problems with itemize with several columns

2022-02-23 Thread Luis Montgomery via ntg-context
Try joinedup option in \startitemize.

Space problem?

L.  Montgomery

El mié., 23 de febrero de 2022 3:09, Xavier B. via ntg-context <
ntg-context@ntg.nl> escribió:

> Hi,
>
> I try to solve this, but I could not. Can you please help me.
> I make a math problem sheet. In "Exercici 1.2", I put a itemize with three
> columns, but the 'c' exercise jumps to second column. I want that a, b, c
> remains in the first column, d, e, f in the second and g, h, i in the third.
>
> I tried \column command but it's worse.
>
> I attached the source and generated pdf.
>
> My version of context is:
>  context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file:
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2021.03.05 19:11
> mtx-context | main context file:
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2021.03.05 19:11
>
>
> Thanks in advance,
>
> Xavier
>
> PS: Please CCme
>
>
> ___
> 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] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
In my previous post 
[https://mailman.ntg.nl/pipermail/ntg-context/2022/105138.html], I don't know 
the reason, but the attached code des not display very well in mailing list. I 
put it here:

\defineenumeration
  [exercici]
  [alternative=serried, before={\blank[medium]\testpage[1]}, text={Exercici}, 
stopper={.\space}, width=fit, headstyle=\ss, distance=0.25em, width=fit, 
headcolor=exercici_color, title=yes, titlestyle=\ss, titledistance=0em, 
left={\bgroup\bf}, right={\egroup}, after={\blank[big]}, prefix=yes, 
prefixsegments=section, way=section]

\starttext

\section{Operacions amb fraccions}

\subject{Preguntes}

\startexercici[exercici:operacions-amb-fraccions-1]{suma i resta} Opereu:
\startitemize[a, columns, three]
\item \startformula \frac{2}{7} + \frac{6}{7} - \frac{1}{7} \stopformula
\item \startformula \frac{5}{8} + \frac{9}{8} \stopformula
\item \startformula \frac{1}{4} + 5 - \frac{1}{4} \stopformula
\item \startformula \frac{3}{5} - \frac{2}{5} + \frac{11}{5} \stopformula
\item \startformula \frac{2}{3} + \frac{1}{4} \stopformula
\item \startformula 5 + \frac{4}{5} \stopformula
\item \startformula \frac{2}{3} + \frac{5}{8} - \frac{1}{9} \stopformula
\item \startformula 10 - \frac{1}{6} + \frac{6}{8} \stopformula
\item \startformula \frac{3}{10} + \frac{7}{12} \stopformula
\stopitemize
\stopexercici

\startexercici[exercici:operacions-amb-fraccions-2]{multiplicació i divisió} 
Opereu:
\startitemize[a, columns, three]
\item \startformula 3 \cdot \frac{5}{3} \stopformula
\item \startformula \frac{3}{4} \cdot \frac{2}{5} \stopformula
\item \startformula \frac{1}{3} \cdot \frac{3}{4} \div \frac{1}{5} \stopformula
%\column
\item \startformula 5 \div \frac{7}{10} \cdot 7 \div \frac{2}{5} \stopformula
\item \startformula \frac{1}{2} \cdot \frac{1}{2} \stopformula
\item \startformula \frac{3}{2} \div \frac{2}{3} \div \frac{5}{4} \stopformula
%\column
\item \startformula \frac{2}{3} \colon \frac{2}{5} \stopformula
\item \startformula \frac{3}{4} \colon \frac{1}{2} \cdot 6 \stopformula
\item \startformula \frac{2}{3} \colon \frac{3}{4} \cdot \frac{1}{2} 
\stopformula
\stopitemize
\stopexercici

\startexercici[exercici:operacions-amb-fraccions-3]{operacions combinades}
\startitemize[a, columns, three]
\item \startformula \frac{3}{4} + \frac{2}{5} \cdot \frac{1}{2} \stopformula
\item \startformula \frac{2}{5} \div \frac{3}{5} - \frac{1}{4} \stopformula
\item \startformula \left( 2 + \frac{3}{5} \right) \div \frac{4}{3} \stopformula
\item \startformula \frac{2}{3} - \frac{5}{6}\cdot 8 \stopformula
\item \startformula 4 + \frac{3}{5} - \left(2 - \frac{1}{2}\right) \stopformula
\item \startformula 4 \cdot \left(\frac{5}{6} - \frac{1}{4} + 
\frac{4}{9}\right) \stopformula
\item \startformula \frac{5}{6} - \left(\frac{1}{5} + \frac{1}{3}\right) 
\stopformula
\item \startformula \frac{5}{6} \div \left( \frac{2}{5} - \frac{1}{10}\right) 
\stopformula
\item \startformula 4 \cdot \frac{2}{3} \cdot \left(\frac{2}{4} \div 
\frac{8}{10}\right) \stopformula
\item \startformula \frac{3}{4} + \frac{1}{2} \cdot \frac{4}{10} \stopformula
\item \startformula \frac{10}{12} - \left(\frac{1}{10} + \frac{3}{8}\right) 
\stopformula
\item \startformula \left(\frac{1}{2} + 2\right) \cdot \left(2 - 
\frac{1}{4}\right) \stopformula
\item \startformula \left(\frac{3}{4} + \frac{1}{4}\right) \div 
\left(\frac{5}{6} - \frac{1}{3}\right) \stopformula
\item \startformula 5 + 10 - \frac{1}{10} + 25 \stopformula
\item \startformula \frac{1}{3} + \frac{1}{2} - \frac{2}{5} \stopformula
\item \startformula \left(\frac{1}{2} + \frac{2}{10}\right) \cdot \frac{2}{6} 
\stopformula
\item \startformula 5 + \frac{1}{3} \cdot \frac{5}{3} \stopformula
\item \startformula \left( 5 + \frac{1}{3} \right) \cdot \frac{5}{3} 
\stopformula
\stopitemize
\stopexercici

\stoptext


I re-attach the resulting pdf

Thanks,



On Wed, 23 Feb 2022 09:59:58 +0100
"Xavier B."  ha escrit:

> Hi,
> 
> I try to solve this, but I could not. Can you please help me.
> I make a math problem sheet. In "Exercici 1.2", I put a itemize with three 
> columns, but the 'c' exercise jumps to second column. I want that a, b, c 
> remains in the first column, d, e, f in the second and g, h, i in the third.
> 
> I tried \column command but it's worse.
> 
> I attached the source and generated pdf.
> 
> My version of context is:
>  context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2021.03.05 19:11
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2021.03.05 19:11
> 
> 
> Thanks in advance,
> 
> Xavier
> 
> PS: Please CCme
> 


a.pdf
Description: Adobe PDF document
___

[NTG-context] Problems with itemize with several columns

2022-02-23 Thread Xavier B. via ntg-context
Hi,

I try to solve this, but I could not. Can you please help me.
I make a math problem sheet. In "Exercici 1.2", I put a itemize with three 
columns, but the 'c' exercise jumps to second column. I want that a, b, c 
remains in the first column, d, e, f in the second and g, h, i in the third.

I tried \column command but it's worse.

I attached the source and generated pdf.

My version of context is:
 context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.03.05 19:11
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.03.05 19:11


Thanks in advance,

Xavier

PS: Please CCme



a.context
Description: Binary data


a.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] Solved! Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Gavin via ntg-context
Thanks, Hans!

That works, and it makes sense. Playing with frames always pays, indeed.

-Gavin


> On Jan 14, 2022, at 3:18 PM, Hans Hagen  wrote:
> 
> On 1/14/2022 8:10 PM, Gavin via ntg-context wrote:
>> Hi List,
>> I solved this problem, but the solution is a bit mysterious to me. I was 
>> trying to solve another problem – removing the small space underneath the 
>> graphic in the framed box. I did this by adding boffset=-\strutdepth to the 
>> framed command. That not only got rid of the space inside the frame, it also 
>> removed the excess space between the rows in the itemize columns!
>> I don’t know why this fix solved both problems, but I’m happy with the 
>> result. Now I can use options for the choices – like packed and joinedup – 
>> with consistent results for any number of columns. I’ve put the fixed code 
>> and output below, for anyone who is interested.
>> Even when I’m a bit confused, I’m glad to be working with ConTeXt rather 
>> than any other system!
> 
> % your hack:
> 
> \define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=0pt,boffset=-\strutdepth,xframe=off]{\useMPgraphic{name}}}
> 
> % but ... you just don't want struts
> 
> \define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=0pt,strut=no,frame=off]{\useMPgraphic{name}}}
> 
> % and no offset but also no invisible frame
> 
> \define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=overlay,frame=off]{\useMPgraphic{name}}}
> 
> playing with framed for a while alway spays back
> 
> Hans
> 
> 
> -
>  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
___


Re: [NTG-context] Solved! Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Hans Hagen via ntg-context

On 1/14/2022 8:10 PM, Gavin via ntg-context wrote:

Hi List,

I solved this problem, but the solution is a bit mysterious to me. I was trying 
to solve another problem – removing the small space underneath the graphic in 
the framed box. I did this by adding boffset=-\strutdepth to the framed 
command. That not only got rid of the space inside the frame, it also removed 
the excess space between the rows in the itemize columns!

I don’t know why this fix solved both problems, but I’m happy with the result. 
Now I can use options for the choices – like packed and joinedup – with 
consistent results for any number of columns. I’ve put the fixed code and 
output below, for anyone who is interested.

Even when I’m a bit confused, I’m glad to be working with ConTeXt rather than 
any other system!


% your hack:

\define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=0pt,boffset=-\strutdepth,xframe=off]{\useMPgraphic{name}}}

% but ... you just don't want struts

\define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=0pt,strut=no,frame=off]{\useMPgraphic{name}}}

% and no offset but also no invisible frame

\define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=overlay,frame=off]{\useMPgraphic{name}}}

playing with framed for a while alway spays back

Hans


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


Re: [NTG-context] Solved! Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Gavin via ntg-context
Hi List,

I solved this problem, but the solution is a bit mysterious to me. I was trying 
to solve another problem – removing the small space underneath the graphic in 
the framed box. I did this by adding boffset=-\strutdepth to the framed 
command. That not only got rid of the space inside the frame, it also removed 
the excess space between the rows in the itemize columns!

I don’t know why this fix solved both problems, but I’m happy with the result. 
Now I can use options for the choices – like packed and joinedup – with 
consistent results for any number of columns. I’ve put the fixed code and 
output below, for anyone who is interested.

Even when I’m a bit confused, I’m glad to be working with ConTeXt rather than 
any other system!

Best,
Gavin


\starttext

\defineitemgroup[questions]
\setupquestions [1] [n]
\define\question{\item}

\defineitemgroup[choices]
\setupchoices [each] [A,columns] [left=(, right=), width=1.7em, stopper=,]
\define\choice{\item}

\def\mycolor{.625red}

\startuseMPgraphic{name}
  fill fullcircle scaled 40pt withcolor \mycolor;
\stopuseMPgraphic

\define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=0pt,boffset=-\strutdepth,frame=off]{\useMPgraphic{name}}}

Here are a few great looking multiple choice questions about colors.
\startquestions
\question What is your favorite color?
\startchoices[columns,four]
  \choice \mycolordot{.625red}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices

\question What is your least favorite color?
\startchoices[columns]
  \choice \mycolordot{.625red}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices

\question Toward which colors do you feel indifferent?
\startchoices[one]
  \choice \mycolordot{.625red}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices
\stopquestions

That's it for questions about colors!

\stoptext



PastedGraphic-2.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] Spacing issue in itemize

2022-01-14 Thread Aditya Mahajan via ntg-context
On Fri, 14 Jan 2022, Hans Hagen wrote:

> > @Hans: Does it make sense to add a setups key to \setupitemize to keep such
> > changes local?
> % 0 = before/after
> % 1 = between unless before
> % 2 = between
> 
> \c_strc_itemgroups_spacing_mode\plustwo
> 
> The question then is: "what key" (we have c!inherit available) and "what
> values" (numbers ?) ...

alternative = (a|b|c) like placelist?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Itemize columns with MPgraphics: another vertical spacing puzzle

2022-01-14 Thread Gavin via ntg-context
Hi List,

I need to itemize graphics when I use those graphics as the choices in a 
multiple choice question. When I do that in columns, I am getting excess space 
below the graphics. See example code and output below. Any suggestions for how 
I get rid of this space?

I’m not sure if this is related to the itemize column spacing in my previous 
comment.

Thanks, again!
Gavin


\starttext

\defineitemgroup[choices]
\setupchoices [each] [A,joinedup] [left=(, right=), width=1.7em, stopper=,]
\define\choice{\item}

\def\mycolor{.625red}

\startuseMPgraphic{name}
  fill fullcircle scaled 40pt withcolor \mycolor;
\stopuseMPgraphic

\define[1]\mycolordot{\def\mycolor{#1}\framed[location=top,offset=0pt,frame=off]{\useMPgraphic{name}}}

What is your favorite color? (There is too much space after these choices.)
\startchoices[columns,four]
  \choice \mycolordot{.625red}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices

A ruledhboxs show the extra space is in the itemize, but not in the item 
contents.

\ruledhbox{\startchoices[columns, four]
  \choice \ruledhbox{\mycolordot{.625red}}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices}

Putting a ruledhbox around the first item shows that each item has extra space 
that is not part of the item contents. (The ruledhbox also messes with the 
horizontal alignment, but I don't care about that.)
\startchoices[columns]
  \ruledhbox{\choice \mycolordot{.625red}}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices

The extra space is not present without columns.
\startchoices
  \choice \mycolordot{.625red}
  \choice \mycolordot{.625blue}
  \choice \mycolordot{.625green}
  \choice \mycolordot{.625magenta}
\stopchoices

\ruledhbox{My favorite color is:\def\mycolor{.625blue}
\framed[location=top,offset=0pt,frame=on] {\useMPgraphic{name}}}

\stoptext



PastedGraphic-1.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] Spacing issue in itemize

2022-01-14 Thread Gavin via ntg-context
Hi Hans, Aditya, and all,

Let me add another case to this discussion. For multiple choice questions, it 
is nice to have the columns option. However, this produces somewhat 
inconsistent results. In the code below, without Aditya's tweak, there is space 
before the choices in the first two cases, which use columns, but not the last. 
Aditya’s  tweak makes them more consistent.

Adding [columns, one] to the last \startchoices makes the results consistent. 
When doing that, I noticed that the spacing between column rows is slightly 
larger than the spacing between items without columns. So, I am happy using 
[columns, one] as a solution for multiple choice problems, just somewhat 
surprised by the difference.

Gavin


\starttext

%\unprotect
%\c_strc_itemgroups_spacing_mode\plusone
%\protect

\defineitemgroup[questions]
\setupquestions [1] [n]
\define\question{\item}

\defineitemgroup[choices]
\setupchoices [each] [A] [left=(, right=), width=1.7em, stopper=,]
\define\choice{\item}

Here are a few great looking multiple choice questions about colors.
\startquestions
\question What is your favorite color?
\startchoices[columns,four]
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\question What is your least favorite color?
\startchoices[columns]
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\question Toward which colors do you feel indifferent?
\startchoices
  \item Red
  \item Blue
  \item Green
  \item Magenta
\stopitemize
\stopquestions
That's it for questions about colors!

\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Spacing issue in itemize

2022-01-14 Thread Hans Hagen via ntg-context

On 1/13/2022 6:15 PM, Aditya Mahajan via ntg-context wrote:

On Thu, 13 Jan 2022, Gavin via ntg-context wrote:


Hi list,

When I define an items group, it seems to mess up the spacing for a nested item 
group. See example below. Any ideas?

I’m typesetting with

> ConTeXt  ver: 2022.01.06 19:51 LMTX  fmt: 2022.1.9  int: 
english/english

on an M1 Mac.

Thanks!
Gavin


\usemodule[visual]

\defineitemgroup[questions]
\setupquestions [each] [n]

\starttext
This numbered list uses my item group \quotation{questions.} The itemize inside 
is missing space above item (a).
\startquestions
   \item \fakewords{15}{20}
 \startitemize[a][left=(,stopper=,right=)]
   \item \fakewords{10}{15}
   \item \fakewords{10}{15}
 \stopitemize
   \item \fakewords{10}{15}
\stopquestions

This numbered list uses itemize. The itemize inside has the expected space 
above item (a).
\startitemize[n]
   \item \fakewords{15}{20}
 \startitemize[a][left=(,stopper=,right=)]
   \item \fakewords{10}{15}
   \item \fakewords{10}{15}
 \stopitemize
   \item \fakewords{10}{15}
\stopitemize

\stoptext


This is by design. This is what is happening:

\usemodule[visual]

\defineitemgroup[questions]

\starttext
This numbered list uses my item group \quotation{questions.} The itemize inside 
is missing space above item (a).
\startquestions[n][inbetween={AAA}]
   \item \fakewords{15}{20}
 \startitemize[a][left=(,stopper=,right=),before={BBB}]
   \item \fakewords{10}{15}
   \item \fakewords{10}{15}
 \stopitemize
   \item \fakewords{10}{15}
\stopquestions

This numbered list uses itemize. The itemize inside has the expected space 
above item (a).
\startitemize[n][inbetween={AAA}]
   \item \fakewords{15}{20}
 \startitemize[a][left=(,stopper=,right=),before={BBB}]
   \item \fakewords{10}{15}
   \item \fakewords{10}{15}
 \stopitemize
   \item \fakewords{10}{15}
\stopitemize

\stoptext

Note that in the first case, the inbetween does not get inserted at the start 
of the nested itemization (because, ConTeXt doesn't think that they are nested 
as the names are different). But the before key of the nested itemization 
doesn't get inserted in both cases because ConTeXt thinks that the itemization 
is nested!

You can change this behavior by using:

\unprotect
\c_strc_itemgroups_spacing_mode\plusone
\protect

in which case both outputs are similar.

@Hans: Does it make sense to add a setups key to \setupitemize to keep such 
changes local?

% 0 = before/after
% 1 = between unless before
% 2 = between

\c_strc_itemgroups_spacing_mode\plustwo

The question then is: "what key" (we have c!inherit available) and "what 
values" (numbers ?) ...


Hans


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


Re: [NTG-context] Spacing issue in itemize

2022-01-13 Thread Gavin via ntg-context
Thank you again, Aditya!

I changed my documents so I use three levels of question, which solved the 
problem.

My code might be more readable if the different levels had different names 
(question, part, subpart), rather than nested questions in questions. This was 
my original intention. I was certainly surprised by the result.

Now I’m moving on to the problem set's diagrams with MetaFun.

Gavin


> On Jan 13, 2022, at 10:15 AM, Aditya Mahajan via ntg-context 
>  wrote:
> 
> On Thu, 13 Jan 2022, Gavin via ntg-context wrote:
> 
>> Hi list,
>> 
>> When I define an items group, it seems to mess up the spacing for a nested 
>> item group. See example below. Any ideas?
>> 
>> I’m typesetting with
>> 
>>  > ConTeXt  ver: 2022.01.06 19:51 LMTX  fmt: 2022.1.9  int: 
>> english/english
>> 
>> on an M1 Mac.
>> 
>> Thanks!
>> Gavin
>> 
>> 
>> \usemodule[visual]
>> 
>> \defineitemgroup[questions]
>> \setupquestions [each] [n]
>> 
>> \starttext
>> This numbered list uses my item group \quotation{questions.} The itemize 
>> inside is missing space above item (a).
>> \startquestions
>>  \item \fakewords{15}{20}
>>\startitemize[a][left=(,stopper=,right=)]
>>  \item \fakewords{10}{15}
>>  \item \fakewords{10}{15}
>>\stopitemize
>>  \item \fakewords{10}{15}
>> \stopquestions
>> 
>> This numbered list uses itemize. The itemize inside has the expected space 
>> above item (a).
>> \startitemize[n]
>>  \item \fakewords{15}{20}
>>\startitemize[a][left=(,stopper=,right=)]
>>  \item \fakewords{10}{15}
>>  \item \fakewords{10}{15}
>>\stopitemize
>>  \item \fakewords{10}{15}
>> \stopitemize
>> 
>> \stoptext
> 
> This is by design. This is what is happening:
> 
> \usemodule[visual]
> 
> \defineitemgroup[questions]
> 
> \starttext
> This numbered list uses my item group \quotation{questions.} The itemize 
> inside is missing space above item (a).
> \startquestions[n][inbetween={AAA}]
>  \item \fakewords{15}{20}
>\startitemize[a][left=(,stopper=,right=),before={BBB}]
>  \item \fakewords{10}{15}
>  \item \fakewords{10}{15}
>\stopitemize
>  \item \fakewords{10}{15}
> \stopquestions
> 
> This numbered list uses itemize. The itemize inside has the expected space 
> above item (a).
> \startitemize[n][inbetween={AAA}]
>  \item \fakewords{15}{20}
>\startitemize[a][left=(,stopper=,right=),before={BBB}]
>  \item \fakewords{10}{15}
>  \item \fakewords{10}{15}
>\stopitemize
>  \item \fakewords{10}{15}
> \stopitemize
> 
> \stoptext
> 
> Note that in the first case, the inbetween does not get inserted at the start 
> of the nested itemization (because, ConTeXt doesn't think that they are 
> nested as the names are different). But the before key of the nested 
> itemization doesn't get inserted in both cases because ConTeXt thinks that 
> the itemization is nested!
> 
> You can change this behavior by using:
> 
> \unprotect
> \c_strc_itemgroups_spacing_mode\plusone
> \protect
> 
> in which case both outputs are similar. 
> 
> @Hans: Does it make sense to add a setups key to \setupitemize to keep such 
> changes local?
> 
> 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://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] Spacing issue in itemize

2022-01-13 Thread Aditya Mahajan via ntg-context
On Thu, 13 Jan 2022, Gavin via ntg-context wrote:

> Hi list,
> 
> When I define an items group, it seems to mess up the spacing for a nested 
> item group. See example below. Any ideas?
> 
> I’m typesetting with
> 
>   > ConTeXt  ver: 2022.01.06 19:51 LMTX  fmt: 2022.1.9  int: 
> english/english
> 
> on an M1 Mac.
> 
> Thanks!
> Gavin
> 
> 
> \usemodule[visual]
> 
> \defineitemgroup[questions]
> \setupquestions [each] [n]
> 
> \starttext
> This numbered list uses my item group \quotation{questions.} The itemize 
> inside is missing space above item (a).
> \startquestions
>   \item \fakewords{15}{20}
> \startitemize[a][left=(,stopper=,right=)]
>   \item \fakewords{10}{15}
>   \item \fakewords{10}{15}
> \stopitemize
>   \item \fakewords{10}{15}
> \stopquestions
> 
> This numbered list uses itemize. The itemize inside has the expected space 
> above item (a).
> \startitemize[n]
>   \item \fakewords{15}{20}
> \startitemize[a][left=(,stopper=,right=)]
>   \item \fakewords{10}{15}
>   \item \fakewords{10}{15}
> \stopitemize
>   \item \fakewords{10}{15}
> \stopitemize
> 
> \stoptext

This is by design. This is what is happening:

\usemodule[visual]

\defineitemgroup[questions]

\starttext
This numbered list uses my item group \quotation{questions.} The itemize inside 
is missing space above item (a).
\startquestions[n][inbetween={AAA}]
  \item \fakewords{15}{20}
\startitemize[a][left=(,stopper=,right=),before={BBB}]
  \item \fakewords{10}{15}
  \item \fakewords{10}{15}
\stopitemize
  \item \fakewords{10}{15}
\stopquestions

This numbered list uses itemize. The itemize inside has the expected space 
above item (a).
\startitemize[n][inbetween={AAA}]
  \item \fakewords{15}{20}
\startitemize[a][left=(,stopper=,right=),before={BBB}]
  \item \fakewords{10}{15}
  \item \fakewords{10}{15}
\stopitemize
  \item \fakewords{10}{15}
\stopitemize

\stoptext

Note that in the first case, the inbetween does not get inserted at the start 
of the nested itemization (because, ConTeXt doesn't think that they are nested 
as the names are different). But the before key of the nested itemization 
doesn't get inserted in both cases because ConTeXt thinks that the itemization 
is nested!

You can change this behavior by using:

\unprotect
\c_strc_itemgroups_spacing_mode\plusone
\protect

in which case both outputs are similar. 

@Hans: Does it make sense to add a setups key to \setupitemize to keep such 
changes local?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Spacing issue in itemize

2022-01-13 Thread Gavin via ntg-context
Hi list,

When I define an items group, it seems to mess up the spacing for a nested item 
group. See example below. Any ideas?

I’m typesetting with

> ConTeXt  ver: 2022.01.06 19:51 LMTX  fmt: 2022.1.9  int: 
english/english

on an M1 Mac.

Thanks!
Gavin


\usemodule[visual]

\defineitemgroup[questions]
\setupquestions [each] [n]

\starttext
This numbered list uses my item group \quotation{questions.} The itemize inside 
is missing space above item (a).
\startquestions
  \item \fakewords{15}{20}
\startitemize[a][left=(,stopper=,right=)]
  \item \fakewords{10}{15}
  \item \fakewords{10}{15}
\stopitemize
  \item \fakewords{10}{15}
\stopquestions

This numbered list uses itemize. The itemize inside has the expected space 
above item (a).
\startitemize[n]
  \item \fakewords{15}{20}
\startitemize[a][left=(,stopper=,right=)]
  \item \fakewords{10}{15}
  \item \fakewords{10}{15}
\stopitemize
  \item \fakewords{10}{15}
\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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with \head inside \itemize

2021-12-23 Thread Benjamin Buchmuller via ntg-context
Thanks, Wolfgang, perfectly works! I added an example to the Wiki.

> On Dec 21, 2021, at 18:03, Wolfgang Schuster 
>  wrote:
> 
> Benjamin Buchmuller via ntg-context schrieb am 21.12.2021 um 14:04:
>> Not sure if this is the behavior to expect, but I would like to get 
>> formatted inline headers in itemize like:
> 
> The syntax for \starthead is
> 
> \starthead {...} ... \stophead
> 
> where the argument within the braces is mandatory.
> 
>> – Unformatted item.
>> – *Head One.* Something bla bla.
>> – *Head Two.* Other bla bla.
>> 
>> From:
>> 
>> \setupitemize[each][2, headintext]
>> % \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}]
>> \setupitemize[each][headcolor=red, headstyle=bold]
>> 
>> \startitemize
>> \item Unformatted item.
>> \head Head One \par Something bla bla.
>> \starthead Head Two \stophead Other bla bla. % Even worse: No inline any 
>> more.
>> \stopitemize
>> 
>> However, headstyle= and headcolor= seem to spill all over … Is it a feature 
>> or a bug?
> 
> No bug, just a user error. When you put the head text in the argument of 
> \starthead everything works as expected.
> 
> \starttext
> 
> \startitemize[headintext][headstyle=bold]
> \startitem Unformatted item. \stopitem
> \starthead {Head One.} Something bla bla. \stophead
> \starthead {Head Two.} Other bla bla. \stophead
> \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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with \head inside \itemize

2021-12-21 Thread Wolfgang Schuster via ntg-context

Benjamin Buchmuller via ntg-context schrieb am 21.12.2021 um 14:04:

Not sure if this is the behavior to expect, but I would like to get formatted 
inline headers in itemize like:


The syntax for \starthead is

    \starthead {...} ... \stophead

where the argument within the braces is mandatory.


– Unformatted item.
– *Head One.* Something bla bla.
– *Head Two.* Other bla bla.

From:

\setupitemize[each][2, headintext]
% \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}]
\setupitemize[each][headcolor=red, headstyle=bold]

\startitemize
\item Unformatted item.
\head Head One \par Something bla bla.
\starthead Head Two \stophead Other bla bla. % Even worse: No inline any more.
\stopitemize

However, headstyle= and headcolor= seem to spill all over … Is it a feature or 
a bug?


No bug, just a user error. When you put the head text in the argument of 
\starthead everything works as expected.


\starttext

\startitemize[headintext][headstyle=bold]
\startitem Unformatted item. \stopitem
\starthead {Head One.} Something bla bla. \stophead
\starthead {Head Two.} Other bla bla. \stophead
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] Problem with \head inside \itemize

2021-12-21 Thread Benjamin Buchmuller via ntg-context
Not sure if this is the behavior to expect, but I would like to get formatted 
inline headers in itemize like:

– Unformatted item.
– *Head One.* Something bla bla.
– *Head Two.* Other bla bla.

From:

\setupitemize[each][2, headintext]
% \setupitemize[each][headstyle={\groupedcommand{\bf}{.\space\tf}}]
\setupitemize[each][headcolor=red, headstyle=bold]

\startitemize
\item Unformatted item.
\head Head One \par Something bla bla.
\starthead Head Two \stophead Other bla bla. % Even worse: No inline any more.
\stopitemize

However, headstyle= and headcolor= seem to spill all over … Is it a feature or 
a bug?

Thanks


Benjamin
___
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] Problem with \head inside \itemize

2021-11-22 Thread Hans Hagen via ntg-context

On 11/22/2021 2:30 PM, Taco Hoekwater via ntg-context wrote:




On 22 Nov 2021, at 14:15, Jean-Philippe Rey via ntg-context 
 wrote:

Dear list,

The following code worked perfectly well with ConTeXt  ver: 2021.01.05 10:45 
LMTX
but produces an error with the current LMTX version (at least since ConTeXt  
ver: 2021.09.26 17:00 LMTX).
Adding an explicit \par at the end of the \head line allows the example to work.


It seems like the newest LMTX versions don’t handle implicit \par (empty lines) 
as argument
delimiter any more, the argument has to be terminated by the explicit string 
“\par", just
like any other argument delimiter.

This is definitely a change, but I would vote for that change to stay. ;)

there is some experimental stuff involved

\starttext

default: \the\autoparagraphmode \blank

% 0x1 text | 0x2 macro | 0x4 go-on

\autoparagraphmode0 \def\foo#1\par{[#1]} 0: \foo test\par test\par
\autoparagraphmode1 \def\foo#1\par{[#1]} 1: \foo test\par test\par
\autoparagraphmode2 \def\foo#1\par{[#1]} 2: \foo test\par test\par
\autoparagraphmode4 \def\foo#1\par{[#1]} 4: \foo test\par test\par

\starttext

but inceed i'd like to get rid of par delimited commands (afaiks we have 
only two left) and \starthead .. \stophead is the way to go


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


Re: [NTG-context] Problem with \head inside \itemize

2021-11-22 Thread Taco Hoekwater via ntg-context


> On 22 Nov 2021, at 14:15, Jean-Philippe Rey via ntg-context 
>  wrote:
> 
> Dear list,
> 
> The following code worked perfectly well with ConTeXt  ver: 2021.01.05 10:45 
> LMTX
> but produces an error with the current LMTX version (at least since ConTeXt  
> ver: 2021.09.26 17:00 LMTX).
> Adding an explicit \par at the end of the \head line allows the example to 
> work.

It seems like the newest LMTX versions don’t handle implicit \par (empty lines) 
as argument 
delimiter any more, the argument has to be terminated by the explicit string 
“\par", just 
like any other argument delimiter. 

This is definitely a change, but I would vote for that change to stay. ;)

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Problem with \head inside \itemize

2021-11-22 Thread Jean-Philippe Rey via ntg-context
Dear list,

The following code worked perfectly well with ConTeXt  ver: 2021.01.05 10:45 
LMTX
but produces an error with the current LMTX version (at least since ConTeXt  
ver: 2021.09.26 17:00 LMTX).
Adding an explicit \par at the end of the \head line allows the example to work.

Best regards,
JP

Here is the minimal failing example :

===
\starttext
\startitemize
\head Title

text
\stopitemize
\stoptext
===

and the corresponding log output :

===
resolvers   | formats | executing runner 'run luametatex format': 
/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-osx-64/bin/luametatex
 --jobname="./mfe-head.tex" 
--fmt=/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./mfe-head.tex" --c:input="./mfe-head.tex" 
--c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-osx-64/bin"
system  > 
system  > ConTeXt  ver: 2021.11.19 09:31 LMTX  fmt: 2021.11.22  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/Users/jprey/Applications/ConTeXt/Current/osx-64/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './mfe-head', input './mfe-head.tex', result 
'./mfe-head'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './mfe-head.tex'
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
tex error   > tex error on line 8 in file ./mfe-head.tex: The file ended 
when scanning an argument.

Title \par text \stopitemize \stoptext 

 
\stoptext

1 \starttext
2 \startitemize
3 \head Title
4 
5 text
6 \stopitemize
7 \stoptext
8 >>  
mtx-context | fatal error: return code: 256


-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
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] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Wolfgang Schuster via ntg-context

Alexandre Christe via ntg-context schrieb am 20.11.2021 um 16:19:

Dear all,

I'm trying something out in LMTX, which is to combine itemize with a 
table. Application could be to put a question and the answer in the 
next column.


A minimal example would be:

[...]

The numbering unfortunately starts with i) instead of a). Any 
recommendation which approach shall be preferred?


Use \itemtag to display the itemize counter, the commands ensures you 
get the correct value because most table environments process the cell 
content multiple times which lead to wrong counters.


\starttext

\startsetups [alexandre:1]
    \setupTABLE [start] [frame=off]
    \setupTABLE [c] [1] [width=.3\textwidth]
    \setupTABLE [c] [2] [width=.6\textwidth]
\stopsetups

\startitemize [a] [right=),stopper=]
\bTABLE[setups=alexandre:1]
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something 
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something 
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something 
\eTD \eTR
\bTR \bTD \dontleavehmode\itemtag\quad Something \eTD \bTD Something 
\eTD \eTR

\eTABLE
\stopitemize

\startsetups [alexandre:2]
    \setupTABLE [start] [frame=off]
    \setupTABLE [c] [2] [width=.2\textwidth]
    \setupTABLE [c] [3] [width=.6\textwidth]
\stopsetups

\startitemize [a] [right=),stopper=]
\bTABLE[setups=alexandre:2]
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\bTR \bTD \itemtag \eTD \bTD Something \eTD \bTD Something \eTD \eTR
\eTABLE
\stopitemize

\startitemize [a] [right=),stopper=]
\starttabulate[|l|lw(.2\textwidth)|p|]
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\NC \itemtag \NC Something \NC Something \NC\NR
\stoptabulate
\stopitemize

\startitemize [a] [right=),stopper=]
\starttabulate[|l|lw(.2\textwidth)|p|]
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\NI Something \NC Something \NC\NR
\stoptabulate
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Alexandre Christe via ntg-context
Dear all,

I'm trying something out in LMTX, which is to combine itemize with a table.
Application could be to put a question and the answer in the next column.

A minimal example would be:

\starttext
\startitemize [a] [right=),stopper=]
\bTABLE[frame=off]
  \setupTABLE[column][1] [width=.3\textwidth]
  \setupTABLE[column][2] [width=.6\textwidth]
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\eTABLE
\stopitemize
\stoptext

The numbering unfortunately starts with i) instead of a). Any
recommendation which approach shall be preferred?

Thanks in advance!
___
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 problems

2021-09-07 Thread Sylvain Hubert via ntg-context
This works, thanks!

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

Re: [NTG-context] itemize problems

2021-09-07 Thread fv leung via ntg-context
Use

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

then.

Maybe that's the new way.

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

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

2021-09-07 Thread Sylvain Hubert via ntg-context
Thanks, but this doesn't seem to work on my laptop:

\starttext
\startitemize[A,text][left=,right=,stopper=]
\item 1
\item 2
\stopitemize
\stoptext

%output: (A) 1 (B) 2

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize problems

2021-09-06 Thread fv leung via ntg-context
I add

left=,right=,

in the second option group.

在 2021年9月7日週二 07:02,Sylvain Hubert via ntg-context  寫道:

> A few more information:
>
> For the 1st problem:
>
> It seems that \setupitemize accepts two option groups, to which
> n,packed and margin belong accordingly. However,
> \setupitemize[n][margin=2em] does not seem to work.
>
> For the 2nd problem:
>
> \setupitemize[columns,one], although doing nothing in theory, seems to
> fix the problem.
>
> For the 4th problem:
>
> I've found that we can do \setupitemize[A,text] which makes it like
>
> (A.) 0 (B.) 1 (C.) 2 (D.) 3
>
> The problem now is, how can we remove the parentheses around the item
> labels?
>
> On 07/09/2021, Sylvain Hubert  wrote:
> > Dear List,
> >
> > Here's a collection of four problems about item groups that I've just
> > encountered.
> >
> > 1. 'n' and 'packed' not playing well with other options.
> >
> > This works:
> >
> > \defineitemgroup[myitems][itemize][margin=2em,before=before]
> > \setupmyitems[n,packed]
> >
> > \starttext
> > text
> > \startmyitems
> > \item 1
> > \item 2
> > \stopmyitems
> > \stoptext
> >
> > This does not:
> >
> > \defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]
> >
> > This does not either:
> >
> > \defineitemgroup[myitems][itemize]
> > \setupmyitems[n,packed,margin=2em,before=before]
> >
> > Is there a rule for this glitch which makes it worth memorizing, or is
> > this just a bug?
> >
> > 2. 'before' not working in nested item groups.
> >
> > \starttext
> > \startitemize[before=before1]
> > \item 1
> > \startitemize[before=before2]
> > \item 2
> > \stopitemize
> > \stopitemize
> > \stoptext
> >
> > Both before1 and before2 should appear, but only before1 is shown.
> >
> > 3. How to wrap the line under the bulletin or number?
> >
> > To be more precise, the current wrapping behavior of, say, "\item 0 1
> > 2 3 4 5 6 7 8 9" is:
> >
> > * 0 1 2 3 4 5 6 7
> >   8 9
> >
> > How can we remove the indentation of the second line and make it like
> >
> > * 0 1 2 3 4 5 6 7
> > 8 9
> >
> > 4. How to put the items on the same line?
> >
> > That is, for "\item 0 \item 1 \item 2", I would like it to be like
> >
> > * 0   * 1   * 2
> >
> > instead of
> >
> > * 0
> > * 1
> > * 2
> >
> > My context version: 2021.03.05 19:11, texlive.
> >
> > Any help with any of the problems above would be greatly appreciated.
> >
> > Best,
> > Sylvain
> >
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] itemize problems

2021-09-06 Thread Sylvain Hubert via ntg-context
A few more information:

For the 1st problem:

It seems that \setupitemize accepts two option groups, to which
n,packed and margin belong accordingly. However,
\setupitemize[n][margin=2em] does not seem to work.

For the 2nd problem:

\setupitemize[columns,one], although doing nothing in theory, seems to
fix the problem.

For the 4th problem:

I've found that we can do \setupitemize[A,text] which makes it like

(A.) 0 (B.) 1 (C.) 2 (D.) 3

The problem now is, how can we remove the parentheses around the item labels?

On 07/09/2021, Sylvain Hubert  wrote:
> Dear List,
>
> Here's a collection of four problems about item groups that I've just
> encountered.
>
> 1. 'n' and 'packed' not playing well with other options.
>
> This works:
>
> \defineitemgroup[myitems][itemize][margin=2em,before=before]
> \setupmyitems[n,packed]
>
> \starttext
> text
> \startmyitems
> \item 1
> \item 2
> \stopmyitems
> \stoptext
>
> This does not:
>
> \defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]
>
> This does not either:
>
> \defineitemgroup[myitems][itemize]
> \setupmyitems[n,packed,margin=2em,before=before]
>
> Is there a rule for this glitch which makes it worth memorizing, or is
> this just a bug?
>
> 2. 'before' not working in nested item groups.
>
> \starttext
> \startitemize[before=before1]
> \item 1
> \startitemize[before=before2]
> \item 2
> \stopitemize
> \stopitemize
> \stoptext
>
> Both before1 and before2 should appear, but only before1 is shown.
>
> 3. How to wrap the line under the bulletin or number?
>
> To be more precise, the current wrapping behavior of, say, "\item 0 1
> 2 3 4 5 6 7 8 9" is:
>
> * 0 1 2 3 4 5 6 7
>   8 9
>
> How can we remove the indentation of the second line and make it like
>
> * 0 1 2 3 4 5 6 7
> 8 9
>
> 4. How to put the items on the same line?
>
> That is, for "\item 0 \item 1 \item 2", I would like it to be like
>
> * 0   * 1   * 2
>
> instead of
>
> * 0
> * 1
> * 2
>
> My context version: 2021.03.05 19:11, texlive.
>
> Any help with any of the problems above would be greatly appreciated.
>
> Best,
> Sylvain
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] itemize problems

2021-09-06 Thread Sylvain Hubert via ntg-context
Dear List,

Here's a collection of four problems about item groups that I've just
encountered.

1. 'n' and 'packed' not playing well with other options.

This works:

\defineitemgroup[myitems][itemize][margin=2em,before=before]
\setupmyitems[n,packed]

\starttext
text
\startmyitems
\item 1
\item 2
\stopmyitems
\stoptext

This does not:

\defineitemgroup[myitems][itemize][margin=2em,before=before,n,packed]

This does not either:

\defineitemgroup[myitems][itemize]
\setupmyitems[n,packed,margin=2em,before=before]

Is there a rule for this glitch which makes it worth memorizing, or is
this just a bug?

2. 'before' not working in nested item groups.

\starttext
\startitemize[before=before1]
\item 1
\startitemize[before=before2]
\item 2
\stopitemize
\stopitemize
\stoptext

Both before1 and before2 should appear, but only before1 is shown.

3. How to wrap the line under the bulletin or number?

To be more precise, the current wrapping behavior of, say, "\item 0 1
2 3 4 5 6 7 8 9" is:

* 0 1 2 3 4 5 6 7
  8 9

How can we remove the indentation of the second line and make it like

* 0 1 2 3 4 5 6 7
8 9

4. How to put the items on the same line?

That is, for "\item 0 \item 1 \item 2", I would like it to be like

* 0   * 1   * 2

instead of

* 0
* 1
* 2

My context version: 2021.03.05 19:11, texlive.

Any help with any of the problems above would be greatly appreciated.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Fwd: Re: Alignment of bullets withn \tabulate within \itemize

2021-08-05 Thread Lukas/ConTeXt via ntg-context
Hello Wolfgang,

this look good, thank you.

See my slightly modified sample - is there a way to make "MT" horizontally 
aligned, too?
- That within \tabulate is shifted somehow, neither "i0" 
(\starttabulate[|l|pi0|p|]) produces well aligned result.


\starttext
  \startitemize[packed_,intext][headstyle_=,]
    \item MT

    \starttabulate[|l|p|p|]
    %\starttabulate[|l|pi0|p|]
  \NI MT \NC MT \NC\AR
  \NI M\input knuth \NC M\input knuth \NC\AR
    \stoptabulate

    \item MT
  \stopitemize
\stoptext


Thanks anyway.

Best regards,

Lukas

-- Původní e-mail --

Od: Wolfgang Schuster 
Komu: mailing list for ConTeXt users 
Datum: 4. 8. 2021 20:44:31
Předmět: Re: [NTG-context] Alignment of bullets withn \tabulate within \itemize

Lukas/ConTeXt via ntg-context schrieb am 04.08.2021 um 17:03:

> Hello,
>
> let's have the following sample:
>
> 
> \starttext
>\startitemize[packed_,][headstyle_=,]
>  \item CC
>
>  \starttabulate[|l|||]
>\NI aa \NC bb \NC\NR
>  \stoptabulate
>
>  \item AA
>\stopitemize
> \stoptext
> 
>
> How do I make bullets (\itemtag) horizontally aligned one bellow another?
>
> In my case - bullets within \tabulate are indented (shifted rightwards) 
> somehow, which is undesired.

You can use the 'intext' keyword but this works only well for short texts, 
otherwise text continus below the bullet point.

\starttext
\startitemize[intext]
 \item XXX
 \starttabulate[|l|||]
 \NI aa \NC bb \NC\NR
 \stoptabulate
 \item YYY
\stopitemize
\stoptext

Wolfgang\starttext
  \startitemize[packed_,intext][headstyle_=,]
\item MT

\starttabulate[|l|p|p|]
%\starttabulate[|l|pi0|p|]
  \NI MT \NC MT \NC\AR
  \NI M\input knuth \NC M\input knuth \NC\AR
\stoptabulate

\item MT
  \stopitemize
\stoptext


t.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] Alignment of bullets withn \tabulate within \itemize

2021-08-04 Thread Wolfgang Schuster via ntg-context



Lukas/ConTeXt via ntg-context schrieb am 04.08.2021 um 17:03:

Hello,

let's have the following sample:


\starttext
   \startitemize[packed_,][headstyle_=,]
 \item CC

 \starttabulate[|l|||]
   \NI aa \NC bb \NC\NR
 \stoptabulate

 \item AA
   \stopitemize
\stoptext


How do I make bullets (\itemtag) horizontally aligned one bellow another?

In my case - bullets within \tabulate are indented (shifted rightwards) 
somehow, which is undesired.



You can use the 'intext' keyword but this works only well for short 
texts, otherwise text continus below the bullet point.


\starttext

\startitemize[intext]
\item XXX
\starttabulate[|l|||]
\NI aa \NC bb \NC\NR
\stoptabulate
\item YYY
\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] Alignment of bullets withn \tabulate within \itemize

2021-08-04 Thread Lukas/ConTeXt via ntg-context
Hello,

let's have the following sample:


\starttext
  \startitemize[packed_,][headstyle_=,]
\item CC

\starttabulate[|l|||]
  \NI aa \NC bb \NC\NR
\stoptabulate

\item AA
  \stopitemize
\stoptext


How do I make bullets (\itemtag) horizontally aligned one bellow another?

In my case - bullets within \tabulate are indented (shifted rightwards) 
somehow, which is undesired.

TIA.

Best regards,

Lukas\starttext
  \startitemize[packed_,][headstyle_=,]
\item CC

\starttabulate[|l||p|]
  \NI aa \NC bb \NC\NR
\stoptabulate

\item AA
  \stopitemize
\stoptext


t.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 margins,

2021-06-01 Thread denis.maier
Von: ntg-context  Im Auftrag von Wolfgang Schuster
Gesendet: Dienstag, 1. Juni 2021 11:05
An: mailing list for ConTeXt users 
Betreff: Re: [NTG-context] itemize margins,

denis.ma...@ub.unibe.ch<mailto:denis.ma...@ub.unibe.ch> schrieb am 01.06.2021 
um 10:46:

Hi,

in the following example the second line of the quote is not lined up with the 
first line.

=
\starttext

\startitemize[n]
[
%right=),
%stopper=,
%width=2em,
%alternative=fit,
%alternative=left,
%alternative=intext,
%distance=1em,
%leftmargin=1em,
%itemalign=flushleft,
]

\startitem
\setupindenting[no]
\input knuth
\stopitem
\stoptext
==

I've played with different options, but I couldn't get the indents and margins 
right. What am I missing ? Any hints ?

You are adding a extra space in the first line at the end of the 
\setupindenting line.
Ah, of course. Thanks!


To get rid of the space add % after the setup (i.e. \setupindenting[no]%) or 
even better use the indenting key with \startitemize or \setupitemize (i.e. 
\startitemize[indneting=no]).


\startitemize[indenting=no] works perfectly.

Denis

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

2021-06-01 Thread Wolfgang Schuster

denis.ma...@ub.unibe.ch schrieb am 01.06.2021 um 10:46:


Hi,

in the following example the second line of the quote is not lined up 
with the first line.


=

\starttext

\startitemize[n]

[

%right=),

%stopper=,

%width=2em,

%alternative=fit,

%alternative=left,

%alternative=intext,

%distance=1em,

%leftmargin=1em,

%itemalign=flushleft,

]

\startitem

\setupindenting[no]

\input knuth

\stopitem

\stoptext

==

I’ve played with different options, but I couldn’t get the indents and 
margins right. What am I missing ? Any hints ?




You are adding a extra space in the first line at the end of the 
\setupindenting line.


To get rid of the space add % after the setup (i.e. 
\setupindenting[no]%) or even better use the indenting key with 
\startitemize or \setupitemize (i.e. \startitemize[indneting=no]).


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
___


[NTG-context] itemize margins,

2021-06-01 Thread denis.maier
Hi,

in the following example the second line of the quote is not lined up with the 
first line.

=
\starttext

\startitemize[n]
[
%right=),
%stopper=,
%width=2em,
%alternative=fit,
%alternative=left,
%alternative=intext,
%distance=1em,
%leftmargin=1em,
%itemalign=flushleft,
]

\startitem
\setupindenting[no]
\input knuth
\stopitem
\stoptext
==

I've played with different options, but I couldn't get the indents and margins 
right. What am I missing ? Any hints ?

Thanks for you help,
Denis
___
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] issue with LMTX and itemize

2020-11-07 Thread Alan Bowen
and on mine with today’s standalone.

A.

On Sat, Nov 7, 2020 at 10:27 AM Pablo Rodriguez  wrote:

> On 11/7/20 4:11 PM, Alan Bowen wrote:
> > Hi, Pablo—
> >
> > Shouldn’t it be either
> > \item a
> > or
> > \startitem a\stopitem
> > ?
> Hi Alan,
>
> of course, the sample reads:
>
> \starttext
> \startitemize
> \startitem a\stopitem
> \stopitemize
> \stoptext
>
> But the issue still happens on my LMTX installation.
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] issue with LMTX and itemize

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 4:11 PM, Alan Bowen wrote:
> Hi, Pablo—
>
> Shouldn’t it be either 
> \item a
> or
> \startitem a\stopitem
> ?
Hi Alan,

of course, the sample reads:

\starttext
\startitemize
\startitem a\stopitem
\stopitemize
\stoptext

But the issue still happens on my LMTX installation.

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] issue with LMTX and itemize

2020-11-07 Thread Alan Bowen
Hi, Pablo—

Shouldn’t it be either
\item a
or
\startitem a\stopitem
?
Alan

On Sat, Nov 7, 2020 at 9:52 AM Pablo Rodriguez  wrote:

> Dear list,
>
> I have the following sample:
>
> \starttext
> \startitemize
> \item a\stopitem
> \stopitemize
> \stoptext
>
> With latest LMTX from today, I don’t get any item marker.
>
> Could you confirm the issue?
>
> Many thanks for your help,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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] issue with LMTX and itemize

2020-11-07 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\startitemize
\item a\stopitem
\stopitemize
\stoptext

With latest LMTX from today, I don’t get any item marker.

Could you confirm the issue?

Many thanks for your help,

Pablo
--
http://www.ousia.tk
___
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] tabulate inside itemize

2020-07-29 Thread Mike Cooper
THANKS ADITYA!
I got Wolfgang's solution first and it works great.
But I think there are some things in your solution that I should try to learn 
about.  :)


> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya
> Mahajan
> Sent: Wednesday, July 29, 2020 11:12 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] tabulate inside itemize
> 
> On Wed, 29 Jul 2020, Mike Cooper wrote:
> 
> > I would normally use tab stops and line breaks to achieve the following in a
> numbered list:
> >
> > 1.  DC =  3.20 bbl =   420 ft
> >HWDP   =  3.90 bbl =   450 ft
> >DP = 34.63 bbl = 2,037 ft
> >Totals = 41.73 bbl = 2,907 ft
> >
> > 2.  [next step …]
> >
> >
> > This is what I tried, but the output has a blank line at the number.  I 
> > can’t find
> anything about tabulate inside itemize.
> >
> > \starttext
> >
> > \startitemize[n]
> >\startitem \starttabulate[|l|l|r|l|r|]
> >\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 
> > ft \NC \NR
> >\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 
> > 450 ft \NC \NR
> >\NC DP \NC = \NC 34.63 bbl \NC =  \NC 
> > 2,037 ft \NC \NR
> >\NC DC \NC = \NC 41.73 bbl \NC =  \NC 
> > 2,907 ft \NC \NR
> >\stoptabulate \stopitem
> >\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 
> > 2,907 ×
> 0.707 = 2,056 ft \stopitem
> >\startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
> > \stopitemize
> >
> > \stoptext
> 
> Naive solution: Add a \hbox around tabulate:
> 
> 
> \defineframed[tabulateframed][location=top,frame=off]
> 
> \starttext
> 
> \startitemize[n]
>  \startitem \dontleavehmode
>\tabulateframed{\starttabulate[|l|l|r|l|r|]
>  \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 
> ft \NC \NR
>  \NC HWDP \NC = \NC 3.90 bbl \NC = \NC 
> 450 ft \NC \NR
>  \NC DP \NC = \NC 34.63 bbl \NC =  \NC 
> 2,037 ft \NC \NR
>  \NC DC \NC = \NC 41.73 bbl \NC =  \NC 
> 2,907 ft \NC \NR
>  \stoptabulate} \stopitem
>  \startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 
> 2,907 ×
> 0.707 = 2,056 ft \stopitem
>  \startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi 
> \stopitemize
> 
> \stoptext
> 
> Normally, you can fix such issues by appending a \dontleavehmode in front of 
> the
> command but that doesn't work here. The offending code is line 1300 of tabl-
> tbl.mkxl:
> 
> \unexpanded\def\tabl_tabulate_outside_before
>{\ifhmode\par\fi
> \ifhmode
>   \vbox\bgroup
>   \let\tabl_tabulate_outside_after\egroup
>   \let\tabl_tabulate_outside_inbetween\relax
> \orelse\ifinner
>   \let\tabl_tabulate_outside_after\relax
>   \let\tabl_tabulate_outside_inbetween\relax
> \else
>   \whitespace
>   \tabulationparameter\c!before
>   \relax
>   \let\tabl_tabulate_outside_after\tabl_tabulate_outside_after_indeed
>   
> \let\tabl_tabulate_outside_inbetween\tabl_tabulate_outside_inbetween_indeed
> \fi}
> \protect
> 
> When you use \dontleavehmode\starttabulate, \starttabulate starts in 
> horizontal
> mode but the first \par in the above command takes it back to vertical mode. 
> The
> next \ifhmode then evaluates to false, \ifinner also evaluates to false, so 
> we enter
> the \else loop which inserts a \whitespace.
> 
> The reason why adding a \hbox{...} (which is what \framed without an align key
> does) works is because inside an \hbox{...} \par doesn't take TeX back to 
> vertical
> mode. So, we enter the first branch.
> 
> 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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Mike Cooper
THANKS HANS!
I got Wolfgang's solution first and it works great.



> -Original Message-
> From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Hans Hagen
> Sent: Wednesday, July 29, 2020 11:11 AM
> To: mailing list for ConTeXt users
> Subject: Re: [NTG-context] tabulate inside itemize
> 
> On 7/29/2020 6:38 PM, Mike Cooper wrote:
>  > I would normally use tab stops and line breaks to achieve the following
>  > in a numbered list:
> I know this looks terrible:
> 
> \define\MyTabulateHack{\vskip-\lineheight\blank[disable]}
> 
> \startitemize[n]
> 
>  \startitem \MyTabulateHack
>  \starttabulate[|l|l|r|l|r|]
> 
> but it kind of works ok in your case.
> 
> Hans
> 
> -
>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
> ___
> 
___
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] tabulate inside itemize

2020-07-29 Thread Hans Hagen

On 7/29/2020 7:09 PM, Wolfgang Schuster wrote:

Mike Cooper schrieb am 29.07.2020 um 18:38:
I would normally use tab stops and line breaks to achieve the 
following in a numbered list:


1. DC=3.20 bbl =420 ft
HWDP= 3.90 bbl =450 ft
DP= 34.63 bbl = 2,037 ft
Totals = 41.73 bbl = 2,907 ft

2. [next step …]

This is what I tried, but the output has a blank line at the number.I 
can’t find anything about tabulate inside itemize.


\starttext

\startitemize[n]
\startitem \starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft \NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =\NC 2,037 ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =\NC 2,907 ft \NC \NR
\stoptabulate \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 × 
0.707 = 2,056 ft \stopitem

\startitem ΔP = 2,056 ft × 0.052 × (15 – 7.2) = 834 psi
\stopitemize

\stoptext

Is there some way to stop the blank line or should I use an entirely 
different approach?


1. Use \blank[overlay] to continue on the first line of the item entry


Ah ... I start forgetting things ... bad ... (I should use tex more 
often I guess)


Hans

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


Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Aditya Mahajan

On Wed, 29 Jul 2020, Mike Cooper wrote:


I would normally use tab stops and line breaks to achieve the following in a 
numbered list:

1.  DC =  3.20 bbl =   420 ft
   HWDP   =  3.90 bbl =   450 ft
   DP = 34.63 bbl = 2,037 ft
   Totals = 41.73 bbl = 2,907 ft

2.  [next step …]


This is what I tried, but the output has a blank line at the number.  I can’t 
find anything about tabulate inside itemize.

\starttext

\startitemize[n]
   \startitem \starttabulate[|l|l|r|l|r|]
   \NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft 
\NC \NR
   \NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 ft 
\NC \NR
   \NC DP \NC = \NC 34.63 bbl \NC =  \NC 2,037 
ft \NC \NR
   \NC DC \NC = \NC 41.73 bbl \NC =  \NC 2,907 
ft \NC \NR
   \stoptabulate \stopitem
   \startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 
× 0.707 = 2,056 ft \stopitem
   \startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
\stopitemize

\stoptext


Naive solution: Add a \hbox around tabulate:


\defineframed[tabulateframed][location=top,frame=off]

\starttext

\startitemize[n]
\startitem \dontleavehmode
  \tabulateframed{\starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft 
\NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 
ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =  \NC 2,037 
ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =  \NC 2,907 
ft \NC \NR
\stoptabulate} \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 
× 0.707 = 2,056 ft \stopitem
\startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
\stopitemize

\stoptext

Normally, you can fix such issues by appending a \dontleavehmode in front of 
the command but that doesn't work here. The offending code is line 1300 of 
tabl-tbl.mkxl:

\unexpanded\def\tabl_tabulate_outside_before
  {\ifhmode\par\fi
   \ifhmode
 \vbox\bgroup
 \let\tabl_tabulate_outside_after\egroup
 \let\tabl_tabulate_outside_inbetween\relax
   \orelse\ifinner
 \let\tabl_tabulate_outside_after\relax
 \let\tabl_tabulate_outside_inbetween\relax
   \else
 \whitespace
 \tabulationparameter\c!before
 \relax
 \let\tabl_tabulate_outside_after\tabl_tabulate_outside_after_indeed
 \let\tabl_tabulate_outside_inbetween\tabl_tabulate_outside_inbetween_indeed
   \fi}
\protect

When you use \dontleavehmode\starttabulate, \starttabulate starts in horizontal 
mode but the first \par in the above command takes it back to vertical mode. 
The next \ifhmode then evaluates to false, \ifinner also evaluates to false, so 
we enter the \else loop which inserts a \whitespace.

The reason why adding a \hbox{...} (which is what \framed without an align key 
does) works is because inside an \hbox{...} \par doesn't take TeX back to 
vertical mode. So, we enter the first branch.

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Hans Hagen

On 7/29/2020 6:38 PM, Mike Cooper wrote:
> I would normally use tab stops and line breaks to achieve the following
> in a numbered list:
I know this looks terrible:

\define\MyTabulateHack{\vskip-\lineheight\blank[disable]}

\startitemize[n]

\startitem \MyTabulateHack
\starttabulate[|l|l|r|l|r|]

but it kind of works ok in your case.

Hans

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


Re: [NTG-context] tabulate inside itemize

2020-07-29 Thread Wolfgang Schuster

Mike Cooper schrieb am 29.07.2020 um 18:38:
I would normally use tab stops and line breaks to achieve the following 
in a numbered list:


1. DC=3.20 bbl =420 ft
HWDP= 3.90 bbl =450 ft
DP= 34.63 bbl = 2,037 ft
Totals = 41.73 bbl = 2,907 ft

2. [next step …]

This is what I tried, but the output has a blank line at the number.I 
can’t find anything about tabulate inside itemize.


\starttext

\startitemize[n]
\startitem \starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft \NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =\NC 2,037 ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =\NC 2,907 ft \NC \NR
\stoptabulate \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 × 
0.707 = 2,056 ft \stopitem

\startitem ΔP = 2,056 ft × 0.052 × (15 – 7.2) = 834 psi
\stopitemize

\stoptext

Is there some way to stop the blank line or should I use an entirely 
different approach?


1. Use \blank[overlay] to continue on the first line of the item entry

2. Disable the blank line at the start of the table with "before="

\starttext

\startitemize[n]
\startitem \blank[overlay]
\starttabulate[|l|c|r|c|r|][before=,after=]
\NC DC   \NC = \NC  3.20 bbl \NC = \NC   420 ft \NC\NR
\NC HWDP \NC = \NC  3.90 bbl \NC = \NC   450 ft \NC\NR
\NC DP   \NC = \NC 34.63 bbl \NC = \NC 2,037 ft \NC\NR
\NC DC   \NC = \NC 41.73 bbl \NC = \NC 2,907 ft \NC\NR
\stoptabulate
\stopitem
\startitem
Convert 2,907 to TVD:\crlf
TVD = 2,907 × cosine 45° = 2,907 × 0.707 = 2,056 ft
\stopitem
\startitem
ΔP = 2,056 ft × 0.052 × (15 – 7.2) = 834 psi
\stopitem
\stopitemize

\stoptext


You can also get rid of the = in your table when you use the \EQ column 
separator and set the sign for the separator to =.


\starttext

\starttabulate[|l|r|r|][EQ={=}]
\NC DC   \EQ  3.20 bbl \EQ   420 ft \NC\NR
\NC HWDP \EQ  3.90 bbl \EQ   450 ft \NC\NR
\NC DP   \EQ 34.63 bbl \EQ 2,037 ft \NC\NR
\NC DC   \EQ 41.73 bbl \EQ 2,907 ft \NC\NR
\stoptabulate

\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  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


[NTG-context] tabulate inside itemize

2020-07-29 Thread Mike Cooper
I would normally use tab stops and line breaks to achieve the following in a 
numbered list:

1.  DC =  3.20 bbl =   420 ft
HWDP   =  3.90 bbl =   450 ft
DP = 34.63 bbl = 2,037 ft
Totals = 41.73 bbl = 2,907 ft

2.  [next step …]


This is what I tried, but the output has a blank line at the number.  I can’t 
find anything about tabulate inside itemize.

\starttext

\startitemize[n]
\startitem \starttabulate[|l|l|r|l|r|]
\NC DC \NC = \NC 3.20 bbl \NC = \NC 420 ft 
\NC \NR
\NC HWDP \NC = \NC 3.90 bbl \NC = \NC 450 
ft \NC \NR
\NC DP \NC = \NC 34.63 bbl \NC =  \NC 2,037 
ft \NC \NR
\NC DC \NC = \NC 41.73 bbl \NC =  \NC 2,907 
ft \NC \NR
\stoptabulate \stopitem
\startitem Convert 2,907 to TVD: \\TVD = 2,907 × cosine 45° = 2,907 
× 0.707 = 2,056 ft \stopitem
\startitem ΔP = 2,056 ft × 0.052 × (15 - 7.2) = 834 psi
\stopitemize

\stoptext

Is there some way to stop the blank line or should I use an entirely different 
approach?

THANKS!!


Mike Cooper
Technical Trainer
Murchison Drilling Schools, Inc.
2501 Juan Tabo NE
Albuquerque, NM 87112
Tel: (505) 293-6271
Fax: (505) 298-5294
Email: 
m...@murchisondrillingschools.com<mailto:m...@murchisondrillingschools.com>
Website: 
www.murchisondrillingschools.com<http://www.murchisondrillingschools.com/>
[cid:image007.jpg@01D03ADC.BD6E6850]<https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622>
  [cid:image008.jpg@01D03ADC.BD6E6850] 
<http://www.linkedin.com/company/murchison-drilling-schools-inc->   
[cid:image009.jpg@01D03ADC.BD6E6850] <https://twitter.com/trainingmds>
Murchison Drilling Schools is now part of
[cid:image001.png@01D63515.857FD120]

___
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] use parentheses in itemize

2020-06-08 Thread Mike Cooper
Thanks David!

I also realized (with some help! Thanks John!) that I was completely 
overlooking the answers to my original question, as well as "what is stopper?" 
on the wiki.



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of David Rogers
Sent: Friday, June 05, 2020 9:24 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] use parentheses in itemize

On June 3, 2020 7:01:57 a.m. PDT, Mike Cooper 
 wrote:
>The logic in that approach is obvious.  Thanks Aditya.
>
>But then, what is "stopper"?  What's it for?  What happens if you just
>leave it out?

When you leave it out, it's simply not used. In broad general terms, ConTeXt is 
set up to allow you to just ignore any features you don't need.

Stopper is for when you want

(1.)
(2.)

or

(1:)
(2:)

or any other thing that suits you, to be placed after each number. "Nothing" is 
certainly one of the legitimate and common choices for this purpose, and Aditya 
took the step of actually defining it as "nothing" by typing "stopper=". (After 
the equals sign comes... you guessed it.) :) 

Doing such a "define it to be nothing" step would be especially 
helpful/important if you DID have it defined as something for a different part 
of your document, and then wanted to change styles part way through.

-- 
David
___
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] use parentheses in itemize

2020-06-05 Thread David Rogers
On June 3, 2020 7:01:57 a.m. PDT, Mike Cooper 
 wrote:
>The logic in that approach is obvious.  Thanks Aditya.
>
>But then, what is "stopper"?  What's it for?  What happens if you just
>leave it out?

When you leave it out, it's simply not used. In broad general terms, ConTeXt is 
set up to allow you to just ignore any features you don't need.

Stopper is for when you want

(1.)
(2.)

or

(1:)
(2:)

or any other thing that suits you, to be placed after each number. "Nothing" is 
certainly one of the legitimate and common choices for this purpose, and Aditya 
took the step of actually defining it as "nothing" by typing "stopper=". (After 
the equals sign comes... you guessed it.) :) 

Doing such a "define it to be nothing" step would be especially 
helpful/important if you DID have it defined as something for a different part 
of your document, and then wanted to change styles part way through.

-- 
David
___
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] use parentheses in itemize

2020-06-03 Thread Mike Cooper
The logic in that approach is obvious.  Thanks Aditya.

But then, what is "stopper"?  What's it for?  What happens if you just leave it 
out?



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Aditya 
Mahajan
Sent: Tuesday, June 02, 2020 10:15 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] use parentheses in itemize

On Wed, 3 Jun 2020, Tomas Hala wrote:

> Hi Mike,
>
> use this:
>
> \setupitemize[left=(,stopper=)]
> \startitemize[a]
> \item  415,668 lb
> \item  415,668 lb
> \stopitemize

For symmetry, I prefer

\setupitemize[left=(, right=), stopper=]

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://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] use parentheses in itemize

2020-06-02 Thread jk...@inradius.net

> On Jun 2, 2020, m...@murchisondrillingschools.com 
>  wrote:
> 
> …
> Anyway, I want to have a list like this:
> 
> (a)  415,668 lb
> (b)  440,668 lb
> (c)  517,000 lb
> (d)  542,000 lb
> 
> How do I get these parentheses with my itemization symbol?

This is one way (from the wiki):

\startitemize[a][left=(,right=),stopper=]
  \item 1234
  \item 5678
  \item 9876
  \stopitemize

HTH,
John


___
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] use parentheses in itemize

2020-06-02 Thread Aditya Mahajan

On Wed, 3 Jun 2020, Tomas Hala wrote:


Hi Mike,

use this:

\setupitemize[left=(,stopper=)]
\startitemize[a]
\item  415,668 lb
\item  415,668 lb
\stopitemize


For symmetry, I prefer

\setupitemize[left=(, right=), stopper=]

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___


Re: [NTG-context] use parentheses in itemize

2020-06-02 Thread Mike Cooper
Awesome!
Thank you Tomáš!



-Original Message-
From: ntg-context [mailto:ntg-context-boun...@ntg.nl] On Behalf Of Tomas Hala
Sent: Tuesday, June 02, 2020 4:23 PM
To: mailing list for ConTeXt users
Subject: Re: [NTG-context] use parentheses in itemize

Hi Mike,

use this:

\setupitemize[left=(,stopper=)]
\startitemize[a]
\item  415,668 lb
\item  415,668 lb
\stopitemize

Best wishes,

Tomáš

Tue, Jun 02, 2020 ve 09:56:38PM + Mike Cooper napsal(a):
#Link: [1]File-List
#Link: [2]Edit-Time-Data
# 
#Hello list.
# 
# 
# 
#Here is the first what will no doubt be many *VERY* basic questions.  So
#far, I am having quite a difficult time finding any help in the
#documentation (not just this issue but pretty much anything, really).
# 
# 
# 
#Anyway, I want to have a list like this:
# 
# 
# 
#(a)  415,668 lb
# 
#(b)  440,668 lb
# 
#(c)  517,000 lb
# 
#(d)  542,000 lb
# 
# 
# 
#How do I get these parentheses with my itemization symbol?
# 
# 
# 
#THANKS!
# 
# 
# 
#Mike Cooper
# 
#Technical Trainer
# 
#Murchison Drilling Schools, Inc.
# 
#2501 Juan Tabo NE
# 
#Albuquerque, NM 87112
# 
#Tel: (505) 293-6271
# 
#Fax: (505) 298-5294
# 
#Email: [3]m...@murchisondrillingschools.com
# 
#Website: [4]www.murchisondrillingschools.com
# 
#[5]cid:image007.jpg@01D03ADC.BD6E6850  
[6]cid:image008.jpg@01D03ADC.BD6E6850  [7]cid:image009.jpg@01D03ADC.BD6E6850
# 
#Murchison Drilling Schools is now part of
# 
#[8]cid:image001.png@01D63515.857FD120
# 
# 
# 
# References
# 
#Visible links
#1. file:///home/thala/.mutt-tmp/cid:filelist.xml@01D638F6.65509B20
#2. file:///home/thala/.mutt-tmp/cid:editdata.mso
#3. mailto:m...@murchisondrillingschools.com
#4. http://www.murchisondrillingschools.com/
#5. 
https://www.facebook.com/pages/Murchison-Drilling-Schools/158018484232622
#6. http://www.linkedin.com/company/murchison-drilling-schools-inc-
#7. https://twitter.com/trainingmds






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


 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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
___


  1   2   3   4   5   6   7   8   9   >