ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Second level itemization and continue
@ 2018-04-26 20:46 N. Raghavendra
  2018-04-26 22:48 ` N. Raghavendra
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: N. Raghavendra @ 2018-04-26 20:46 UTC (permalink / raw)
  To: ntg-context

Is it possible to use the continue option for second level itemizations?
I am unable to make it work.  For example, the following file

------------------------------------------------------------
\starttext

\startitemize [n]
  \startitem One
    \startitemize [a]
      \startitem A \stopitem
    \stopitemize
  \stopitem
  \startitem Two
    \startitemize [continue]
      \startitem B \stopitem
    \stopitemize
  \stopitem
\stopitemize

\stoptext
------------------------------------------------------------

produces

1. One
a. A
2. Two
a. B

Thanks,
Raghu.

--
N. Raghavendra <raghu@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___________________________________________________________________________________
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: Second level itemization and continue
  2018-04-26 20:46 Second level itemization and continue N. Raghavendra
@ 2018-04-26 22:48 ` N. Raghavendra
  2018-04-26 23:22 ` N. Raghavendra
  2018-04-26 23:53 ` Aditya Mahajan
  2 siblings, 0 replies; 5+ messages in thread
From: N. Raghavendra @ 2018-04-26 22:48 UTC (permalink / raw)
  To: ntg-context

At 2018-04-27T02:16:12+05:30, N. Raghavendra wrote:

> Is it possible to use the continue option for second level itemizations?
> I am unable to make it work.

I notice that the same question was asked five years ago, with no
solution posted.

https://mailman.ntg.nl/pipermail/ntg-context/2013/071646.html

Raghu.

-- 
N. Raghavendra <raghu@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___________________________________________________________________________________
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: Second level itemization and continue
  2018-04-26 20:46 Second level itemization and continue N. Raghavendra
  2018-04-26 22:48 ` N. Raghavendra
@ 2018-04-26 23:22 ` N. Raghavendra
  2018-04-26 23:53 ` Aditya Mahajan
  2 siblings, 0 replies; 5+ messages in thread
From: N. Raghavendra @ 2018-04-26 23:22 UTC (permalink / raw)
  To: ntg-context

At 2018-04-27T02:16:12+05:30, N. Raghavendra wrote:

> Is it possible to use the continue option for second level itemizations?
> I am unable to make it work.

I thought

http://wiki.contextgarden.net/Command/head#Example

looked like a solution, but it too doesn't work.

------------------------------------------------------------

\starttext

\startitemize[packed][headstyle=bold]
    \head Birds

        What is water? This is a difficult question to answer,
        because water is impossible to define. One could ask
        the same question about birds. What {\em are} birds?
        We just don't know.
        \startitemize[a]
            \item Toucan
            \item Quetzal
            \item Cassowary
        \stopitemize

    \head Mammals \par
        \startitemize[continue]
            \item Anteater
            \item Sloth
            \item Capybara
        \stopitemize
\stopitemize

\stoptext
------------------------------------------------------------

produces

• Birds
What is water? This is a difficult question to answer, because water is
impossible to define. One could ask the same question about birds. What
are birds? We just don’t know.
a. Toucan
b. Quetzal
c. Cassowary
• Mammals
a. Anteater
b. Sloth
c. Capybara

which is not the output shown in that Wiki page.

Raghu.

--
N. Raghavendra <raghu@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___________________________________________________________________________________
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: Second level itemization and continue
  2018-04-26 20:46 Second level itemization and continue N. Raghavendra
  2018-04-26 22:48 ` N. Raghavendra
  2018-04-26 23:22 ` N. Raghavendra
@ 2018-04-26 23:53 ` Aditya Mahajan
  2018-04-27  0:02   ` N. Raghavendra
  2 siblings, 1 reply; 5+ messages in thread
From: Aditya Mahajan @ 2018-04-26 23:53 UTC (permalink / raw)
  To: N. Raghavendra, mailing list for ConTeXt users

On Fri, 27 Apr 2018, N. Raghavendra wrote:

> Is it possible to use the continue option for second level itemizations?
> I am unable to make it work.  For example, the following file
>
> ------------------------------------------------------------
> \starttext
>
> \startitemize [n]
>  \startitem One
>    \startitemize [a]
>      \startitem A \stopitem
>    \stopitemize
>  \stopitem
>  \startitem Two
>    \startitemize [continue]
>      \startitem B \stopitem
>    \stopitemize
>  \stopitem
> \stopitemize
>
> \stoptext

If you are willing to define a new itemgroup for the second level, then 
the following works:

\defineitemgroup[itemizeB]
\starttext

\startitemize [n]
   \startitem One
     \startitemizeB[a]
       \startitem A \stopitem
     \stopitemizeB
   \stopitem
   \startitem Two
     \startitemizeB[continue]
       \startitem B \stopitem
     \stopitemizeB
   \stopitem
\stopitemize

\stoptext

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
___________________________________________________________________________________

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

* Re: Second level itemization and continue
  2018-04-26 23:53 ` Aditya Mahajan
@ 2018-04-27  0:02   ` N. Raghavendra
  0 siblings, 0 replies; 5+ messages in thread
From: N. Raghavendra @ 2018-04-27  0:02 UTC (permalink / raw)
  To: ntg-context

At 2018-04-26T19:53:11-04:00, Aditya Mahajan wrote:

> If you are willing to define a new itemgroup for the second level,
> then the following works:

Thanks, that indeed works perfectly!

Raghu.

--
N. Raghavendra <raghu@hri.res.in>, http://www.retrotexts.net/
Harish-Chandra Research Institute, http://www.hri.res.in/
___________________________________________________________________________________
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:[~2018-04-27  0:02 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-04-26 20:46 Second level itemization and continue N. Raghavendra
2018-04-26 22:48 ` N. Raghavendra
2018-04-26 23:22 ` N. Raghavendra
2018-04-26 23:53 ` Aditya Mahajan
2018-04-27  0:02   ` N. Raghavendra

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