Re: [NTG-context] Combining colors with matrices

2020-07-15 Thread Otared Kavian
Hi David,

Regarding matrices, below is an example. You can choose the names pmatrix, etc 
as you wish. There is even a module which allows you to compute the product of 
two matrices, etc (with \usemodule[m-matrix], see m-matrix.mkiv).

%% defining matrix with parentheses
\definemathmatrix[pmatrix]
[matrix:parentheses]
[simplecommand=pmatrix]

%% defining matrix with brackets
\definemathmatrix[bmatrix]
[matrix:brackets]
[simplecommand=bmatrix]
 
%% defining determinant with bars
\definemathmatrix[determinant]
[matrix:bars]
[simplecommand=thedeterminant]

\starttext
Let $A$ be the $3\times 3$ matrix defined by
\startformula
A := 
\startpmatrix
\NC 11 \NC 12 \NC 13 \NR
\NC 21 \NC 22 \NC 23 \NR
\NC 31 \NC 32 \NC 33 \NR
\stoppmatrix .
\stopformula
This matrix can also be dfined by the Matlab structure of a matrix:
\startformula
A := \pmatrix{11,12,13 ; 21, 22, 23 ; 31, 32, 33}
\stopformula
Compute the value of
\startformula
\alpha := \thedeterminant{11,12,13 ; 21, 22, 23 ; 31, 32, 33} = {\rm det}(A).
\stopformula
\stoptext

Best regards: Otared K.

> On 15 Jul 2020, at 15:38, David Eric Cox  wrote:
> 
> Can anyone direct me to either traditional ConTeXt math documentation on how 
> to produce matrices or tell me how to show a variable in bold red in MathML?  
> I am producing pdf files exclusively.
> 
> 
> Sent with ProtonMail Secure Email.
> 
> ___
> 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] Incorrect placement of a table with LMTX

2020-07-14 Thread Otared Kavian
Hi Fabrice,

You should enclose the table into \startplacetable... \stopplacetable as in:

\startplacetable[number=no]
% here put your xtable
\stopplacetable

Best regards: Otared


> On 14 Jul 2020, at 11:28, Fabrice Couvreur  
> wrote:
> 
> Hello,
> In my lessons, I often have to include tables, figures, ... in definitions, 
> theorems ...
> With the context engine it works fine but not with lmtx.
> Thanks for your help.
> Fabrice
> 
> \setupenumerations
>   [before={\blank},
>after={\blank},
>alternative=serried,
>title=yes,
>titleleft=,
>titleright=,
>prefix=yes,
>prefixsegments=chapter,
>way=bychapter,
>titlestyle=bold,
>width=broad]
> 
> \defineenumeration
>[definition]
>[text=Définition,
> number=yes,
> headcommand=\groupedcommand{}{.}, 
> style=italic]
> 
> \starttext
> 
> \startdefinition
>   \blank
>   \startxtable[align={lohi,middle},width=2cm,offset=0.8ex]
> \startxrow
>   \startxcell
> 1
>   \stopxcell
>   \startxcell
> 2
>   \stopxcell
> \stopxrow
> \startxrow
>   \startxcell
> 3
>   \stopxcell
>   \startxcell
> 4
>   \stopxcell
> \stopxrow
>   \stopxtable
> \stopdefinition
> 
> \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] Bad interaction between \setupinteraction and \defineenumeration

2020-07-07 Thread Otared Kavian
Thanks Wolfgang! 
Your patch seems to fix also another issue with the cross references in ConTeXt 
at least on MacOS and TeXShop. In principle a document typeset with TeXShop, in 
the resulting PDF when the pointer hovers above a link to a reference, TeXShop 
shows a small pop-up window where the reference is shown (for instance with the 
example sent by Jairo the text of Proposición is shown). This works fine with 
LaTeX documents typeset with TeXShop, but it didn't work at all with ConTeXt 
documents. After applying your patch and making the format, the feature works 
with some ConTeXt documents, such as the example sent by Jairo (but 
unfortunately the feature does not work in a large document where I tested it).

Best regards: Otared K.

> On 6 Jul 2020, at 20:48, Wolfgang Schuster 
>  wrote:
> […]
> 
> I'm not Hans but this fixed the problem for me (strc-con.mkiv):
> 
> \def\strc_constructions_register_yes[#1][#2]% #1=optional user data 
> #2=interfaced-settings
>  {\begingroup  % similar to structure so we might 
> generalize this
> ...
> \clf_setinternalreference
> -  prefix{\referenceprefix}%
> +  prefix{\currentconstructionreferenceprefix}%
>   reference {\currentconstructionreference}%
>   internal  \locationcount
>   view  {\interactionparameter\c!focus}%
> \relax
> ...
>   \fi}
> 
> 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
___


Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Otared Kavian
Hi Jairo,

If you remove
focus=standard
the interaction works fine.

Best regards: Otared K.

> On 6 Jul 2020, at 01:15, Jairo A. del Rio  wrote:
> 
> The following:
> 
> \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black]
> \defineenumeration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop]
> \starttext
> \startproposition[1]
> \dorecurse{10}{\input ward}
> \stopproposition
> \in[prop:1] 
> \stoptext 
> 
> works almost perfectly. However, the cross-reference does not work, even if 
> the number of the enumeration is displayed correctly. The example fails both 
> in LuaTeX and LuaMetaTeX. As I remember, the problem appeared as early as 
> 2019, so not a matter of a bad installation. Any ideas?
> 
> Cordially,
> 
> Jairo :)
> 
> ___
> 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
___


[NTG-context] Converting a CSV file to a Lua table and Lua file

2020-07-04 Thread Otared Kavian
Hi all,

I have a bash script which converts a CSV file into a Lua table, which is then 
used in ConTeXt.
It works fine, but I wonder whether there is a code within LuaMetaTeX for doing 
this directly there (writing a new file which contains the Lua table). This 
would be more efficient and neater.

Thus a CSV file « example.csv » containing the lines:

X,Y,Z
0.05597,0.6612,0.8618
0.156804,0.8784,0.961
0.496804,0.8784,0.9324
0.176804,0.648,0.9643

would be converted and wriiten into a lua file « example.lua » containing the 
lines:

return{
--  {X,Y,Z},
{0.05597,0.6612,0.8618}
{0.156804,0.8784,0.961}
{0.496804,0.8784,0.9324}
{0.176804,0.648,0.9643}
}


Thanks in advance for any help: Otared K.
___
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] How to define an array of pens

2020-06-22 Thread Otared Kavian
Thanks Taco!
I added this and Hans' explanations to the wiki:

https://wiki.contextgarden.net/variable_color

but could not set a better title for that page such as « Variable arrays of 
colors, pens, paths ». 

Best regards: Otared

> On 22 Jun 2020, at 09:28, Taco Hoekwater  wrote:
> 
> 
> 
>> On 22 Jun 2020, at 09:17, Otared Kavian  wrote:
>> 
>> Hi Hans,
>> 
>> After learning from you how to define an array of colors and paths, I would 
>> like to know how is it possible to define a variable pen size.
>> In the following working example below, I would like to replace 
>> 
>>  MyPens[j] := pencircle scaled 2pt ;
>> 
>> by something like
>> 
>>  MyPens[j] := pencircle scaled (2+j) pt ;
> 
> MyPens[j] := pencircle scaled ((2+j)*pt);
> 
> “pt” is just a multiplier variable in MetaPost. there is an
> implied multiplication operation, but that only works in
> bare-number cases. That is why you need 
> 
> (2+j)*pt
> 
> The outer parentheses are to prevent MetaPost from interpreting
> your line as 
> 
>  (pencircle scaled (2+j)) * pt;
> 
> Best wishes,
> Taco
> 
> 
> ___
> 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
___


[NTG-context] How to define an array of pens

2020-06-22 Thread Otared Kavian
Hi Hans,

After learning from you how to define an array of colors and paths, I would 
like to know how is it possible to define a variable pen size.
In the following working example below, I would like to replace 

MyPens[j] := pencircle scaled 2pt ;

by something like

MyPens[j] := pencircle scaled (2+j) pt ;

but this does not work (neither do (2+j)*pt). 
Is it possible to specify the pen size according to the value of j, without 
using a structure like

if j == -1 :
MyPens[j] := pencircle scaled 1pt ;
elseif j == 0 :
MyPens[j] := pencircle scaled 2pt ;
else :
MyPens[j] := pencircle scaled 3pt ;
fi

(In my real example I have more than three values for j).

%% begin example-array.tex
\startMPpage
string MyColors[] ;
path   MyPaths [] ;
pen MyPens[] ;
for j = -1 step 1 until 1 :
MyPens[j] := pencircle scaled 2pt ; % I would like to say here 
(2+j) pt
endfor
MyPaths[-1] := (-1.5cm,1.5cm) -- (1.5cm,1.5cm) ; MyColors[-1] := 
"magenta" ; 
MyPaths[0] := (-2cm,2cm) -- (2cm,-2cm) ; MyColors[0] := "darkyellow" ;
MyPaths[1] := fullcircle scaled 3cm ; MyColors[1] := "darkred" ;
for j = -1 step 1 until 1 :
draw MyPaths[j] withpen MyPens[j] withcolor MyColors[j] ;
endfor
\stopMPpage
%% end example-array.tex

Best regards: Otared
___
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] How to define an array of colors in Metafun

2020-06-20 Thread Otared Kavian
Hi all,

I have a family of graphs to draw in Metapost and I would like to attribute a 
different color to each of them according to the value of a certain variable.
Assuming that the path mygraph(j) depends on the variable j, which is computed 
within a lua code and passed to Metapost, I wonder if it is possible to define 
an array of colors named mycolor, so that I could say

draw mygraph(j) withcolor mycolor(j) ;

Here the variable j takes integer values (say between 1 and 10), and one would 
have defined mycolor(1) through mycolor(10).

Thanks in advance for any help: Otared K.
___
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] Asymptote and lmtx

2020-06-13 Thread Otared Kavian
Hi all,

Recently I have been using (in a very elementary way) Metafun in order to 
visualize a small set of data in 2 dimensions, as a scattered set of labeled 
dots, and I wanted to do the same in 3 dimensions. Indeed one can write an 
analogous Metafun code for 3d, but I thought using Asymptote is more efficient. 
 
I saw that there is a module
m-asymptote.mkiv
in the distribution, but typesetting that file with lmtx or mkiv does not give 
the expected result.

Has anyone a working example of using Asymptote from within ConTeXt, from which 
I could begin to learn?

Thanks for any hint: Otared 
___
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] \startplacefigure and \startframedtext in lmtx

2020-06-10 Thread Otared Kavian
Hi,

I tried today's new version 2020.06.09, to see whether the issue I was 
reporting below is fixed.
Unfortunately it is not, and my fix with \dontleavehmode does not work anymore. 
Is there a way to fix the problem ?

Thanks in advance: Otared

> On 9 Jun 2020, at 11:04, Otared Kavian  wrote:
> 
> Hi all,
> 
> I just noticed that in lmtx, the commands \startplacefigure and 
> \startframedtext, when used together, do not behave in the same way as they 
> do in mkiv. 
> I wonder whether this is a permanent change or rather a buglet.
> 
> I found a fix around the issue, but since in my document I have a certain 
> number of cases where such combinations are used, I woul dlike to be sure to 
> not make a mistake by changing all the instances… Here is an example:
> 
> %% begin figure-framedtext.tex
> \useMPlibrary[dum]
> \defineexternalfigure[dummy] 
> 
> \starttext
> \startplacefigure[location=left,number=no,title={}]
>   \externalfigure[dummy][width=.45\textwidth]
> \stopplacefigure
> \dontleavehmode % if this is commented out then the text and the figure are 
> placed on top of each other
> \startframedtext[frame=off]
>   \input ward.tex
> \stopframedtext
> \stoptext
> %% end figure-framedtext.tex
> 
> In the above example the fix is to add \dontleavehmode between the figue and 
> the framedtext. If one comments out that line then the issue can be seen.
> 
> Thanks in advance for any help: Otared K.
> 

___
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] \startplacefigure and \startframedtext in lmtx

2020-06-09 Thread Otared Kavian
Hi all,

I just noticed that in lmtx, the commands \startplacefigure and 
\startframedtext, when used together, do not behave in the same way as they do 
in mkiv. 
I wonder whether this is a permanent change or rather a buglet.

I found a fix around the issue, but since in my document I have a certain 
number of cases where such combinations are used, I woul dlike to be sure to 
not make a mistake by changing all the instances… Here is an example:

%% begin figure-framedtext.tex
\useMPlibrary[dum]
\defineexternalfigure[dummy] 

\starttext
\startplacefigure[location=left,number=no,title={}]
\externalfigure[dummy][width=.45\textwidth]
\stopplacefigure
\dontleavehmode % if this is commented out then the text and the figure are 
placed on top of each other
\startframedtext[frame=off]
\input ward.tex
\stopframedtext
\stoptext
%% end figure-framedtext.tex

In the above example the fix is to add \dontleavehmode between the figue and 
the framedtext. If one comments out that line then the issue can be seen.

Thanks in advance for any help: Otared K.

___
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] Updating lmtx

2020-06-07 Thread Otared Kavian
Hi Hans,

Actually I was trying to fix the issue with \sqrt by updating to a newer 
version. But the patch you sent me in another message fixes the issue, so no 
need for an update today…
Thanks a lot!

Best regards: Otared

> On 7 Jun 2020, at 12:09, Hans Hagen  wrote:
> 
> On 6/7/2020 11:34 AM, Otared Kavian wrote:
>> Hi all,
>> When I run
>>  sh install.sh
>> in order to update my installation of LuaMetaTeX, I keep getting version 
>> 2020.05.25 23:39.
>> Is this the latest version, or have I an issue with the install script?
> There have been no updates last week ... there are couple of new mechanisms 
> coming and i'm making the low level token interface a bit more abstract and 
> user friendly so updating now is kind of tricky (and before I do I'd like 
> Wolfgang also has to do some checking as he know what's going on deep down).
> 
> 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
___


[NTG-context] Updating lmtx

2020-06-07 Thread Otared Kavian
Hi all,

When I run
sh install.sh
in order to update my installation of LuaMetaTeX, I keep getting version 
2020.05.25 23:39. 
Is this the latest version, or have I an issue with the install script?

Thanks in advance for any help: Otared K.


___
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] Numbers inside \sqrt are small

2020-06-06 Thread Otared Kavian
Hi Mikael,

Thanks to your message I discovered that in all my recent documents typeset 
with lmtx the \sqrt has a bug… Indeed the argument under the square root is  
too small.  (The version I have right now is 2020.05.25 23:39, after running sh 
install.sh).
It may be that it is related to the recent changes discussed in anther thread 
about the square root and friends.

I hope Hans will have time to fix the issue…

Best regards: Otared K.

> On 2 Jun 2020, at 14:47, Mikael Sundqvist  wrote:
> 
> Hi,
> 
> \starttext
> $2+\sqrt{2}$
> \stoptext
> 
> The output is attached. This happened with a release that are a bit old, as 
> well as with the most recent upgrade. LMTX.
> 
> /Mikael
> ___
> 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] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
Hi Tomáš,

Thank you very much for your answer: you solved my problem perfectly!
I didn't know that one could use several nested 
\startplacefigure...\stopplacefigure.

Best regards: Otared

> On 1 Jun 2020, at 21:05, Tomas Hala  wrote:
> 
> Hi Otared,
> 
> the question is how complicated structures you are going to have... 
> Try the following code, I guess it works.
> (I did not solve distances between objects.)
> 
> Tomáš 
> 
> %%%
> 
> \setuppapersize[A2][A2]
> \setupcombination[offset=0cc,location=top,distance=1cc]
> 
> \starttext
> 
> \startplacefigure
> {\startplacefigure[location=none]
>  \startcombination[2*1]%
>{\startcombination[1*2]%
>  {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]}{}{} 
> %{a}
>\stopcombination%
> % OR
> %   {\startcombination[1*2]%
> % 
> {\framed[width=6cm]{a}}{}{\externalfigure[image-1.pdf][width=6cm]}{} %{a}
> %   \stopcombination%
>}{}%
>{\startcombination[1*2]%
>  
> {\framed[width=10cm]{b}}{}{\externalfigure[image-2.pdf][width=10cm]}{} %{b}
>  
> {\framed[width=10cm]{c}}{}{\externalfigure[-image-3.pdf][width=10cm]}{} %{c}  
>\stopcombination%
>}{}%
>  \stopcombination
> \stopplacefigure}
> {\startplacefigure[location=none]
>\startcombination[1*2]%
>  
> {\framed[width=20cm]{d}}{}{\externalfigure[image-4.pdf][width=20cm]}{}%{d}
>  {}%
>  {\startcombination[2*1]
>
> {\framed[width=10cm]{e}}{\externalfigure[image-5.pdf][width=10cm]} %{e}
>
> {\framed[width=10cm]{f}}{\externalfigure[-image-6.pdf][width=10cm]} %{f}  
>   
>  \stopcombination}
>  {}%
>   \stopcombination
> \stopplacefigure}
> \stopplacefigure
> 
> \stoptext
> 
> %%
> 
> 
> Mon, Jun 01, 2020 ve 04:58:52PM +0200 Otared Kavian napsal(a):
> # Hi Tomás,
> # 
> # Thank you for your help. That works for the simple combination I sent to 
> the list, but it does not work for another case in my document where I have 
> several combinations, as in the following:
> # 
> # \startplacefigure[location=none]
> # \startcombination[1*2]
> # {\startcombination[2*1]
> # 
> {\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]} %{a} 
> # {\startcombination[1*2]
> # 
> {\framed[width=10cm]{b}}{\externalfigure[image-2.pdf][width=10cm]} %{b}
> # 
> {\framed[width=10cm]{c}}{\externalfigure[-image-3.pdf][width=10cm]} %{c}
> # \stopcombination}{}
> # \stopcombination}{}
> # {\startcombination[1*2]
> # 
> {\framed[width=20cm]{d}}{\externalfigure[image-4.pdf][width=20cm]} %{d}
> # {\startcombination[2*1]
> # 
> {\framed[width=7cm]{e}}{\externalfigure[image-5.pdf][width=7cm]} %{e}
> # 
> {\framed[width=8cm]{f}}{\externalfigure[image-6.pdf][width=8cm]} %{f}
> # \stopcombination}{}
> # \stopcombination}{}
> # \stopcombination
> # \stopplacefigure
> # 
> ___
> 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] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
Hi Tomás,

