[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

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 Buc

[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

[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

[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]

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

2020-06-01 Thread Otared Kavian
gure[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 capti

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

2020-06-01 Thread Otared Kavian
[width=10cm]} %{f} > > \stopcombination} > {}% > \stopcombination > \stopplacefigure} > \stopplacefigure > > \stoptext > > %% > > > Mon, Jun 01, 2020 ve 04:58:52PM +0200 Otared Kavian napsal(a): > # Hi Tomás, &

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 re

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

Re: [NTG-context] Updating lmtx

2020-06-07 Thread Otared Kavian
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 hav

[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 cert

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 Kavia

[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

[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

[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] :

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

2020-06-22 Thread Otared Kavian
r 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 t

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

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][alternat

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 r

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,

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

Re: [NTG-context] Text around a figure

2020-07-15 Thread Otared Kavian
Hi Fabrice, I think what Wolfgang suggests is something like the following: \useMPlibrary[dum] \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \definetextbackground[fondpaille] [background=color, backgroundcolor=fondpaille, frame=off, location=always] \starttext \sta

Re: [NTG-context] Text around a figure

2020-07-16 Thread Otared Kavian
d not do > better. > Fabrice > > Le mer. 15 juil. 2020 à 22:25, Otared Kavian a écrit : > Hi Fabrice, > > I think what Wolfgang suggests is something like the following: > > \useMPlibrary[dum] > \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] > \definetex

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Otared Kavian
> On 18 Jul 2020, at 22:25, Fabrice Couvreur > wrote: > > Hi Wolfgang, > > It works but why did you ask this question since I finally use context ? > Are you sure you want to use context(...) here? > How not to display the .0 ? Besides what Wolfgang suggested, ou can also use contex

Re: [NTG-context] Code lua in a table

2020-07-18 Thread Otared Kavian
> On 18 Jul 2020, at 23:35, Otared Kavian wrote: > > > >> On 18 Jul 2020, at 22:25, Fabrice Couvreur >> wrote: >> >> Hi Wolfgang, >> >> It works but why did you ask this question since I finally use context ? >> Are you sure you want

Re: [NTG-context] issue with current latest (2020.07.20)

2020-07-20 Thread Otared Kavian
Hi, As far as I can see the latest LMTX does not create the format, so on my machine, when typesetting a file I get error loading file: mult-fmt.lua (aborting)resolvers . mtx-context | error, no format found with name: cont-en, aborting So the problem is before

[NTG-context] Bug in latest LMTX

2020-07-21 Thread Otared Kavian
Hi Hans, It seems that \cap is not anymore defined in the latest LMTX: the following gives an error \starttext $A \cap B$ \stoptext with current version: 2020.07.21 18:39. Also, I would like to place a request about the reporting of errors: can we get back the nice reporting of errors we had

[NTG-context] Error with latest upload

2020-07-28 Thread Otared Kavian
Hi Hans, After updating to current version: 2020.07.28 23:04, typestting the minimal test: \starttext test \stoptext results in: runtime error : input file 'page-mcl.mkxl' is not found, quitting. Best regards: OK __

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
> On 31 Jul 2020, at 10:32, Hans Hagen wrote: > > […] > > Other work in progress is: better columns in itemize, esp proper footnote > support (not that I ever need that but I know users do so ...), experiments > work ok, but I need to check spacing. In general, footnotes (will) behave a > bit

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
> On 1 Aug 2020, at 16:17, Hans Hagen wrote: > > On 8/1/2020 3:20 PM, Otared Kavian wrote: >>> On 31 Jul 2020, at 10:32, Hans Hagen wrote: >>> >>> […] >>> >>> Other work in progress is: better columns in itemize, esp proper footnote >

Re: [NTG-context] lmtx update

2020-08-01 Thread Otared Kavian
cannot avoid them). Best regards: Otared > On 1 Aug 2020, at 18:41, Henning Hraban Ramm wrote: > > >> Am 01.08.2020 um 15:20 schrieb Otared Kavian : >> >> Regarding footnotes, would it be possible to have a built-in support for >> writing the footnotes in th

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
helpful to find the error… (LMTX considers \footnote as an undefined control sequence…). Best regards: Otared > On 1 Aug 2020, at 19:19, Henning Hraban Ramm wrote: > > > >> Am 01.08.2020 um 18:57 schrieb Otared Kavian : >> >> Hi Hraban, >> >> Thank y

Re: [NTG-context] margin notes (was: lmtx update)

2020-08-01 Thread Otared Kavian
note is here to see what happens in the next page\dots\par \input knuth.tex} \par \dorecurse{3}{\input knuth.tex } \stoptext > On 1 Aug 2020, at 23:01, Henning Hraban Ramm wrote: > > >> Am 01.08.2020 um 22:36 schrieb Otared Kavian : >> >> Hi Hraban, >> &g

[NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-03 Thread Otared Kavian
Hi Hans, A file which used to be typeset correctly with the previous versions of lmtx, now produces an error. Despite the error message being extremely cryptic: Error ! Missing number, treated as zero I could guess the origin of the bug, which seems to be \wordright, but although the fol

Re: [NTG-context] Bug with \wordright in LMTX version 2020-08-03 14:25

2020-08-04 Thread Otared Kavian
formula. \qed \stoptext end-example-qed.tex Thanks a lot for everything: Otared > On 4 Aug 2020, at 13:24, Hans Hagen wrote: > > On 8/4/2020 11:17 AM, Otared Kavian wrote: >> Thanks Hans for your explanations. >> The problem I encountered is that, the command \qed is used

[NTG-context] Defining \qed (was: Bug with \wordright...)

2020-08-08 Thread Otared Kavian
Hi Wolfgang, Thanks for your explanations and the correct definition of the close symbol in an enumeration. Following up the discussions with Hans, in order to put a close sympbol at the end of a formula, I have the following for the definition of \qed: %% begin example-qed.tex \showframe \defi

[NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-10 Thread Otared Kavian
Hi all, I suggested to a friend, who is using plain TeX and LaTeX, to switch to ConTeXt, and since he is using TeXShop on MacOSX with a version of TeXLive2020 (named MacTeX2020), I thought he would just typeset a simple test document with the option « ConTeXt (LuaTeX) » from the menu in TeXShop

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-10 Thread Otared Kavian
rds: Otared > On 10 Aug 2020, at 12:39, Axel Kielhorn wrote: > > > >> Am 10.08.2020 um 12:03 schrieb Otared Kavian : >> >> Hi all, >> >> I suggested to a friend, who is using plain TeX and LaTeX, to switch to >> ConTeXt, and since he is using

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-10 Thread Otared Kavian
ive/binaries exists and contains (among other things) « context » which is a symlink to /opt/local/share/texmf-texlive/scripts/context/stubs/unix/context which does not exist… Best regards: Otared > On 10 Aug 2020, at 15:20, Hans Hagen wrote: > > On 8/10/2020 2:59 PM, Otared K

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-10 Thread Otared Kavian
Hi Axel, > On 10 Aug 2020, at 16:11, Axel Kielhorn wrote: > […] > Well, one more suggestion: > Use TeX Live Manager to update TeX-Live. > I didn’t see any comments about context not working, but maybe the update > fixes something. > (You can filter for context related packages.) > > There has b

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-11 Thread Otared Kavian
ing | found regular configuration file > '/opt/local/etc/texmf/texmfcnf.lua' > > So maybe it is something completely different, but it does look like it's > something around those configs... > > Have a look and if not, then sorry for the noise. > > Regards

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-11 Thread Otared Kavian
Hi Hans, Thanks for your explanations, which clarify why sometimes ConTeXt may not work straight of TeXLive. Nevertheless I will contact the people who maintain MacTeX in order for them to be aware of the issue I encounter, so that hopefully in the future releases people would be able to use Co

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-13 Thread Otared Kavian
lated files in /opt/local/, which is used by MacPorts… I hope to be able to explain to my colleague how to run ConTeXt (LuaTeX) within TeXShop from MacTeX2020. Thanks to eveyone! Best regards: Otared > On 12 Aug 2020, at 08:26, Axel Kielhorn wrote: > > > >> Am 11.08.2020

Re: [NTG-context] How can I use ConTeXt from TeXLive2020 ?

2020-08-14 Thread Otared Kavian
Dear Otared, > > On Thu, 13 Aug 2020 at 11:05, Otared Kavian wrote: >> >> Indeed following your suugestion, I removed the >>/opt/local/etc/texmf/ >> directory, as well as all other tex related directories and files in >> /opt/local/, and then installe

Re: [NTG-context] memoir-style chapter heading

2020-08-18 Thread Otared Kavian
Hi Julian, Indeed you can modify slightly what Aditya said to obtain what you want: you can put the overlay into a framed environment as in the following example. Though, to my taste the number is a little bit too low… %% begin example \setuppagenumbering[state=start,location=footer] \setuphead

Re: [NTG-context] Chapter heading with rules

2020-08-21 Thread Otared Kavian
Hi Julian, Indeed you can acchieve what you want, but it is better to define a command which takes care of the number and the title of the chapter at the same time (as in \ myChapterCommand below). %% begin example.tex \definefiller[ChapterRule] [alternative=rule, color=gray,

Re: [NTG-context] Overriding the number on a float

2020-08-24 Thread Otared Kavian
Hi, If there are a few special numberings of floats, and one wants floats numbered 1.6a and 1.6b, the following seems to work: Best regards: Otared %%% begin ownnumber-in-floats.tex \useMPlibrary[dum] \starttext \startsection[title=One] \startplacefigure[title=Test] \externalfigure[dummy] \st

Re: [NTG-context] defining font family for several options

2020-09-01 Thread Otared Kavian
Hi Julian, What Aditya means is that you define two (or more) font families: one is named mainface as yu have already done, the other named mychapterfont (for instance) where you attribute whatever fonts you wish to sans serif and else. Then when you want to use the special font in some of the

Re: [NTG-context] latest lmtx

2020-09-05 Thread Otared Kavian
Hi Alan, Where did you install LuaMetaTeX? For instance my LuaMetaTeX.engine contains the following three lines: #!/bin/bash export PATH=/context-osx-64/tex/texmf-osx-64/bin:/context-osx-64/bin:/context-osx-64/tex/texmf-osx-64/bin /context-osx-64/tex/texmf-osx-64/bin/mtxrun --autogenerate --s

Re: [NTG-context] Error setting up ConTeXt in MacTeX 2020

2020-09-18 Thread Otared Kavian
Hi Felix, Some time ago I encountered the same problem and we had a thread on this list about this: https://www.mail-archive.com/ntg-context@ntg.nl/msg95355.html The problem on my Mac came from the fact that a directory /opt/local/etc/texmf/ existed (installed by MacPorts, witho

Re: [NTG-context] \startstructurelevel

2020-09-20 Thread Otared Kavian
Hi Denis, Does \startstructurelevel[title={Bibliography},number=no] \stopstructurelevel give what you want? Best regards: Otared K. > On 20 Sep 2020, at 10:39, Denis Maier wrote: > > Hi, > > I'm using \startstructurelevel so I can nest sections without

[NTG-context] Math fonts for Nimbus fonts

2020-09-21 Thread Otared Kavian
Hi, I wish to use the Nimbus fonts, but since I didn't know which Math fonts is best adapted to this family, I tried several fonts such as Stix Math, TeX Gyre Math, and so on, but doing this the math-italic does not appear in these fonts: does this mean that I have to set explicitely math-itali

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
uot;Re: Contents of ntg-context digest..." >> >> >> Today's Topics: >> >> 1. Parallel text support (Denis Maier) >> 2. Re: Parallel text support (Taco Hoekwater) >> 3. Re: ZapfDingbats Unicode differences MKIV vs LMTX >> (Christoph Re

Re: [NTG-context] Math fonts for Nimbus fonts

2020-09-21 Thread Otared Kavian
> On 21 Sep 2020, at 16:45, Wolfgang Schuster > wrote: > > Otared Kavian schrieb am 21.09.2020 um 15:30: > […] > I don't understand your problem because you tell ConTeXt to use upright > letters (normal = upright) in math mode with the following setup. >

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
> On 21 Sep 2020, at 16:42, Aditya Mahajan wrote: > > On Mon, 21 Sep 2020, Wolfgang Schuster wrote: > >> Aditya Mahajan schrieb am 21.09.2020 um 16:35: >>> […] > > You gave the same reply 11 years ago :-) which is also listed in the blog > post. … Which shows that some things don't change in

Re: [NTG-context] Modules installation in a ConTeXt LMTX distribution

2020-10-18 Thread Otared Kavian
Hi Tommaso, I met the same problem at the beginning of LMTX and I used a workaround: I copied manually the folder (in MacOS speaking, or directory) context-minimal/tex/texmf-modules in my ConTeXt standalone mkiv directory, to the corresponding location in my /context-osx-64/t

[NTG-context] Is synctex broken in lmtx ?

2020-10-18 Thread Otared Kavian
Hi Hans, It seems that \setupsynctex[state=start] does not have any effect in LMTX version 2020.09.20 23:02, while it works fine with mkiv version 2020.06.25 10:55. Best regards: Otared ___ If your question

Re: [NTG-context] index entries postponed if sections are empty

2020-10-31 Thread Otared Kavian
Hi Hraban, Maybe you can add some « virtual » text in the section with an invisible color such as \startcolor[white] a \stopcolor I don't know whether the following can solve your problem, but the entries of the index appear correctly: \usemodule[visual] \starttext \dorecurse{5}{% \st

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Otared Kavian
Hi Pablo, I get the same result as you. I think the reason is that Hans has not yet issued a newer version (he said in a message a few days ago that by mistake he might have uploaded a new version, but that we should be careful not to update yet…). Best regards: Otared > On 4 Nov 2020, at 16:

Re: [NTG-context] cannot update LMTX

2020-11-04 Thread Otared Kavian
: Otared > On 4 Nov 2020, at 16:38, Pablo Rodriguez wrote: > > On 11/4/20 4:18 PM, Otared Kavian wrote: >> Hi Pablo, >> >> I get the same result as you. I think the reason is that Hans has not >> yet issued a newer version (he said in a message a few days ago that >

Re: [NTG-context] new upload

2020-11-07 Thread Otared Kavian
Hi Pablo, I had the same issue as the one you were reporting (on MacOS 10.14.6). I removed the three files texmf-context.tma texmf-osx-64.tma texmf.tma before issuing the command sh install.sh Now I am getting fetching 'http://lmtx.pragma-ade.com/install-lmtx//texmf-context.

[NTG-context] Fatal error 11

2020-11-14 Thread Otared Kavian
Hi Hans, With the latest LMTX (current version: 2020.11.13 19:13), a project (which used to typeset correctly until last week) cannot be typeset anymore. I did try to typeset smaller parts of my files but this did not help: I keep getting fatal error: return code: 11 and no PDF output

Re: [NTG-context] new upload

2020-11-19 Thread Otared Kavian
Hi Hans, Thanks for the new upload and the fix for the install script: it works again also for MacOS. Best regards: OK > On 19 Nov 2020, at 11:35, Hans Hagen wrote: > > Hi, > > A new upload. Hopefully with the linux install fixed. > > Hans > > > ---

Re: [NTG-context] Piecewise margin line

2020-11-19 Thread Otared Kavian
Hi Johann, Here is an example (extracted from one of my files…) which might give what you want: you can change some of the specifications easily. % begin proclaim-leftbar.tex %%% \startuseMPgraphic{mpos:region:leftbar} draw_multi_pars; draw_multi_s

Re: [NTG-context] \noindentation not working

2020-11-20 Thread Otared Kavian
Hi Pablo, I can confirm that with LMTX version 2020.11.19 11:28, the behaviour is as the one you report (the behaviour is correct with mkiv version 2020.06.25 10:55). Best regards: Otared > On 20 Nov 2020, at 17:41, Pablo Rodriguez wrote: > > Dear list, > > I have the following MWE: > > \s

Re: [NTG-context] upload

2020-11-23 Thread Otared Kavian
Hi Hans, On MacOS X I obtain the same error when doing: context --make --all (or mtxrun --make --all). The error is csname overload > fatal error, protection level 4, control sequence 'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315 Best regards: Otared > On 23 Nov 2

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
Hi Jean-Philippe, For a simple case like the one you sent, a rather not optimal solution can be this: \definemathmatrix[mymatrix] [left={\left(\,}, right={\ \right)}] \starttext \startformula \startmymatrix \NC A \hskip .5em |\hskip-.5em \NC B \N

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
Hi Jean-Philippe, The following is better than the one I sent earlier: \definemathmatrix[mymatrix] [left={\left(\,}, right={\ \right)}] \starttext \startformula \startmymatrix \NC A \NC\hskip-.5em \vrule \NC\hskip-.5em B \NR \noali

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
=== > > For the MkIV version I haven't been able to add an optional parameter to \HR > the code > > \def\HR{\dosingleempty\doHR} > \def\doHR[#1]{\noalign{\hrule #1}} > > complains about "Misplaced \noalign" > > Best regards, > >

Re: [NTG-context] mathmatrix and internal lines

2020-11-27 Thread Otared Kavian
Hi Hans, Thanks for your insight! Indeed I'll wikify what you explained, once I have tested it with the next upload. Would \HL and \VL be also available in mkiv ? Best regards: Otared > On 26 Nov 2020, at 23:23, Hans Hagen wrote: > > On 11/26/2020 8:43 PM, Otared Kavian wro

Re: [NTG-context] mathmatrix and internal lines

2020-11-28 Thread Otared Kavian
> On 26 Nov 2020, at 23:23, Hans Hagen wrote: > […] > A bit more code needed but the next upload will have it. Of course you have > to wikify it. > > Hans Hi, I created a page on the wiki: https://wiki.contextgarden.net/Matrix_in_maths H

Re: [NTG-context] mathmatrix and internal lines

2020-11-29 Thread Otared Kavian
Great! Well done. I'll ask Taco about LMTX on the wiki. Best regards: Otared > On 29 Nov 2020, at 19:59, Jean-Philippe Rey > wrote: > > I added some details and examples to the wiki, however, as you said, they are > not typeset correctly. > >> Le 29 nov

[NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Hi everyone, I have to typeset a few files which get each an input file named in a certain way. For instance, a file named « myfile.tex » in which another file named « myfile-buffer.tex » is used as an \input file, as in % content of myfile.tex % \starttext This is a test. \input myfile-bu

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Thanks Tomás! Indeed \jobname does the job :-) Best regards: Otared > On 1 Dec 2020, at 15:25, Tomas Hala wrote: > > Hi Otared, > > try \jobname. > > Best wishes, > > Tomáš > > > Tue, Dec 01, 2020 ve 02:45:18PM +0100 Otared Kavian napsal(a): > # Hi

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
Thanks Hraban, this might be also useful and I'll keep it somewhere on my mind, but for the project I was asking my question \jobname is enough. Best regards: Otared > On 1 Dec 2020, at 17:33, Henning Hraban Ramm wrote: > > > >> Am 01.12.2020 um 16:20 schrieb Otared

Re: [NTG-context] Context install for Apple Silicon M1 mac mini

2020-12-01 Thread Otared Kavian
Hi Keith, You may try to copy to your new machine the whole folder where you have installed LMTX on your old machine, and then run context --make there. Indeed if this works for your current LMTX folder you'll need someone to prepare a whole working folder of updated LMTX. As long as I

Re: [NTG-context] Getting the filename which is being typeset

2020-12-01 Thread Otared Kavian
e.tex » do not give the suffix « tex »: shoul dthey give « tex » or am I misintrepreting these commands? Best regards: Otared > On 1 Dec 2020, at 18:23, Wolfgang Schuster > wrote: > > Otared Kavian schrieb am 01.12.2020 um 18:10: >> Thanks Hraban, this might be also

Re: [NTG-context] basic issues with formulas

2020-12-03 Thread Otared Kavian
Hi Pablo, You may use \text in math formulas as in: \startitemize[packed] \item Valor actual neto: $\text{beneficios} - \text{costes}$. \item Beneficio por euro: $\frac{\text{beneficios}}{\text{costes}}$. \item Beneficio obtenido el primer año. \stopitemize Best regards: Otared > On 3 Dec

[NTG-context] Metafun: how to draw a straight line past the end points

2020-12-09 Thread Otared Kavian
Hi, I have a silly question: given two points in the plane z1 = (1cm,3cm) ; z2 = (5cm, 9cm) ; the command draw z1 -- z2 withpen pencircle scaled .5pt ; draws the line segment joining z1 and z2. How could I draw the line segment which goes a little further (say 1cm) than bo

Re: [NTG-context] Metafun: how to draw a straight line past the end points

2020-12-09 Thread Otared Kavian
Hi Fabrice, Thanks a lot ! Indeed that does the job, which shows how wonderful Metafun is ! Best regards: Otared > On 9 Dec 2020, at 17:19, Fabrice L wrote: > > Hi, > >> Le 9 déc. 2020 à 10:57, Otared Kavian a écrit : >> >> Hi, >> >> I have a sil

Re: [NTG-context] Metafun: how to draw a straight line past the end points

2020-12-09 Thread Otared Kavian
)) shifted z1 ; draw z1 -- z3 ; draw z4 -- z1 ; draw z1 -- z2 withcolor red ; \stopMPcode \stoptext Best regards: Otared > On 9 Dec 2020, at 18:37, Aditya Mahajan wrote: > > On Wed, 9 Dec 2020, Otared Kavian wrote: > >> Thanks a lot ! Indeed that does the job, which s

Re: [NTG-context] Metafun: how to draw a straight line past the end points

2020-12-09 Thread Otared Kavian
Thanks Aditya! One can learn a lot with your answers ! In the Metafun manual I see enlonged but I did not know to use it. Best regards: Otared > On 9 Dec 2020, at 21:38, Aditya Mahajan wrote: > > On Wed, 9 Dec 2020, Otared Kavian wrote: > >> Hi Aditya, >> >> Tha

[NTG-context] Metafun: is it possible to redefine dotlabel to draw a square ?

2020-12-10 Thread Otared Kavian
Hi all, In Metafun when representing a point I woul dlike to have some dots represented by a square (or even by another scalable symbol): for instance in the following I would like the dot at the point B to be a square: \starttext \startMPcode draw (2cm,3cm) -- (3cm,5cm) ; dotlabel(textext("\sw

Re: [NTG-context] Metafun: is it possible to redefine dotlabel to draw a square ?

2020-12-10 Thread Otared Kavian
Maybe it is safer for me to call it something like « dotshapelabel » ? Best regards and agin many thanks: Otared > On 10 Dec 2020, at 18:44, Aditya Mahajan wrote: > > On Thu, 10 Dec 2020, Otared Kavian wrote: > >> Hi all, >> >> In Metafun when representing a p

Re: [NTG-context] issue with link and margin in LMTX

2020-12-12 Thread Otared Kavian
Hi Pablo, I don't know which kind of problems you are having with your example, but it seems to me that I get the same result with mkiv and LMTX. Best regards: Otared > On 11 Dec 2020, at 19:00, Pablo Rodriguez wrote: > > Dear list, > > I have the following sample: > > \setuppapersize[A9]

Re: [NTG-context] upload / metafun

2020-12-15 Thread Otared Kavian
Hi Hans, Thanks for the new upload. With your comments, I understand that, following the discussion with Aditya, when using the new version I should not define in Metafun a new function named dotlabel in order to have a square dot… Actually I called it mydotlabel in order to be able to

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
Hi Mickael, Maybe this is what you want: \defineenumeration[example] [text=Example, title=yes, titleleft=, titleright={.}, ] \starttext \startexample{Title} This is a test. \stopexample \stoptext Of course is you say text=, then you get only « Ti

Re: [NTG-context] Title in enumeration not working?

2020-12-21 Thread Otared Kavian
stopexample > > and that has been working before. Reading in setup-en.pdf, it also looks to > me as if that should work. > > Best, > > Mikael > > On Mon, Dec 21, 2020 at 11:47 AM Otared Kavian <mailto:ota...@gmail.com>> wrote: > Hi Mickael, > >

Re: [NTG-context] Problem with \Caps

2020-12-21 Thread Otared Kavian
Hi Joaquín, Actually it depends on the font you are using, but on th eother hand it seems that \Caps is broken in LMTX. The following gives a correct result in mkiv but results in an error in LMTX: \setupbodyfont[lucidaot] \starttext Test {\sc Test} {\Caps Test} {\smallcaps Test} \meaning\C

Re: [NTG-context] MetaFun - "remove the paths of text" from a rectangle to let the background visible

2020-12-23 Thread Otared Kavian
Hi Garulfo, Thank you for sharing your nice example: it typesets correctly with mkiv, but it seems to me that with LMTX the text does not appear (at least on my installation of the latest LMTX). Best regards: Otared > On 24 Dec 2020, at 00:14, Garulfo wrote: > > Thanks Taco, > > I made some

[NTG-context] freedotlabel not defined in LMTX ?

2020-12-26 Thread Otared Kavian
Hi Hans, When I was testing your example with freelabel in another thread, I noticed that freedotlabel does not work in LMTX. Here is the code from the Metafun manual which works with ConTeXt version 2020.06.25 10:55 MKIV, but not with ConTeXt version 2020.12.24 17:30 LMTX. %% begin freedotlabe

[NTG-context] Metafun: dotlabel issue in latest LMTX

2020-12-27 Thread Otared Kavian
Hi Hans, The following (due to you and Aditya, discussed a few days ago) used to work with LMTX until version 2020-12-10, but it does not work anymore with LMTX version 2020-12-24 17:30. I wonder whether this is due to some changes you have made recently. %% begin squaredot-test.tex \startMPde

Re: [NTG-context] Math align not working

2020-12-29 Thread Otared Kavian
Hi Johann, The example you sent works fine here with LMTX version 2020.12.28 01:41. Which version of ConTeXt are you using ? Best regards: Otared > On 29 Dec 2020, at 14:36, Johann Birnick wrote: > > Hi there, > > I noticed that Math align is not working properly. In particular I mean the > a

Re: [NTG-context] dutch calendars 3 months

2021-01-05 Thread Otared Kavian
Best wishes for the new year ! Talking of calendars, this one is even more compact: each year is shown on one page, and when changing the year only the three lines where the months are shown will change: http://www.professores.im-uff.mat.br/hjbortol/c1p/?fbclid=IwAR3EkoYjcxA2MCkfWU8J-KqaEReMluN

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Otared Kavian
Hi Jairo, One can indeed make quizzes and exams with randomized order of problems, randomized values and even randomized names of functions and variables. I have some examples which I have been using for several years (they are useful especially in these days of giving exams online…): I can send

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Otared Kavian
edList[\recurselevel]]}(x) := \cldcontext{ListOfFunctions[ShuffledList[\recurselevel]]}$. Prove that \startformula \cldcontext{ListOfNames[ShuffledList[\recurselevel]]}'(x) = \cldcontext{ListOfDerivatives[ShuffledList[\recurselevel]]} \stopformula \stopbuffer \dorecurse{6}{\blank[mediu

Re: [NTG-context] LMTX isn't typesetting math correctly with Pagella

2021-01-15 Thread Otared Kavian
Hi Jack,I tested your example both with Pagella and Lucida OT: indeed typesetting with the latest LMTX, with Pagella the math italic « f » runs into the right bar of « |f| ».However the result with mkiv is correct.I am attaching the PDF output with LMTX.Best regards: Otared bar-distance-f.pdf Desc

Re: [NTG-context] code 139

2021-01-29 Thread Otared Kavian
Hi Thomas, Out of curiosity I tested your MWE and I get mtx-context | fatal error: return code: 11 with LMTX (version 2021.01.28 18:22), while with mkiv it typesets correctly. Best regards: Otared > On 29 Jan 2021, at 14:42, Thomas A. Schmitz > wrote: > > > On 1/29/21 12:56 PM, Ha

Re: [NTG-context] composing commands

2021-02-05 Thread Otared Kavian
Hi Hans, I agree that nowadays most composed characters can be input directly from the keyboard (at least judging from my experience with MacOS), but nevertheless it may happen that one uses an old file used as an input source file (for instance extracting a math exercise from a database) in wh

Re: [NTG-context] composing commands

2021-02-05 Thread Otared Kavian
On 5 Feb 2021, at 22:30, Hans Hagen wrote: > […] > Is this ok for you? > > tex error > tex error on line 6 in file ./oeps.tex: Undefined control > sequence > > \v > > 4 > 5 \starttext > 6 >> \v > 7 \stoptext > 8 In that case the error message could say tex error > tex

  1   2   3   4   5   6   7   8   9   10   >