Re: [NTG-context] Second level itemization and continue

2018-04-26 Thread N. Raghavendra
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 , 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
___

Re: [NTG-context] Second level itemization and continue

2018-04-26 Thread Aditya Mahajan

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
___

Re: [NTG-context] Second level itemization and continue

2018-04-26 Thread N. Raghavendra
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 , 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
___

Re: [NTG-context] Second level itemization and continue

2018-04-26 Thread N. Raghavendra
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 , 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
___

[NTG-context] Second level itemization and continue

2018-04-26 Thread N. Raghavendra
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 , 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
___

Re: [NTG-context] trying out "plug mode" and the harfbuzz plugin

2018-04-26 Thread Hans Hagen

On 4/25/2018 6:31 PM, Ulrike Fischer wrote:

Am Sun, 22 Apr 2018 12:04:11 +0200 schrieb Hans Hagen:


I read the guitex article about ffi and luatex and wanted to try if
I could run tests with harfbuzz and the plug-mode.

Looking in the newest context I found in onandon-ffi.tex a reference
to the module fonts-plugins. But this module loads a lua file which
isn't in context:

\registerctxluafile{font-phb}{} % harfbuzz plugin


which then indirectly loads some more code



it's on my machine (and occasionally used when we test idris new fonts


(It looks as if my first answer got lost so again) Can we (David and
me) have the code for tests?

i only distribute code as part of the distribution

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] Horizontal line after text in an environment

2018-04-26 Thread Fabrice Couvreur
Hi Hans,
Thank you it works perfectly. I know this command but I never know when to
use it.
Fabrice

2018-04-25 21:22 GMT+02:00 Hans Hagen :

> On 4/25/2018 4:59 PM, Fabrice Couvreur wrote:
>
>> Hello,
>> In this environment, when the text has sufficient height, the horizontal
>> line is well below the figure. However when the height of text is not
>> sufficient, the position of the line is not correct and I would like it
>> also below the figure.
>>
>
> \flushsidefloats
>
>> Thanks
>> Fabrice
>>
>>
>> \setuptolerance[stretch,verytolerant]
>> \useMPlibrary[dum]
>>
>>
>> \define[1]\ProprieteHeadcommand
>>{\textrule[top]{#1}}
>>
>> \defineenumeration
>>[propriete]
>>[text=Propriété,
>> title=yes,
>> headstyle={bold},
>> style=italic,
>> headcommand=\ProprieteHeadcommand,
>> numbercommand=\groupedcommand{}{\nbsp},
>> after=\textrule]
>>
>> \starttext
>>
>> \startpropriete
>> \placefigure[right,none]{}{\externalfigure[dummy]}
>> \startitemize
>> \item \input ward
>>
>> \item \input ward
>> \stopitemize
>> \stoppropriete
>> \startpropriete
>> \placefigure[right,none]{}{\externalfigure[dummy]}
>> \startitemize
>> \item First item
>>
>> \item Second item
>> \stopitemize
>> \stoppropriete
>>
>> \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/list
>> info/ntg-context
>> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : http://contextgarden.net
>> 
>> ___
>>
>>
>
> --
>
> -
>   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/list
> info/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
___