Thank you for your help. That works for the simple combination I sent to the 
list, but it does not work for another case in my document where I have several 
combinations, as in the following:

\startplacefigure[location=none]
\startcombination[1*2]
{\startcombination[2*1]

{\framed[width=6cm]{a}}{\externalfigure[image-1.pdf][width=6cm]} %{a} 
{\startcombination[1*2]

{\framed[width=10cm]{b}}{\externalfigure[image-2.pdf][width=10cm]} %{b}

{\framed[width=10cm]{c}}{\externalfigure[-image-3.pdf][width=10cm]} %{c}
\stopcombination}{}
\stopcombination}{}
{\startcombination[1*2]

{\framed[width=20cm]{d}}{\externalfigure[image-4.pdf][width=20cm]} %{d}
{\startcombination[2*1]

{\framed[width=7cm]{e}}{\externalfigure[image-5.pdf][width=7cm]} %{e}

{\framed[width=8cm]{f}}{\externalfigure[image-6.pdf][width=8cm]} %{f}
\stopcombination}{}
\stopcombination}{}
\stopcombination
\stopplacefigure

Here the first group containing image-1 and image-2, image-3 is misplaced.

Maybe there is a right setup for this, even if I don't have a caption below the 
whole figure (in the above figure I can avoid a caption).

Thanks again: Otared

> On 1 Jun 2020, at 14:51, Tomas Hala  wrote:
> 
> Hi Otared,
> 
> maybe there is a better, more system solution, but the following works:
> 
> \setupcaptions[figure][location=bottom]
> \startplacefigure[title={A combination of three figures}] % this title 
> appears below the figure
>  \startcombination[3*1]
>{\framed[width=4cm]{a}}{\externalfigure[image-1.pdf][width=4cm]} % a 
> appears above image-1
>{\framed[width=4cm]{b}}{\externalfigure[image-2.pdf][width=4cm]} % b 
> appears above image-2
>{\framed[width=4cm]{c}}{\externalfigure[image-3.pdf][width=4cm]} % c 
> appears above image-3
>  \stopcombination}{}
> \stopplacefigure
> 
> Best wishes,
> 
> Tomáš
> 
> Mon, Jun 01, 2020 ve 02:30:49PM +0200 Otared Kavian napsal(a):
> # Hi all,
> # 
> # Is it possible to write the individual captions for each element of a 
> combination of floats above it, while the caption for the figure appears 
> below?
> # 
> # \startplacefigure[title={A combination of three figures}] % this title 
> appears below the figure
> # \startcombination[3*1]
> # {\externalfigure[image-1.pdf][width=4cm]}{a} % a appears above 
> image-1
> # {\externalfigure[image-2.pdf][width=4cm]}{b} % b appears above 
> image-2
> # {\externalfigure[image-3.pdf][width=4cm]}{c} % c appears above 
> image-3
> # \stopcombination}{}
> # \stopplacefigure
> # 
> # I tried to define a new float, say myfigure, which has captions below and 
> then I tried 
> # 
> # \setupcaptions[location=top] 
> # 
> # and 
> # 
> # \setupcombinations[location=top]
> # 
> # but this does not work…
> # 
> # Thanks for any help: Otared
> # 
> ___
> # 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
___


[NTG-context] Writing the caption above figures in combinations

2020-06-01 Thread Otared Kavian
Hi all,

Is it possible to write the individual captions for each element of a 
combination of floats above it, while the caption for the figure appears below?

\startplacefigure[title={A combination of three figures}] % this title appears 
below the figure
\startcombination[3*1]
{\externalfigure[image-1.pdf][width=4cm]}{a} % a appears above 
image-1
{\externalfigure[image-2.pdf][width=4cm]}{b} % b appears above 
image-2
{\externalfigure[image-3.pdf][width=4cm]}{c} % c appears above 
image-3
\stopcombination}{}
\stopplacefigure

I tried to define a new float, say myfigure, which has captions below and then 
I tried 

\setupcaptions[location=top] 

and 

\setupcombinations[location=top]

but this does not work…

Thanks for any help: Otared
___
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] Is it possible to have a rotated label in Metafun?

2020-05-24 Thread Otared Kavian
Hi all,

In a graph which I am trying to draw with LuaMetafun, I have a variable the 
values of which I want to show on the graph rotated 90 degrees (or whatever 
other value).
Is it possible to do that?

An example is:

numeric a, u ; u := 10mm ;
a := 4.5 ;
label.bot(a, (10,-0.1) scaled u) % I would like to have printed 4.5 
rotated 90 degrees for instance.

Thanks in advance for any help: Otared

___
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] \mathopen, \Uover and friends

2020-05-09 Thread Otared Kavian
Hi Hans,

Thanks for the quick fix of today's upload. 
I could typeset your examples with \mathopen, \mathclose and these are great 
features in order to fine tune the spacing in math mode.

Regarding the new command \Uover, I thought maybe it would be more consistent 
to have the usual structure 
${1} \Uover {2}$ 
like the more friendly ${1} \over {2}$ instead of having
$\Uover{1}{2}$ 
which is more like the \frac structure.

Also a structure like
$\Uover style \textstyle{1}{2}$
seems a little bit far from the usual ConTeXt atmposphere… Would it not be 
possible to have
${1} \Uover[style=textstyle] {2}$ 
instead?

In any case, thanks a lot for the constant addition of cute features…
Best regards: Otared K.
___
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] Use \unit for value and uncertainty

2020-05-09 Thread Otared Kavian
Hi Benjamin,

Thanks for sharing your nice code, which is very useful.
However I wanted to let you know that it seems it does not work correctly with 
LuaMetaTeX version 2020.04.30 11:10, even though it works fine with ConTeXt 
mkiv.

Best regards: Otared K.

> On 9 May 2020, at 12:39, Benjamin Buchmuller  
> wrote:
> 
> I know this is quite an old thread, but here is a minimal parser (\units with 
> an “s”) that wraps around \digits and \unit to produce an acceptable output. 
> 
> As I frequently need to write ranges (or measures of uncertainty), I find it 
> convenient to able to type
> 
> \units{4.0 to 5.0 centi meter} 
> 
> than 
> 
> \digits{4.0}\,to\,\unit{5.0 centi meter}.
> 
> Also, the parser will take care of exponents and bracket them accordingly. :D
> 
> ranges: keyword “to”: 4.0 – 5.0 cm
> SEM:keyword “se”: 4.5 ± 0.5 cm
> SD: keyword “sd”: 4.5 (0.5) cm
> 
> If no keyword is present, the default behaviour is \unit{…}.
> 
> The code is not perfect (and the level of abstraction potentially not yet 
> sufficient to make it part of the phys-dim.mkiv source), but maybe helpful.
> 
> \starttext
> 
> \startluacode
>   userdata = userdata or {}
>   
>   function userdata.units(input)
>   
>   tbl = string.explode(input)
>   
>   if tbl[2] == "to" then
>   context.digits(tbl[1])
>   context.phys_units_space()
>   context("--")
>   context.phys_units_space()
>   context.unit(table.concat(tbl, " ", 3))
>   elseif tbl[2] == "se" then
>   local sx1 = string.split(tbl[1], "e")
>   local sx2 = string.split(tbl[3], "e")
>   if (sx1[2] == sx2[2]) and not (sx1[2] == nil) then
>   context("(")
>   context.digits(sx1[1])
>   context.phys_units_space()
>   context("±")
>   context.phys_units_space()
>   context.digits(sx2[1])
>   context(")")
>   context.digits("e" .. sx1[2])
>   context.phys_units_space()
>   context.unit(table.concat(tbl, " ", 4))
>   else
>   context.digits(tbl[1])
>   context.phys_units_space()
>   context("±")
>   context.phys_units_space()
>   context.unit(table.concat(tbl, " ", 3))
>   end
>   elseif tbl[2] == "sd" then
>   local sx1 = string.split(tbl[1], "e")
>   local sx2 = string.split(tbl[3], "e")
>   if (sx1[2] == sx2[2]) and not (sx1[2] == nil) then
>   context.digits(sx1[1])
>   context.phys_units_space()
>   context("(")
>   context.digits(sx2[1])
>   context(")")
>   context.digits("e" .. sx1[2])
>   context.phys_units_space()
>   context.unit(table.concat(tbl, " ", 4))
>   else
>   context.digits(tbl[1])
>   context.phys_units_space()
>   context("(")
>   context.digits(tbl[3])
>   context(")")
>   context.unit(table.concat(tbl, " ", 4))
>   end
>   else
>   context.unit(table.concat(tbl, " "))
>   end
>   
>   end
> \stopluacode
> 
> \def\units#1{\ctxlua{userdata.units("#1")}}
> 
> Car 1 drives \units{4 to 5.2 kilo meter per hour}.
> 
> Car 2 drives \units{30.1 to 40.5 kilo meter per hour}.
> 
> Car 3 drives \units{40.= to 50.= kilo meter per hour}.
> 
> The average speed was \units{35,000 se 5000 meter per hour}.
> 
> The average speed was \units{35e3 se 0.5e3 meter per hour}.
> 
> The average speed was \units{35.2e3 se 5e2 meter per hour}.
> 
> \stoptext
> 
> The average speed was \units{35.2 se 5e2 meter per hour}.
> 
> The average speed was \units{_3.2 sd 5 meter per hour}.
> ___
> 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] Current version 2020.05.09 08:55 not working

2020-05-09 Thread Otared Kavian
Hi Hans,

I just updated to the latest version 2020.05.09 08:55 but when trying your 
examples with \mathopenup and friends noticed that ConTeXt is stuck with 

resolvers > lua > loading file 
'/context-osx-64/tex/texmf-context/tex/context/base/mkiv/math-spa.lua' succeeded

or with

context report > file: cont-en-status.html

and other such messages.

Actually even with a simple example like

\starttext
Test
\stoptext

one cannot run the latest version at least on MacOS X (I did remove the texmf 
cache).

When in a Terminal window I issue the commands

context --make -all

I see that there is an error message like:

tex error > tex error on line 2981 in file math-ini.mkxl: ! Undefined 
control sequence

l.2981 \normalsupmarkmode
 \plusone % 2 also disable ^[^+] in text mode 

 

The control sequence at the end of the top line of your error message 
was never \def'ed. You can just continue as I'll forget about whatever was 
undefined.

Best regards: OK
___
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] updating mkiv

2020-04-18 Thread Otared Kavian
Thanks Mojca!
After updating I have now
current version: 2020.04.08 14:34

Best regards: Otared

> On 18 Apr 2020, at 11:28, Mojca Miklavec  
> wrote:
> 
> On Sat, 18 Apr 2020 at 11:25, Mojca Miklavec wrote:
>> On Sat, 18 Apr 2020 at 11:00, Otared Kavian wrote:
>>> 
>>> Is the latest version of ConTeXt mkiv the following:
>>>current version: 2020.01.30 14:13
>>> 
>>> I am asking this because after running
>>>sh firstsetup.sh
>>> that is what I get.
>> 
>> Maybe I messed something up when the zip names changed.
>> Let me check.
> 
> ... until I fix it, running
>first-setup.sh --context=latest
> should be a viable workaround.
> 
> Mojca
> ___
> 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
___


[NTG-context] updating mkiv

2020-04-18 Thread Otared Kavian
Hi all,

Is the latest version of ConTeXt mkiv the following:
current version: 2020.01.30 14:13

I am asking this because after running
sh firstsetup.sh
that is what I get.

Best regards: OK
___
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] Colors in lmt_surface and luametafun

2020-04-17 Thread Otared Kavian
Hi Hans,

On page 36 of luametafun.pdf there is the following example of using 
lmt_surface:

\startMPcode{doublefun}
draw lmt_surface [
preamble  = "local sin, cos = math.sin, math.cos",
code = "sin(x*x) - cos(y*y)",
color = "f, f/2, 1-f",
color = "f, f, 0",
xstep = .02,
ystep = .02,
xvector = {-0.4, -0.4},
height = 10cm,
lines = true,
] xsized .TextWidth ;
\stopMPcode

What is the meaning of « f » in « color = "f, f/5, 1-f" »?
Is it possible to specify other colors and how can it be done?

Thanks for your attention: Otared 
___
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] running lua in metafun and in ConTeXt

2020-04-11 Thread Otared Kavian
Hi Dalyoung,

I tested your code: it works fine with both definitions of the variable tt in 
your code. I am using the current LMTX version 2020.04.08 14:38.

Best regards: Otared

> On 11 Apr 2020, at 14:32, Jeong Dal  wrote:
> 
> Dear all,
> 
> I draw Pascal’s triangle with the label of each point created by using lua 
> functions.
> As you see in the code below, I defined fact(n) and combi(n,r) using lua.
> For the calculation tt, I used two different methods.
> Both are working well when I run the given code.
> 
> But I got an error, when I added this code to a ConTeXt file composed product 
> and components,
> and using the second method, i.e. combi(n,r). The first method is still 
> working well.
> The error message is as following:
> 
> metapost log> loading metafun, including plain.mp version 1.004 for 
> metafun iv and xl
> metapost log> 
> luatex warning  > mplib: run script: [string "return mp.print(combi(0,0 
> ))"]:1: attempt to call a nil value (global 'combi')
> 
> metapost log> >> tt
> metapost log> >> vacuous
> metapost log> ! Equation cannot be performed (numeric=vacuous).
> metapost log>  
> metapost log>;
> metapost log>  ...(0)&","(EXPR0)&" ))");
> metapost log>   
> now:=start+(EXPR0)*right*d...
> metapost log>  now--(now+A);draw.now--(now+B);endfor
> metapost log>   ; ENDFOR
> metapost log> <*> ...now+A); draw now -- (now+B); endfor; endfor
> metapost log>   ;;
> 
> I don’t know why the same code treated differently.
> I think that I have to do something more in luacode which I don’t know.
> Comments are wellcome!
> 
> Best regards,
> 
> Dalyoung
> 
> %%%
> 
> \startluacode
> function fact (n)
>   if n <= 0 then
> return 1
>   else
> return n * fact(n-1)
>   end
> end
> function combi(n,r)
>return fact(n)/(fact(r)*fact(n-r))
> end
> \stopluacode
> \startbuffer[fig121]
> numeric n,r,s,u,dx,dy,tt; u := 1.8cm;
> path p, q;
> pair A,B,start,now;
> A := dir(210)*u;
> B := dir(-30)*u;
> dy := sind(30)*u;
> dx := 2*cosd(30)*u;
> for n=0 upto 4:
>start := n*dir(210)*u;
>for r=0 upto n:
>   s := n-r;
> % tt := lua("mp.print(fact(" & decimal n & ")/(fact(" & decimal r & 
> ")*fact(" & decimal s &" )))");
>   tt := lua("mp.print(combi(" & decimal n & "," &  decimal r & " ))");
>   
>   now := start+r*right*dx;
>   dotlabel.top(textext("$\displaystyle {" & decimal n & "\choose" & 
> decimal r & "} = "& decimal tt & "$"),now);
>   draw now -- (now+A);
>   draw now -- (now+B);
>endfor;
> endfor;
> \stopbuffer
> \starttext
> \switchtobodyfont[11pt]
> \processMPbuffer[fig121]
> \switchtobodyfont[12pt]
> \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] Exercise file with statements and correction

2020-03-17 Thread Otared Kavian
Hi Fabrice,Here is a model written with the help of Wolfgang Schuster.Let me know if you need more help.

interactive-question-hint-answer-2.tex
Description: TeX document


interactive-question-hint-answer-2.pdf
Description: Adobe PDF document
On 17 Mar 2020, at 21:14, Fabrice Couvreur  wrote:Hello,I would like to make files with statements of exercises and correction where it would be enough to click on "correction" to access the correction at the end of the file. I'm running out of time, does anyone have a model to share ?Thank you so much.Fabrice
___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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 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] Quizz

2020-03-16 Thread Otared Kavian

> On 16 Mar 2020, at 11:14, Hans Hagen  wrote:
> 
> On 3/15/2020 10:34 AM, Fabrice Couvreur wrote:
>> […]
> 
> there are some examples of form stuff in the test suite (widgets)
> 
> i'll send you a file from 2000 that does some mpc magic (including feedback 
> and score calculations) but it's mkii (so you need to run pdftex). Maybe I 
> should check it with mkiv too.

Could you please tell us where to find that file, even if it is only with mkii? 
(I need to prepare some material for my students, for the same reason as 
Fabrice…).

Thanks in advance: Otared K.
___
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] How do I set TeXShop to use mtxrun on a .tex file?

2020-02-29 Thread Otared Kavian
Hi Gerben,

There is a dedicated page for this:

