ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] Yet Another itemize question
@ 2025-01-08 15:12 Jim
  2025-01-08 15:22 ` [NTG-context] " Mikael Sundqvist
  0 siblings, 1 reply; 3+ messages in thread
From: Jim @ 2025-01-08 15:12 UTC (permalink / raw)
  To: ntg-context

Hi everyone,

I am using the following sort of structure:

Latest news:
\startitemize[distance=7.5em,leftmargindistance=2em,]
\sym {Bob Loblaw}	blah blah blah
\sym {Sally Smithers}	yada yada yada
\stopitemize

However, I wanted to achieve a "packed" list, so I tried

Latest news:
\startitemize[packed,distance=7.5em,leftmargindistance=2em,]
\sym {Bob Loblaw}	blah blah blah
\sym {Sally Smithers}	yada yada yada
\stopitemize

and, as you can see if you try it, the "packed" is completely ignored.

I discovered that using either the distance= or the leftmargindistance=
parameters "cancels" the "packed".

I looked at the documentation I could (relatively easily) find, and I have
not discovered either
(1) why distance and leftmargindistance "cancel" packed, nor
(2) how to uncancel this cancellation.

I can work around this in a number of ways (including setting
        \setupitemize[1][width=<some suitable amount>] )
but I'd prefer to avoid kludgy work-arounds if at all possible.

Can anyone tell me The Right Way to do this?

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Yet Another itemize question
  2025-01-08 15:12 [NTG-context] Yet Another itemize question Jim
@ 2025-01-08 15:22 ` Mikael Sundqvist
  2025-01-08 17:50   ` Jim
  0 siblings, 1 reply; 3+ messages in thread
From: Mikael Sundqvist @ 2025-01-08 15:22 UTC (permalink / raw)
  To: mailing list for ConTeXt users


[-- Attachment #1.1: Type: text/plain, Size: 2468 bytes --]

You can try

Latest news:
\startitemize[packed][distance=7.5em,leftmargindistance=2em,]
\sym {Bob Loblaw}       blah blah blah
\sym {Sally Smithers}   yada yada yada
\stopitemize

Inside a bracket pair, either use [a,b] or [a=b], do not mix them. How to
know what to use? In this case you can look up \startitemize in

https://www.pragma-ade.com/general/qrcs/setup-en.pdf

to see how to do it.

But, that said, maybe you shall define your own itemgroup for this, and set
it up, since then you do not have to add these settings everytime. Also,
depending on what you do, maybe a description is more what you need here.

/Mikael

On Wed, Jan 8, 2025 at 4:15 PM Jim <zlists+context@jdvb.ca> wrote:

> Hi everyone,
>
> I am using the following sort of structure:
>
> Latest news:
> \startitemize[distance=7.5em,leftmargindistance=2em,]
> \sym {Bob Loblaw}       blah blah blah
> \sym {Sally Smithers}   yada yada yada
> \stopitemize
>
> However, I wanted to achieve a "packed" list, so I tried
>
> Latest news:
> \startitemize[packed,distance=7.5em,leftmargindistance=2em,]
> \sym {Bob Loblaw}       blah blah blah
> \sym {Sally Smithers}   yada yada yada
> \stopitemize
>
> and, as you can see if you try it, the "packed" is completely ignored.
>
> I discovered that using either the distance= or the leftmargindistance=
> parameters "cancels" the "packed".
>
> I looked at the documentation I could (relatively easily) find, and I have
> not discovered either
> (1) why distance and leftmargindistance "cancel" packed, nor
> (2) how to uncancel this cancellation.
>
> I can work around this in a number of ways (including setting
>         \setupitemize[1][width=<some suitable amount>] )
> but I'd prefer to avoid kludgy work-arounds if at all possible.
>
> Can anyone tell me The Right Way to do this?
>
> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 3643 bytes --]

[-- Attachment #2: Type: text/plain, Size: 511 bytes --]

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [NTG-context] Re: Yet Another itemize question
  2025-01-08 15:22 ` [NTG-context] " Mikael Sundqvist
@ 2025-01-08 17:50   ` Jim
  0 siblings, 0 replies; 3+ messages in thread
From: Jim @ 2025-01-08 17:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi Mikael,

On Wed, Jan  8, 2025 at 16:22 (+0100), Mikael Sundqvist wrote:

> You can try

> Latest news:
> \startitemize[packed][distance=7.5em,leftmargindistance=2em,]
> \sym {Bob Loblaw}       blah blah blah
> \sym {Sally Smithers}   yada yada yada
> \stopitemize

Works perfectly, thanks.

> Inside a bracket pair, either use [a,b] or [a=b], do not mix them.

(Duh.  Fortunately, there are no handy concrete walls for me to bang my
head on.)

> How to know what to use? In this case you can look up \startitemize in

> https://www.pragma-ade.com/general/qrcs/setup-en.pdf

> to see how to do it.

Thanks very much.  In my (admittedly slow) ConTeXt journey, I had never
realized the significance of the syntax used there (and, consequently, that
I can't mix those two types of options).  Or perhaps I briefly knew it and
completely forgot it.  Hopefully it sticks this time.

> But, that said, maybe you shall define your own itemgroup for this, and
> set it up, since then you do not have to add these settings everytime.
> Also, depending on what you do, maybe a description is more what you need
> here.

While the packed and leftmargindistance=2em are likely to be there all the
time, the distance= may change, if I have a really long name.  I looked at
the "description" pages in the wiki, and I don't immediately see it doing
what I want (I want the text of each item to start at the same distance
from the left margin).  Perhaps what I really want is a table.

In any case, thanks for the help, I can accomplish what I want.  Even if I
shouldn't want that.

                                Jim

> On Wed, Jan 8, 2025 at 4:15 PM Jim <zlists+context@jdvb.ca> wrote:

>> Hi everyone,

>> I am using the following sort of structure:

>> Latest news:
>> \startitemize[distance=7.5em,leftmargindistance=2em,]
>> \sym {Bob Loblaw}       blah blah blah
>> \sym {Sally Smithers}   yada yada yada
>> \stopitemize

>> However, I wanted to achieve a "packed" list, so I tried

>> Latest news:
>> \startitemize[packed,distance=7.5em,leftmargindistance=2em,]
>> \sym {Bob Loblaw}       blah blah blah
>> \sym {Sally Smithers}   yada yada yada
>> \stopitemize

>> and, as you can see if you try it, the "packed" is completely ignored.

>> I discovered that using either the distance= or the leftmargindistance=
>> parameters "cancels" the "packed".

>> I looked at the documentation I could (relatively easily) find, and I have
>> not discovered either
>> (1) why distance and leftmargindistance "cancel" packed, nor
>> (2) how to uncancel this cancellation.

>> I can work around this in a number of ways (including setting
>>         \setupitemize[1][width=<some suitable amount>] )
>> but I'd prefer to avoid kludgy work-arounds if at all possible.

>> Can anyone tell me The Right Way to do this?

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

>> ___________________________________________________________________________________


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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-08 17:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-08 15:12 [NTG-context] Yet Another itemize question Jim
2025-01-08 15:22 ` [NTG-context] " Mikael Sundqvist
2025-01-08 17:50   ` Jim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).