ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* inmargin for only Roman-numbered items
@ 2019-03-20 19:03 Pablo Rodriguez
  2019-03-20 19:09 ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2019-03-20 19:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Dear list,

I have the following sample:

    \showframe
    \setupitemize[each][option=inmargin]
    \starttext
    \startitemize[n]
        \dorecurse{5}{\item item}
    \stopitemize

    \startitemize
        \dorecurse{5}{\item item}
    \stopitemize

    \startitemize[I]
        \dorecurse{5}{\item item}
    \stopitemize
    \stoptext

Is there a way to get only [option=inmargin] for the items that are
Roman-numbered?

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
___________________________________________________________________________________

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

* Re: inmargin for only Roman-numbered items
  2019-03-20 19:03 inmargin for only Roman-numbered items Pablo Rodriguez
@ 2019-03-20 19:09 ` Wolfgang Schuster
  2019-03-20 19:43   ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2019-03-20 19:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

Pablo Rodriguez schrieb am 20.03.19 um 20:03:
> Dear list,
> 
> I have the following sample:
> 
>      \showframe
>      \setupitemize[each][option=inmargin]
>      \starttext
>      \startitemize[n]
>          \dorecurse{5}{\item item}
>      \stopitemize
> 
>      \startitemize
>          \dorecurse{5}{\item item}
>      \stopitemize
> 
>      \startitemize[I]
>          \dorecurse{5}{\item item}
>      \stopitemize
>      \stoptext
> 
> Is there a way to get only [option=inmargin] for the items that are
> Roman-numbered?

\startitemize[I,inmargin]

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
___________________________________________________________________________________

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

* Re: inmargin for only Roman-numbered items
  2019-03-20 19:09 ` Wolfgang Schuster
@ 2019-03-20 19:43   ` Pablo Rodriguez
  2019-03-20 19:50     ` Wolfgang Schuster
  0 siblings, 1 reply; 5+ messages in thread
From: Pablo Rodriguez @ 2019-03-20 19:43 UTC (permalink / raw)
  To: ntg-context

On 3/20/19 8:09 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 20.03.19 um 20:03:
>> [...]
>> Is there a way to get only [option=inmargin] for the items that are
>> Roman-numbered?
>
> \startitemize[I,inmargin]

Many thanks for your reply, Wolfgang.

I need a \setup... command, since I’m going to use it in an environment
file to typeset XML sources.

Is there a way with a \setupitemize (or \setupitemgroup) to configure
only one kind of numbered (or unnumbered, for that matter) item groups?

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
___________________________________________________________________________________

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

* Re: inmargin for only Roman-numbered items
  2019-03-20 19:43   ` Pablo Rodriguez
@ 2019-03-20 19:50     ` Wolfgang Schuster
  2019-03-20 20:08       ` Pablo Rodriguez
  0 siblings, 1 reply; 5+ messages in thread
From: Wolfgang Schuster @ 2019-03-20 19:50 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Pablo Rodriguez

Pablo Rodriguez schrieb am 20.03.19 um 20:43:
> On 3/20/19 8:09 PM, Wolfgang Schuster wrote:
>> Pablo Rodriguez schrieb am 20.03.19 um 20:03:
>>> [...]
>>> Is there a way to get only [option=inmargin] for the items that are
>>> Roman-numbered?
>>
>> \startitemize[I,inmargin]
> 
> Many thanks for your reply, Wolfgang.
> 
> I need a \setup... command, since I’m going to use it in an environment
> file to typeset XML sources.
> 
> Is there a way with a \setupitemize (or \setupitemgroup) to configure
> only one kind of numbered (or unnumbered, for that matter) item groups?

You have to create a new itemgroup environment/instance.

\defineitemgroup [romanitemize]
\setupitemgroup  [romanitemize] [R,inmargin]

\starttext

\startromanitemize
     \dorecurse{5}{\item item}
\stopromanitemize

\startitemgroup [romanitemize]
     \dorecurse{5}{\item item}
\stopitemgroup

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

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

* Re: inmargin for only Roman-numbered items
  2019-03-20 19:50     ` Wolfgang Schuster
@ 2019-03-20 20:08       ` Pablo Rodriguez
  0 siblings, 0 replies; 5+ messages in thread
From: Pablo Rodriguez @ 2019-03-20 20:08 UTC (permalink / raw)
  To: ntg-context

On 3/20/19 8:50 PM, Wolfgang Schuster wrote:
> Pablo Rodriguez schrieb am 20.03.19 um 20:43:
>> [...]
>> Is there a way with a \setupitemize (or \setupitemgroup) to configure
>> only one kind of numbered (or unnumbered, for that matter) item groups?
>
> You have to create a new itemgroup environment/instance.
>
> \defineitemgroup [romanitemize]
> \setupitemgroup  [romanitemize] [R,inmargin]

Many thanks for your help, Wolfgang.

This is exactly what I needed.

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
___________________________________________________________________________________

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

end of thread, other threads:[~2019-03-20 20:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-03-20 19:03 inmargin for only Roman-numbered items Pablo Rodriguez
2019-03-20 19:09 ` Wolfgang Schuster
2019-03-20 19:43   ` Pablo Rodriguez
2019-03-20 19:50     ` Wolfgang Schuster
2019-03-20 20:08       ` 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).