https://wiki.contextgarden.net/Installing_ConTeXt_LMTX_on_MacOS

Please have a look to the section 
Running LMTX from TeXShop

Best regards: OK

> On 29 Feb 2020, at 12:34, Gerben Wierda  wrote:
> 
> I’d like to use TeXShop.app for my development. How do I set TeXShop.app to 
> use my standalone ConTeXt?
> 
> G
> ___
> 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
___


[NTG-context] margintext and floats in the margin

2020-01-29 Thread Otared Kavian
Hi,

Is it possible to put some short notes in the margin, together with a float?
Below is an example, which puts the float on top of the text in the margin.
The option « stack=yes » works fine for the margintext when there is no float, 
but it does not seems to be an option which puts the figure and margintext in a 
sort of stack.

Thanks for any advice: Otared K.

% begin margintext-float.tex
\setuppapersize[A4][A4]
\setuplayout[
width=120mm,
leftmargin=25mm,rightmargin=50mm]

\setupmargindata[margintext]
[align=raggedright,
stack=yes,
location=outer,
style={\rm}]

\showframe
\startbuffer[sine]
numeric u ; u = 5mm ;
draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u 
withcolor transparent(1,.5,darkblue) 
withpen pencircle scaled 2pt ;
\stopbuffer

\starttext

This is some text.\margintext{This is a remark in the margin.}
This is some more text.\margintext{This text is also in the margin.}
\startplacefigure[location=outermargin,number=no]
\scale[width=\rightmarginwidth]{\processMPbuffer[sine]}
\stopplacefigure

\stoptext
% end margintext-float.tex

___
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] margintext and floats in the margin

2020-01-26 Thread Otared Kavian
Hi,

Is it possible to put some short notes in the margin, together with a float?
Below is an example, which puts the float on top of the text in the margin.
The option « stack=yes » works fine for the margintext when there is no float, 
but it does not seems to be an option which puts the figure and margintext in a 
sort of stack.

Thanks for any advice: Otared K.

% begin margintext-float.tex
\setuppapersize[A4][A4]
\setuplayout[
width=120mm,
leftmargin=25mm,rightmargin=50mm]

\setupmargindata[margintext]
[align=raggedright,
stack=yes,
location=outer,
style={\rm}]

\showframe
\startbuffer[sine]
numeric u ; u = 5mm ;
draw function (1,"x","1.5*sin(x)",0,710/113,.01) scaled u 
withcolor transparent(1,.5,darkblue) 
withpen pencircle scaled 2pt ;
\stopbuffer

\starttext

This is some text.\margintext{This is a remark in the margin.}
This is some more text.\margintext{This text is also in the margin.}
\startplacefigure[location=outermargin,number=no]
\scale[width=\rightmarginwidth]{\processMPbuffer[sine]}
\stopplacefigure

\stoptext
% end margintext-float.tex

___
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] typing+framedtext: different behaviour between TL2017 and 2019

2020-01-17 Thread Otared Kavian
Hi Wolfgang,Indeed the sample sent by Tomas works fine with recent lmtx and mkiv, but with the mkiv version in TeXLive2019 one gets the result attached.This means that Tomas has to update to a newer version of ConTeXt…Best regards: OK

typing-and-framedtext.pdf
Description: Adobe PDF document
On 17 Jan 2020, at 19:40, Wolfgang Schuster  wrote:Tomas Hala schrieb am 17.01.2020 um 15:18:Hi all,if I compile the following (minimised) code with ConTeXt from TL2017,I receive expected result -- one framed gray box with correct width.\starttext\showframe\defineframedtext[MPT][background="" class="">\setuptyping[MP][before={\startMPT},after={\stopMPT},]\startMP bla \stopMP\stoptextNow I tried it with ConTeXt from TL2019 (TL2018 produces the same result as TL2019)and I have got _two_ boxes -- the outer one is correct and frames the typing environmentas in the past whereas the new box frames the text inside the typing.Your example works fine with the current beta and since you don't show the differences between the different installations there is nothing which can be done.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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 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
___


[NTG-context] Historic ligatures with lucidaot

2020-01-16 Thread Otared Kavian
Hi all,

How can I add the so-called « historic ligatures », such as in st, ct, to a 
font (assuming it has that feature)?

For instance

\setupbodyfont[lucidaot]

\starttext

construction

\stoptext

does not show the historic ligature in « st » and in « ct »: how can I get them?

Best regards: OK
___
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] How to use in Metafun, a function defined in Lua

2019-12-28 Thread Otared Kavian
Hi all,

I would like to use a math function defined in lua in Metafun in order to draw 
its graph, together with the graphs of some other functions.
As a simple example consider the following:

%%% begin lua-metafun-example.tex
\startluacode 
function document.myfunction(n,x)
local S
S = math.sin(n*x)
return S
end
\stopluacode

\starttext

Here \type{document.myfunction(n,x)} is $\sin(nx)$. For instance when $n = 2$ 
and $x = 355/113$ we have:

\type{document.myfunction(2,355/113)} 
$=\cldcontext{document.myfunction(2,355/113)} \sim 0$.

\startplacefigure[title={Nothing works\dots}]
\startMPcode{GridAxis}
numeric gu ; gu = 5mm ; % gu = graph unit
draw image (
draw function (1,"x","document.myfunction(2,x)", % <-- this does not 
work
%   draw function (1,"x","sin(2*x)", % <-- this works
-355/113,355/113,.01)
scaled gu 
withpen pencircle scaled .075pt
withcolor darkred ;
) xsized .7TextWidth ;
\stopMPcode
\stopplacefigure

\stoptext
%%% end lua-metafun-example.tex

Here one sees that the function « document.myfunction » is well defined in Lua 
and is known in ConTeXt, but I cannot use it in a Metapost code: how can one do 
that?

Thanks in advance for any help.
Best regards: Otared
___
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] How to use together lmt_axis, lmt_grid and lmt_function

2019-12-22 Thread Otared Kavian
Hi,

I am experimenting the new LuaMetaTeX features introduced recently, but I can't 
get the built-in features together.

To explain the problem I encounter, I want to draw the graph of a function on a 
grid in which the x-axis and the y-axis are alos drawn.
Now lmtx has the « instances » (if I am not wrong…) named lmt_axis, lmt_grid 
and lmt_function which separately work fine, but I dont see how to use them 
simultaneously by keeping the correct scaling. 
In the minimal example below, copied from luametafun.pdf, the graph of the 
function $f(x) := (x - 1)^2$ should be drawn by showing its minimum at $x = 1$, 
and its value at $x = 0$ should be equal to 1. However the graph on the grid 
does not show this. Moreover the axes do not match the grid.

This means that I have not understood how to give the same units and scales in 
the three instances lmt_axis, lmt_grid and lmt_function.

Thanks for any help: Otared K.
PS: here is a minimal example
% begin grid-axis-function.tex
\starttext
\startplacefigure 
\startMPcode{doublefun} 
draw lmt_grid [
nx = 10, 
ny = 10,
dx = 1, 
dy = 1 
] xsized 5cm withpen pencircle scaled .1pt withcolor "darkblue" ;

draw lmt_axis [
nx = 10,
ny = 10,
dx = 1, 
dy = 1, 
] xsized 5cm withpen pencircle scaled .5pt withcolor "darkred" ;

draw lmt_function [
xmin =  0, xmax = 2, xstep = .05,
ymin = 0, ymax =  1.5,
code = "(x - 1)*(x - 1)", 
] xsized 5cm withpen pencircle scaled .75pt ;
\stopMPcode
\stopplacefigure
\stoptext
% end grid-axis-function.tex
___
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] Style for captions

2019-12-18 Thread Otared Kavian
Hi Wolfgang and Aditya,

Thanks for the explanations: the confusion for me came from the fact that I had 
already use \tfa for a title containing inline maths, and could not imagine 
that \tfx does not apply to inline maths. Is there reason for this difference?

That said the solution with style=smallitalic makes sense and one can remember 
it.

Best regards: OK

> On 18 Dec 2019, at 17:32, Wolfgang Schuster 
>  wrote:
> 
> Aditya Mahajan schrieb am 18.12.2019 um 13:52:
>> On Wed, 18 Dec 2019, Otared Kavian wrote:
>> 
>>> Hi all,
>>> 
>>> In the example below, I would like to have the style of the figure's 
>>> caption to be \itx, but the inline formula is set with a larger body font: 
>>> is it possible to setup the caption of a float so that a smaller size 
>>> applies also to the math formula?
>>> 
>>> Best regards: Otared
>>> PS: here is the example (not so minimal, sorry…)
>>> % begin example-caption.tex
>>> \setupcaption[figure][
>>> headstyle={\bix},
>>> style={\itx}]
>> 
>> style={\switchtobodyfont[small]\setupinterlinespace\it}
> 
> \setupcaption
>   [figure]
>   [headstyle=bold,
>style=smallitalic]
> 
> 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
> ___

___
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] Style for captions

2019-12-18 Thread Otared Kavian
Thanks Aditya! That solve smy issue.
However, it is a bit of magic to know that \setupinterlinespace makes also the 
math font small, even for inline math.

Best regards: OK

> On 18 Dec 2019, at 13:52, Aditya Mahajan  wrote:
> 
> On Wed, 18 Dec 2019, Otared Kavian wrote:
> 
>> Hi all,
>> 
>> In the example below, I would like to have the style of the figure's caption 
>> to be \itx, but the inline formula is set with a larger body font: is it 
>> possible to setup the caption of a float so that a smaller size applies also 
>> to the math formula?
>> 
>> Best regards: Otared
>> PS: here is the example (not so minimal, sorry…)
>> % begin example-caption.tex
>> \setupcaption[figure][
>>  headstyle={\bix},
>>  style={\itx}]
> 
> style={\switchtobodyfont[small]\setupinterlinespace\it}
> 
> 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
> ___

___
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] Style for captions

2019-12-18 Thread Otared Kavian
Hi all,

In the example below, I would like to have the style of the figure's caption to 
be \itx, but the inline formula is set with a larger body font: is it possible 
to setup the caption of a float so that a smaller size applies also to the math 
formula?

Best regards: Otared
PS: here is the example (not so minimal, sorry…)
% begin example-caption.tex
\setupcaption[figure][
headstyle={\bix},
style={\itx}]
\starttext

\startluacode 
function weierstrass(n,x)
local S = 0
for k = 0, n do
S = S + 2^(-k)*math.cos(3^k*x)
end
return S
end
\stopluacode

\startplacefigure[title={The Weierstrass function $\sum_{k=0}^n 
2^{-k}\cos(3^kx)$}]
\startMPcode{doublefun} 
draw lmt_function [
xmin = 0, xmax = 4*355/113, xstep =.001, 
ymin = -2, ymax = 2,
sx = 1mm, xsmall = 80, xlarge = 20, 
sy = 4mm, ysmall = 40, ylarge = 4,
xlabels = "yes",
ylabels = "yes",
linewidth = .015mm, offset = .1mm,
code = "weierstrass(5,x)",
frame = "sticks",
xcaption = "$n = 5$",
functions = {
[
drawcolor = "darkred",
]
}
] xsized .5TextWidth ;
\stopMPcode
\stopplacefigure

\stoptext
% begin example-caption.tex

___
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] Very strange behaviour of itemize, \quotation and \dots

2019-12-17 Thread Otared Kavian
Hi Hans,

Last week I sent you a PDF showing a strange behaviour of \startitemize and 
\quotation in LMTX. I finally could nail down the origin of the problem: it 
seems that if the command
 
\setupsynctex[state=start]

is present twice at the beginning of the document, then the combination \item 
and \quotation and \dots prevents the item to be shown correctly…
(In my case I was typesetting a document with the above command in which a file 
containing it also was \input).

Below is the minimal example and its PDF.

Best regards: OK
% begin file: bug-itemize-lmtx.tex

\setupsynctex[stat=start]

\setupsynctex[state=start] % if this is removed then everything is fine…

\setupquotation[style=italic,left={«~},right={~»}]

\showframe
\starttext

\startitemize[n]

\dorecurse{4}{\item This item \quotation{is shown correcly\dots} 

\item This item \quotation{\dots is not shown correctly}}

\stopitemize

\stoptext
% end file: bug-itemize-lmtx.tex



bug-itemize-lmtx.pdf
Description: Adobe PDF document
___
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] LMTX Tagging and overlay

2019-12-15 Thread Otared Kavian
Hi Rik,

I can confirm that with lmtx the issue persists with 2019.12.15 17:34.
However it works fine with mkiv version 2019.12.12 19:23.

Best regards: OK

