Re: [NTG-context] mathalignment vs mathmatrix

2017-09-08 Thread Henri
You obviously didn't read my first mailing correctly and copied an incomplete 
version of my MWE. The
definitions of \Up and \Dn are right there before \starttext.  Whether the 
mathmatrix is empty of
not does not make a difference.  For the sake of completeness I present you a 
different MWE below
which incorporates your requested changes.  Fails with 2017.09.07 23:44 (It 
worked before, so your
version 2017.09.05 15:10 seems to be unaffected).

---

\starttext

\startformula
  \startmathalignment
\NC \psi_{+,\mathord\Uparrow} ...
\startmathmatrix
  \NC 0 \NC 1 \NR
  \NC 1 \NC 0 \NR
\stopmathmatrix
\NR
\NC \psi_{+,\mathord\Downarrow} ...
\NR
  \stopmathalignment
\stopformula

\stoptext

On Fri, 2017-09-08 at 11:24 +0200, Otared Kavian wrote:
> Hi Henri,
> 
> I think your code has a problem: the first one is that the definition of \Up 
> and \Down is not
> understood when I compile your example, and then you introduce an empty 
> mathmatrix which creates a
> difficulty too.
> Once I remove the definitions of \Up and \Dn  the code is typeset (ConTeXt  
> ver: 2017.09.05 15:10
> MKIV beta).
> Can you please give a more detailed example where you see the problem?
> 
> Best regards: OK
> 
> > 
> > On 8 Sep 2017, at 06:51, Henri  wrote:
> > 
> > \define\Up{\mathord\Uparrow}
> > \define\Dn{\mathord\Downarrow}
> > 
> > \starttext
> > 
> > \placeformula
> > \startformula
> >   \startmathalignment
> > \NC \psi_{+,\Up} ...
> > \startmathmatrix
> > \stopmathmatrix
> > \NR
> > \NC \psi_{+,\Dn} ...
> > \NR
> >   \stopmathalignment
> > \stopformula
> > 
> > \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/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
> ___
___
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] Expandable \doifelse tests

2017-09-08 Thread Meer, Hans van der
While going through the posts I had stowed away because I found them 
interesting, I came along this one.
There is not a problem here, just a tiny observation.

In order to work
   \doifelse{a}{\doifelse{x}{x}{a}{b}}{yes}{no}
properly it is sufficient that the inner \doifelse is of the expandable kind.

Thus
   \doifelse{a}{\expdoifelse{x}{x}{a}{b}}{yes}{no}
yields the same as
  \expdoifelse{a}{\expdoifelse{x}{x}{a}{b}}{yes}{no}

Hans van der Meer




On 21 May 2017, at 10:21, Wolfgang Schuster 
> wrote:

\starttext

\expdoifelse{a}{\expdoifelse{x}{x}{a}{b}}
  {yes}
  {no}

\stoptext

Wolfgang

Henri Menke
21. Mai 2017 um 10:14
Dear list,

Motivated by this question on TeX.SX 
https://tex.stackexchange.com/questions/370868 I was fiddling around with the 
\doifelse conditionals. I noticed that most of them are not expandable, which 
makes it very difficult to concatenate them. Here a simple example

\starttext

\doifelse{a}{%
\doifelse{x}{x}{a}{b}% <- evaluates to "a" but not expandable
}{yes}{no}

\stoptext

This outputs "no" even though "a" is equal to "a".

Would it be possible to substitute these conditionals by expandable ones? I 
would volunteer to help make them expandable.

Cheers, Henri
___
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
___

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

___
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] Obtaining an old standalone

2017-09-08 Thread Aditya Mahajan

On Fri, 8 Sep 2017, Roger Mason wrote:


Hi Dalyoung,

Jeong Dal  writes:



I also had a similar problem recently after installing texlive 2017. 
But it is resolved now by doing the following  according to the suggestions:


run mtxrun —generate and luatools —generate

May be, “ luatools —generate" is OK.
I am using TeXshop in OS X. So I am not sure this works in Linux system.
I hope that it may help.


