ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* [NTG-context] \setupitemgroup for footnotes
@ 2023-09-25 15:52 Pablo Rodriguez
  2023-09-25 16:19 ` [NTG-context] " Henning Hraban Ramm
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2023-09-25 15:52 UTC (permalink / raw)
  To: ConTeXt users

Dear list,

I have the following sample (with current latest from 2023.09.18 21:13):

    \setuppapersize[A6]
    \starttext
    \startsetups[forfootnote]
        \setupitemgroup
           [itemize][1]
           [   before={\endgraf{\ttbf    [before]}\endgraf},
                after={\endgraf{\ttbf     [after]}\endgraf}]
    \stopsetups

    \setupnote[footnote][setups=forfootnote]

    \footnote{\startitemize
         \startitem Choose the correct answer.
             \startitemize
             \item This one
             \stopitemize
         \stopitem
    \stopitemize}
    \stoptext

Excuse my ignorance, but which is the right way to get the itemize setup
only for footnotes?

Many thanks for your help,

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

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

* [NTG-context] Re: \setupitemgroup for footnotes
  2023-09-25 15:52 [NTG-context] \setupitemgroup for footnotes Pablo Rodriguez
@ 2023-09-25 16:19 ` Henning Hraban Ramm
  2023-09-25 17:19   ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2023-09-25 16:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 25.09.23 um 17:52 schrieb Pablo Rodriguez:
> Dear list,
> 
> I have the following sample (with current latest from 2023.09.18 21:13):
> 
>      \setuppapersize[A6]
>      \starttext
>      \startsetups[forfootnote]
>          \setupitemgroup
>             [itemize][1]
>             [   before={\endgraf{\ttbf    [before]}\endgraf},
>                  after={\endgraf{\ttbf     [after]}\endgraf}]
>      \stopsetups
> 
>      \setupnote[footnote][setups=forfootnote]
> 
>      \footnote{\startitemize
>           \startitem Choose the correct answer.
>               \startitemize
>               \item This one
>               \stopitemize
>           \stopitem
>      \stopitemize}
>      \stoptext
> 
> Excuse my ignorance, but which is the right way to get the itemize setup
> only for footnotes?

I would use \defineitemgroup to define your own, like "footnoteitemize".

https://wiki.contextgarden.net/Command/defineitemgroup

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

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

* [NTG-context] Re: \setupitemgroup for footnotes
  2023-09-25 16:19 ` [NTG-context] " Henning Hraban Ramm
@ 2023-09-25 17:19   ` Pablo Rodriguez
  2023-09-25 19:57     ` Henning Hraban Ramm
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2023-09-25 17:19 UTC (permalink / raw)
  To: ntg-context

On 9/25/23 18:19, Henning Hraban Ramm wrote:
> Am 25.09.23 um 17:52 schrieb Pablo Rodriguez:
>> [...]
>> Excuse my ignorance, but which is the right way to get the itemize setup
>> only for footnotes?
>
> I would use \defineitemgroup to define your own, like "footnoteitemize".

Many thanks for your reply, Hraban.

It works fine, but I wonder why the itemize itemgroup should be avoided.

Many thanks for your help,

Pablo

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

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

* [NTG-context] Re: \setupitemgroup for footnotes
  2023-09-25 17:19   ` Pablo Rodriguez
@ 2023-09-25 19:57     ` Henning Hraban Ramm
  2023-09-26 18:28       ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Henning Hraban Ramm @ 2023-09-25 19:57 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Am 25.09.23 um 19:19 schrieb Pablo Rodriguez:
> On 9/25/23 18:19, Henning Hraban Ramm wrote:
>> Am 25.09.23 um 17:52 schrieb Pablo Rodriguez:
>>> [...]
>>> Excuse my ignorance, but which is the right way to get the itemize setup
>>> only for footnotes?
>>
>> I would use \defineitemgroup to define your own, like "footnoteitemize".
> 
> Many thanks for your reply, Hraban.
> 
> It works fine, but I wonder why the itemize itemgroup should be avoided.

I didn’t say you should avoid it; defining your own version was just the 
first idea that I had – and apparently it wasn’t a bad idea.

I’m sure there are several other approaches.

Hraban

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

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

* [NTG-context] Re: \setupitemgroup for footnotes
  2023-09-25 19:57     ` Henning Hraban Ramm
@ 2023-09-26 18:28       ` Pablo Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2023-09-26 18:28 UTC (permalink / raw)
  To: ntg-context

On 9/25/23 21:57, Henning Hraban Ramm wrote:
> Am 25.09.23 um 19:19 schrieb Pablo Rodriguez:
>> On 9/25/23 18:19, Henning Hraban Ramm wrote:
>>> Am 25.09.23 um 17:52 schrieb Pablo Rodriguez:
>>>> [...]
>>>> Excuse my ignorance, but which is the right way to get the itemize setup
>>>> only for footnotes?
>>>
>>> I would use \defineitemgroup to define your own, like "footnoteitemize".
>>
>> Many thanks for your reply, Hraban.
>>
>> It works fine, but I wonder why the itemize itemgroup should be avoided.
>
> I didn’t say you should avoid it; defining your own version was just the
> first idea that I had – and apparently it wasn’t a bad idea.

Sorry, Hraban, your proposal works perfectly fine and I really
appreciate it.

It was only me the one that had the impression that standard itemize has
be avoided in footnotes (to get \setupitemgroup working there).

> I’m sure there are several other approaches.

Sorry again, many thanks for your help,

Pablo

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

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

end of thread, other threads:[~2023-09-26 18:31 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-25 15:52 [NTG-context] \setupitemgroup for footnotes Pablo Rodriguez
2023-09-25 16:19 ` [NTG-context] " Henning Hraban Ramm
2023-09-25 17:19   ` Pablo Rodriguez
2023-09-25 19:57     ` Henning Hraban Ramm
2023-09-26 18:28       ` Pablo Rodriguez

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