> On 16 Dec 2019, at 00:17, Rik Kabel  wrote:
> 
> Tested with 20191212 and 20191215, still not working. Is anyone else been 
> able to confirm the issue?
> 
> -- 
> Rik
> 
> On 12/10/2019 23:36, Rik Kabel wrote:
>> Dear list,
>> 
>> With the example below (perhaps not minimal, but I have stripped out as much 
>> as I could), the second page is set completely in the color of the overlay. 
>> This also happens when a layer is used instead of an overlay. When tagging 
>> is turned off, the colors are what they should be. When a few lines are 
>> removed from the first page, the colors are correct as well, but ...
>> 
>> Attached is the resulting pdf.
>> 
>> LMTX 20191206 only. MKIV 20191206 is fine.
>> 
>> Error on my part, or bug?
>> 
>> % \definelayer   [WatermarkOverlay]
>> %[repeat=yes,
>> % width=\paperwidth,
>> % height=\paperheight]
>> % \setlayerframed[WatermarkOverlay]
>> %[preset=center]
>> %[foregroundcolor=red,frame=off]
>> %{\scale[factor=max]{\rotate[rotation=60.0]{~Oops!~}}}
>> 
>> \defineoverlay   [WatermarkOverlay]
>>  [{\framed[frame=off,
>>foregroundcolor=red]
>>   {\scale[factor=max]
>>{\rotate[rotation=60.0]
>> {~Oops!~]
>> 
>> \setupbackgrounds[page]
>>  [background=WatermarkOverlay]
>> 
>> %setuptagging[state=stop]
>> \setuptagging[state=start]
>> 
>> \setuplanguage   [en]
>>  [spacing=packed]
>> \setupinterlinespace [2.2ex]
>> \definenarrower  [MidOneEm]
>>  [middle=1em]
>> \setuplayout [topspace=0.25in,
>>   footerdistance=0in,
>>   height=fit,
>>   width=27em,
>>   footer=0.5in,
>>   bottom=0.25in,
>>   backspace=1.1in]
>> \definepapersize [octavo]
>>  [width=6in,
>>   height=9in]
>> \setuppagenumbering  [location=]
>> \setuppapersize  [octavo]
>> \setupbodyfont   [Termes,10pt]
>> 
>> \starttext
>> 
>> \starttitle  [title={N aa aaa }]
>> 
>> \startsubject[title={B}]
>>   Faaa aaa {\em Naa Yaaa T}  aa C 22, 9990 (
>>   999):
>> \startnarrow [MidOneEm]
>>   {\bi Maaa Fa, 86; R Laaa aaa Pa Ta Ba a La}
>> 
>>   Da.~Fa, a  aa aaa Ja I aa Raaa, aa aa
>>   a  Ta Ia aa Wa Haa  1925 aa 1928. Ha
>>   aaa  a aa a aa Caaa Ta Ra Sa aaa
>>   aa M 1930 a aaa   a aaa aa aa 83a Sa
>>   aaa Caa Paaa Waaa. A a a, aa   aaa aa
>>   a, aaa  aa aa aa a aaa aa aa aa
>>   “aaa a a a.”
>> 
>>   “P a aa,” R Fa  aa aaa aa aa
>>   aaa, “aaa a  aa aa aa, aa a,
>>   aa a, aa aa aaa  aaa  aa aa
>>    aa aaa aa,  a aa aa  aaa
>>   aaa . Taa a aaa aa aaa , aaa aaa
>>   aaa a a.”
>> 
>>   Eaa, aa aaa a Paa aa a “ a” aaa
>>   aaa a aaa S P aaa aaa Paaa aaa aa
>>   Na Ta.
>> 
>>   Aaa aa aaa  aa aaa  a.
>> 
>>   A aa  Caaa Ua Laa Sa aa 1933, aa aaa
>>   aaa aa aaa aaa Aaaa-Naaa La aaa aaa aaa Ga-Aaaa
>>   Baaa. Ha aaa  aaa aa aaa Naa Yaaa B aa Ra aaa
>>   aaa aa aaa aaa. Ha aa a  aa aaa aa aaa
>>   aa Naa Yaaa S.
>> \stopnarrow
>> 
>>   Fa  aa aa aaa  aaa aaa a aa aaa
>>   R Ra Caa.
>> 
>>   A aa aaa Faaa 30, 1967 {\em Naa Yaaa T} 
>>   ( 38), aaa , Da.~Ea Oaa Fa, aaa a  aa
>>   aa {\em Taa Jaa aa Daa}. Saa aaa a  aaa aaa
>>   a aaa   aa  aa aaa aaa
>>   Ia aa Raaa aaa Ha aa aa  a .
>> 
>>   Taa Fa’a aa aaa, Faaa M.~Fa (1894–1949) aaa a
>>   a aa a aa MIT. T aaa aaa, Wa A.~Fa
>>   (aaa  I  aaa aa’a aa aa a aaa
>>   ) aaa aa aaa  a aa aaa U.S.~H Maaa Ma
>>   aaa aa aa Daaa aa Raaa aaa  aaa 

Re: [NTG-context] math align broken

2019-12-15 Thread Otared Kavian
Hi Mikael,

II tested your example and can confirm the issue, using lmtx version: 
2019.12.15 17:34 on MacOS.

Best regards: OK

> On 15 Dec 2019, at 16:54, Mikael P. Sundqvist  wrote:
> 
> Hi,
> 
> I hope this report is not a duplicate of another one. I updated lmtx today 
> (from http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip, a fresh 
> install in the folder), and found some strange things with math:
> 
> The file
> 
> %%% EXAMPLE
> \starttext
> \startformula
> \startalign
> \NC \int e^{2x}\sin 3x\,dx\NC=\int\Im e^{(2+3i)x}\,dx\NR
> \NC\NC =\Im\int e^{(2+3i)x}\,dx\NR
> \NC\NC = \Im\Bigl(\frac{1}{2+3i}e^{(2+3i)}\Bigr)\NR
> \stopalign
> \stopformula
> From this we see that $\lim_{n\to+\infty}f(n)=0$.
> \stoptext
> %%%
> 
> gives the attached ex1.pdf. As we can see the spacing inside \startalign  
> \stopalign is wrong. Also, the "lim" in the example after the displayed 
> formula has disappeared.
> 
> Any clues?
> 
> /Mikael
> 
> (I tried in any case to remove cache and rebuild, but since it was a fresh 
> install, I could not see why it could help here. Thought I mention it 
> anyways.)
> 
> ___
> 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
___


[NTG-context] Bug inline math in lmtx

2019-12-14 Thread Otared Kavian
Hi Hans,

It seems that the bug which was reported recently is again there: inline math 
does not show some symbols (lmtx version 2019.12.12 19:35).
However mkiv version 2019.12.12 19:23 MKIV beta  fmt: 2019.12.14  works fine.

Here is a minimal example.
\starttext

Let $f(x) := \sum_{n \geq 1}2^{-n}x^n$.

\stoptext

Best regards: OK



bug-sum-lmtx.pdf
Description: Adobe PDF document
___
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] "error not related to input file"

2019-12-14 Thread Otared Kavian
Hi,

Since I have also suffered somewhat from the cryptic (and often useless…) error 
messages, I understand your frustration :-)
Now, maybe if you do 
context --directives="system.showerror" myfile.tex
then you get a file named « myfile-status.html » which is more helpful.

Best regards: OK

> On 14 Dec 2019, at 17:57, Rudolf Bahr  wrote:
> 
> 
> On Sat, Dec 14, 2019 at 05:43:45PM +0100, Bahr Rudolf wrote:
>> 
>> Hello All,
>> 
>> In:
>> LuaMetaTeX, Version 2.03.3
>> ConTeXt  ver: 2019.12.12 19:35 MKIV beta  fmt: 2019.12.12  int: 
>> english/english
>> I get the following error message:
>> 
>> tex error   > error not related to input file:
>> tex error   >   tex: ! Emergency stop
>> tex error   >   lua: ?
>> tex error   >   mps: -
>> 
>> Sorry, no MWE available.
>> What does this message mean? [1] shows only an empty page.
>> To this point my programm does all what it should with the exception of 
>> creating
>> a grey pdf-file-page. My pdf-programs are okular and xpdf.
>> 
>> In:
>> LuaTeX, Version 1.11.2 (TeX Live 2020/dev)
>> ConTeXt  ver: 2019.12.12 19:23 MKIV beta  fmt: 2019.12.13  int: 
>> english/english
>> I get a "*" instead of the error message above. And again my program does 
>> all what
>> it should, but a grey pdf-page too.
>> 
>> Shure, there must be an error in my program. But where should I look for it?
>> I tried several MWEs, but they all worked at their best.
>> 
>> Please, any ideas?
>> 
>> Best wishes,
>> Rudolf
>> 
>> 
>> [1] https://wiki.contextgarden.net/error_not_related_to_input_file
>> 
> 
> 
> Sorry, I forgot:
> My program uses up to now mainly \startluacode ... \stopluacode.
> 
> Rudolf
> ___
> 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] lmtx

2019-12-13 Thread Otared Kavian
Hi Dalyoung,

I updated the wiki page for installing LuaMetaTeX on MacOS:

https://wiki.contextgarden.net/installing_luametatex

It would be useful if someone using Linux or Windows could add analogous 
instructions on that page.

Best regards: OK

> On 13 Dec 2019, at 00:48, Jeong Dal  wrote:
> 
> Dear Hans,
> 
> I downloaded the new beta today.
> It installs files and makes format file well.
> I compiled a test file without any problem.  
> Of course, there is a security issue of OSX, but allowing the execution in 
> the preference>security once, it doesn't ask about again.
> I also run a test file containing a new graphic feature of LMTX and I got a 
> nice output.
> 
> Thanks!!!
> 
> Best regards,
> 
> Dalyoung
> 
> P.S. Here is a beginning part of log file. I installed new beta in the folder 
> /Users/graph/ConTeXtC/
> 
> %%%
> resolvers   | formats | executing runner 'run luametatex format': 
> /Users/graph/ConTeXtC/tex/texmf-osx-64/bin/luametatex --jobname="test" 
> --fmt=/Users/graph/ConTeXtC/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
>  
> --lua=/Users/graph/ConTeXtC/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
>  cont-yes.mkiv --c:autopdf --c:currentrun=1 
> --c:fulljobname="/Users/graph/ConTeXtC/test.tex" 
> --c:input="/Users/graph/ConTeXtC/test.tex" --c:kindofrun=1 --c:maxnofruns=9 
> --c:purgeall --c:texmfbinpath="/Users/graph/ConTeXtC/tex/texmf-osx-64/bin"
> This is LuaMetaTeX, Version 2.03.3 
> open source > level 1, order 1, name 'cont-yes.mkiv'
> system  > 
> system  > ConTeXt  ver: 2019.12.06 21:40 MKIV beta  fmt: 2019.12.12  
> int: english/english
> system  > 
> 
> ___
> 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
___


[NTG-context] Using lmtx and new metafun

2019-12-12 Thread Otared Kavian
Hi Aditya,

Following your explanations in
https://adityam.github.io/context-blog/post/new-metafun-interface/
I wrote an environment in order to display the graph of a function on a grid 
which can be adapted to each case.

Assuming that I have an MPinstance named GridAxis (for example) which can 
dispaly a grid and axes, how can I call it and write a line such as
draw function (1,"x","x*x/4 - 2.5",xmin,xmax,.001) scaled sx  ;
without changing the part whichh is included in \startMPdefinitions, in oder to 
draw the above function on that grid ? 

Thanks for your help: Otared
PS: Here is my definition of GridAxis (I guess many parts of it could be better 
written…)

\defineMPinstance[GridAxis]  
[
format=metafun,
extensions=yes,
initializations=yes,
method=double,
]

\startMPdefinitions{GridAxis}

def GridAxisPlot = applyparameters "GridAxisPlot" "do_GridAxisPlot" enddef ;

presetparameters "GridAxisPlot" [
xmin = -2.5,  xmax = 2.5,
ymin = -2.5,  ymax = 2.5,

dx   = 1, dy   = 1,
sx   = 5mm,   sy   = 5mm,
scale = 0.5,

grid = true,
xaxisnumbers = true,
yaxisnumbers = true,
showmyorigin = true,

style = "\switchtobodyfont[8pt]",
];

vardef do_GridAxisPlot =
image (
pushparameters "GridAxisPlot";

newnumeric xmin, xmax, ymin, ymax;
xmin := getparameter "xmin";
xmax := getparameter "xmax";
ymin := getparameter "ymin";
ymax := getparameter "ymax";

newnumeric sx, sy;
sx := getparameter "sx";
sy := getparameter "sy";

newnumeric dx, dy;
dx := getparameter "dx";
dy := getparameter "dy";

newpath xaxis, yaxis;

xaxis := (xmin*sx, 0) -- (xmax*sx, 0)  ;
yaxis := (0, ymin*sy) --  (0, ymax*sy) ;

newpath xtick, ytick;
xtick := (-0.1sx, 0) -- (0.1sx, 0);
ytick := (0, -0.1sy) -- (0, 0.1sy);

newstring style;
style := getparameter "style";

pickup pencircle scaled .1mm ;
newboolean grid;
grid  := getparameter "grid";

newboolean xaxisnumbers ;
xaxisnumbers := getparameter "xaxisnumbers" ;

newboolean yaxisnumbers ;
yaxisnumbers := getparameter "yaxisnumbers" ;

for x = dx step dx until xmax :
if grid :
draw yaxis shifted (x*sx, 0) withcolor 0.75white ;
fi
draw ytick shifted (x*sx, 0);
if xaxisnumbers :
label.bot(style & decimal x, (x*sx, 0));
fi
endfor

newboolean showmyorigin ;
showmyorigin := getparameter "showmyorigin" ;

if showmyorigin :
label.lrt(style & "0", origin) ;
fi

for x = -dx step -dx until xmin :
if grid :
draw yaxis shifted (x*sx, 0) withcolor 0.75white;
fi
draw ytick shifted (x*sx, 0);
if xaxisnumbers :
label.bot(style & decimal x, (x*sx, 0));
fi
endfor

for y = dy step dy until ymax :
if grid :
draw xaxis shifted (0, y*sy) withcolor 0.75white;
fi
draw xtick shifted (0, y*sy);
if yaxisnumbers :
label.lft(style & decimal y, (0, y*sy));
fi
endfor

for y = -dy step -dy until ymin :
if grid :
draw xaxis shifted (0, y*sy) withcolor 0.75white;
fi
draw xtick shifted (0, y*sy);
if yaxisnumbers :
label.lft(style & decimal y, (0, y*sy));
fi
endfor


drawarrow xaxis;
drawarrow yaxis;

label.rt( style & "$x$",  (xmax*sx, 0));
label.top(style & "$y$", (0, ymax*sy));

newpair p ;

newnumeric scale;
scale := getparameter "scale" ;

popparameters;

)
enddef;
\stopMPdefinitions
___
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] lmtx

2019-12-11 Thread Otared Kavian
Actually I did the update with a new install.sh downloaded from Pragma's site, 
but in fact I got again the older version 2019.12.06 21:40…
So the issues I was reporting concern 2019.12.06 21:40 version.

> On 12 Dec 2019, at 06:28, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> Thank you for the new beta. I tested a few things and they work nicely as 
> expected. 
> 
> However I would like to ask you to put back into lmtx the nice error messages 
> handling we had in early November: now when there is an error it is 
> impossible to locate it and the file filename-status.html contains nothing 
> (though the colored « error » pdf produced is nice looking…).
> In early November the error messages were very precise and the file 
> filename-status.html was very helpful.
> 
> There is also an issue in lmtx (since the version 2019.12.06, including the 
> latest) where in some situations using \startitemize... \stopitemize produces 
> some garbled items and some numbered items completely disappear. I could not 
> make a minimal example, but I can send you the PDF which shows the issue.
> 
> Many thanks, and best regards: OK
> 
> 
>> On 12 Dec 2019, at 01:37, Hans Hagen  wrote:
>> 
>> Hi,
>> 
>> The last few days there have been reports about garbled files in the lmtx 
>> installation so I did some test oinon a linux machine and indeed there was 
>> some issue (I'm not sure what causes it). Anyway, I made new zips so maybe 
>> one needs to reinstall (using the installer zip). It installs okay on wsl so 
>> probably also on other linuxes.
>> 
>> This version (luametatex 2.03.3) has (again) a little smaller mem footprint 
>> as I still want it all to perforem ok on relative small devices or vm's and 
>> as side effect a bit smaller format file, not that that matters much 
>> (compared to general mem usage). There is not much to gain anyway, in terms 
>> of memory usage and performance so it's more an occasional challenge than a 
>> neccessity I guess.
>> 
>> Anyway, hopefully nothing got broken. Peter Rolf and I are updating some of 
>> the pdf validation related stuff (additional formats), so that can be in 
>> flux.
>> 
>> 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
>> ___
> 

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

2019-12-11 Thread Otared Kavian
Hi Hans,

Thank you for the new beta. I tested a few things and they work nicely as 
expected. 

However I would like to ask you to put back into lmtx the nice error messages 
handling we had in early November: now when there is an error it is impossible 
to locate it and the file filename-status.html contains nothing (though the 
colored « error » pdf produced is nice looking…).
In early November the error messages were very precise and the file 
filename-status.html was very helpful.

There is also an issue in lmtx (since the version 2019.12.06, including the 
latest) where in some situations using \startitemize... \stopitemize produces 
some garbled items and some numbered items completely disappear. I could not 
make a minimal example, but I can send you the PDF which shows the issue.

Many thanks, and best regards: OK


> On 12 Dec 2019, at 01:37, Hans Hagen  wrote:
> 
> Hi,
> 
> The last few days there have been reports about garbled files in the lmtx 
> installation so I did some test oinon a linux machine and indeed there was 
> some issue (I'm not sure what causes it). Anyway, I made new zips so maybe 
> one needs to reinstall (using the installer zip). It installs okay on wsl so 
> probably also on other linuxes.
> 
> This version (luametatex 2.03.3) has (again) a little smaller mem footprint 
> as I still want it all to perforem ok on relative small devices or vm's and 
> as side effect a bit smaller format file, not that that matters much 
> (compared to general mem usage). There is not much to gain anyway, in terms 
> of memory usage and performance so it's more an occasional challenge than a 
> neccessity I guess.
> 
> Anyway, hopefully nothing got broken. Peter Rolf and I are updating some of 
> the pdf validation related stuff (additional formats), so that can be in flux.
> 
> 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
> ___

___
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] problem with a new installation of LMTX: Solved!

2019-12-09 Thread Otared Kavian
Dear Dalyoung,

Thank you for the good news!
Now I will add  to the wiki the procedure I described, which you followed, but 
we have to find a way for people to get a zip file containing a complete tree 
of LuaMetaTeX which can be installed « by hand » under MacOS 10.15 Catalina.
Maybe Hans or Mojca have a suggestion in this regard.

Best regards: OK

> On 9 Dec 2019, at 15:21, Jeong Dal  wrote:
> 
> Dear Otared,
> 
> I followed your instruction.  During the process, “mtxrun —generate” and 
> “context —make —all” work well.
> 
> After rebooting the system, “context test.tex” produces a pdf output finally. 
> Wow!
> It is a long way around, but I learned many things.
> 
> Thank you for your help.
> 
> Best regards,
> 
> Dalyoung

___
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] problem with a new installation of LMTX

2019-12-08 Thread Otared Kavian
Dear Dalyoung,

I looked again at what is happening when installing LuaMetaTeX under MacOS 
10.15.

In fact, even after completely disabling Gatekeeper and SIP (System Integrity 
Protection), when running

sh install.sh

if the three files sitting in ~/context-os-64/bin/
mtx-install.lua
mtxrun
mtxrun.lua
are write protected then the installation cannot proceed. And if they are not, 
they are overwriiten with something with the same names but which are binaries. 
And if this is the case then the installation does not proceed for some other 
reasons.
I don't understand why this is the case…

If you can go back to MacOS 10.14 that would be nice, but otherwise as Floris 
suggests in his response, maybe we have to abandon MacOS in the near future…

Best regards: OK

> On 8 Dec 2019, at 09:12, Jeong Dal  wrote:
> 
> Dear Hans and Otared,
> 
> Thank you again for your attempt to find a solution.
> 
> Catalina(MacOS 10.15.1) prohibits an unauthorized program run.
> So I have to allow the execution of “mtxrun” manually in the preference.
> 
> Since "mtxrun —generate” ends with the message “unknown script 
> mtxrun-context.lua or mtx-mtxrun-context.lua”, I tried to locate it in the 
> finder. 
> There is one in a folder installed by MacTeX(TeXLive), but not in 
> “ConTeXtLMTX”.
> 
> As you said, many files are not copied during the installation.
> I’ll try to understand what is going on, but it would be very hard to find a 
> solution by myself.
> 
> I have to use old ConTeXt for a while.
> 
> Thank you again.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> 
> 
> ___
> 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] problem with a new installation of LMTX

2019-12-07 Thread Otared Kavian
Hi Dalyoung,

I installed MacOS 10.15 Catalina on a partition of my Mac and tried to install 
LuaMetaTeX there. I did not succeed … 
Indeed I had to disable completely the Gatekeeper from the Terminal by issuing 
the command

sudo spctl --master-disable

(which, one can re-enable again by saying sudo spctl --master-enable).
But the problem is that  after issuing the command

sh install.sh

the three files mtx-install.lua, mtxrun.lua, mtxrun, which are in

/context-osx-64/bin/

get overwritten and are modified for some unknown reasons: in particular the 
two lua files become complete garbage… while in MacOS 10.14 these files are 
unchanged.
So in fact the installation process cannot continue in MacOS 10.15, and even 
though the directories in 

/context-osx-64/tex/

are created, the binaries and the formats are not there. I guess other people 
on the list may have installed LuaMetaTeX under MacOS 10.15 and they can help 
us understand what is going on. 

Later in the day I'll try to understand how to bypass the security assessments 
(and the overwrite of the above three files) of MacOS 10.15, and let you know 
if I find a solution.

Sorry for not being helpful at this point…

Best regards: Otared K.

