Re: [NTG-context] packed list only if items > 5

2019-11-14 Thread Tomas Hala
Hi Pablo,

I am not sure if the itemize environment can be configured on the fly.

The following code should solve your problem:


\definecounter[minforpacked] \setcounter[minforpacked][5]

\def\mystartitemize#1\stopitemize{%
\definecounter[mycounter]
{\def\startitem##1\stopitem{\incrementcounter[mycounter]}#1}
\ifnum \rawcountervalue[mycounter]>\rawcountervalue[minforpacked] 
\setupitemize[packed]\fi
\startitemize#1\stopitemize}

\starttext

\mystartitemize %normal
\dorecurse{2}{\startitem text\stopitem}
\stopitemize
\thinrule
\mystartitemize %packed
\dorecurse{7}{\startitem text\stopitem}
\stopitemize

\stoptext


Best wishes,

Tomáš 

Thu, Nov 14, 2019 ve 09:07:21PM +0100 Pablo Rodriguez napsal(a):
# Dear list,
# 
# I have the following sample:
# 
# \starttext
# \startitemize[\ifnum\currentnofitems>5 packed\fi]
# \dorecurse{7}
# {\startitem\currentitemnumber/\currentnofitems\stopitem}
# \stopitemize
# \stoptext
# 
# Is there any way to get a packed list if and only if it contains more
# than a given number of items?
# 
# 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
# 
___

 Tomáš Hála

Mendelova univerzita, Provozně ekonomická fakulta, ústav informatiky
Zemědělská 1, CZ-613 00 Brno,  tel. +420 545 13 22 28

http://akela.mendelu.cz/~thala
___
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] packed list only if items > 5

2019-11-14 Thread Pablo Rodriguez
Dear list,

I have the following sample:

\starttext
\startitemize[\ifnum\currentnofitems>5 packed\fi]
\dorecurse{7}
{\startitem\currentitemnumber/\currentnofitems\stopitem}
\stopitemize
\stoptext

Is there any way to get a packed list if and only if it contains more
than a given number of items?

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
___


Re: [NTG-context] MKIV: error, no format found with name: cont-en, aborting

2019-11-14 Thread Rik Kabel
This issue has been resolved with a new luatex dll in the Win64 bin 
directory (perhaps elsewhere as well, but I only have Win64).


Thank you to all who worked on it.

--
Rik

___
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] Right-to-left Documents

2019-11-14 Thread Marc Trius
I'm trying to create a two-sided document in an RTL language. I'd like to
reverse the margins and the page flow, so that the first page has the
binding on the right side, rather than on the left, and the documents
display correctly in pdf readers.

I posted this question on TeX Stack exchange, and was informed by Wolfgang
Schuster that it is currently impossible to do. He suggested that I
use \setcounter[realpage][2]
to simulate a document that starts with a left page, but warned that this
might cause unwanted side effects.

Would it be possible to properly implement document-level right to left
direction? I am not an expert ConTeXt user, but I would be happy to assist
in testing as much as I am able.

Thank you,
Marc Trius
___
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] Referencing equation, missing dot

2019-11-14 Thread Hans Hagen

On 11/13/2019 9:20 PM, Mikael P. Sundqvist wrote:

Hi,

The following example used to work.

But with an LMTX updated today, the numbering \eqref produces is (11) 
instead of the expected (1.1). The numbering in the equation itself is fine.


Did something change on purpose?

/Mikael

%%% TEST FILE
\definereferenceformat[eqref][left=(,right=)]

\starttext
\chapter[title=Foo]

\placeformula[eq:bar]
\startformula
1+1=2
\stopformula
We see in \eqref[eq:bar].
\stoptext

fixed in next beta

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