Thanks for the suggestion.  Unfortunately it did not work:

luatools -generate


Note that this should be luatools --generate (two hyphens, which got 
changed to an endash in the previous email).


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] Background with rounded corners (Metafun)

2017-09-08 Thread Meer, Hans van der

> \defineornament
>[FrameTitle]
>[preset=lefttop]

I tried this example and I wonder what the  [preset=lefttop] does. Because 
whatever I fill in for lefttop, the ornament appears always in the topleft 
corner and nowhere else.
Hans van der Meer




> On 23 Aug 2017, at 00:50, Aditya Mahajan  wrote:
> 
> On Wed, 23 Aug 2017, Fabrice Couvreur wrote:
> 
>> Hello,
>> I would like to have three corners rounded as in the figure.
> 
> Not sure if you had simplified your example or not. But if all you want is a 
> rounded corner, you can consider using corner=number parameter of framed and 
> framed text:
> 
> http://wiki.contextgarden.net/Framed#Rounded_Corners
> 
> Here is an example (that does not use metapost).
> 
> \definecolor[MyColorA][r=0.8784, g=0.8784, b=0.8784]
> \definecolor[MyColorB][c=0.00,m=0.27,y=1.00,k=0.00]
> 
> \defineornament
>[FrameTitle]
>[preset=lefttop]
>[
>  frame=off,
>  foregroundstyle=\bfx,
>  foregroundcolor=white,
>  background=color,
>  backgroundcolor=MyColorB,
>]
> 
> \defineframedtext
>  [FramedText]
>  [
>offset=0.6em,
>toffset=\lineheight,
>background=color,
>backgroundcolor=MyColorA,
>foregroundstyle={\switchtobodyfont[10pt]},
>align=verytolerant,
>frame=off,
>corner=01,
>  ]
> 
> 
> \showframe
> \starttext
> 
> \FrameTitle{Info}{\startFramedText[width=10cm]
>  L'équivalent vingt pieds (EVP) est une unité de mesure de conteneurs
> (de longueur courante 20 pieds, soit environ \unit{6,1 meter}).
> 
>  1 EVP représente environ \unit{38,5 cubic meter}.
>\stopFramedText}
> 
> \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/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
> ___

___
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] Obtaining an old standalone

2017-09-08 Thread Roger Mason
Hi Dalyoung,

Jeong Dal  writes:

>
> I also had a similar problem recently after installing texlive 2017. 
> But it is resolved now by doing the following  according to the suggestions:
>
> run mtxrun —generate and luatools —generate
>
> May be, “ luatools —generate" is OK.
> I am using TeXshop in OS X. So I am not sure this works in Linux system.
> I hope that it may help.

Thanks for the suggestion.  Unfortunately it did not work:

luatools -generate

resolvers   | trees | analyzing 'home:texmf'
resolvers   | globbing | confusing filename, name: 'README.txt', lower: 
'readme.txt', already: 'ReadMe.txt'
mtxrun  | unknown script 'base.lua' or 'mtx-base.lua'

But never mind, I can work round the issue that caused the need for the
old binaries.

Cheers,
Roger
___
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] mathalignment vs mathmatrix

2017-09-08 Thread Otared Kavian
Hi Henri,

I think your code has a problem: the first one is that the definition of \Up 
and \Down is not understood when I compile your example, and then you introduce 
an empty mathmatrix which creates a difficulty too.
Once I remove the definitions of \Up and \Dn  the code is typeset (ConTeXt  
ver: 2017.09.05 15:10 MKIV beta).
Can you please give a more detailed example where you see the problem?

Best regards: OK

> On 8 Sep 2017, at 06:51, Henri  wrote:
> 
> \define\Up{\mathord\Uparrow}
> \define\Dn{\mathord\Downarrow}
> 
> \starttext
> 
> \placeformula
> \startformula
>   \startmathalignment
> \NC \psi_{+,\Up} ...
> \startmathmatrix
> \stopmathmatrix
> \NR
> \NC \psi_{+,\Dn} ...
> \NR
>   \stopmathalignment
> \stopformula
> 
> \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/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
___