> On 8 Dec 2019, at 00:20, Jeong Dal  wrote:
> 
> Dear Hans, Otared,
> 
> Thank you for your concern.
> 
> The version of luametatex is 20191206.
> I followed what Otared said, but texmf-cache is not created after mtxrun.
> 
> "context —make"  is running, but no format.
> 
> I checked folders after the installation.
> Folders, texmf-cache, texmf-fonts, texmf-local, texmf-modules, texmf-project 
> are empty.
> texmf folder contains {fonts,metapost, tex,web2c}
> texmf-context folder contains {colors,context,doc}
> However, I couldn’t find base files, script files, etc.
> Is it normal? Is it related with Catalina?
> 
> Have a nice weekend.
> 
> Best regards,
> 
> Dalyoung
> 
> For reference, here are log of "mtxrun —generate”
> %%
> MacBook ConTeXtLMTX % mtxrun --generate
> resolvers   | resolving | variable 'SELFAUTOLOC' set to 
> '/Users/graph/ConTeXtLMTX/tex/texmf-osx-64/bin'
> resolvers   | resolving | variable 'SELFAUTODIR' set to 
> '/Users/graph/ConTeXtLMTX/tex/texmf-osx-64'
> resolvers   | resolving | variable 'SELFAUTOPARENT' set to 
> '/Users/graph/ConTeXtLMTX/tex'
> resolvers   | resolving | variable 'TEXMFCNF' set to ''
> resolvers   | resolving | variable 'TEXMF' set to ''
> resolvers   | resolving | variable 'TEXOS' set to 'texmf-osx-64'
> resolvers   | resolving |
> resolvers   | resolving | using configuration specification 
> 'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf-dist/web2c;selfautoparent:/texmf/web2c'
> resolvers   | resolving |
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/Users/graph/texmf/web2c' from specification 'home:texmf/web2c'
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/Users/graph/ConTeXtLMTX/tex/texmf-local/web2c' from specification 
> 'selfautoparent:/texmf-local/web2c'
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/Users/graph/ConTeXtLMTX/tex/texmf-context/web2c' from specification 
> 'selfautoparent:/texmf-context/web2c'
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/Users/graph/ConTeXtLMTX/tex/texmf-dist/web2c' from specification 
> 'selfautoparent:/texmf-dist/web2c'
> resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/Users/graph/ConTeXtLMTX/tex/texmf/web2c' from specification 
> 'selfautoparent:/texmf/web2c'
> resolvers   | resolving | found regular configuration file 
> '/Users/graph/ConTeXtLMTX/tex/texmf/web2c/texmfcnf.lua'
> resolvers   | resolving |
> resolvers   | resolving | skipping configuration file 
> 'selfautoparent:/texmf/web2c/texmfcnf.lua' (no valid format)
> resolvers   | resolving | no texmf paths are defined (using TEXMF)
> resolvers   | resolving |
> mtxrun  |
> mtxrun  | elapsed lua time: 0.032 seconds
> 
> %%
> -MacBook ConTeXtLMTX % context --make
> mtxrun  | forcing cache reload
> resolvers   | resolving | configuration files already identified
> resolvers   | resolving | skipping configuration file 
> 'selfautoparent:/texmf/web2c/texmfcnf.lua' (no valid format)
> resolvers   | resolving | no texmf paths are defined (using TEXMF)
> resolvers   | resolving |
> mtxrun  | the resolver databases are not present or outdated
> resolvers   | resolving | using suffix based filetype 'scripts'
> resolvers   | resolving | remembering file 'mtx-context.lua' using hash 
> 'lua::mtx-context.lua'
> resolvers   | resolving | using suffix based filetype 'scripts'
> resolvers   | resolving | remembering file 'mtx-contexts.lua' 

Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Otared Kavian

> On 7 Dec 2019, at 20:39, Hans Hagen  wrote:
> […]
> Can you add this to the wiki someplace?

Done:
https://wiki.contextgarden.net/installing_luametatex

Best regards: OK

___
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] Filling a page with \thinrules

2019-12-07 Thread Otared Kavian
Thanks Rik! The \phantom stuff is following me since the good old Plain TeX 
days… :-)
Now I know how to get rid of it.

Best regards: OK

> On 7 Dec 2019, at 16:33, Rik Kabel  wrote:
> […]
> 
> Replace the \hphantom{...} with \dontleavehmode.
> 
> -- 
> 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
___


Re: [NTG-context] problem with a new installation of LMTX

2019-12-07 Thread Otared Kavian
Hi Dalyoung,

May be you could do the following steps (I recently had some issues too with 
installing the new beta, and these are what I did):

• In Terminal type:

which luametatex

in order to see whether 

/context-osx-64/tex/texmf-osx-64/bin/luametatex

is present or not. 

• If not the download has not been complete.

• If yes, in Terminal type:

luametatex --version

and see whether it says among other things:

Functionality : level 20191206

If not, there might be an issue with the files you have downloaded.

• If yes, in the folder 

context-osx-64/tex

remove the folder texmf-cache

and then in the Terminal run:

mtxrun --generate

In principle the folder texmf-cache is present again.

• In the Terminal window type:

context --make --all

If everything goes nicely, you should be able to see LuaMetaTeX functionning.

Best regards: OK

> On 7 Dec 2019, at 15:11, Jeong Dal  wrote:
> 
> I read some reports about the problems of a new installation of LMTX.
> Today, I did fresh install and also have a problem in compilation.
> 
> I did the following:
> 
> 0. Open the terminal
> 1. Remove all files in the folder “ConTeXtLMTX”
> 2. Download install files from PRAGMA ADE.
> 3. run “install.sh”(at first, it won’t run because of the MacOS Catalina. I 
> have to allow the running in the preference.)
> 4. it installs the folder “tex” and some files  but context-cache is empty. 
> And, it couldn’t compile test.tex
> 
> I copied the log during the installation for checking.
> 
> Thank you.
> Best regards,
> Dalyoung
> […]
___
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] Filling a page with \thinrules

2019-12-07 Thread Otared Kavian
Hi Rik,

Thanks a lot for the link to that message dating back to 2010…

I tried to put that solution on the wiki but I could not create a new page. 
I'll try later.

For the record, below is a transcript of what I adapted from Wolfgang's 
solution, but maybe nowadays one could also right a more readable lua code to 
achieve the same.

Best regards: Otared K.

\define\thinrulesfillpage%
{
\hphantom{Answer} % this is necessary, I don't know why...
\blank  

\scratchcounter\dimexpr(\pagegoal-\pagetotal-2\lineheight)/(\dimexpr\lineheight+2.2ex\relax)\relax
\thinrules[n=\number\scratchcounter,inbetween={\blank[2.2ex]}]
\page
}

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrulesfillpage 

\thinrulesfillpage 

\input ward.tex
\thinrulesfillpage 

\stoptext

> On 7 Dec 2019, at 03:49, Rik Kabel  wrote:
> 
> On 12/6/2019 17:50, Otared Kavian wrote:
>> Hi all,
>> 
>> I am preparing a test for my students where I would like to have the 
>> statement of the problem on the top of a page and the remainder to the 
>> bottom of that page filled with \thinrules, for them to write the solution. 
>> And sometimes there might be an empty page filled with thinrules when the 
>> solution to the exercise is longer.
>> 
>> The following minimal example gives the idea of what I want to achieve, but 
>> since the statement of each exercise may be longer or shorter, I would like 
>> ConTeXt to compute how many \thinrules can be put in the remainder of the 
>> page.
>> That is, can one imagine a macro named (say) \fillpagewiththinrules which 
>> puts the exact number of thinrules before ejecting the page?
>> Is this possible or have I to do it by hand for each page?
>> 
>> \showframe
>> \starttext
>> \dorecurse{2}{\input knuth.tex\par}
>> 
>> \thinrules[n=20] % On the first page I can put 20 thinrules
>> 
>> \page
>> 
>> \thinrules[n=40] % On an empty page I can put 40 thinrules
>> \page
>> 
>> \input ward.tex
>> 
>> \thinrules[n=37] % On the third page there can be 37 thinrules
>> 
>> \stoptext
>> 
>> Thanks for any hint and help,
>> Best regards: Otared K.
>> ___
>> 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
>> 
>> ___
>> 
> It looks like Wolfgang answered this a while back. See Re: [NTG-context] Room 
> for comment on the backside of form. .
> 
> -- 
> 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
> ___

___
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] Filling a page with \thinrules

2019-12-06 Thread Otared Kavian
Hi all,

I am preparing a test for my students where I would like to have the statement 
of the problem on the top of a page and the remainder to the bottom of that 
page filled with \thinrules, for them to write the solution. And sometimes 
there might be an empty page filled with thinrules when the solution to the 
exercise is longer.

The following minimal example gives the idea of what I want to achieve, but 
since the statement of each exercise may be longer or shorter, I would like 
ConTeXt to compute how many \thinrules can be put in the remainder of the page.
That is, can one imagine a macro named (say) \fillpagewiththinrules which puts 
the exact number of thinrules before ejecting the page?
Is this possible or have I to do it by hand for each page?

\showframe
\starttext
\dorecurse{2}{\input knuth.tex\par}

\thinrules[n=20] % On the first page I can put 20 thinrules

\page

\thinrules[n=40] % On an empty page I can put 40 thinrules
\page

\input ward.tex

\thinrules[n=37] % On the third page there can be 37 thinrules

\stoptext

Thanks for any hint and help,
Best regards: Otared K.
___
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] new beta

2019-12-06 Thread Otared Kavian
Hi Hans,

Thanks a lot for the new beta and for having fixed the issue with luametatex 
binaries.
Everything works great with version 2019.12.06 21:40.

Best regards: OK

> On 6 Dec 2019, at 15:05, Hans Hagen  wrote:
> 
> On 12/6/2019 1:34 PM, Otared Kavian wrote:
> 
>> Is this too old? Is this file created during installation or is it contained 
>> in the zip files downloaded from Pragma's site?
> Ok, I think that there is some issue with the builder. Mojca, it looks like 
> there is no binary upload happening after a build. If needed I can revert to 
> Alan for building but maybe it's something simple.
> 
> (There are two mac variants.)
> 
> 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
> ___

___
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] Some questions regarding math typesetting

2019-12-06 Thread Otared Kavian
Hi,

Regarding the first two issues your are reporting on, your file typesets 
correctly with my installation of LMTX (version 2019.12.04 21:35). I get the 
three different sizes of \sum as expected, and the underbrace has $n$ under the 
middle of the brace.

The third issue is present, as you are saying in your message. But I don't know 
what you are trying to achieve with two \startalign...\stopalign in the same 
formula.

Best regards: OK

> On 6 Dec 2019, at 09:24, TeXnician  wrote:
> 
> Dear list,
> 
> while doing some math typesetting, I have found the following features not
> working in LMTX:
> 
> 1. Non-displaystyle operators are simply not shown (try \sum or \lim in text 
> or
>   scriptstyle). This works in MkIV (and iirc in LMTX versions from before
>   november).
> 2. \underbrace{x}_{y} stopped working. It produces an underbrace but the
>   subscript is not centered below the brace. It will show up as right
>   subscript. This works in MkIV.
> 3. \startformulas does not allow numbering formulas because the number will 
> run
>   into the next column. I have posted this at
> 
> https://tex.stackexchange.com/questions/518262/context-number-formulas-side-by-side
>   and Henri Menke tested that it broke in 2017. Aditya Mahajan mentioned that
>   it is a bug.
> 
> For the upper two cases: Is anything wrong with my LMTX installation or did I
> miss some upgrade instructions for math in LMTX?
> 
> Many thanks for an answer.
> ___
> 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] new beta

2019-12-06 Thread Otared Kavian
Hi again,

I just installed anew lmtx from Pragma website

http://lmtx.pragma-ade.nl/install-lmtx/context-osx-64.zip

and I have the same problem: the format cannot be made.
Looking at luametatex in a Terminal window, I get

-rwxr--r-- 1 kavian staff 2.7M Dec 6 13:15 
/context-osx-64/tex/texmf-osx-64/bin/luametatex*

and I cannot tell whether it is old or recent, but typing

luametatex --version 

gives among other things:

Functionality : level 20191029

Is this too old? Is this file created during installation or is it contained in 
the zip files downloaded from Pragma's site?

Thanks for any help,
Best regards: Otared K.


> 
> On 6 Dec 2019, at 06:21, Wolfgang Schuster 
>  wrote:
> 
> Otared Kavian schrieb am 06.12.2019 um 04:23:
>> Dear Hans,
>> 
>> The problem I described in my previous message comes indeed from 
>> \defineexpansion which is not defined.
>> Upon commenting out the lines 95--98 in the file « hand-ini.mkxl » that is 
>> the four lines:
>> 
>> \defineexpansion
>>   [\c!step=1,
>>\c!stretch=40,
>>\c!shrink=20]
>> 
>> I could remake the format with version 2019.12.05 18:59. Then lmtx works 
>> fine as far as my files are concerned, but I don't know if there are side 
>> effects…
>> (However, once the format is made, if I uncomment those lines then lmtx 
>> works fine, but clearly one cannot make again the format)
> 
> You Luametatex binary is too old which missed the new \adjustspacingstep 
> command shown in the error message from your previous mail.
> 
> 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
___


Re: [NTG-context] new beta

2019-12-05 Thread Otared Kavian
Dear Hans,

The problem I described in my previous message comes indeed from 
\defineexpansion which is not defined.
Upon commenting out the lines 95--98 in the file « hand-ini.mkxl » that is the 
four lines:

\defineexpansion
  [\c!step=1,
   \c!stretch=40,
   \c!shrink=20]

I could remake the format with version 2019.12.05 18:59. Then lmtx works fine 
as far as my files are concerned, but I don't know if there are side effects…
(However, once the format is made, if I uncomment those lines then lmtx works 
fine, but clearly one cannot make again the format)

Best regards: OK

> On 5 Dec 2019, at 20:28, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> Thanks for the new features and the new release.
> I could download the new installer  for MacOS which installs the latest 
> version but it cannot make the formats ending with the error message which I 
> copy below.
> 
> Best regards: OK
> PS: this is the error message when installing:
> 
> tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
> control sequence
> 
>  ...ansion :\currentexpansion }{\adjustspacingstep 
>  \expansionparameter \c!ste...
> \define_expansion ...i \the \everydefineexpansion 
>  \let \currentexpansion \sa...
>  \syst_helpers_triple_empty_two_nop 
>\par 
> l.99 
> 
> 
> 
> 
> 
> The control sequence at the end of the top line of your error message was 
> never
> \def'ed. You can just continue as I'll forget about whatever was undefined.
> 
> 
> resolvers   | formats |
> resolvers   | formats | binary path  : 
> /context-osx-64/tex/texmf-osx-64/bin
> resolvers   | formats | format path  : 
> /context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
> resolvers   | formats | luatex engine: luametatex
> resolvers   | formats | lua startup file : 
> /context-osx-64/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
> resolvers   | formats | context file : 
> /context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl
> resolvers   | formats | run time : 0.494 seconds
> resolvers   | formats | return value : error
> resolvers   | formats |
> system  | total runtime: 0.567 seconds of 0.623 seconds
> 
> 
>> On 5 Dec 2019, at 19:31, Hans Hagen  wrote:
>> 
>> Hi,
>> 
>> I uploaded a new lmtx beta. Hopefully the installer works ok as I redid some 
>> of the "zip" related code (simpler, smaller binary too). FWIW, the 
>> luametatex codebase is now pretty close to okay, but of course there can be 
>> bugs, but nothing thay can't be solved fast.
>> 
>> Given some earlier discussions on the list, I wonder about running context 
>> in containers and (behind the screens) web applications. Is there anything 
>> needed, mostly in the support scripts I guess, that can make that more 
>> comfortable / efficient / etc?
>> 
>> 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
>> ___
> 

___
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] new beta

2019-12-05 Thread Otared Kavian
Hi Hans,

Thanks for the new features and the new release.
I could download the new installer  for MacOS which installs the latest version 
but it cannot make the formats ending with the error message which I copy below.

Best regards: OK
PS: this is the error message when installing:

tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
control sequence

 ...ansion :\currentexpansion }{\adjustspacingstep 
  \expansionparameter \c!ste...
\define_expansion ...i \the \everydefineexpansion 
  \let \currentexpansion \sa...
 \syst_helpers_triple_empty_two_nop 
\par 
l.99 
   




The control sequence at the end of the top line of your error message was never
\def'ed. You can just continue as I'll forget about whatever was undefined.


resolvers   | formats |
resolvers   | formats | binary path  : 
/context-osx-64/tex/texmf-osx-64/bin
resolvers   | formats | format path  : 
/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex
resolvers   | formats | luatex engine: luametatex
resolvers   | formats | lua startup file : 
/context-osx-64/tex/texmf-context/tex/context/base/mkiv/luat-cod.lua
resolvers   | formats | context file : 
/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-en.mkxl
resolvers   | formats | run time : 0.494 seconds
resolvers   | formats | return value : error
resolvers   | formats |
system  | total runtime: 0.567 seconds of 0.623 seconds


> On 5 Dec 2019, at 19:31, Hans Hagen  wrote:
> 
> Hi,
> 
> I uploaded a new lmtx beta. Hopefully the installer works ok as I redid some 
> of the "zip" related code (simpler, smaller binary too). FWIW, the luametatex 
> codebase is now pretty close to okay, but of course there can be bugs, but 
> nothing thay can't be solved fast.
> 
> Given some earlier discussions on the list, I wonder about running context in 
> containers and (behind the screens) web applications. Is there anything 
> needed, mostly in the support scripts I guess, that can make that more 
> comfortable / efficient / etc?
> 
> 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
> ___

___
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] LMTX install issue

2019-12-04 Thread Otared Kavian
Hi all,

I cannot update to the latest lmtx, using the install.sh downloaded from 
http://www.pragma-ade.com/install.htm
more precisely the version for MacOS from
http://lmtx.pragma-ade.nl/install-lmtx/context-osx-64.zip

I keep getting the version from 2019.11.29 21:58.

What is going on?

Best regards and thanks in advance: Otared K.
___
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] beta 2019.12.02 18:38 fails to build format

2019-12-04 Thread Otared Kavian
Hi,

I can confirm that there is an issue with the script install.sh, since last 
Saturday, I guess. Indeed I keep having version 2019.11.29 21:58, but at some 
point I got a version from 2019.12.02 which did not work and upon updating 
again I got version 2019.11.29 21:58.

Also the error messages which were quite clear before are gone again 
hyper-cryptic, and the error status file « filename-status.html » does not show 
anymore the status of the errors.

Best regards: OK

> On 4 Dec 2019, at 11:41, Thomas A. Schmitz  wrote:
> 
> Hi all,
> 
> has this already been reported? On my macOS machine, the latest lmtx beta 
> fails to build the format with this error:
> 
> tex error   > tex error on line 99 in file hand-ini.mkxl: ! Undefined 
> control sequence
> 
>  ...ansion :\currentexpansion }{\adjustspacingstep 
>  \expansionparameter \c!ste...
> \define_expansion ...i \the \everydefineexpansion 
>  \let \currentexpansion \sa...
>  \syst_helpers_triple_empty_two_nop 
>\par 
> l.99 
> 
> I have looked at the file, but couldn’t find the source of the error.
> 
> All best
> 
> Thomas
> ___
> 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] eqalign

2019-11-22 Thread Otared Kavian
Hi,

Indeed \startalign has been there from the beginning (as far as I can remember) 
and it is stable. 
In fact, as expalined by Aditya, you can define your own align environment, for 
special purposes. for instance I have:

\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]

when I want to put a big brace to the left of a certain number of aligned 
equations.

Best regards: Otared K.

> On 22 Nov 2019, at 09:04, no...@posteo.org wrote:
> 
> OK, thanks for the tip! It works indeed.
> 
> PS: There appears to be no mention of \startalign in the manual. Is this 
> going to be a stable interface? \eqalign, \eject used to work in ConTeXt.
> 
> On November 20, 2019 11:41:09 AM UTC, Otared Kavian  wrote:
> Hi,
> 
> Indeed in ConTeXt one has better to use \startalign. Please see the excellent 
> explanations by Aditya 
> 
>   http://dl.contextgarden.net/myway/mathalign.pdf
> 
> Best regards: OK
> 
> On 20 Nov 2019, at 09:01, no...@posteo.org wrote:
> 
> Dear All,
> 
> The command \eqalign does not work as described under:
>  https://wiki.contextgarden.net/Math_with_newmat
> as the ampersands are typeset (and the equal signs unaligned).
> 
> The following minimal example shows the issue:
> \usemodule[newmat]
> 
> \starttext
> 
> \startformula
> \eqalign{
> A & = x\cr
>   & = y\cr}
> \stopformula
> 
> \stoptext
> (Issue showing up in context 2019.11.14 17:07.)
> 
> Best regards.
> 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
> ___

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

2019-11-20 Thread Otared Kavian
Hi,

Indeed in ConTeXt one has better to use \startalign. Please see the excellent 
explanations by Aditya 

http://dl.contextgarden.net/myway/mathalign.pdf

Best regards: OK

> On 20 Nov 2019, at 09:01, no...@posteo.org wrote:
> 
> Dear All,
> 
> The command \eqalign does not work as described under:
>  https://wiki.contextgarden.net/Math_with_newmat
> as the ampersands are typeset (and the equal signs unaligned).
> 
> The following minimal example shows the issue:
> -
> \usemodule[newmat]
> 
> \starttext
> 
> \startformula
> \eqalign{
> A & = x\cr
>   & = y\cr}
> \stopformula
> 
> \stoptext
> -
> 
> (Issue showing up in context 2019.11.14 17:07.)
> 
> Best regards.
> ___
> 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] layers and \llap

2019-11-19 Thread Otared Kavian
Hi Pablo,

I can reproduce the issue on MacOS on Acrobat Reader, and also on Adobe Acrobat 
Pro.
In fact turning off any last viewerlayer makes the text disappear.

Best regards: OK

> On 19 Nov 2019, at 22:10, Pablo Rodriguez  wrote:
> 
> On 11/19/19 9:48 PM, Henri Menke wrote:
>> On 11/20/19 3:16 AM, Pablo Rodriguez wrote:
>>> [...]
>>> Everything works fine if the layer with \llap is placed first.
>>> 
>>> I guess this might be a bug.
>> 
>> Works for me on both Evince and Foxit Reader.  I can't test Adobe because I'm
>> on Linux.
>> 
>> Try also \dontleavehmode\llap{\ConTeXt} because \llap by itself does not 
>> start
>> a paragraph.
> 
> Hi Henri,
> 
> many thanks for your reply.
> 
> This is really weird, since I cannot make it work, either with Acrobat
> in Windows nor in Evince or Acrobat in Linux.
> 
> I’m using latest beta from 2019.11.14 17:07 (either MkIV or MkXL). Which
> beta are you using?
> 
> 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
> ___

___
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] developer not verified error

2019-11-16 Thread Otared Kavian
Hi Alan,

I don't know on which MacOS you are, but I am on MacOS 10.14.6, and never had 
such an issue with my installations of ConTeXt. I looked into my options of the 
so-called Gatekeeper on my machine, and remembered that I have done the 
following:

go to Apple menu -> Preferences -> Security & Privacy
on the Security & Privacy, choose the tab General
there choose, towards the bottom of that pane, under « Allow apps 
downloaded from: » choose  the radio button App Store and identified 
developpers.

Once this is done in principle you should be able to run the scripts install.sh 
or first-setup.sh and then run lmtx or context.

Best regards: OK


> On 15 Nov 2019, at 22:36, Alan Bowen  wrote:
> 
> Though I was able to download the latest ConTeXt beta without any problems, 
> my attempt to update my ConText-LMTX installation was blocked. The error 
> message was
> 
> “mtxrun” cannot be opened because the developer cannot be verified
> macOS cannot verify that this app is free from malware.
> Safari downloaded this file on April 29, 2019.
> 
>  I am not sure why this is happening and wonder if it would OK to copy mxtrun 
> from my ConTeXt installation and replace the version in my ConTeXt-LMTX 
> installation with it.
> 
> Alan
> ___
> 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
___


[NTG-context] Help wanted: index with chapter and section numbers

2019-11-10 Thread Otared Kavian
Hi,

In a math text book, I would like to create an index of some material where 
chapter and section numbers are given instead of a page number.

For instance if the result « 3.2.5 Banach Fixed Point Theorem » is stated in 
section 2 of chapter 3, and is the fifth numbered statement in that section, I 
would like to create a \myindex command so that adding the command
\myindex{Banach Fixed Point Theorem}
at that location, I get in the index created by \myindex a line such as

Banach Fixed Point Theorem  3.2.5

Is this possible?

Best regards and many thanks for any hint: OK
___
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] Small integral signs

2019-11-10 Thread Otared Kavian
Hi Mikael,

I was going to write the same message…
I confirm that with the latest lmtx, no matter the font, the integral signs are 
incorrectly shown in dispalyed formulas.

Best regards: OK

> On 10 Nov 2019, at 09:20, Mikael P. Sundqvist  wrote:
> 
> Hi,
> 
> in latest lmtx I get small integral signs in displayed formulas.
> 
> I removed the cache, but the problem was still there.
> 
> /Mikael
> 
> \starttext
> \startTEXpage[offset=3bp]
> \startformula
> \int f(x)\,dx
> \stopformula
> \stopTEXpage
> \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] Issue with text running into footnotes

2019-11-09 Thread Otared Kavian
Hi Pablo,

By setting 

\setupwhitespace[big]

the specific issue could be solved, but then the number of pages became too big 
as a consequence. 
However, cutting the text into one more paragraph, without changing the 
whitespace, solved the issue of the text running into the footnote.

I don't know how to setup a different penalty, nor what would be its influence 
in some other parts of my text. 

Best regards: OK

> On 9 Nov 2019, at 11:04, Pablo Rodriguez  wrote:
> 
> On 11/4/19 9:49 PM, Wolfgang Schuster wrote:
>> Otared Kavian schrieb am 04.11.2019 um 20:30:
>>> Hi all,
>>> 
>>> I have a lecture note in which a few footnotes are given, but in some
>>> cases the text runs into the footnote, and it has been impossible for
>>> me to exhibit a minimal example where the issue appears. In the link
>>> https://www.dropbox.com/s/o9h0j6i21emyw2v/footnote-issue.pdf?dl=0
>>> the issue is shown in the real case.
>>> [...]
>> 
>> You can increase the vertical tolerance, e.g.
>> 
>> \setuptolerance[vertical,verytolerant]
> 
> Hi Wolfgang,
> 
> I have a much worse sample (text runs totally into foonote space as
> there were no footnotes).
> 
> Setting tolerance makes no difference, setting a higher spacebefore or
> before makes no difference.
> 
> Hi Otared,
> 
> I wonder whether you could fix your problem.
> 
>> change the penalty settings or use a bigger whitespace between the
>> paragraphs.
> 
> Which would be those penalty settings?
> 
> Sorry, but I don’t understand why ConTeXt has this kind of problems with
> notes. Why is so difficult to keep the space before notes?
> 
> 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
> ___

___
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] index with chapter and section numbers

2019-11-07 Thread Otared Kavian
Hi,

In a math text book, I would like to create an index of some material where 
chapter and section numbers are given instead of a page number.

For instance if the result « 3.2.5 Banach Fixed Point Theorem » is stated in 
section 2 of chapter 3, and is the fifth numbered statement in that section, I 
would like to create a \myindex command so that adding the command
\myindex{Banach Fixed Point Theorem}
at that location, I get in the index created by \myindex a line such as

Banach Fixed Point Theorem  3.2.5

Is this possible?

Best regards and many thanks for any hint: OK
___
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] Issue with text running into footnotes

2019-11-04 Thread Otared Kavian
Hi all,

I have a lecture note in which a few footnotes are given, but in some cases the 
text runs into the footnote, and it has been impossible for me to exhibit a 
minimal example where the issue appears. In the link
https://www.dropbox.com/s/o9h0j6i21emyw2v/footnote-issue.pdf?dl=0 

the issue is shown in the real case. If I remove a few lines of text before the 
last paragraph on th tepage shown in the above link, the issue disappears, but 
of course this is not a solution.

I am aware that overuse of footnotes is not recommended, but in my lecture 
notes I have very few of them.
Is there a way to prevent such conflicts between footnotes and the last lines 
of text on a page?

Many thanks in advance: OK___
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] Bug in latest LMTX?

2019-10-29 Thread Otared Kavian
Hi Hans,

Last night I updated to th elatest beta LMTX (version 2019.10.28 18:57), and 
noticed that several things don't work as usual. I have not yet been able to 
find all the examples, but here is one in math:

\definemathfence[abs][bar][command=yes,factor=auto]

\starttext

\startformula
\sup_{t\in {\Bbb R}}\abs{f(t + T) - f(t)} \leq \epsilon.
\stopformula

\stoptext

The above does not typeset and I have the following error message:

tex error   > tex error on line 7 in file ./bug-math.tex: ! This can't 
happen (mlist2)


\stopforceddisplaymath ->\endgroup \stopimath 
  
\strc_math_box_stop ->\stopforceddisplaymath 
 \egroup \d_strc_math_number_wid...
\stopdisplaymath ...xpandafter \stopinnermath \fi 
  \afterdisplayspace \egroup 
\strc_formulas_stop_formula ...formula \endcsname 
  \dostoptagged \dostoptagge...
l.7 \stopformula
  

1 \definemathfence[abs][bar][command=yes,factor=auto]
2 
3 \starttext
4 
5 \startformula
6 \sup_{t\in {\Bbb R}}\abs{f(t + T) - f(t)} \leq \epsilon.
7 >>  \stopformula
8 
9 \stoptext


I'm broken. Please show this to someone who can fix me.


mtx-context | fatal error: return code: 256

Thanks for your attention: OK
PS: the PDF produced now with a colorful « error » is very nice… but the error 
messages are cryptic :-)
___
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] Fails with MkIV works with LMTX

2019-10-28 Thread Otared Kavian
Hi Rik,

Yes I get an error message with th eversion of mkiv you are mentioning (on 
MacOS 10.14.6).
The error message is:

Undefined control sequence

 ...es \inheritmaintextcolor \strc_itemgroups_push 
  
\handlenoteinsert ... \the \everybeforenoteinsert 
  \insert \currentnoteinsert...
\235>notation:note ...rentnote \currentnotenumber 
  \fi \fi \fi \endgroup \fi ...
\m_syst_action_nop ...structionhandler \endcsname 
  \strc_constructions_finali...

Best regards: OK

> On 28 Oct 2019, at 22:59, Rik Kabel  wrote:
> 
> This works with the 20191028 LMTX beta, fails with the 20191028 MkIV beta:
> 
> \starttext
> This\footnote{that}
> \stoptext
> 
> Error log:
> 
> return {
>  ["filename"]="c:/Users/micro/Desktop/fn.tex",
>  ["lastcontext"]="\n ...s \\inheritmaintextcolor 
> \\strc_itemgroups_push \n 
>\n\\handlenoteinsert ...tes_synchronize \\the \\everybeforenoteinsert 
> \n  \\insert 
> \\currentnoteinsert...\n\\235>notation:note ...enoteinsert \\currentnote 
> \\currentnotenumber \n  \\fi 
> \\fi \\fi \\endgroup \\fi ...\n\\m_syst_action_nop ...dler 
> \\currentconstructionhandler \\endcsname \n   
>  \\strc_constructions_finali...\nl.2 
> This\\footnote{that}\n  ",
>  ["lastluaerror"]="?",
>  ["lasttexerror"]="! Undefined control sequence",
>  ["linenumber"]=2,
>  ["offset"]=10,
> }
> 
> Can anyone reproduce this? I have tried rebuilding.
> 
> -- 
> 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
> ___

___
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] LMTX distorts PDF aspect

2019-10-19 Thread Otared Kavian
Hi Pablo,

Yes, I can confirm that the PDF file is distorted by LMTX (version 2019.10.11 
15:47) when included in another file with the command \externalfigure (even 
when the latter command is surrounded by \startplacefigure... \stopplacefigure).

Hower the output is correct with mkiv (and mkii…).

Best regards: OK



> On 19 Oct 2019, at 12:07, Pablo Rodriguez  wrote:
> 
> Dear list,
> 
> using the document attached to this message with the following sample
> gives different outputs:
> 
>\setuppapersize[A3, landscape]
>\starttext
>\externalfigure[fc-first.pdf]
>\stoptext
> 
> 1. LuaTeX inserts the document fine.
> 
> 2. LMTX inserts the document distorting its aspect.
> 
> I’m afraid this might be a bug in LMTX.
> 
> Could anyone confirm the issue?
> 
> BTW, the PDF document is uncompressed (so it’s easier to analyze it).
> 
> 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
> ___

___
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] lmtx and Asana Math

2019-10-17 Thread Otared Kavian
Hi Hans,

Today I noticed that the OT font Asana math was absent from my installation of 
lmtx, that is from

/context-osx-64/tex/texmf/fonts/opentype/public

and that was the reason I kept obtaining in my documents different script fonts 
from the ones I have with mkiv.
I copied the font into

/context-osx-64/tex/texmf/fonts/opentype/public/Asana-Math

and after erasing the cache and making the formats, everything works as 
expected now.
So my question is: can this font be included in the distribution of lmtx so 
that one doesn't need to manually add it? Or should one install it somewhere 
else on one's machine?

Thank you for everything,
Best regards: Otared
___
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] Unexpected symbol with Enumeration

2019-10-17 Thread Otared Kavian
Hi Aditya,Thanks for your hint: I didn't know that subtelty about Lucida OT (and I don't know how to set it up when using Lucida OT).That being said, actually what I would like to use is the kind of script font which is the attached document (those script fonts were widely used in higher mathematics textbooks in France). So when I use mkiv the result is the one I like and is attached to this message (test-scriptfonts-mkiv.pdf). However, thanks to your message I went to check, and noticed that lmtx does not give the same math script fonts, and I don't know what has changed between mkiv and lmtx regarding Asana Math, or the way in which fallback fonts are managed (please see the attached file test-scriptfonts-lmtx.pdf).Thanks for your help: OtaredPS: this the the file test-scriptfonts.tex: Some Font Definitions\definefallbackfamily[myfont][math][Asana Math]	[range={uppercasescript,lowercasescript}]% lucida font\definefontfamily[myfont][serif][Lucida Bright OT]\definefontfamily[myfont][math][LucidaBrightMathOT]\definefontfamily[myfont][sans][LucidaSansOT]\definefontfamily[myfont][mono][LucidaSansTypewriterOT]%\setupbodyfont[myfont,10pt]%% End of Font Definitions%%\starttext\startbuffer[test]Testing script fonts in maths\startformulax^2 + y^2 = z^2, \quad \sin(a)^2 + \cos(b)^2 = 1.\stopformula\startformula\cal{A}, \quad \cal{B}, \quad \cal{C}, \quad \cal{D},\quad \cal{E},\quad \cal{F},\quad \cal{G},\quad \cal{H},\quad \cal{K},\quad \cal{L},\quad \cal{M},\quad \cal{P},\quad \cal{S},\quad \cal{T}\stopformula\hairline\stopbuffer\switchtobodyfont[lucidaot]{\bf Lucida OT: }\getbuffer[test]\switchtobodyfont[myfont]{\bf Lucida OT with Asana Math: }\getbuffer[test]\stoptext

test-scriptfonts-mkiv.pdf
Description: Adobe PDF document


test-scriptfonts-lmtx.pdf
Description: Adobe PDF document
On 17 Oct 2019, at 08:00, Aditya Mahajan <adit...@umich.edu> wrote:On Wed, 16 Oct 2019, Otared Kavian wrote:I use Lucida OT fonts for all my documents, but since I prefer the script fonts from another font I have the following setups for my font:OT: Do you use this to get a less cursive script font?Lucida (like many opentype math fonts) comes with two stylistic variants for script letters. The default is the cursive variant, but you can get the less cursive variant using ss04 stylistic set. See page 8 ofhttps://tug.org/store/lucida/lucidaot.pdfAditya___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-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 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] Unexpected symbol with Enumeration

2019-10-16 Thread Otared Kavian
Hi Fabrice,

The Lucida OT family is indeed not free (it costs 110 US dollars from TUG), but 
tha Asana Math is included in the distribution of ConTeXt, LuaMetaTeX and, I 
think, TeXLive.

Best regards: Otared 

> On 16 Oct 2019, at 23:38, Fabrice Couvreur  
> wrote:
> 
> Hi Kavian,
> It seems to me that these fonts are not free.
> Thank you for your help.
> Fabrice
> 
> Le mer. 16 oct. 2019 à 05:28, Otared Kavian  <mailto:ota...@gmail.com>> a écrit :
> Hi Fabrice,
> 
> I use Lucida OT fonts for all my documents, but since I prefer the script 
> fonts from another font I have the following setups for my font:
> 
> %%
> %% Some Font Definitions
> \definefallbackfamily[myfont][math][Asana Math]
>   [range={uppercasescript,lowercasescript}]
> 
> % lucida font
> \definefontfamily[myfont][serif][Lucida Bright OT]
> \definefontfamily[myfont][math][LucidaBrightMathOT]
> \definefontfamily[myfont][sans][LucidaSansOT]
> \definefontfamily[myfont][mono][LucidaSansTypewriterOT]
> 
> \setupbodyfont[myfont,9pt]
> 
> %% End of Font Definitions
> %%
> 
> Then when I use for instance the command $\cal{C}$ the script font from Asana 
> Math is used, instead of from Lucida OT.
> 
> Best regards: OK
> 
>> On 15 Oct 2019, at 21:57, Fabrice Couvreur > <mailto:fabrice1.couvr...@gmail.com>> wrote:
>> 
>> Hello,
>> Thanks to you two. 
>> "Another solution is to define your own mixture of math fonts and text 
>> fonts."
>> I thought you should not mix several fonts in one text. I know you're a 
>> teacher, what are you doing to write your documents ?
>> Fabrice
>> 
>> Le mar. 15 oct. 2019 à 19:11, Otared Kavian > <mailto:ota...@gmail.com>> a écrit :
>> Hi Fabrice,
>> 
>> Wolfgang gave the right answer, but I wanted to point out that it is better 
>> not to use \setupbodyfont in the middle of your document, as you did in the 
>> excerpt below: in this case it is better to use 
>> 
>> \switchtobodyfont[xits]
>> 
>> or even better define the character you want before using it as in
>> 
>> \define\CScript{\start\switchtobodyfont[xits] \m{\mathscript{C}} \stop}
>> 
>> and then use that command as in:
>> 
>> La droite \m{(AM)} est {\bf une sécante} à la courbe \CScript en \m{A}.
>> 
>> Another solution is to define your own mixture of math fonts and text fonts.
>> 
>> Best regards: OK
>> 
>> 
>>> On 15 Oct 2019, at 18:39, Fabrice Couvreur >> <mailto:fabrice1.couvr...@gmail.com>> wrote:
>>> 
>>>  La droite \m{(AM)} est {\bf une sécante} à la courbe 
>>> {\setupbodyfont[xits]\m{{\mathscript C}}} en \m{A}.
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <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 <mailto:ntg-context@ntg.nl> / 
>> http://www.ntg.nl/mailman/listinfo/ntg-context 
>> <http://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
>> http://context.aanhet.net <http://context.aanhet.net/>
>> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
>> <https://bitbucket.org/phg/context-mirror/commits/>
>> wiki : http://contextgarden.net <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 <mailto:ntg-context@ntg.nl> / 
> h

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-15 Thread Otared Kavian
Hi Fabrice,

I use Lucida OT fonts for all my documents, but since I prefer the script fonts 
from another font I have the following setups for my font:

%%
%% Some Font Definitions
\definefallbackfamily[myfont][math][Asana Math]
[range={uppercasescript,lowercasescript}]

% lucida font
\definefontfamily[myfont][serif][Lucida Bright OT]
\definefontfamily[myfont][math][LucidaBrightMathOT]
\definefontfamily[myfont][sans][LucidaSansOT]
\definefontfamily[myfont][mono][LucidaSansTypewriterOT]

\setupbodyfont[myfont,9pt]

%% End of Font Definitions
%%

Then when I use for instance the command $\cal{C}$ the script font from Asana 
Math is used, instead of from Lucida OT.

Best regards: OK

> On 15 Oct 2019, at 21:57, Fabrice Couvreur  
> wrote:
> 
> Hello,
> Thanks to you two. 
> "Another solution is to define your own mixture of math fonts and text fonts."
> I thought you should not mix several fonts in one text. I know you're a 
> teacher, what are you doing to write your documents ?
> Fabrice
> 
> Le mar. 15 oct. 2019 à 19:11, Otared Kavian  <mailto:ota...@gmail.com>> a écrit :
> Hi Fabrice,
> 
> Wolfgang gave the right answer, but I wanted to point out that it is better 
> not to use \setupbodyfont in the middle of your document, as you did in the 
> excerpt below: in this case it is better to use 
> 
> \switchtobodyfont[xits]
> 
> or even better define the character you want before using it as in
> 
> \define\CScript{\start\switchtobodyfont[xits] \m{\mathscript{C}} \stop}
> 
> and then use that command as in:
> 
> La droite \m{(AM)} est {\bf une sécante} à la courbe \CScript en \m{A}.
> 
> Another solution is to define your own mixture of math fonts and text fonts.
> 
> Best regards: OK
> 
> 
>> On 15 Oct 2019, at 18:39, Fabrice Couvreur > <mailto:fabrice1.couvr...@gmail.com>> wrote:
>> 
>>  La droite \m{(AM)} est {\bf une sécante} à la courbe 
>> {\setupbodyfont[xits]\m{{\mathscript C}}} en \m{A}.
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <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] Unexpected symbol with Enumeration

2019-10-15 Thread Otared Kavian
Hi Fabrice,

Wolfgang gave the right answer, but I wanted to point out that it is better not 
to use \setupbodyfont in the middle of your document, as you did in the excerpt 
below: in this case it is better to use 

\switchtobodyfont[xits]

or even better define the character you want before using it as in

\define\CScript{\start\switchtobodyfont[xits] \m{\mathscript{C}} \stop}

and then use that command as in:

La droite \m{(AM)} est {\bf une sécante} à la courbe \CScript en \m{A}.

Another solution is to define your own mixture of math fonts and text fonts.

Best regards: OK


> On 15 Oct 2019, at 18:39, Fabrice Couvreur  
> wrote:
> 
>  La droite \m{(AM)} est {\bf une sécante} à la courbe 
> {\setupbodyfont[xits]\m{{\mathscript C}}} en \m{A}.

___
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] PDF viewer poll

2019-10-14 Thread Otared Kavian
> On 13 Oct 2019, at 12:43, Henning Hraban Ramm  wrote:
> 
> Hi, I’d like to update my list of (usable!) PDF viewers.
> Which one do you use? (Current version?)

Hi Hraban,

I am on MacOS and use the PDF viewer included in TeXShop (which is based on 
Preview.app of MacOS). For my presentations I use Adobe Acrobat Reader DC, but 
for readings on the screen the Preview.app of MacOS is just fine (one can also 
annotate a PDF file, but strangely when such files are used in ConTeXt the 
annotations disappear: so one has to transform them into a JPG then again into 
a PDF).

I use extensively synctex within TeXShop, and although there has been a split 
in the way synctex is implemented in ConTeXt and other TeX flavors, it works 
fine. When writing lecture notes and math exercises, having synctex is 
fundamental for me.

Best regards: OK
___
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] About \textrule [ ]

2019-10-01 Thread Otared Kavian
Hi Fabrice,

Is this what you are looking for?
Best regards: OK

\setuptextrules[width=.5cm]

\define[1]\ProprieteHeadcommand
{\textrule[top]{Propriété}}

\defineenumeration[propriete]
[headstyle={bold},
style=italic,
number=no,
headcommand=\ProprieteHeadcommand,
numbercommand=\groupedcommand{}{\nbsp},
after=\textrule]

\starttext
\startpropriete
  \input ward
\stoppropriete
\stoptext

> On 1 Oct 2019, at 11:09, Fabrice Couvreur  wrote:
> 
> Hello,
> The top line is in the text, how to fix this problem ?
> Thank you.
> Fabrice
> 
> \setuptextrules[width=0.5cm]
> 
> \define[1]\ProprieteHeadcommand
>   {\textrule[top]{#1}}
> 
> \defineenumeration
>   [propriete]
>   [text=Propriété,
>title=yes,
>headstyle={bold},
>alternative=serried,
>style=italic,
>number=no,
>headcommand=\ProprieteHeadcommand,
>numbercommand=\groupedcommand{}{\nbsp},
>after=\textrule]
> 
> \starttext
> \startpropriete
>   \input ward
> \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/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
___


[NTG-context] Extracting a column from an array in lua

2019-09-20 Thread Otared Kavian
Hi,

Probably this is a silly question… 
In lua, I have an array named  t which is determined in a piece of lua code, 
having (say) two columns and I want to extract for example the first column of 
t and call the new array tt.
In Matlab, Scilab and friends, this can done by saying tt = t[:,1].

Is this possible in lua?
For the moment I have something like this, but I think it is not a good 
approach:

\starttext
\startluacode
t = {}  -- a silly example of a matrix...
for i = 1, 3 do
t[i] = {}
t[i]["columnOne"] = 10*i + 1
t[i]["columnTwo"] = 10*i + 2
end
tt = {}
for i = 1,3 do -- is it possible to avoid this ?
tt[i] = t[i]["columnOne"]
end
\stopluacode

The first column of the array  \type{t} is: 
\ctxlua{context.print(tt," ; ")}
\stoptext

Many thanks for any help,
Best regards: OK
___
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] Command completion in TeXShop

2019-09-19 Thread Otared Kavian
Hi,

I did not know the post by Herb Schulz, but I do use TeXShop and ConTeXt on a 
Mac, although actually I have never used the command completion mechanism. 

However I use extensively the autocompletion mechanism which is a way to key-in 
more rapidly some commands: for instance pressing alt-Cap-$ gives me 
\startformula

\stopformula

with the inserting point being between the two. The autompletion mechanism uses 
a file named autocompletion.plist which can be easily edited and adapted by the 
user (mine is adapted to the french keyboard layout AZERTY).

Indeed I can send you that file and also help fill in the command completion 
file in order to integrate ConTeXt commands.

Best regards: OK

> On 19 Sep 2019, at 14:10, Rogers, Michael K  wrote:
> 
> I was looking into command completion in TeXShop (MacOS) and came across this 
> two-year-old call for help by one of the developers (I assume) for 
> implementing it for ConTeXt:
> 
> http://macosx-tex.576846.n2.nabble.com/TeXShop-Command-Completion-ConTeXt-td7586673.html
> 
> As far as I found, command completion for ConTeXt has not yet been 
> implemented. I’m pointing this out in case someone has sufficient knowledge 
> of ConTeXt and is interested. Alternatively, perhaps it has been done, and 
> someone can point me in the right direction.
> 
> Thanks,
> 
> Michael
> 
> 
> 
> This e-mail message (including any attachments) is for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, distribution
> or copying of this message (including any attachments) is strictly
> prohibited.
> 
> If you have received this message in error, please contact
> the sender by reply e-mail message and destroy all copies of the
> original message (including attachments).
> ___
> 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] odd processing error with latest standalone

2019-09-18 Thread Otared Kavian
Hi Alan,

I had an analogous issue and after cleaning the luatex-cache and re-installing 
it was solved (working under MacOS 10.14).

Maybe you can try that too?

Best regards: OK

> On 18 Sep 2019, at 21:41, Alan Bowen  wrote:
> 
> In processing a book that I have edited, there is no problem using 
> LuaMetaTeX, Version 2.00.0, 2019.07.31
> 
> But with LuaMetaTeX, Version 2.00.0, ConTeXt  ver: 2019.09.10,
> the process stops in a specific chapter and quits with a fatal error:
> 
> tex error   > tex error on line 26 in file c_12-01_Greenbaum.tex: ! 
> Undefined control sequence
> 
> \referencerealpage ->\clf_referencerealpage 
> 
> \scrn_button_make_yes ...unter \referencerealpage 
>   \relax \ifcase 
> \scratchcou...
> \scrn_button_make ...ke_yes \scrn_button_make_nop 
>   #1#2#3#4 {#5}\endgroup 
> \scrn_button_direct_indeed ...onparameter {#2}{#3}
>   \egroup \endgroup 
> l.26 ]
> 
> l.37 ]
> 
> ...
> l.249 ...BHA_12-01_Plate01.pdf][width=.5\textwidth]{
>   }   
> 16 
> 17 \def\ChapterSubTitle{The Hellenistic Horoscope}
> 18 \def\SubChapterNo{12.1}
> 19 \relax
> 20 \startBrillChapter[reference=Ch12,
> 21title={\vglue6pc{\ChapterNo}~\\
> 22\ChapterTitle},
> 23bookmark={12 Astral Divination and Natal Astrology}]
> 24 
> 25 \startBrillSubChapter[reference=DGG12-01,
> 26 >> title={{\SubChapterNo}~\\
> 27\ChapterSubTitle},
> 28bookmark={12.1 The Hellenistic Horoscope}]
> 29 \byline
> 30 \startLevelBnHead[reference=12.1.1,
> 31title=Introduction]
> 
> What puzzles me is that the relevant coding for this chapter is the same as 
> for several other chapters that process with no problems. It would be good to 
> know if this is a problem in the chapter itself that I can fix or if there is 
> a problem in the latest standalone.
> 
> The error-log reads:
> 
> return {
>  ["filename"]="c_12-01_Greenbaum.tex",
>  ["lastcontext"]="\n\\referencerealpage ->\\clf_referencerealpage \n  
>   \n\\scrn_button_make_yes ->\\scratchcounter 
> \\referencerealpage \n\\relax 
> \\ifcase \\scratchcounter \\expa...\n\\scrn_button_make 
> ...\\scrn_button_make_yes \\scrn_button_make_nop \n   
>#1#2#3#4 {#5}\\endgroup \n\\scrn_button_direct_indeed 
> ...buttonparameter \\setbuttonparameter {#2}{#3}\n
>   \\egroup \\endgroup \nl.26 ]\n \nl.37 ]\n 
> \n...\nl.249 ...HA_12-01_Plate01.pdf][width=.5\\textwidth]{\n 
>  }   ",
>  ["lastluaerror"]="?",
>  ["lasttexerror"]="! Undefined control sequence",
>  ["lasttexhelp"]="The control sequence at the end of the top line of your 
> error message was never\n\\def'ed. You can just continue as I'll forget about 
> whatever was undefined.",
>  ["linenumber"]=26,
>  ["offset"]=10,
> }
> 
> Alan
> ___
> 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] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Hi again,

Actually 
\unexpanded\def\dotlessring#1{\tfb\normalring
{\tfx\mathdotless#1}}
has side effects, that is it induces a font switch outside the scope of 
\dotlessring… So it cannot be used as such in real situations, although when I 
test isolated instances it works fine.

Thanks again for your help: OK

> On 14 Sep 2019, at 14:08, Atsuhito Kohda  wrote:
> 
> Dear Otared,
> 
> Sorry for my mistake.  Of course you will need more fine tuning but
> \unexpanded\def\dotlessring#1{\tfb\normalring{\tfx\mathdotless#1}}
> might help you a bit.  But if not please ignore this.
> 
> Best regards,
> Atsuhito Kohda
> 
> 2019年9月14日(土) 20:51 Otared Kavian  <mailto:ota...@gmail.com>>:
> 
> Thanks for your attention, but in fact \mathring and what you suggest, that 
> is \dotlessring, give the same result. What I am looking for is to replace 
> the small circle used by \mathring by a slightly bigger circle
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <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] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Dear Atsuhito Kohda,

Thank you: I didn't know how to tweak the fontsizes in the command you 
suggested. With your explannation I can get a good result with \dotlessring.

Many thanks for your help: OK



> On 14 Sep 2019, at 14:08, Atsuhito Kohda  wrote:
> 
> Dear Otared,
> 
> Sorry for my mistake.  Of course you will need more fine tuning but
> \unexpanded\def\dotlessring#1{\tfb\normalring{\tfx\mathdotless#1}}
> might help you a bit.  But if not please ignore this.
> 
> Best regards,
> Atsuhito Kohda
> 
> 2019年9月14日(土) 20:51 Otared Kavian  <mailto:ota...@gmail.com>>:
> 
> Thanks for your attention, but in fact \mathring and what you suggest, that 
> is \dotlessring, give the same result. What I am looking for is to replace 
> the small circle used by \mathring by a slightly bigger circle
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <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] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Hi Atsuhito Kohda,

Thanks for your attention, but in fact \mathring and what you suggest, that is 
\dotlessring, give the same result. What I am looking for is to replace the 
small circle used by \mathring by a slightly bigger circle.

Best regards: OK

> On 14 Sep 2019, at 13:03, Atsuhito Kohda  wrote:
> 
> Dear Otared and all,
> 
> This is very naive idea but anyway please try this.
> Just before the \starttext insert the following line:
> \unexpanded\def\dotlessring#1{\tfa\normalring{\mathdotless#1}}
> 
> Best regards,
> Atsuhito Kohda
> 
> 2019年9月14日(土) 18:37 Otared Kavian  <mailto:ota...@gmail.com>>:
> 
> Can someone tell me please whether it is possible to modify the \mathring 
> command so that th ecircle is a little bit larger, or the one I define below 
> as 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl <mailto:ntg-context@ntg.nl> / 
> http://www.ntg.nl/mailman/listinfo/ntg-context 
> <http://www.ntg.nl/mailman/listinfo/ntg-context>
> webpage  : http://www.pragma-ade.nl <http://www.pragma-ade.nl/> / 
> http://context.aanhet.net <http://context.aanhet.net/>
> archive  : https://bitbucket.org/phg/context-mirror/commits/ 
> <https://bitbucket.org/phg/context-mirror/commits/>
> wiki : http://contextgarden.net <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
___


[NTG-context] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Hi all,

The \mathring command puts a small circle above a letter, but in some fonts 
(namely Lucida OT) that circle is too small. So thanks to a hint by Hans and 
Wolfgang some years ago I use the following definition which works fine when 
used alone. But in maths, one needs sometimes to use it with the command 
\overline (or \overbar) and the result is not nice.

Can someone tell me please whether it is possible to modify the \mathring 
command so that th ecircle is a little bit larger, or the one I define below as 
\interior in order to have a correct result (more clearly said: I would like 
the small circle to be put above the bar which is itself above the A in 
$\interior{\overline{A}}$).

Thanks for any help: OK

%%% begin mathring-interior.tex
\setuppapersize[A5][A5]
\definemathstackers[MySymbol]
[voffset=-1.2\mathexheight,
hoffset=\zeropoint,
mathclass=ord,
topoffset=.3\mathemwidth, % poor man's italic correction
middlecommand=\mathematics]
%\define[1]\interior{\mathover[MySymbol]{"2218}{#1}} %2218 U+00B0
\define[1]\interior{\mathover[MySymbol]{176}{#1}} %2218 U+00B0

\starttext
The interior of a set $A$ is denoted by $\interior{A}$.

The interior of a set $A$ is denoted by $\mathring{A}$.

The closure of the interior is $\overline{\interior{A}}$.

Beware $\overline{\interior{A}} \neq \interior{\overline{A}}$. (This is not 
nice\dots).

Beware $\overline{\mathring{A}} \neq \mathring{\overline{A}}$
\stoptext

%%% end mathring-interior.tex



mathring-interior.pdf
Description: Adobe PDF document
___
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] Problem of displaying a date with a macro

2019-09-09 Thread Otared Kavian
Hi, 

On my installation of lmtx (version 2019.08.20 17:34), as well as mkiv (version 
2019.08.24 22:42 MKIV) the following gives:

\starttext
   \date[d=25,m=10,y=1999]
\stoptext

October 09, 1999. So the month and the year are correct, but not the day.

Best regards: OK

> On 9 Sep 2019, at 16:27, Pablo Rodriguez  wrote:
> 
> On 9/9/19 3:24 PM, Fabrice Couvreur wrote:
>> Hello,
>> I just updated my version of ConTeXt and the bug is still present.
>> Can you confirm ?
> 
> Hi Fabrice,
> 
> I confirm that latest beta (from 2019.09.09 13:44), doesn’t change the
> date in the following sample:
> 
>\starttext
>\date[d=25]
>\stoptext
> 
> I hope it helps,
> 
> 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
> ___

___
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] metafun 2

2019-09-08 Thread Otared Kavian
Hi Aditya,

As usual you show us a very nice and very clear example to taech nice features 
of ConTeXt: thank you so much!

I wanted also to point out a typo on that page (two occurrences), namely 
"ploles" instead of "poles", in the explanations before the actual code.

Best regard: 

> On 8 Sep 2019, at 10:42, Aditya Mahajan  wrote:
> 
> On Wed, 14 Aug 2019, Hans Hagen wrote:
> 
>> Hi,
>> 
>> In the process of providing an additional (more abstract) interface to some 
>> of the old and also new MetaFun code we wonder what kind of features users 
>> would like to see.
>> 
>> http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf
> 
> Finally got around to playing around with the new interface. Here is an 
> example of how to define new key-value driven macros in metapost:
> 
> https://adityam.github.io/context-blog/post/new-metafun-interface/
> 
> 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
> ___

___
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] Math \not

2019-09-07 Thread Otared Kavian
Hi you should use \nequiv as in

\starttext
Let $f \nequiv 0$ be a function
\stoptext

Best regards: OK

> On 7 Sep 2019, at 18:35, Rogers, Michael K  wrote:
> 
> In plain TeX you can get a slash through $\equiv$ with $\not\equiv$.  When I 
> do the same in ConTeXt, the slash next to the $\equiv$.  Is there a way to 
> get a not-equivalent sign in ConTeXt?
> 
> Thanks,
> 
> - Michael
> 
> \starttext
> $\not\equiv$
> \stoptext
> 
> 
> 
> 
> This e-mail message (including any attachments) is for the sole use of
> the intended recipient(s) and may contain confidential and privileged
> information. If the reader of this message is not the intended
> recipient, you are hereby notified that any dissemination, distribution
> or copying of this message (including any attachments) is strictly
> prohibited.
> 
> If you have received this message in error, please contact
> the sender by reply e-mail message and destroy all copies of the
> original message (including attachments).
> ___
> 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
___


[NTG-context] [OT] PreTeXt

2019-09-05 Thread Otared Kavian
Hi all,

Has anyone on this list experimented the markup language PreTeXt? 
> https://pretextbook.org/ 

Best regards: OK___
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] Strange pagebreaks in LMTX

2019-09-05 Thread Otared Kavian


> On 5 Sep 2019, at 09:32, Aditya Mahajan  wrote:
>> […]
> 
> You can move the leftbartex to the left by using `frameoffset=dimension` key.
> 
> Aditya

Thanks! That solves the issue.

Best regards: OK___
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] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
Hi Aditya,

Thank you for your reply and for the link to your article: your explanations 
are cristal clear and the solution for me is to use what you explain.

There is only one issue remaining, when using your code, that is:

\definetextbackground
  [leftbartext]
  [
location=paragraph,
mp=mpos:region:leftbar,
width=broad,
frame=off,
framecolor=darkred,
rulethickness=.5pt,
leftoffset=2ex,
%rightoffset=2.25ex,
%topoffset=2.25ex,
%bottomoffset=2.25ex,
background=color,
backgroundcolor=white,
  ]

\startuseMPgraphic{mpos:region:leftbar}
  draw_multi_pars;
  draw_multi_side;
\stopuseMPgraphic

then when there is a footnote the leftbartext runs into the footnote, between 
the number and the footnote itself, and the result is not nice. I did not find 
a way to push the footnote and its number a little to the right, or the 
leftbartext to the left.

Best regards: OK

> On 5 Sep 2019, at 06:45, Aditya Mahajan  wrote:
> 
> On Thu, 5 Sep 2019, Otared Kavian wrote:
> 
>> Hi Wolfgang,
>> 
>> Thanks for your answer. I tried Hans' suggestion to use \textbackground 
>> instead of background: indeed it solves the problem of incorrect page 
>> breaks, but it seems that \setuptextbackground « leftframe=on » is not 
>> honoured, that is one cannot say for instance:
>> 
>>  \setuptextbackground[frame=off,leftframe=on]
>> 
>> while using \background this would be possible.
> 
> See
> 
> https://adityam.github.io/context-blog/post/frame-with-solid-left-line-redux/
> 
> 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
> ___

___
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] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
Hi Wolfgang,

Thanks for your answer. I tried Hans' suggestion to use \textbackground instead 
of background: indeed it solves the problem of incorrect page breaks, but it 
seems that \setuptextbackground « leftframe=on » is not honoured, that is one 
cannot say for instance:

\setuptextbackground[frame=off,leftframe=on]

while using \background this would be possible. 
The other issue, as you pointed out is the way the end of \textbackground can 
be controlled (even though for my case it is not an issue). 

The \sidebar mechanism in order to have a vertical line on the left of each 
exercise does not work properly neither, because it is difficult to control 
precisely where it ends.

Best regards: OK


> On 4 Sep 2019, at 18:32, Wolfgang Schuster 
>  wrote:
> 
> Hans Hagen schrieb am 04.09.2019 um 17:58:
>> On 9/4/2019 2:24 PM, Otared Kavian wrote:
>>> Hi all,
>>> 
>>> I have a document which typesets correctly in mkiv giving a PDF file with 7 
>>> pages, but the same document typeset with lmtx gives two pages with a 
>>> strange pagebreak on the second page. Up to now, unfortunately, I could not 
>>> create a minimal example to show this behaviour, so I put the files in the 
>>> folder here:
>>> 
>>> 
>>> https://www.dropbox.com/sh/7rolmpe47njvy0l/AADmcILO0XgY3Sb6FC2dwMw-a?dl=0 
>>> 
>>> and the PDF file obtained with mkiv is here
>>> 
>>> https://www.dropbox.com/s/udbz0lulat9vum7/bug-pagebreaks-mkiv.pdf?dl=0 
>>> 
>>> while the one obtained with lmtx is here
>>> 
>>> https://www.dropbox.com/s/t6kge5lq8otju4y/bug-pagebreaks-lmtx.pdf?dl=0 
>>> 
>>> Also, the TeX file typesets correctly with lmtx, if I don't use textrules, 
>>> so  I wonder whether there has been some changes in the way such textrules 
>>> have to be used.
>>> As far as I can remember, two months ago the same file was typeset with 
>>> lmtx without any problem.
>>> 
>>> Thanks in advance for any help,
>>> Best regards: OK
>> you have some interaction between textrules and backgrounds (and that can be 
>> a matter of very small differences in dimensions and rounding and such .. i 
>> just don't see a quick way out) ... esp these backgrounds are an old 
>> mechanism (maybe i should alias it to textbackgrounds in lmtx)
>> 
>> much better is to use this:
>> 
>> \definetextbackground
>>   [xx]
>>   [location=paragraph]
>> 
>> \starttextbackground[xx]
>> \stoptextbackground
>> 
>> can you try to use that instead? less page overflow too
>> 
>> (actually i should iontegrate some title line in that)
> A limitation of textbackgrounds is the limited control over the vertical 
> space at page breaks.
> 
> With the old background mechanism you get the normal topoffset and 
> bottomoffset values
> but with textbackgrounds you can just control the space at the end and end of 
> the environment.
> 
> \showframe[text][text]
> 
> \starttext
> 
> \dorecurse{3}{\samplefile{knuth}}
> 
> \startbackground[topoffset=1em,bottomoffset=1em]
> \dorecurse{2}{\samplefile{knuth}}
> \stopbackground
> 
> \dorecurse{2}{\samplefile{knuth}}
> 
> \page
> 
> \definetextbackground[xx][location=paragraph,frame=off,background=color,backgroundcolor=gray,topoffset=1em,bottomoffset=1em]
> 
> \dorecurse{3}{\samplefile{knuth}}
> 
> \starttextbackground[xx]
> \dorecurse{2}{\samplefile{knuth}}
> \stoptextbackground
> 
> \dorecurse{2}{\samplefile{knuth}}
> 
> \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
___


[NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Otared Kavian
Hi all,

I have a document which typesets correctly in mkiv giving a PDF file with 7 
pages, but the same document typeset with lmtx gives two pages with a strange 
pagebreak on the second page. Up to now, unfortunately, I could not create a 
minimal example to show this behaviour, so I put the files in the folder here:


https://www.dropbox.com/sh/7rolmpe47njvy0l/AADmcILO0XgY3Sb6FC2dwMw-a?dl=0

and the PDF file obtained with mkiv is here

https://www.dropbox.com/s/udbz0lulat9vum7/bug-pagebreaks-mkiv.pdf?dl=0

while the one obtained with lmtx is here

https://www.dropbox.com/s/t6kge5lq8otju4y/bug-pagebreaks-lmtx.pdf?dl=0

Also, the TeX file typesets correctly with lmtx, if I don't use textrules, so  
I wonder whether there has been some changes in the way such textrules have to 
be used.
As far as I can remember, two months ago the same file was typeset with lmtx 
without any problem.

Thanks in advance for any help,
Best regards: OK


___
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] LMTX: Space in file names

2019-08-20 Thread Otared Kavian
Hi Hans,

Thanks to your reply, I just discovered the reason for which I could not 
typeset in lmtx files which have a space in their name from the Terminal: one 
has to say

context "exercice 1.tex"

that is to enclose the entire filename between double quotes… Which is 
completely logical! 

Thanks a lot for your time!

Best regards: OK

> On 20 Aug 2019, at 10:25, Hans Hagen  wrote:
> 
> On 8/20/2019 9:36 AM, Otared Kavian wrote:
>> I'll try the lua file you sent me, thank you.
> 
> just run the file with "mtxrun --script oeps.lua"
> 
>> However, I don't think the issue comes from the file name containing the 
>> word « problème »: indeed the attached file gives the same error in lmtx, 
>> but not in mkiv:
> well, you can see it when you run the lua file -)
> 
> i can process the exercice file (see attached log)
> 
> context "exercice 1.tex"
> 
> -
>  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
___


[NTG-context] LMTX: Space in file names

2019-08-19 Thread Otared Kavian
Hi Hans,

I noticed that the lmtx beta from 2019.08.18 22:27 does not anymore accept 
spaces in file names, while the mkiv version does accept it.
I am aware that putting a space in a file name is a very bad habit, but I am 
convincing some people who were used to use MS Word in order for them to use 
ConTeXt, and these people have many files with names containing spaces such as 
« correction problème 1.tex » (and in fact this is how I noticed this new 
behavior of lmtx: when typesetting such a file, lmtx looks for « correction.tex 
»). 
That is why I think if lmtx could continue to accept spaces in file names that 
would be very convenient. Do you think this would be possible?

Best regards: OK

___
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] Bug in lmtx with \Bbb is back…

2019-08-19 Thread Otared Kavian
Hi Hans,

The issue with \Bbb is back again with the beta version 2019.08.18 22:27: lmtx 
uses math italic roman instead.
Again here is an example:

%%% begin bug-Bbb.tex
\starttext
Let $\beta \in {\Bbb R}$ and $k \in {\Bbb Z}$. For $z\in{\Bbb C}^*$ we define 
$f(z) := z^k +\beta$.

\stoptext
%%% end bug-Bbb.tex

Best regards: OK

> On 10 Aug 2019, at 13:53, Otared Kavian  wrote:
> 
> Hi Hans,
> 
> Thanks a lot for having fixed the issue in the latest beta, version 
> 2019.08.09 19:59 …
> 
> Best regards: OK
> 
>> On 9 Aug 2019, at 14:48, Otared Kavian  wrote:
>> 
>> Hi Hans,
>> 
>> It seems that there is a bug in the handling of Blackboard Bold, in the 
>> latest lmtx (version 2019.08.02 19:40). The following gives the attached PDF 
>> file.
>> However the same file typesets correctly in the latest mkiv beta.
>> 
>> Thanks for your attention: OK
>> 
>> \starttext
>> 
>> The set of integers is denoted ${\Bbb N}$.
>> 
>> \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
___


[NTG-context] Bug in lmtx in display mathmode

2019-08-18 Thread Otared Kavian
Hi Hans,

I have a long document which typesets correctly with mkiv, but I get a (cryptic 
for me…) fatal error message when I try to typeset it in lmtx:

! error:  (nodes): trying to delete an attribute reference of a non attribute 
list node 4476mtx-context | fatal error: return code: 256

I could finally find the origin of the error, which is exposed in the following 
example: if you comment out the part from \startformula ... \stopformula, the 
file typesets correctly.
But with this part, one gets the above error message, the culprit being 
\liminfbar which is defined in the first line. Note that \liminfbar is accepted 
when it is inline math.

Best regards: OK

%%% begin bug-math-lmtx.tex

\definemathcommand[liminfbar][limop] {\underline{\mfunctionlabeltext{lim}}}

\starttext
If $(u_{n})_{n}$ is a sequence of real numbers, we define its {\it limit 
inferior}, denoted $\liminfbar$ by setting:
\startformula
a_{n} := \inf\{u_{k} \; ; \; k \geq n \},
\qquad\text{and then}\quad
\liminfbar_{n\to\infty} u_{n} := \sup_{n \geq 1} a_{n}.
\stopformula 

\stoptext

%%% end bug-math-lmtx.tex
___
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] \date in LMTX

2019-08-18 Thread Otared Kavian
> On 18 Aug 2019, at 05:25, Aditya Mahajan  wrote:
> 
> Hi,
> 
> There is a bug with \date in LMTX.
> 
> \starttext
> \date[d=10]
> \stoptext
> 
> does not change the date. Works okay in MKIV.

Hi,

Actually it does not work in mkiv version 2019.08.14 11:26, nor in lmtx version 
2019.08.14 11:44. 
But it works in mkiv version 2019.03.21 21:39 from TeXLive 2019.

Best regards: OK
___
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
___


<    1   2   3   4   5   6   7   8   9   10   >