[NTG-context] Re: upload

2024-04-01 Thread Otared Kavian
Hi Hans and Mikael,Thanks for the new module math-goodriddance ! Indeed there are many mathematicians who are going to use the \goodriddancemath command, and no doubt they are going to thank you, even if they are very shy to come out.Moreover this command can be used by people who want to transform the output PDF into an audio file, because for instance the following \usemodule[math-goodriddance]\goodriddancemath\starttext\startformula\int_{0}^{\pi} \sin(x)\dd x = 2.\stopformula\stoptextgives 
		
	
	
		
			
integral from 0 to 휋 , of sin of 푥 d 푥 equals 2 

			
		as one can see in the attached output which is very useful for the blind using an audio software.Best regards: OK

no-math.pdf
Description: Adobe PDF document
On 1 Apr 2024, at 16:31, Hans Hagen  wrote:Hi,There is a new lmtx upload.-- The svg inclusion via metapost has been upgraded and cleanup a bit, using some more recent metapost features. There are some new (not yet all documented metapost) features.-- In the process, support for LCH colors has been added, which is documented in the (eg luametafun manual).-- The math manual is not yet there because we were distracted by improving support for envelopes (penbased outlines) in metafun. This is still work in progress, some is present and discussed in the manual, and we'll come back to that sometime next month. Given the next item, we also might need to change some in the manual (different focus).-- Because we have users who have to conform to the European Accessibility Act we have been wondering how to deal with that and at Mikaels place there are two demands: distinctive colors and tagging and especially math (somehow validators love to check that). Colors never were an issue as they can be controlled, and tagging math neither, especially because nothing was/is done with it anyway, but ... we are happy that we found a reasonable (more modern and future proof) way out.As explained / shown in the attached document we're basically forced to choose a different approach with math (a pity as we worked hard to get the rendering right but the attached file works fine in the viewers that we tested).-- We like to hear from users what other demands wrt accessibility there are. We're not interested in the (commercial) big money aspects (of pdf and tagging) nor in the politics behind it (changes over time). What are the demands, so that we can see how to make it work or just work around it (as it's kind of boring to cook uyp complex features	, esp compared to playing with metapost).-- Furthermore .. the usual bits and pieces as discussed on the list and otherwise.-- If you have troubles (crash) you need to wipe the cache due to a change in lua bytecode storage (no easy way to catch it).Hans & Mikael-  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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)archive  : https://github.com/contextgarden/contextwiki : https://wiki.contextgarden.net___
Otared Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Japanese

2024-03-14 Thread Otared Kavian
Dear Emmanuel,

Thank you for your reply: indeed I understand your approach, which is quite 
efficient. I am not at all good in coding, so I naively thought there would be 
a way for your setup to retrieve the information it needs from what the user is 
doing. Maybe once things are settled, Hans and Wolfgang will have a look in the 
Japanese part of ConTeXt so that the user can avoid to enter the setup included 
in the \directlua part.

Again thank you for what you are sharing.

Best regards: Otared

> On 14 Mar 2024, at 08:12, Emanuel Han via ntg-context  
> wrote:
> 
> Dear Otared,
> 
> when you read the lua code in the first \directlua{}, you should realize that 
> the dimensions of almost all layout elements are depending on the value of my 
> lua variable "paperSize".
> Thanks to defining the paper size first in lua, I can apply calculations of 
> numeric values.
> 
> The value of paperSize is later passed on to \setuppapersize via 
> \setuppapersize[\directlua{tex.print(paperSize)}]
> 
> Emanuel
> On März 13 2024, at 3:55 pm, Otared Kavian  wrote:
> Hi Emmanuel,
> 
> Thank you so much for the new setup for writing Japanese: I tested with both 
> files, and noticed that with the new version the output looks great.
> 
> I have a question about the code in the \directlua{} part of your setup: why, 
> for instance, the
> paperSize = « B5"
> is defined « by hand » there, instead of being retrieved from the command
> \setuppapersize[B5]
> issued by the user?
> 
> Actually I am using your setup for learning Japanese, and at my beginner’s 
> level I do separate words I am learning with spaces. While with the previous 
> version of your setup the lines were breaking womewhat strangely, but now the 
> spaces between words in the output are as I intended them to be (I should 
> also Thank Wolfgang Schuster for his insight with the \script[nihongo], and 
> indeed Hans for fixing so quickly the slightest bug).
> 
> It is really a great pleasure to be in this community where help comes from 
> everyone and features are given on demand !
> 
> Best regards: Otared
> 
> > On 10 Mar 2024, at 17:43, Emanuel Han via ntg-context  
> > wrote:
> >
> > Hi all,
> >
> > I added 
> > https://wiki.contextgarden.net/Chinese_Japanese_and_Korean#Meeting_the_JIS_X_4051_Requirements_for_Japanese_Text_Layout
> > with attached working example code and to-do list.
> >
> > Thanks for any contributions!
> >
> > The working example code is still a work in progress. Its text layout 
> > output meets already some of the requirements (see comments in the code). 
> > Among the ones to still be implemented are:
> >
> > • solid setting (no extra spacing between characters) 
> > https://www.w3.org/TR/jlreq/#fig1_8 if no requirement for line-adjustment 
> > https://www.w3.org/TR/jlreq/#term.line-adjustment
> > • aligning of the lines to the Kihon-hanmen (optimizing the code below in 
> > this regard)
> > • positioning and realm of headings https://www.w3.org/TR/jlreq/#fig3_1_9 
> > https://www.w3.org/TR/jlreq/#fig3_1_15 et al, and 
> > https://www.w3.org/TR/jlreq/#fig3_1_4
> > • positioning of yokugo-ruby https://www.w3.org/TR/jlreq/#fig2_3_24
> > • inline cutting note (warichu) https://www.w3.org/TR/jlreq/#fig2_4_1
> > • emphasis with sesame dot or bullet
> > • itemization https://www.w3.org/TR/jlreq/#fig2_5_6
> > • indenting of quotation paragraphs https://www.w3.org/TR/jlreq/#fig2_5_7
> > • tab setting https://www.w3.org/TR/jlreq/#fig2_6_1
> > • furiwake https://www.w3.org/TR/jlreq/#fig2_7_2
> > • jidori https://www.w3.org/TR/jlreq/#fig2_7_4
> > • math https://www.w3.org/TR/jlreq/#fig2_7_6 and 
> > https://www.w3.org/TR/jlreq/#fig2_7_62
> > • tategaki (writing vertically)
> > Best regards
> >
> > Emanuel
> > On März 2 2024, at 7:00 pm, Wolfgang Schuster 
> >  wrote:
> > Emanuel Han schrieb am 01.03.2024 um 16:23:
> >
> > Dear Wolfgang,
> >
> > thank you for your valuable remarks. I integrated them, see corrected 
> > attached example.
> >
> > Yes, correct layout examples exist. They're all showing vertical writing, 
> > but the rules and principles are exactly the same for horizontal writing.
> >
> > • position of the headers and footers: https://www.w3.org/TR/jlreq/#fig1_30
> >
> > See my attached gongitsune.tex example how you can squeeze text in a very 
> > narrow header/footer.
> >
> > • aligning lines to the text box: https://www.w3.org/TR/jlreq/#fig1_3
> >
> > You can use the lines key for \setuplayout to let ConTeXt calculate the 
> > necessary value for the 

[NTG-context] Re: Japanese

2024-03-13 Thread Otared Kavian
 sized parentheses etc. which isn't supported yet by ConTeXt's 
> mechanism for japanese and in case your willing to improve it this should be 
> taken care of as well.
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How can I do this?

2024-03-10 Thread Otared Kavian
Hi Hans and Hraban,

Thank you both for your remarks: indeed I am aware of the commands \m{} and 
\dm{} in ConTeXt, but for my work with math stuff I use the usual dollar signs 
for inline maths, since in this way it is easier for me to read the source on 
the one hand, and and on the hand when exchanging parts of a file with people 
using Plain TeX or LaTeX, it is more standard.

Best regards: Otared

> On 10 Mar 2024, at 10:16, Hans Hagen via ntg-context  
> wrote:
> 
> On 3/8/2024 6:36 PM, Henning Hraban Ramm wrote:
>> Am 08.03.24 um 17:56 schrieb Otared Kavian:
>>> Hi Ursula,
>>> 
>>> The reason for which you did not get the expected result is that you have « 
>>> } » missing in your file, that is the closing brace after your italic 
>>> command
>>> « {\it » at the end of your document.
>>> Moreover you did not have a \stoptext in your file, and a math command « \m 
>>> » was not written correctly. Talking of math, I personnaly prefer to 
>>> enclose in-line math between dollar signs $, that is writing « $\exists x 
>>> \in H$ » instead of  « \m{\exists x \in H} ».
>> Well, better stay with the modern ConTeXt approach of \m{}.
> for regular inline math we just use \im{...} (which has an \dm{...} companion 
> with displaystyle
> 
> 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 / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How can I do this?

2024-03-08 Thread Otared Kavian
aragraph,
>   background=color,
>   backgroundcolor=lightgray,
>   leftoffset=.8\bodyfontsize,
>   rightoffset=.8\bodyfontsize,
>   topoffset=.5\bodyfontsize,
>   bottomoffset=.5\bodyfontsize,
>   frame=off,]
>   \margintext{\blackrule[color=black, height=0.10ex, width=1cm]\\}
>   \blackrule[color=black, height=0.10ex, width=13.50cm]
> \starttext 
> \margintext {1.1.1} {\bf Beispiel 3.2.17 (Vertauschung von All- und 
> Existenzquantor).}
> \par {\it Sei M die Menge aller Männer und F die Menge aller Frauen. Die 
> Aus-\par
> sage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen machen 
> Sie sich die Bedeutung der beiden Aussagen klar.}
> \par
> \startitemize[n,packed,broad]
> \item \m{\forall m ∈ M : ∃f ∈ F : h(m, f)}  \item ∃f ∈ F : ∀m ∈ M : h(m, f).
> \stopitemize
> \startGrayBackground
> \tf Mitunter ist es aus der Formulierung nur schwer zu erkennen, dass
> ein \m ∃\forall∀ oder ein \m \forall∀\m∃ versteckt ist. Dann ist es besonders 
> wichtig, die
> Formulierung sehr lange zu prüfen und eventuell auch formalisiert
> noch einmal aufzuschreiben.”
> \blank
> \setupnarrower [left=0.80cm, right=0.80cm]
> \startnarrower[left, right]
> \definehspace[oneem][0.5em]
> Der\hspace[oneem] Wert\hspace[oneem] von\hspace[oneem] \m{y = f(x)} ist 
> unabhängig von der Wahl\\
> von \m{x\doubleprime} ist gleichbedeutend mit \m{∃y : ∀x : f(x) = y} \\ 
> (Beutelspacher [10, S.54])\par
> \blank
> \stopnarrower
> \stopGrayBackground
> \blank
> \blackrule[color=black, height=0.10ex, width=13.50cm]
> \setupinteraction
>[state=start,
> color=blue]
> \reference[Regel:1]{3.1}\par
> {\bf Aufgabe 3.2.18} Formulieren Sie gemäß der Regel (\goto{3.1}[Regel:1]) 
> äquivalent
> \startitemize[n,packed,broad]
> \item \m{\forall n \in \naturalnumbers\mtp{:} n^2 > n \implies n > 1},\item 
> \m{\forall n \in \naturalnumbers\mtp{:} 3\divides n \implies 4 \divides 
> n},\item \m{\forall n \in \naturalnumbers\mtp{:} n^3 \mtext{ ungerade 
> }\nospace
> \implies n \mtext{ ungerade}}.
> \stopitemize
> \blackrule[color=black, height=0.10ex, width=13.50cm]\par
> {\bf Aufgabe 3.2.19} Bilden Sie die Verneinung der folgenden Aussagen:
> \startitemize[n,packed,broad]
> \item Alle Rosen sind verwelkt oder teuer.
> \item Alle rosen sind entweder verwelkt oder teuer.
> \stopitemize 
> \par
> \usecolors[svg]
> \setupinteraction
>   [state=start, 
>contrastcolor=cornflowerblue]
> \reference[Abschnitt:1]{3.2.1.1}
> {\it Hinweis: Beachten Sie die Konvention aus Abschnitt \goto 
> {3.2.1.1}[Abschnitt:1]die For-\par
> mulierung \quotation {entweder ... oder} entspricht dem ausschließenden 
> Oder\par
> und die Formulierung \quotation{oder} dem (mathematischen) einschließenden\par
> Oder.\par 
> \blackrule[color=black, height=0.10ex, width=13.50cm]
>  
> ___
> 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> / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
> https://context.aanhet.net <https://context.aanhet.net/> (mirror)
> archive  : https://github.com/contextgarden/context 
> <https://github.com/contextgarden/context>
> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/>
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Japanese

2024-02-27 Thread Otared Kavian
Dear Dalyoung,

Thank you very much for your insight. I downloaded the Noto Serif JP fonts and 
set up a fontfamily as you indicated, by adding
\setscript[nihongo]
which solves a problem I had with line breakings. And everything works smoothly!

So, for the mail archive, here is what I have and what works fine:

%%% Noto Fonts

\definefontfamily[JapaneseFont][rm][Noto Serif JP]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][ss][Noto Serif JP]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][tt][Noto Serif JP]
  [   it={style:regular,features:{*,slanted}},
  sl={style:regular,features:{*,slanted}},
  bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[JapaneseFont][math][Tex Gyre Termes Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Pagella Math]
%\definefontfamily[JapaneseFont][math][Tex Gyre Aventor]



\setupbodyfont[JapaneseFont,12pt]
\setupruby[location=top,voffset=-2ex]
\setupwhitespace[big]
\setscript[nihongo]

\starttext
\ruby{早}{はや}く。
いきましょう。
\stoptext

Best regards: Otared


> On 27 Feb 2024, at 13:55, Jeong Dal via ntg-context  
> wrote:
> 
> Dear Otared,
> 
> I am using Korean as main language.
> I used use typescript file, but recently I use \definefontfamily.
> Since using Japanese font is similar to use Korean font, I show my example  
> of using Noto fonts. It was made by the help of expert of this list long time 
> ago.
> 
> You may change "Noto Serif CJK KR” to Japanese font.
> 
> I also use "\setscript[hangul]” when I use Korean as mainlanaguage.
> 
> I hope that you may enhance the following code.
> 
> Best regards,
> 
> Dalyoung
> 
> 
> %%% Noto Fonts
> 
> \definefontfamily[notoFont][rm][Noto Serif CJK KR]
>   [   it={style:regular,features:{*,slanted}},
>   sl={style:regular,features:{*,slanted}},
>   bi={style:bold,features:{*,slanted}},force=yes]
> 
> \definefontfamily[notoFont][ss][Noto Sans CJK KR]
>   [   it={style:regular,features:{*,slanted}},
>   sl={style:regular,features:{*,slanted}},
>   bi={style:bold,features:{*,slanted}},force=yes]
> 
> \definefontfamily[notoFont][tt][Noto Sans Mono CJK KR]
>   [   it={style:regular,features:{*,slanted}},
>   sl={style:regular,features:{*,slanted}},
>   bi={style:bold,features:{*,slanted}},force=yes]
> 
> \definefontfamily[notoFont][math][Tex Gyre Termes Math]
> %\definefontfamily[notoFonts][math][Tex Gyre Pagella Math]
> %\definefontfamily[notoCJK][math][Tex Gyre Aventor]
> 
> 
>> 2024. 2. 27. 오전 6:49, Otared Kavian > <mailto:ota...@gmail.com>> 작성:
>> 
>> Hi Hraban,
>> 
>> Your are right indeed ! I didn’t imagine that it was so easy to set up a 
>> document to write in Japanese…
>> Actually I followed the example by Emanuel Han which is essentially what you 
>> suggest (although he gave me also the hint to add the furagana).
>> 
>> Best regards: Otared
>> 
>>> On 26 Feb 2024, at 21:16, Henning Hraban Ramm >> <mailto:te...@fiee.net>> wrote:
>>> 
>>> Am 26.02.24 um 21:08 schrieb Otared Kavian:
>>>> Does anyone have a simple setup of fonts to write a small Japanese 
>>>> document (possibly with furagana) ? I am using MacOS and I have several 
>>>> Japanese fonts on the system.
>>>> I have some old examples which do not typeset correctly now, maybe because 
>>>> they use the old module simplefonts and  commands such as \setcjkmainfont 
>>>> and friends.
>>> 
>>> Try to replace the simplefonts calls with something like
>>> 
>>> \definefontfamily[myfonts][rm][SomeFont]
>>> \definefontfamily[myfonts][ss][SomeOtherFont]
>>> 
>>> \setupbodyfont[myfonts,rm,12pt]
>>> 
>>> With Latin fonts, it usually works.
>>> 
>>> Hraban
>>> ___
>>> 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> / 
>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
>>> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
>>> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
>>> https://context.aanhet.net <https://context.aanhet.net/> (mirror)
>>> archive  : https://github.com/contextgarden/context 
&

[NTG-context] Re: Japanese

2024-02-26 Thread Otared Kavian
Hi Hraban,

Your are right indeed ! I didn’t imagine that it was so easy to set up a 
document to write in Japanese…
Actually I followed the example by Emanuel Han which is essentially what you 
suggest (although he gave me also the hint to add the furagana).

Best regards: Otared

> On 26 Feb 2024, at 21:16, Henning Hraban Ramm  wrote:
> 
> Am 26.02.24 um 21:08 schrieb Otared Kavian:
>> Does anyone have a simple setup of fonts to write a small Japanese document 
>> (possibly with furagana) ? I am using MacOS and I have several Japanese 
>> fonts on the system.
>> I have some old examples which do not typeset correctly now, maybe because 
>> they use the old module simplefonts and  commands such as \setcjkmainfont 
>> and friends.
> 
> Try to replace the simplefonts calls with something like
> 
> \definefontfamily[myfonts][rm][SomeFont]
> \definefontfamily[myfonts][ss][SomeOtherFont]
> 
> \setupbodyfont[myfonts,rm,12pt]
> 
> With Latin fonts, it usually works.
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Japanese

2024-02-26 Thread Otared Kavian
Hi Emanuel,

Thanks for the example. In fact I don’t need vertical typesetting for my 
Japanese text, so your example works fine for me. 
Actually I had to change the name of the font to  Hiragino Mincho ProN W3 in 
order to get your example work.

Also I think with the recent versions of ConTeXt there is no need to add 
\enableregime[utf]
because ConTeXt is working with Unicode any way.
I added also a line to define a math font, since I have read here on the 
mailing list that a math font should be set… Maybe someone among the experts 
can tell us if I am right, or if one has to set other fonts as well.

So your example which works fine for me is now:

% begin simple-japanese.tex
\definefontfamily [JapaneseFont] [rm] [Hiragino Mincho ProN W3]
\definefontfamily [JapaneseFont] [ss] [Hiragino Mincho ProN W3]
\definefontfamily [JapaneseFont] [mm] [math] [lucidaot] [default]

\setupbodyfont[JapaneseFont,14pt]
\setupruby[location=top,voffset=-1.6ex]
\setupwhitespace[big]

\starttext  

\ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。

お\ruby{休}{やす}みなさい^_^

\stoptext
%end simple-japanese.tex

Best regards: Otared

> On 26 Feb 2024, at 21:32, Emanuel Han via ntg-context  
> wrote:
> 
> Unfortunately vertical typesetting is not supported by ConTeXt. That's a big 
> pity.
> 
> If horizontal typesetting is fine, this little working example with furigana 
> might give you some hints. Hiragino Mincho Pro should be installed by Default 
> on MacOS.
> 
> \enableregime[utf] % enable unicoded input
> \definefontfamily [JapaneseFont] [rm] [hiraginominchopro]
> 
> \setupruby[location=top,voffset=-1.6ex, ]
> 
> \starttext \JapaneseFont
> 
> \ruby{僕}{ぼく}はもう\ruby{寝}{ね}る。
> 
> お\ruby{休}{やす}みなさい^_^
> 
> \stoptext
> 
> 
> 
> On Feb. 26 2024, at 9:08 pm, Otared Kavian  wrote:
> Hi all,
> 
> Does anyone have a simple setup of fonts to write a small Japanese document 
> (possibly with furagana) ? I am using MacOS and I have several Japanese fonts 
> on the system.
> I have some old examples which do not typeset correctly now, maybe because 
> they use the old module simplefonts and commands such as \setcjkmainfont and 
> friends.
> 
> Many thanks in advance: Otared
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Japanese

2024-02-26 Thread Otared Kavian
Hi all,

Does anyone have a simple setup of fonts to write a small Japanese document 
(possibly with furagana) ? I am using MacOS and I have several Japanese fonts 
on the system.
I have some old examples which do not typeset correctly now, maybe because they 
use the old module simplefonts and  commands such as \setcjkmainfont and 
friends.

Many thanks in advance: Otared

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: new context option

2024-02-24 Thread Otared Kavian
Thanks Denis… I fixed the error.
Sure, I had a sort of two years time jet lag :-) 

Best regards: Otared



> On 24 Feb 2024, at 11:11, Denis Maier via ntg-context  
> wrote:
> 
> Hi Otared
> Shouldn't the version be 2024? 
> Best
> Denis
>  
>> Otared Kavian  hat am 24.02.2024 10:40 CET geschrieben:
>>  
>>  
>> Hi Hans,
>>  
>> Thanks for this nice option: it comes handy for many situations.
>>  
>> I added a page for it:
>> https://wiki.contextgarden.net/find <https://wiki.contextgarden.net/find>
>>  
>> Best regards: Otared 
>> 
>>> On 22 Feb 2024, at 18:40, Hans Hagen >> <mailto:j.ha...@xs4all.nl>> wrote:
>>> Hi, 
>>> 
>>> As I needed to check some commands i added this: 
>>> 
>>>   context --find="%\starttabulate" 
>>> 
>>> which will (should) give a list of lines/files in the documentation where 
>>> this command is used. 
>>> 
>>> Hans 
>>> 
>>> - 
>>>  Hans Hagen | PRAGMA ADE 
>>>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands 
>>>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
>>> www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> / 
>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
>>> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl> 
>>> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
>>> https://context.aanhet.net <https://context.aanhet.net/> (mirror) 
>>> archive  : https://github.com/contextgarden/context 
>>> <https://github.com/contextgarden/context> 
>>> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/> 
>>> ___
>> 
>> Otared Kavian
>> e-mail: ota...@gmail.com <mailto:ota...@gmail.com>
>> Phone: +33 6 88 26 70 95
>>  
>> ___
>>  
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki! 
>> 
>> maillist : ntg-context@ntg.nl / 
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
>> webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) 
>> archive : https://github.com/contextgarden/context 
>> wiki : https://wiki.contextgarden.net 
>> _______
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: new context option

2024-02-24 Thread Otared Kavian
Hi Hans,

Thanks for this nice option: it comes handy for many situations.

I added a page for it:
https://wiki.contextgarden.net/find 
<https://wiki.contextgarden.net/find>

Best regards: Otared

> On 22 Feb 2024, at 18:40, Hans Hagen  wrote:
> 
> Hi,
> 
> As I needed to check some commands i added this:
> 
>   context --find="%\starttabulate"
> 
> which will (should) give a list of lines/files in the documentation where 
> this command is used.
> 
> 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 / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: \startcolumns and \startcolumnset

2024-02-08 Thread Otared Kavian
Dear Dalyoung,Have you tried \startsimplecolumns\stopsimplecolumns instead of the columnset mechanism?In your example I put the above commands and I got the attached PDF: is this what you want to obtain?Best regards: Otared

columns-figures.pdf
Description: Adobe PDF document
On 9 Feb 2024, at 02:22, Jeong Dal via ntg-context  wrote:Dear all,I have a little problem to use “columns” in the following example.If I use “\startcolumnset”, then I have the following problems:	1. The figures is aligned left even though I use \startplacefigure[].	2. In the second column, the first item located at the end of the page.However, \vfill works, so I managed the items evenly spaced vertically.If I use “\startcolumns”, then I have the following problems:	1. \vfill doesn’t works, but \blank[] works. So, it isn’t easy to locate the items evenly spaced vertically.Here are sample code and its outputs of two cases for comparison.Any suggestions are welcomed.Tomorrow is the New Years day in Lunar calendar.Happy new year, again.Best regards,Dalyoung%%%\startuseMPgraphic{mark}path p;p := unitsquare scaled 3cm;draw p;draw (point 0 of p)--(point 2 of p);draw (point 1 of p)--(point 3 of p);\stopuseMPgraphic\startuseMPgraphic{verticalrule3}   draw rightboundary OverlayBox shifted (1mm,0); %if CurrentColumn = 1: shifted(-2mm,0) fi ;   draw leftboundary OverlayBox shifted (-1mm,0); %if CurrentColumn = 2: shifted(2mm,0) fi ; draw bottomboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;   draw topboundary OverlayBox leftenlarged 1mm rightenlarged 1mm;\stopuseMPgraphic\defineoverlay  [verticalrule]  [\useMPgraphic{verticalrule3}]\setuppagenumbering[state=stop]\setupexternalfigures[location={local,defalut}]\definecolumnset  [quiz]  [n=2,background=verticalrule]\setupbodyfont[bonum, rm, 11pt]\starttext %\startcolumns[n=2,background="">\startcolumnset[quiz]\startitemize[n]  \item Solve the following linear equations.  \startitemize[r]\item equation%\blank[3.5cm]\vfill\item equation%\blank[3.5cm]\vfill\item equation\blank[3.5cm]\item equation\blank[3.5cm]\item equation\blank[3.5cm]  \stopitemize  \hrule\column  \item Draw the graph of the following linear function.\startitemize[r]\item $2x +3y = 6$\startplacefigure[location={here,none},]\useMPgraphic{mark}\stopplacefigure  \item $y = 2x - 1$  \startplacefigure[location={here,none}]\useMPgraphic{mark}\stopplacefigure\stopitemize  \item Find the formula of the line 1:  \vfill  \item Find the formula of the line 2:  \vfill\stopitemize\stopcolumnset\stoptext%%___If your question is of interest to others as well, please add an entry to the Wiki!maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)archive  : https://github.com/contextgarden/contextwiki : https://wiki.contextgarden.net___
Otared Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Square right aligned

2024-02-08 Thread Otared Kavian
Hi Ursula,

I think you mean the so-called end of the proof sign, or QED (Quod Erat 
Demonstrandum). You can use this:

\definesymbol[QED][\mathematics{\square}]
\def\qed{\wordright{\symbol[QED]}}
\starttext
This is the end of our proof. \qed
\stoptext

In principle it is included in ConTeXt, but it seems that in the latest version 
I have (2024.01.23), the command \qed is broken.

Best regards: Otared

> On 8 Feb 2024, at 12:23, Ursula Hermann  wrote:
> 
> Dear List, 
> 
> I am at Home  and have the following example.:
> 
> \starttext
> \margintext {1.1.1}
> {\bf Beispiel 3.2.17 (Vertauschung von All- und Existenzquantor).}
> \par
> {\it Sei M die Menge aller Männer und F die Menge aller Frauen. Die
> Aus-\par
> sage h(m, f) sei ”m ist verliebt in f“. Unter diesen Voraussetzungen
> machen Sie sich die Bedeutung der beiden Aussagen 
> klar.\startalignment[right]\square\stopalignment}\stoptext}
> 
> There should be a sign like this □ at the end of the proof. 
> 
> Uschi
> ___
> 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> / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
> https://context.aanhet.net <https://context.aanhet.net/> (mirror)
> archive  : https://github.com/contextgarden/context 
> <https://github.com/contextgarden/context>
> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/>
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: upload

2024-01-24 Thread Otared Kavian
Hi Thomas,

Thank you for your advice: I did add
chmod +x install.sh
and now the script runs without MacOS complaining. 

However, since I had downloaded a new script yesterday and had updated to 
version 2024.01.23, I cannot check whether the issue was adding +x to the file 
install.sh.

Best regards: Otared

> On 23 Jan 2024, at 22:06, Thomas A. Schmitz  
> wrote:
> 
> Hi Otared,
> 
> I just tried, and my Macbook ran the update without any problem. Does it make 
> any difference if you chmod +x the script install.sh?
> 
> All best
> 
> Thomas
> 
> On 1/23/24 21:59, Otared Kavian wrote:
>> Hi Dr Hans Van der Meer,
>> Thank you for your help. It seems that since January 18 something has
>> changed (either on MacOS or on the install script), because the last
>> time I could update without doing anything more than sh install.sh.
>> In any case I checked xattr with
>>  which xattr
>> and got:
>>  /usr/bin/xattr
>> Then I did
>>  xattr -d com.apple.quarantine
>> /Applications/context-osx-arm64/install.sh
>> and got:
>>  xattr: /Applications/context-osx-arm64/install.sh: No such xattr:
>> com.apple.quarantine
>> Invoking again sh install.sh resulted in the error message I reported
>> previously.
>> 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 / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: upload

2024-01-23 Thread Otared Kavian
Hi again,

I ended up downloading a new version of install.sh for MacOS from the Pragma 
site: using this allowed me to update to the latest version 2024-01-23:10H02.

Thanks for the help to all !

Best regards: Otared

> On 23 Jan 2024, at 21:08, Hans van der Meer via ntg-context 
>  wrote:
> 
> Just did 'sh install.sh' a moment ago without problems.
> In the past I had to do xattr -d com.apple.quarantaine path-to-executable 
> once but not anymore.
> I think the xattr resides in the Apple command tools. Are you sure you have 
> them?
> 
> yours sincerely
> dr. Hans van der Meer
> 
> 
> 
>> On 23 Jan 2024, at 17:29, Otared Kavian  wrote:
>> 
>> Hi Hans,
>> 
>> I tried to update to your latest version (for MacOS Arm1) with the command 
>>  sh install.sh
>> but obtained the following message and no update:
>> 
>> xattr: bin/mtxrun: No such xattr: com.apple.quarantine
>> install.sh: line 110: 62611 Killed: 9   $PWD/bin/mtxrun --script 
>> ./bin/mtx-install.lua --update --server="$LMTXSERVER" 
>> --instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase 
>> --extras="$LMTXEXTRAS" $@
>> 
>> 
>> Since I have a working (and backed up…) version 2024-01-18, there is no 
>> absolute necessity for me to update right now, but I wanted just to inform 
>> you about the issue I encountered. I wonder whether other MacOS users have 
>> had such a problem.
>> 
>> Best regards: Otared
>> 
>>> On 23 Jan 2024, at 10:09, Hans Hagen via ntg-context  
>>> wrote:
>>> 
>>> On 1/20/2024 10:32 AM, Ursula Hermann wrote:
>>>> 32 bits Windows download does not work, because 404 report.
>>> 
>>> i uploaded a win32 installer (for now we only keep 32 bit win but once all 
>>> users are on 64 bit ...)
>>> 
>>> the current upload is as usual work in progress
>>> 
>>> 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 / 
>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>>> archive  : https://github.com/contextgarden/context
>>> wiki : https://wiki.contextgarden.net
>>> ___
>> 
>> Otared Kavian
>> e-mail: ota...@gmail.com
>> Phone: +33 6 88 26 70 95
>> 
>> 
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>> archive  : https://github.com/contextgarden/context
>> wiki : https://wiki.contextgarden.net
>> ___________
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: upload

2024-01-23 Thread Otared Kavian
Hi Dr Hans Van der Meer,

Thank you for your help. It seems that since January 18 something has changed 
(either on MacOS or on the install script), because the last time I could 
update without doing anything more than sh install.sh.

In any case I checked xattr with
which xattr
and got:
/usr/bin/xattr

Then I did 
xattr -d com.apple.quarantine /Applications/context-osx-arm64/install.sh
and got:
xattr: /Applications/context-osx-arm64/install.sh: No such xattr: 
com.apple.quarantine

Invoking again sh install.sh resulted in the error message I reported 
previously.

Best regards: Otared




> On 23 Jan 2024, at 21:08, Hans van der Meer via ntg-context 
>  wrote:
> 
> Just did 'sh install.sh' a moment ago without problems.
> In the past I had to do xattr -d com.apple.quarantaine path-to-executable 
> once but not anymore.
> I think the xattr resides in the Apple command tools. Are you sure you have 
> them?
> 
> yours sincerely
> dr. Hans van der Meer
> 
> 
> 
>> On 23 Jan 2024, at 17:29, Otared Kavian  wrote:
>> 
>> Hi Hans,
>> 
>> I tried to update to your latest version (for MacOS Arm1) with the command 
>>  sh install.sh
>> but obtained the following message and no update:
>> 
>> xattr: bin/mtxrun: No such xattr: com.apple.quarantine
>> install.sh: line 110: 62611 Killed: 9   $PWD/bin/mtxrun --script 
>> ./bin/mtx-install.lua --update --server="$LMTXSERVER" 
>> --instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase 
>> --extras="$LMTXEXTRAS" $@
>> 
>> 
>> Since I have a working (and backed up…) version 2024-01-18, there is no 
>> absolute necessity for me to update right now, but I wanted just to inform 
>> you about the issue I encountered. I wonder whether other MacOS users have 
>> had such a problem.
>> 
>> Best regards: Otared
>> 
>>> On 23 Jan 2024, at 10:09, Hans Hagen via ntg-context  
>>> wrote:
>>> 
>>> On 1/20/2024 10:32 AM, Ursula Hermann wrote:
>>>> 32 bits Windows download does not work, because 404 report.
>>> 
>>> i uploaded a win32 installer (for now we only keep 32 bit win but once all 
>>> users are on 64 bit ...)
>>> 
>>> the current upload is as usual work in progress
>>> 
>>> 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 / 
>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>>> archive  : https://github.com/contextgarden/context
>>> wiki : https://wiki.contextgarden.net
>>> ___
>> 
>> Otared Kavian
>> e-mail: ota...@gmail.com
>> Phone: +33 6 88 26 70 95
>> 
>> 
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>> archive  : https://github.com/contextgarden/context
>> wiki : https://wiki.contextgarden.net
>> ___________
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: upload

2024-01-23 Thread Otared Kavian
Hi Hans,

I tried to update to your latest version (for MacOS Arm1) with the command 
sh install.sh
but obtained the following message and no update:

xattr: bin/mtxrun: No such xattr: com.apple.quarantine
install.sh: line 110: 62611 Killed: 9   $PWD/bin/mtxrun --script 
./bin/mtx-install.lua --update --server="$LMTXSERVER" 
--instance="$LMTXINSTANCE" --platform="$PLATFORM" --erase 
--extras="$LMTXEXTRAS" $@


Since I have a working (and backed up…) version 2024-01-18, there is no 
absolute necessity for me to update right now, but I wanted just to inform you 
about the issue I encountered. I wonder whether other MacOS users have had such 
a problem.

Best regards: Otared

> On 23 Jan 2024, at 10:09, Hans Hagen via ntg-context  
> wrote:
> 
> On 1/20/2024 10:32 AM, Ursula Hermann wrote:
>> 32 bits Windows download does not work, because 404 report.
> 
> i uploaded a win32 installer (for now we only keep 32 bit win but once all 
> users are on 64 bit ...)
> 
> the current upload is as usual work in progress
> 
> 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 / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: upload

2024-01-19 Thread Otared Kavian
Hi Pablo,

Indeed the two URL you mention result t a 404 error. I guess the correct URL is
 https://www.pragma-ade.nl <https://www.pragma-ade.nl/>

and there one may go to the appropriate tab.

Best regards: Otared

> On 19 Jan 2024, at 18:34, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> On 1/18/24 20:43, Denis Maier via ntg-context wrote:
>>> *Von:*Alain Delmotte 
>>> *Gesendet:* Donnerstag, 18. Januar 2024 20:04
>>> *An:* ntg-context@ntg.nl
>>> *Betreff:* [NTG-context] Re: upload
>>> [...]
>>> When I go to https://www.pragma-ade.nl, I get an 404 Not Found
>>> message, so I can't download the new upload !!
>>> Works here.
> 
> Hi Denis,
> 
> I get a 404 error for both https://www.pragma-ade.nl/install.htm and
> https://www.pragma-ade.com/install.htm.
> 
> I can update my existing installed version, but I wouldn’t be able to
> install a brand new distribution.
> 
> Do you reach any of the urls included in my first paragraph?
> 
> Many thanks for your help,
> 
> Pablo
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: upload

2024-01-18 Thread Otared Kavian
Dear Dalyoung, dear Mikael,

I installed anew the whole LMTX tree and now everything is working fine. 
I don’t know whether this is related or not, somehow in my previous tree I had 
a directory (or folder in the MacOS language) named « texmf-osx-64 » instead « 
texmf-osx-arm64 » and this apparently had consequences.

In any case everything works fine now.

Thanks to Hans, Mikael and all the people on this list!

Best regards: Otared

> On 18 Jan 2024, at 08:17, Jeong Dal via ntg-context  
> wrote:
> 
> Dear Otared,
> 
> I installed upload version today.
> And, your example,
> 
> \starttext
> The derivative of $f$ is denoted $f'$ or $f^\prime$ or is it $f^'$\dots
> \stoptext
> 
> works well.
> 
> I think that you will have the same good result.
> 
> Best wishes,
> 
> Dalyoung
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> _______

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: upload

2024-01-17 Thread Otared Kavian
Hi Hans,Thanks for the new upload which solves the math alignment mechanism. However I noticed that the classic notation $f’$ for the derivative does not work anymore, while $f^\prime$ or $f^’$ does.\starttextThe derivative of $f$ is denoted $f'$ or $f^\prime$ or is it $f^'$\dots\stoptextBest regards: Otared

brouillon.pdf
Description: Adobe PDF document
On 18 Jan 2024, at 00:13, Hans Hagen  wrote:Hi,I uploaded a new version (there is some work in progress but it probably doesn't affect anyone).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 / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)archive  : https://github.com/contextgarden/contextwiki : https://wiki.contextgarden.net___
Otared Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to obtain older versions of LMTX?

2024-01-17 Thread Otared Kavian
Hi Gavin,

Thanks for the information: since I mostly use the stand alone ConTeXt, I have 
not looked into my TeX Live tree recently. 
Now I’ll do it, but Hans released a new version of LMTX which fixes the issue I 
was reporting.

Thanks again for your help.
Best regards: Otared

> On 18 Jan 2024, at 00:25, Gavin via ntg-context  wrote:
> 
> Hi Otared,
> 
> Yes, it contains LMTX. I am using TeX Live 2023 right now for a project, and 
> it reports "ConTeXt  ver: 2023.05.05 18:36 LMTX”. 
> 
> Gavin
> 
>> On Jan 17, 2024, at 3:13 PM, Otared Kavian  wrote:
>> 
>> Hi Gavin,
>> 
>> Thanks for your reply. Does TeX Live contain LuaMetaTeX (LMTX)?
>> That is because I need LMTX to typeset a presentation for which most of the 
>> content is ready, but using features from LMTX…
>> 
>> Best regards: Otared
>> 
>> 
>>> On 17 Jan 2024, at 23:01, Gavin via ntg-context  wrote:
>>> 
>>> Hi Otared
>>> 
>>> I use TeX Live as a convenient fall-back. I am also using MacOS ARM.
>>> 
>>> Gavin
>>> 
>>> 
>>>> On Jan 17, 2024, at 2:52 PM, Otared Kavian  wrote:
>>>> 
>>>> Hi all,
>>>> 
>>>> In order to circumvent a bug in the latest versions (2023-09-26 and 
>>>> 2024-01-08) of LMTX regarding math alignments, I am trying to get an older 
>>>> version of LMTX (from before September 2023) for MacOS ARM. Does any one 
>>>> know how to proceed?
>>>> 
>>>> Thanks in advance.
>>>> 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 / 
>>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>>>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>>>> archive  : https://github.com/contextgarden/context
>>>> wiki : https://wiki.contextgarden.net
>>>> ___
>>> 
>>> ___
>>> If your question is of interest to others as well, please add an entry to 
>>> the Wiki!
>>> 
>>> maillist : ntg-context@ntg.nl / 
>>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>>> archive  : https://github.com/contextgarden/context
>>> wiki : https://wiki.contextgarden.net
>>> ___
>> 
>> Otared Kavian
>> e-mail: ota...@gmail.com
>> Phone: +33 6 88 26 70 95
>> 
>> 
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>> archive  : https://github.com/contextgarden/context
>> wiki : https://wiki.contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to obtain older versions of LMTX?

2024-01-17 Thread Otared Kavian
Hi Hans,

Many thanks for your attention !
I just saw that you uploaded a new version, which fixes the issue.
I am speechless to thank you…

Best regards: Otared

> On 17 Jan 2024, at 23:47, Hans Hagen  wrote:
> 
> On 1/17/2024 11:13 PM, Otared Kavian wrote:
>> Hi Gavin,
>> Thanks for your reply. Does TeX Live contain LuaMetaTeX (LMTX)?
>> That is because I need LMTX to typeset a presentation for which most of the 
>> content is ready, but using features from LMTX…
> You can try to fetch
> 
>   https://github.com/contextgarden/context
> 
> as that is still the old one (it should be possible to get by push date but 
> i'm not fluent in git).
> 
> Make a copy of your tex tree and copy teh donloaded files over it and see if 
> a format can be made.
> 
> Anyway, I'lll see if I can update one of these days.
> 
> 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 / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: How to obtain older versions of LMTX?

2024-01-17 Thread Otared Kavian
Hi Gavin,

Thanks for your reply. Does TeX Live contain LuaMetaTeX (LMTX)?
That is because I need LMTX to typeset a presentation for which most of the 
content is ready, but using features from LMTX…

Best regards: Otared


> On 17 Jan 2024, at 23:01, Gavin via ntg-context  wrote:
> 
> Hi Otared
> 
> I use TeX Live as a convenient fall-back. I am also using MacOS ARM.
> 
> Gavin
> 
> 
>> On Jan 17, 2024, at 2:52 PM, Otared Kavian  wrote:
>> 
>> Hi all,
>> 
>> In order to circumvent a bug in the latest versions (2023-09-26 and 
>> 2024-01-08) of LMTX regarding math alignments, I am trying to get an older 
>> version of LMTX (from before September 2023) for MacOS ARM. Does any one 
>> know how to proceed?
>> 
>> Thanks in advance.
>> 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 / 
>> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
>> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
>> archive  : https://github.com/contextgarden/context
>> wiki : https://wiki.contextgarden.net
>> ___
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] How to obtain older versions of LMTX?

2024-01-17 Thread Otared Kavian
Hi all,

In order to circumvent a bug in the latest versions (2023-09-26 and 2024-01-08) 
of LMTX regarding math alignments, I am trying to get an older version of LMTX 
(from before September 2023) for MacOS ARM. Does any one know how to proceed?

Thanks in advance.
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 / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
Hi Mikael,

Thank you so much for your attention and help.
Is there a way to get a working version before Hans does a new upload? Or even 
a temporary patch?
This is because I have to prepare a presentation for next Monday and I have to 
use extensively math align…

Best regards: Otared

> On 17 Jan 2024, at 14:19, Mikael Sundqvist  wrote:
> 
> On Wed, Jan 17, 2024 at 2:16 PM Otared Kavian  wrote:
>> 
>> Dear Dalyoung,
>> 
>> Thank you for testing, which shows that there is a bug somewhere.
>> Mikael who follows the math stuff is aware of the problem, and I guess Hans 
>> will be informed.
>> 
> 
> Since it is working locally here, It will likely be fixed
> automatically with the next upload.
> 
> /Mikael
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
Dear Dalyoung,

Thank you for testing, which shows that there is a bug somewhere.
Mikael who follows the math stuff is aware of the problem, and I guess Hans 
will be informed.

Best wishes for 2024: Otared

> On 17 Jan 2024, at 14:10, Jeong Dal via ntg-context  
> wrote:
> 
> Dear Otared,
> 
> I got the same output in which there is an overlap of the formula on the last 
> line of the paragraph.  The following line shows the version of my 
> installation.
> 
> system  > 
> system  > ConTeXt  ver: 2024.01.08 11:23 LMTX  fmt: 2024.1.17  int: 
> english/english
> system  > 
> 
> Best wishes,
> 
> Dalyoung
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> _______

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
Hi Mikael,

I installed anew the latest version and I get still the same bizarre result 
with math alignment.

Please can someone on the list typeset the following in order to see whether 
the result is correct or not ?

%begin 240117-1-bis.tex

\definemathsimplealign[alignedcases]
[left={\startmathfenced[cases]},
right=\stopmathfenced,
align={1:right,2:left,3:left},
strut=yes]

\setupformula
  [location=left]

\starttext

\samplefile{knuthmath}

\startplaceformula
\startformula
\startalignedcases
\NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0
  \NC \mtext{bla bla bla} \NR
\NC u(x,0)   \NC = 
u_0(x) \NC \mtext{bla bla} \NR
  \NC u(t,\sigma)  \NC = 0  \NC \mtext{bla 
bla bla bla} \NR
\stopalignedcases
\stopformula
\stopplaceformula

\samplefile{knuthmath}

\startplaceformula
\startformula

\startalign[location=packed,n=2,m=2,align={1:right,2:left},fences=cases]
\NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0
  \NC \NC \mtext{bla bla bla} \NR
\NC u(x,0)   \NC = 
u_0(x) \NC \NC \mtext{bla bla} \NR
  \NC u(t,\sigma)  \NC = 0  \NC \NC 
\mtext{bla bla bla bla} \NR
\stopalign
\stopformula
\stopplaceformula

\samplefile{knuthmath}

\stoptext
% end 240117-1-bis.tex

Thanks in advance: Otared


> On 17 Jan 2024, at 12:09, Mikael Sundqvist  wrote:
> 
> Could your installation be broken?
> 
> /Mikael
> 
> Den ons 17 jan. 2024 11:41Otared Kavian  <mailto:ota...@gmail.com>> skrev:
> Hi Mikael,
> 
> Actually it seems that the math alignment stuff has been broken even in 
> version 2023-09-26, since I get also something incorrect, as you can see in 
> the attached PDF.
> 
> Many thanks for your help: Otared
> 
> 
> 
>> On 17 Jan 2024, at 11:06, Mikael Sundqvist > <mailto:mic...@gmail.com>> wrote:
>> 
>> Hi,
>> 
>> Then there was a problem with the last update. Maybe there will be a new 
>> upload soon that works better for you.
>> 
>> /Mikael
>> 
>> Den ons 17 jan. 2024 10:37Otared Kavian > <mailto:ota...@gmail.com>> skrev:
>> Hi Mikael,
>> 
>> Thank you for your reply. When I typeset the example you sent me, that is
>> 
>> %begin 240117-1-bis.tex
>> 
>> \definemathsimplealign[alignedcases]
>>  [left={\startmathfenced[cases]},
>>  right=\stopmathfenced,
>>  align={1:right,2:left,3:left},
>>  strut=yes]
>> 
>> \setupformula
>>   [location=left]
>> 
>> \starttext
>> 
>> \samplefile{knuthmath}
>> 
>> \startplaceformula
>>  \startformula
>>  \startalignedcases
>>  \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0
>>   \NC \mtext{bla bla bla} \NR
>>  \NC u(x,0)   \NC = 
>> u_0(x) \NC \mtext{bla bla} \NR
>>   \NC u(t,\sigma)  \NC = 0  \NC 
>> \mtext{bla bla bla bla} \NR
>>  \stopalignedcases
>>  \stopformula
>> \stopplaceformula
>> 
>> \samplefile{knuthmath}
>> 
>> \startplaceformula
>>  \startformula
>>  
>> \startalign[location=packed,n=2,m=2,align={1:right,2:left},fences=cases]
>>  \NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0
>>   \NC \NC \mtext{bla bla bla} \NR
>>  \NC u(x,0)   \NC = 
>> u_0(x) \NC \NC \mtext{bla bla} \NR
>>   \NC u(t,\sigma)  \NC = 0  \NC \NC 
>> \mtext{bla bla bla bla} \NR
>>  \stopalign
>>  \stopformula
>> \stopplaceformula
>> 
>> \samplefile{knuthmath}
>> 
>> \stoptext
>> % end 240117-1-bis.tex
>> 
>> I get something different than the PDF you sent me: the formulas run into 
>> the text just above them, as you can see in the attached PDF. I am using 
>> ConTeXt LMTX version 2024.01.08 on MacOS 11.7.10. I don’t see what is wrong 
>> with my installation…
>> 
>> Best regards: Otared
>> 
>> 
>> 
>>> On 17 Jan 2024, at 09:47, Mikael Sundqvist >> <mailto:mic...@gmail.com>> wrote:
>>> 
>>> Hi Otared,
>>> 
>>> I'm not sure how you get that code, si

[NTG-context] Re: Math alignment issue

2024-01-17 Thread Otared Kavian
Hi Mikael,Thank you for your reply. When I typeset the example you sent me, that is%begin 240117-1-bis.tex\definemathsimplealign[alignedcases]		[left={\startmathfenced[cases]},		right=\stopmathfenced,		align={1:right,2:left,3:left},		strut=yes]\setupformula  [location=left]\starttext\samplefile{knuthmath}\startplaceformula	\startformula		\startalignedcases			\NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0      \NC \mtext{bla bla bla}     \NR			\NC u(x,0)                                   \NC = u_0(x) \NC \mtext{bla bla}         \NR      \NC u(t,\sigma)                              \NC = 0      \NC \mtext{bla bla bla bla} \NR		\stopalignedcases	\stopformula\stopplaceformula\samplefile{knuthmath}\startplaceformula	\startformula		\startalign[location=packed,n=2,m=2,align={1:right,2:left},fences=cases]			\NC u'(t) - \nabla \cdot (a(x)\nabla u) + Vu \NC = 0      \NC \NC \mtext{bla bla bla}     \NR			\NC u(x,0)                                   \NC = u_0(x) \NC \NC \mtext{bla bla}         \NR      \NC u(t,\sigma)                              \NC = 0      \NC \NC \mtext{bla bla bla bla} \NR		\stopalign	\stopformula\stopplaceformula\samplefile{knuthmath}\stoptext% end 240117-1-bis.texI get something different than the PDF you sent me: the formulas run into the text just above them, as you can see in the attached PDF. I am using ConTeXt LMTX version 2024.01.08 on MacOS 11.7.10. I don’t see what is wrong with my installation…Best regards: Otared

240117-1-bis.pdf
Description: Adobe PDF document
On 17 Jan 2024, at 09:47, Mikael Sundqvist <mic...@gmail.com> wrote:Hi Otared,I'm not sure how you get that code, since you do not show the source.From last upload, there is location=packed for align, so now that canbe used "inline" in formulas. See attached. I hope it helps.Best, MikaelOn Tue, Jan 16, 2024 at 9:41 PM Otared Kavian <ota...@gmail.com> wrote:Hi Mickael,I wish you a happy new year !I apologize for writing you outside the mailing list: this is du eto the fact that I am attaching two screenshots in order to show the problem I encounter, and these documents cannot go through the mailing list.In a document written a year and half ago I have the following definition:\definemathmatrix[alignedcases][align={right,left,left},distance=3pt,left={\left\{},right={\right.},style=\displaystyle]in order to typeset multi-lines formulas regrouped with a left brace. This is analogous to math-cases, but I need three columns instead of two.When the alignment in maths changed I changed the above definition to the following:\definemathsimplealign[alignedcases][left={\startmathfenced[cases]},right=\stopmathfenced,align={1:right,2:left,3:left},strut=yes]The result of the typesetting with LMTX in 2022 is shown in the attached document « math-align-2022.pdf »,But when the same documentis  typeset with the latest version from 2024-01-08, it does not show the formulas correctly, as one can see in the attached screenshot « math-align-2024-01-08.pdf ».I cannot reproduce the issue on a short document, but since there have been some changes in the way the math alignment is treated now, I wonder whether you can help me how to change my definitions accordingly.In order to let th elist be informed, once the issue may be solved without the screenshots, I may post a message there.Thanks in advance, and best regards: Otared<240117-1.mkxl><240117-1.pdf>
Otared Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: Strange behavior with anglestriped()

2023-11-19 Thread Otared Kavian
Hi Fabrice,It seems to me the colors are the same, although they may appear different at first sight because the « with » of the lines are different (the width is larger in the lower rectangle).I attach the PDF created with your code.Best regards: Otared

hachage-couleur.pdf
Description: Adobe PDF document
On 19 Nov 2023, at 18:56, Fabrice Couvreur  wrote:Hi,I don't understand why the hatching of the two rectangles is not the same color. Thanks for your help.Fabrice\starttext        \setupbodyfont[8pt]        \startMPcode           path p, q, r, b ;                    z[0] = (2cm,0cm) ;           z[1] = (2cm,2cm) ;           z[2] = (0cm,2cm) ;           p := unitsquare xyscaled (9cm, 5cm) ;           q := llcorner p--z[0]--z[1]--z[2]--cycle ;           r := unitsquare xyscaled (7cm,3cm) shifted(2cm,2cm) ;           b := z[2]--z[1]--ulcorner r--urcorner p--lrcorner r--z[1]--           z[0]--llcorner p--cycle ;                                draw b anglestriped (1,45,2) withcolor cyan;           draw q anglestriped (1,45,2) withcolor cyan;                      draw p ;                      label.llft("A", p) ;           label.lrt("D", p) ;           label.ulft("B", p) ;           label.urt("C", p) ;           label.lft("M", z[2]) ;           label.ulft("N", z[1]) ;           label.bot("P", z[0]) ;           label.top("J", ulcorner r) ;           label.rt("I", lrcorner r) ;           label.bot(btex $x$ etex,(llcorner p+z[0])/2);           label.lft(btex $x$ etex,(llcorner p+z[2])/2);        \stopMPcode\stoptext
___If your question is of interest to others as well, please add an entry to the Wiki!maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nlwebpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)archive  : https://github.com/contextgarden/contextwiki : https://wiki.contextgarden.net___
Otared Kaviane-mail: ota...@gmail.comPhone: +33 6 88 26 70 95

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: sidebar and marginrule not working

2023-10-24 Thread Otared Kavian
Hi Idris,

Your code works fine on my machine (version 2023.09.26 18:19 LMTX on MacOS 
11.7.10). I see both bars correctly.

Best regards: Otared

> On 24 Oct 2023, at 02:24, Hamid,Idris  wrote:
> 
> Dear gang,
> 
> The appears to be something wrong with the sidebar and marginrule mechanisms. 
> MWE:
> 
> ==
> % ConTeXt  ver: 2023.09.26 18:19 LMTX
> 
> \setupmarginrule[1][rulecolor=darkred] 
> 
> \definesidebar[Sidebar][rulethickness=0.28pt,distance=3pt,rulecolor=darkgreen]
> \setupsidebar[rulecolor=darkgreen] 
> 
> \starttext 
> \startmarginrule[1] 
> \input ward 
> \stopmarginrule 
> 
> \blank 
> 
> \startsidebar[Sidebar] 
> \input zapf 
> \stopsidebar 
> \stoptext
> ==
> 
> In the output, either
> 
> i)  the rules do not appear at all (most attempts); or
> ii) the rules appear for a split-second then disappear (using sumatrapdf as 
> the viewer, so the pdf updates on the fly).
> 
> Is is a bug?
> 
> A second question: Is either mechanism preferable over the other? That is: In 
> LMTX, what is the best mechanism to use? 
> 
> Thank you in advance for any guidance.
> 
> Best wishes
> -- 
> Idris Samawi Hamid, Professor
> Department of Philosophy
> Colorado State University
> Fort Collins, CO 80523
> 
> ___
> 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> / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl 
> <https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl>
> webpage  : https://www.pragma-ade.nl <https://www.pragma-ade.nl/> / 
> https://context.aanhet.net <https://context.aanhet.net/> (mirror)
> archive  : https://github.com/contextgarden/context 
> <https://github.com/contextgarden/context>
> wiki : https://wiki.contextgarden.net <https://wiki.contextgarden.net/>
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___


[NTG-context] Re: wiki update: Modules

2023-09-30 Thread Otared Kavian
Hi Hraban,

Thank you for your updating of the modules stuff.
As far as I remember the matrix features are not related to any modules, but 
rather are part of LMTX. In nay case next week I will look at the page 

https://wiki.contextgarden.net/Matrix_in_maths 
<https://wiki.contextgarden.net/Matrix_in_maths>

and verify that eveything on that page works fine and is up to date.

Best regards: Otared

> On 30 Sep 2023, at 13:53, Henning Hraban Ramm  wrote:
> 
> I updated the list of included modules in 
> https://wiki.contextgarden.net/Modules and tried to understand what each does.
> 
> If you know matrices, could you perhaps update the page 
> https://wiki.contextgarden.net/Matrix_in_maths to include the matrix module 
> and the latest enhancements?
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___________

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Question about building an array of values with Lua

2023-08-24 Thread Otared Kavian

> On 24 Aug 2023, at 06:03, Wolfgang Schuster 
>  wrote:
>> […]
> 
> I would drop the column check in this case.
> 
> for i = 0,9 do
> context.startxrow()
> context.startxcell()
> context(i)
> context.stopxcell()
> context.startxcell()
> context(math.mod(i*i,10))
> context.stopxcell()
> context.startxcell()
> context(i)
> context.stopxcell()
> context.startxcell()
> context(math.mod(2*i*i,10))
> context.stopxcell()
> context.stopxrow()
> end
> 
> Wolfgang


Indeed this is much more elegant… It feels so good to be on this list and learn 
from such insights :-)

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: Question about building an array of values with Lua

2023-08-23 Thread Otared Kavian
Hi Fabrice,

As Wolfgang points out, it is indeed possible to fill-in your table with Lua: 
maybe you were wondering how to fill the columns 2, 3 and 4. In this case you 
need to use the Lua function math.mod as in the following, which is a completed 
version of what Wolfgang sent:

%% begin filling-with-lua.tex
\starttext

\startluacode
context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = 
"black" }
context.startxrow{ background = "color", backgroundcolor = "lightgray" }
context.startxcell{ nx = 4 }
context("Units digit of")
context.stopxcell()
context.stopxrow()
context.startxrow()
context.startxcell{ width = "1cm" }
context.im("a")
context.stopxcell()
context.startxcell{ width = "1cm" }
context.im("a^2")
context.stopxcell()
context.startxcell{ width = "1cm" }
context.im("b")
context.stopxcell()
context.startxcell{ width = "1cm" }
context.im("2b^2")
context.stopxcell()
context.stopxrow()
for i = 0,9 do
context.startxrow()
for j = 1,4 do
context.startxcell()
if j == 1 then
context(i)
elseif j == 2 then
context(math.mod(i*i,10))
  elseif j == 3 then
context(i)
  else
context(math.mod(2*i*i,10))
end
context.stopxcell()
end
context.stopxrow()
end
context.stopxtable()
\stopluacode

\stoptext
%% end filling-with-lua.tex

Best regards: Otared

> On 23 Aug 2023, at 17:48, Wolfgang Schuster 
>  wrote:
> 
> Fabrice Couvreur schrieb am 23.08.2023 um 19:28:
>> Hi,
>> I'm trying to fill an array using lua. So far it works but then I don't know 
>> if it's possible.
> 
> Where do you have problems (look into cld-mkiv.pdf for hins)?
> 
> \starttext
> 
> \startluacode
> context.startxtable{ align = "middle,lohi", bodyfont = "9pt", framecolor = 
> "black" }
> context.startxrow{ background = "color", backgroundcolor = "lightgray" }
> context.startxcell{ nx = 4 }
> context("Units digit of")
> context.stopxcell()
> context.stopxrow()
> context.startxrow()
> context.startxcell{ width = "1cm" }
> context.im("a")
> context.stopxcell()
> context.startxcell{ width = "1cm" }
> context.im("a^2")
> context.stopxcell()
> context.startxcell{ width = "1cm" }
> context.im("b")
> context.stopxcell()
> context.startxcell{ width = "1cm" }
> context.im("2b^2")
> context.stopxcell()
> context.stopxrow()
> for i = 0,9 do
> context.startxrow()
> for j = 1,4 do
> context.startxcell()
> if j == 1 then
> context(i)
> end
> context.stopxcell()
> end
> context.stopxrow()
> end
> context.stopxtable()
> \stopluacode
> 
> \stoptext
> 
> Wolfgang
> 
> _______
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

[NTG-context] Re: ideas for ConTeXt stickers?

2023-08-08 Thread Otared Kavian

> On 7 Aug 2023, at 20:25, Henning Hraban Ramm  wrote:
> […]
> The TeX community, mostly consisting of LaTeX users, is joking about LaTeX 
> vs. latex all the time. At least the part of the community that meets at open 
> source conferences and hacker camps.
> 

Indeed, those old enough, would remember that the book « The Joy of TeX, a 
Gourmet Guide to Typesetting with the AMSTeX Macro Package » by Michael Spivak 
was written as a parody of « The Joy of Sex: A Gourmet Guide to Lovemaking » 
appeared in 1972…


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___

Re: [NTG-context] Protect the lettrine

2023-06-13 Thread Otared Kavian via ntg-context
Hi,

Adding \hfill\break to the short line solves the issue, but probably there is a 
better way to achieve the correct result.

\setupinitial[n=2]

\setuphead[chapter][
  after={\placeinitial},
  page=no,
]

\starttext
\chapter{one}
Kermit Ruffins \hfill\break % <---

Meet me at the second line.

\chapter{two}
\input knuth

Meet me at the second line.
\stoptext


Best regards: Otared

> On 13 Jun 2023, at 04:43, Thangalin via ntg-context  
> wrote:
> 
> I'm using KeenWrite Themes (specifically, Boschet) to typeset a chapter 
> wherein the first letter is a lettrine. When the first paragraph is too 
> short, the second paragraph overlaps the lettrine.
> 
> % SOT
> \setupinitial[n=2]
> 
> \setuphead[chapter][
>   after={\placeinitial},
>   page=no,
> ]
> 
> \starttext
> \chapter{one}
> Kermit Ruffins
> 
> Meet me at the second line.
> 
> \chapter{two}
> \input knuth
> 
> Meet me at the second line.
> \stoptext
> % EOT
> 
> Produces: https://i.stack.imgur.com/kNDqw.png 
> <https://i.stack.imgur.com/kNDqw.png>
> 
> How would you instruct ConTeXt to "protect" the lettrine such that regardless 
> of whether the first paragraph spans multiple lines, a short first paragraph 
> will still prevent the second paragraph from overlapping the lettrine?
> 
> That is, the setups should work in both cases, without any knowledge about 
> the first paragraph length being added between \starttext and \stoptext.
> 
> ConTeXt LMTX version: 2023.06.04 18:58
> 
> Thank you!
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] installer

2023-05-07 Thread Otared Kavian via ntg-context
Hi Alex,

You are right ! I have an alias for the mtxrun in the 
/context-osx-arm64/tex/texmf-osx-64/bin/
folder, but the alias is in an old bashrc file, while I was issuing the command 
in zsh…

Thanks for the help !

Best regards: Otared

> On 7 May 2023, at 17:11, Alexandre Christe  wrote:
> 
> Hi Otared,
> 
> I encountered the same issue the other day. Could it be that you run mtxrun 
> from the /bin folder instead of /tex/texmf-YOUR_ARCH/bin/ ? Somehow they seem 
> to be different.
> 
> Best regards,
> Alex
> Le 7 mai 2023 à 17:07 +0200, Otared Kavian via ntg-context 
> , a écrit :
>> Hi Hans,
>> 
>> Updating to current version: 2023.05.07 16:33 and issuing
>> 
>> mtxrun --script install-modules
>> 
>> I get:
>> 
>> mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua’
>> 
>> 
>> Best regards: Otared
>> 
>>> On 7 May 2023, at 16:59, Hans Hagen via ntg-context  
>>> wrote:
>>> 
>>> On 5/7/2023 4:43 PM, Floris van Manen via ntg-context wrote:
>>>> $ mtxrun --script install-modules --list
>>>> resolvers | globbing | confusing filename, name: 'CHANGELOG', lower: 
>>>> 'changelog', already: 'ChangeLog'
>>>> mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
>>> hm, it should be in the zip, adn therefore installed, so can others confirm 
>>> this?
>>> 
>>> 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 / 
>>> https://www.ntg.nl/mailman/listinfo/ntg-context
>>> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
>>> archive : https://bitbucket.org/phg/context-mirror/commits/
>>> wiki : https://contextgarden.net
>>> ___
>> 
>> Otared Kavian
>> e-mail: ota...@gmail.com
>> Phone: +33 6 88 26 70 95
>> 
>> 
>> 
>> 
>> ___
>> If your question is of interest to others as well, please add an entry to 
>> the Wiki!
>> 
>> maillist : ntg-context@ntg.nl / 
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] installer

2023-05-07 Thread Otared Kavian via ntg-context
Hi Hans,

Updating to current version: 2023.05.07 16:33 and issuing

mtxrun --script install-modules

I get:

mtxrun  | unknown script 'install-modules.lua' or 
'mtx-install-modules.lua’


Best regards: Otared

> On 7 May 2023, at 16:59, Hans Hagen via ntg-context  
> wrote:
> 
> On 5/7/2023 4:43 PM, Floris van Manen via ntg-context wrote:
>> $ mtxrun --script install-modules --list
>> resolvers   | globbing | confusing filename, name: 'CHANGELOG', lower: 
>> 'changelog', already: 'ChangeLog'
>> mtxrun  | unknown script 'install-modules.lua' or 
>> 'mtx-install-modules.lua'
> hm, it should be in the zip, adn therefore installed, so can others confirm 
> this?
> 
> 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Kaktovik numerals

2023-04-18 Thread Otared Kavian via ntg-context
Great indeed ! And the quick answer by Hans impressive, as usual…
What a great community !

Best regards: Otared

> On 18 Apr 2023, at 10:57, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> I just came across this thread about the base-20 system of the Inuit people 
> and the numerals invented for it in the 1990s:
> https://mathstodon.xyz/@johncarlosbaez/110215432175491555
> 
> This makes simple calculations just beautiful.
> 
> Hraban
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> _______

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Did dotless i disappear ?

2023-03-13 Thread Otared Kavian via ntg-context
Hi Pablo, Hans, Wolfgang,

Indeed, thanks to you I see that in ConTeXt there exist plenty of solutions for 
the problem I reported. That’s really impressive !

Best regards : Otared

> On 13 Mar 2023, at 20:19, Hans Hagen via ntg-context  
> wrote:
> 
> On 3/13/2023 4:28 PM, Otared Kavian via ntg-context wrote:
>> Hi Hans,
>> I just noticed that the dotless i « \i » is not anymore recognized in 
>> ConTeXt. Of course one can nowadays find other ways to have it typeset, but 
>> in old documents which are included as inputs one has to correct this 
>> manually (for instance in French « connaître » was typed as « conn\^{\i}tre 
>> »).
>> Here is an example.
>> \starttext
>> Bío Bío (works fine…)
>> B\'{\i}o B\'{\i}o % this gives an error
>> \stoptext
> I'll add checking for the \i too. It's all part of a parser. Think
> 
> \chr {e acute}
> \chr {i circumflex}
> \^{i} \^i \^{\i}
> \^{a} \"{a}
> \withcircumflex{a}
> \withdiaeresis{a}
> 
> a bit messy code due to reuse of all kin dof mechanisms.
> 
> 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Did dotless i disappear ?

2023-03-13 Thread Otared Kavian via ntg-context
Hi Hans,

I just noticed that the dotless i « \i » is not anymore recognized in ConTeXt. 
Of course one can nowadays find other ways to have it typeset, but in old 
documents which are included as inputs one has to correct this manually (for 
instance in French « connaître » was typed as « conn\^{\i}tre »).

Here is an example.

\starttext
Bío Bío (works fine…)

B\'{\i}o B\'{\i}o % this gives an error

\stoptext

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Bug in maths environment: thematrix

2023-03-12 Thread Otared Kavian via ntg-context


> On 12 Mar 2023, at 18:04, Hans Hagen via ntg-context  
> wrote:
>> […]
> i have a fix but there will be no uploads till texlive has been frozen / 
> packages
> 
> Hans

Thanks Hans ! There is no problem for waiting…

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Bug in maths environment: thematrix

2023-03-09 Thread Otared Kavian via ntg-context

Hi Hans,

I noticed that in some situations the command \thematrix does not show all its 
arguments correctly: some parts are omitted in the typeset formula. In some 
occasions adding some groupings solves the issue, but not always. I noticed 
this bug two weeks ago, but could not produce a minimal example until now…

Please see below, in particular the output for the matrices M_1, M_2 and M_3…

Best regards: Otared

% begin bug-thematrix.tex
\starttext
\startformula
M_{1}(t)
:= \thematrix{{\rm e}^s ; {\rm e}^t}, \qquad
B_{1}(t) := \thematrix{1 , {\rm e}^t},
\stopformula

\startformula
M_{2}(t)
:= \thematrix{{{\rm e}^s} , {{\rm e}^t}}, \qquad
B_{2}(t) := \thematrix{0 ; {{\rm e}^t}},
\stopformula


\startformula
M_{3}(t)
= \thematrix{{\rm e}^s, {\rm e}^t ; 0 , {\rm e}^t}.
\stopformula


\startformula
M_{4}(t)
= \thematrix{1, {{\rm e}^t} + 1 ; 0 , {{\rm e}^t}}.
\stopformula

\stoptext
% end bug-thematrix.tex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Can ConTeXt display a simple itemized list as a comma-separated list?

2023-02-27 Thread Otared Kavian via ntg-context
Hi,

Indeed you are right. However, Hans said the feature would be added in the next 
update: so you have to wait a little bit :-)

Best regards: Otared


> On 27 Feb 2023, at 12:33, Jan-Erik Hägglöf via ntg-context 
>  wrote:
> 
> I tested the code and the separator didn’t show up
> 
> \mainlanguage[sv]
> 
> \setupbodyfont[12pt]
> 
> \defineitemgroup
>   [fooditems]
> 
> \setupitemgroup
>   [fooditems]
>   [each]
>   [none,text]
>   [textseparator=,]
> 
> \starttext
> 
> \startfooditems
> \item fish
> \item eggs
> \item milk
> \stopfooditems
> 
> \stoptext
> 
> 
> 
> 
>> 26 feb. 2023 kl. 11:55 skrev Hans Hagen via ntg-context > <mailto:ntg-context@ntg.nl>>:
>> 
>> On 2/25/2023 5:01 PM, Joel via ntg-context wrote:
>>> I have a list like this:
>>> \startitemize[1]
>>> \item fish
>>> \item eggs
>>> \item milk
>>> \stopitemize
>>> Is there any command in ConTeXt to make this display the items as a 
>>> comma-separated list, like this:
>>> fish, eggs, milk
>>> Or a semi-colon-separated list?
>>> fish; eggs; milk
>> In the next update you can set a textseparator.
>> 
>> \starttext
>> 
>> \startitemize[none,text][textseparator=;]
>>\item fish
>>\item eggs
>>\item milk
>> \stopitemize
>> 
>> \defineitemgroup
>>  [fooditems]
>> 
>> \setupitemgroup
>>  [fooditems]
>>  [each]
>>  [none,text]
>>  [textseparator=;]
>> 
>> \blank[2*line]
>> 
>> \startfooditems
>>\item fish
>>\item eggs
>>\item milk
>> \stopfooditems
>> 
>> \stoptext
>> 
>> -
>>  Hans Hagen | PRAGMA ADE
>>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> | 
>> www.pragma-pod.nl <http://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 <mailto:ntg-context@ntg.nl> / 
>> https://www.ntg.nl/mailman/listinfo/ntg-context 
>> <https://www.ntg.nl/mailman/listinfo/ntg-context>
>> webpage  : https://www.pragma-ade.nl <https://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 : https://contextgarden.net <https://contextgarden.net/>
>> _______
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] update

2023-02-24 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you very much for the new update.

Everything seem to work like a charm. In particular I played with the 
\underbrace and \overbrace when adding something under the \underbrace, or 
above the \overbrace, like in 

\startformula
\overbrace{1+x^2+a}^{= -1} +
\underbrace{ax^2 + bx + c}_{=2} = 1
\stopformula

and it works great !

Best regards : Otared

> On 23 Feb 2023, at 22:07, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> I uploaded a new version. We further improved Antykwa support,
> 
> \switchtobodyfont[antykwa]
> 
> \startTEXpage[offset=1dk]
>\im{
>f' = f'' = f''' = f =
>a + b + \ldots + c +
>\overbar{x} + \overbar{S} + \bar{x} + \widebar{x}
>}
> 
>\im{
>\fenced[doublebar]{x} =
>\fenced[doublebar][size=1]{x_1} =
>\fenced[doublebar][size=2]{x_2} =
>\fenced[doublebar][size=3]{x_3} =
>\fenced[doublebar][size=4]{x_4} =
>\fenced[doublebar]{\blackrule[width=1cm,height=1cm]}
>}
> 
>\im{
>\fenced[bar]{x} =
>\fenced[bar][size=1]{x_1} =
>\fenced[bar][size=2]{x_2} =
>\fenced[bar][size=3]{x_3} =
>\fenced[bar][size=4]{x_4} =
>\fenced[bar]{\blackrule[width=1cm,height=1cm]}
>}
> 
>\im{
>\fenced[brace]{x} =
>\fenced[brace][size=1]{x_1} =
>\fenced[brace][size=2]{x_2} =
>\fenced[brace][size=3]{x_3} =
>\fenced[brace][size=4]{x_4} =
>\fenced[brace]{\blackrule[width=1cm,height=1cm]}
>}
> 
>\im{
>\root[4]{1+x^2+a} +
>\frac{1}{1+x^2+a} +
>\overparent{1+x^2+a} +
>\overbrace{1+x^2+a} +
>\overparent{x} +
>\overbrace{x} +
>\overbrace{i}
>}
> 
> \stopTEXpage
> 
> 
> This time with fancy radical bars, fraction bars, vertical bars, over and 
> underbars 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you for the hint: indeed 
\setupmathematics[collapsing=2]
does exactly what I was looking for… 

Now, like many others, I am just waiting for the 3145 pages document about 
maths in ConTeXt :-)

Best regards: Otared


> On 26 Jan 2023, at 23:23, Hans Hagen via ntg-context  
> wrote:
> 
> On 1/26/2023 10:52 PM, Otared Kavian via ntg-context wrote:
> 
>> Indeed the command \colonequals give the precise expected alignment for the 
>> combination glyph « := ». Befors changing the combination « := » to 
>> \columnequals in my documents, I am wondering whether one could add a small 
>> lua code in order to make an automatic replacement at run time. Actually, 
>> since I don’t know of any other instance in which the combination « := » is 
>> used to mean something else, would it not be reasonnable to make « := » 
>> synonym to \colonequals?
> 
> that's what the (has-always-been-there)
> 
> \setupmathematics[collapsing=2]
> 
> is for (needs latest version to work when the space trickery i senabled)
> 
> 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-26 Thread Otared Kavian via ntg-context
Hi Hans and Mikael,

Thank you both for your attention to my reply and the clarification and hints 
regarding the comman \colonequals and 
\setupmathematics[autospacing=yes]

Indeed the command \colonequals give the precise expected alignment for the 
combination glyph « := ». Befors changing the combination « := » to 
\columnequals in my documents, I am wondering whether one could add a small lua 
code in order to make an automatic replacement at run time. Actually, since I 
don’t know of any other instance in which the combination « := » is used to 
mean something else, would it not be reasonnable to make « := » synonym to 
\colonequals?

I played a little bit with 
\setupmathematics[autospacing=yes]
and it seems to me that without this command one gets automatic spacing in math 
mode, while with the above command the spacing obeys what has been inserted in 
the source. Is this behaviour intended, or is there a mismatch between 
\setupmathematics[autospacing=yes]
and
\setupmathematics[autospacing=no]

Best regards: Otared


> On 26 Jan 2023, at 10:33, Hans Hagen via ntg-context  <mailto:ntg-context@ntg.nl>> wrote:
> 
> On 1/25/2023 6:24 PM, Mikael Sundqvist via ntg-context wrote:
>> On Wed, Jan 25, 2023 at 11:02 AM Otared Kavian via ntg-context
>> mailto:ntg-context@ntg.nl>> wrote:
>>> 
>>> Hi,
>>> 
>>> Thanks Hraban for the information and the link to the article by Hans and 
>>> Mikael about the math fonts in Lucida.
>>> 
>>> I very much appreciated that article: one sees how the handling of almost 
>>> impercebtile details in ConTeXt make us to adhere to and love LuaMetaTeX… 
>>> So a great thank you to Hans and Mikael for all this work!
>>> 
>>> Regarding the details of vertical alignment in math, I wonder whether the 
>>> column « : » in front of the equal sign « = », in the combination « := » 
>>> (used to define for instance a new variable) should be alos centered around 
>>> the math axis, as explained in the article. For instance in the following 
>>> example
>>> 
>>> \setupbodyfont[lucidaot,12pt]
>>> \starttext
>>> \startformula
>>> f(x) := -(u|x) := - \langle u, x \rangle
>>> \stopformula
>>> \stopformula
>>> \startformula
>>> f : A \longrightarrow B
>>> \stopformula
>>> \stoptext
>>> 
>>> it seems to me that the lower dot (or square…) in the semicolumn of the 
>>> first formula (in front of the equal sign) is lower than in the second 
>>> formula.
>>> 
>>> Best regards: Otared
>> Thank you for the kind words, Otared,
>> Regarding the colons (and other symbols with "dots"), I would say it
>> is still not optimal in Lucida (and difficult to make it "consistent",
>> there are too many symbols that are at the moment different). But in
>> your example you can use \colonequals and \colon if you prefer. They
>> are centered around the math axis.
>> Best, Mikael
>> \setupbodyfont[lucidaot,12pt]
>> \starttext
>> \startformula
>> f(x) := -(u|x) \colonequals - \langle u, x \rangle
>> \stopformula
>> \startformula
>> f : A \longrightarrow B \breakhere
>> f \colon A \longrightarrow B
>> \stopformula
>> \startformula
>> \mathaxisbelow := \colonequals : \colon
>> \stopformula
>> \stoptext
> There is a (experimental as we played with it and then got distracted) 
> feature that makes some symbols adapt to spacing in the input.
> 
> \starttext
> 
>\setupmathematics[autospacing=yes]
> 
>\setupmathematics[collapsing=2]
> 
>\im{A:B} and \im{A : B}\par
>\im{A:=B} and \im{A := B}\par
>\im{A\colonequals B} and \im{A {\colonequals} B}\par
> 
> \stoptext
> 
> the second line is not yet ok as collapsing the := (old feature) comes at the 
> wrong time when we do autospacing (something Mikasl and I now need to discuss 
> and test)
> 
> This autospacing is part of some larger effort, for instance we can also auto 
> handle fences and so. All this relates to minimizing the input and make it a 
> bit more natural. Think (1,2) vb (1, 2) where we - due to the many more 
> classes that we have - want spacing to be right.
> 
> All will be revealed in the upcoming releases and the upcoming 3145 page math 
> manual.
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl/> |

Re: [NTG-context] Lucida-1.901 (2023-01-21) available

2023-01-25 Thread Otared Kavian via ntg-context
Hi,

Thanks Hraban for the information and the link to the article by Hans and 
Mikael about the math fonts in Lucida.

I very much appreciated that article: one sees how the handling of almost 
impercebtile details in ConTeXt make us to adhere to and love LuaMetaTeX… So a 
great thank you to Hans and Mikael for all this work!

Regarding the details of vertical alignment in math, I wonder whether the 
column « : » in front of the equal sign « = », in the combination « := » (used 
to define for instance a new variable) should be alos centered around the math 
axis, as explained in the article. For instance in the following example

\setupbodyfont[lucidaot,12pt]
\starttext
\startformula
f(x) := -(u|x) := - \langle u, x \rangle
\stopformula
\stopformula
\startformula
f : A \longrightarrow B
\stopformula
\stoptext

it seems to me that the lower dot (or square…) in the semicolumn of the first 
formula (in front of the equal sign) is lower than in the second formula.

Best regards: Otared

> On 23 Jan 2023, at 09:39, Henning Hraban Ramm via ntg-context 
>  wrote:
> 
> https://tug.org/pipermail/lucida/2023-January/000921.html
> 
> A new version (1.901) of the Lucida OpenType fonts from TUG is
> available.  As with previous updates, there's no additional charge if
> you've already purchased licenses; you can use the same download
> information sent to you at the time of purchase to get the new fonts.
> (If you've lost the download info, you can email us at
> lucida-admin at tug.org.)
> 
> I will append the changes for this release. The same information is also
> online at https://tug.org/store/lucida/NEWS.txt.
> 
> To summarize, the most significant changes have been to the math fonts,
> especially the regular-weight LucidaBrightMathOT. Many of these changes
> were discussed in greater detail in the recent article about Lucida math
> by Hans Hagen and Mikael Sundqvist:
>  https://tug.org/TUGboat/tb43-3/tb135hagen-lucida.pdf
> 
> The four Lucida Sans fonts and the three specialized fonts (Blackletter,
> Calligraphy, Handwriting) are not changed at all from the last release
> (not even version numbers or dates). All other fonts were changed.
> 
> On behalf of TUG, I thank Hans, Mikael, and Michael Sharpe, who among
> them did essentially all of the technical font editing for this
> release. And we must thank Chuck Bigelow and Kris Holmes (they approved
> this release, as always), without whom nothing could be done.
> 
> Bug reports and character/feature requests are welcome (email to this
> list is best), though, as usual, we cannot promise any particular
> timeline for the next release.
> 
> Happy typesetting,
> Karl [Berry]
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95




___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] multimedia inclusion added to the wiki

2023-01-16 Thread Otared Kavian via ntg-context
Hi Pablo,

Thank you for the article on the wiki. It will be very useful !

Best regards: Otared

> On 16 Jan 2023, at 19:00, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Dear list,
> 
> just in case it might help, I have just added a new wiki article about
> how to add multimedia in PDF documents.
> 
>  https://wiki.contextgarden.net/Multimedia_Inclusion
> 
> I hope it helps,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \typefile not including file and returning success

2022-12-17 Thread Otared Kavian via ntg-context
Hi Marco,

If I create a file named « bar.txt » then

\starttext
Nothing to say\dots

\typefile{bar.txt}

\stoptext

gives the correct result. However ConTeXt seems to dislike \typefile{bar} when 
the filename has no suffix.

Best regards : Otared

> On 17 Dec 2022, at 16:06, Marco Patzer via ntg-context  
> wrote:
> 
> Hi!
> 
> In the following example the file “bar” is not included:
> 
> # create file “bar”
> echo Bar > bar
> 
> # t.tex
> \starttext
>  Foo
>  \typefile{bar}
> \stoptext
> 
> Then run
> 
>  context --errors='*' t.tex
> 
> The text “bar” is not included in the PDF, only Foo is. The log file
> shows:
> 
>  verbatims   > file 'bar' does not exist
> 
> However, the file “bar” clearly does exist. Furthermore, context
> exits with no error in the log file and a successful exit value:
> 
>  context --errors='*' t.tex > /dev/null; echo $?
>  0
> 
> Is this working as intended?
> 
> Marco
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Mathematical MetaFun Mania

2022-12-15 Thread Otared Kavian via ntg-context
Hi Hans,

Thanks for the new release and the nice anchoring features.

I played a little bit with these, and noticed some issues: in the following 
example, linking the bottom bounds of the integral signs is fine (as long as 
numbers are put there), but for the upper bounds, the \infty and \pi/2 are not 
accepted (nor is any letter or greek symbol), but if one replaces \infty and 
\pi/2 with numbers, then the link between the upper bounds is shown. (In this 
example the links are invading the text, but probably this is due to the fact 
that I just copied the Metapost snippet you sent to Gavin).

Best regards: Otared

% begin anchoring-integrals.tex
\starttext

\startMPpositiongraphic{mypos:boxanchor:top}
begingroup ;
save f, t, p ; 
pair f, t ; 
path p ;
f := positionxy(mpvars("from")) ;
t := positionxy(mpvars("to")) ;
p := f { up } .. t ;
drawarrow p
withpen pencircle scaled mpvard "rulethickness"
withcolor mpvars "linecolor" ; % historically different 
names
positioninregion ;
endgroup ;
\stopMPpositiongraphic

\startMPpositiongraphic{mypos:boxanchor:bottom}
begingroup ;
save f, t, p ; 
pair f, t ; 
path p ;
f := positionxy(mpvars("from")) ;
t := positionxy(mpvars("to")) ;
p := f { down } .. t ;
drawarrow p
withpen pencircle scaled mpvard "myrulethickness"
withcolor mpvars "linecolor" ; % historically different 
names
positioninregion ;
endgroup ;
\stopMPpositiongraphic

\input thuan.tex

\startboxanchoring[+]
\connectboxanchors[top][top]
[distance=1ex,
rulethickness=1pt,
rulecolor=darkgreen,
mp=mypos:boxanchor:top]{b1}{b3}

\connectboxanchors[bottom][bottom]
[distance=1ex,
myrulethickness=1pt,
rulecolor=darkred,
mp=mypos:boxanchor:bottom]{b2}{b4}

\startformula
\int_{\mathboxanchored[nucleus]{b2}0}^{\mathboxanchored[nucleus]{b1}\infty} 
\frac{\dd x}{1 + x^2} = 
\int_{\mathboxanchored[nucleus]{b4}0}^{\mathboxanchored[nucleus]{b3}\pi/2}(1 + 
\tan(\theta)^2)\frac{\dd \theta}{1 + \tan(\theta)^2} = \frac{\pi}{2}
\stopformula
\input thuan.tex
\stopboxanchoring

\stoptext
% end anchoring-integrals

> On 15 Dec 2022, at 18:21, Hans Hagen via ntg-context  
> wrote:
> 
> On 12/15/2022 5:15 PM, Gavin wrote:
>> Hi Hans and List,
>>>> 2) Can I tell \connectboxanchors to use my MetaPost code and pass 
>>>> key=value pairs like I do with \setMPpositiongraphic?
>>> see attached ... the 'cross pages' feature is in the upcoming
>> This indeed passes key=value pairs, but I cannot get it to pass mine. Is 
>> there some intermediate step? Your example has a key=value pair in 
>> \connectboxanchors and which is accessed in the MetaPost code. The pair, and 
>> MetaPost code are:
>>   rulethickness=1pt
>>   mpvard “rulethickness"
>> However, if I change the pair and MPcode to (see attached example for full 
>> code)
>>   myrulethickness=1pt
>>   mpvard “myrulethickness"
>> it doesn’t work. Similarly, you have a pair and MPcode that don’t match.
>>   rulecolor=darkgreen
>>   mpvars "linecolor"
>> This may be a historical fluke, but it suggests that there is some 
>> intermediate translation that I am missing. Any way I can name and pass by 
>> own key=value pairs?
> I updated lmtx so you can test it again.
> 
> Hans
> 
> ps. For the adventurous some bonus experiment in the engine:
> 
> \def\ccc#1#2#3#4#5#6#7#8#9#A#B#C#D#E#F%
>  {\def\ddd{#A-#D-#E/#F-#4-#1}%
>   #A-#D-#E/#F-#4-#1+\ddd}
> 
> so, upto 15 arguments:
> 
> [[\ccc123456789abcdef]]
> 
> (not that we need it in the context core, so more a gimmick for users and it 
> fits the much is already hex approach)
> 
> 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive 

Re: [NTG-context] \hpos in math - Half solved

2022-12-08 Thread Otared Kavian via ntg-context
Hi Hans, Mikael,

These features are amazing! Many many thanks!
Thanks also to Gavin for having stated so precisely these kinds of needs, so 
that Hans and Mikael could come up with this solution.
Gavin, good luck with your project, and plaese share what you get at the end.

Best regards : Otared

> On 8 Dec 2022, at 07:14, Mikael Sundqvist via ntg-context 
>  wrote:
> 
> Hi,
> 
> On Thu, Dec 8, 2022 at 1:07 AM Gavin via ntg-context  
> wrote:
>> 
>> Hi Hans and Mikael,
>> 
>> This is amazing! Mikael's example works for me. I will start using these 
>> tools in my project, and I’ll tell you how it goes.
> 
> Very good that it works and that it gets tested!
> 
>> It might be a couple weeks, because the physics is also quite challenging.
> 
> Haha, I can imagine that the spinors are even more challenging. Good luck!
> 
> /Mikael
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Bug in math alignment

2022-11-03 Thread Otared Kavian via ntg-context
Hi Mikael,

Thanks for your reply.
Indeed with your hint the issue disappears. 
I’ll change my definition…

Best regards: Otared

> On 2 Nov 2022, at 21:44, Mikael Sundqvist via ntg-context 
>  wrote:
> […]
> I think in this case it is better to use a mathsimplealign instead of a 
> matrix.
> 
> \definemathsimplealign[pdeproblem][
> left={\startmathfenced[cases]},
> right=\stopmathfenced,
> align={1:right,2:left,3:left},
> strut=yes,
> ]
> 
> \definemathsimplealign[collected][
> left={\startmathfenced[sesac]},
> right=\stopmathfenced,
> align={1:right,2:left,3:left},
> strut=yes,
> ]
> 
> \starttext
> 
> \placeformula
> \startformula
> \startpdeproblem
> \NC - \Delta u \NC = 0 \NC \qquad\text{in } \Omega \NR
> \NC \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC
> \qquad\text{on } \partial\Omega \NR
> \stoppdeproblem
> \stopformula
> 
> \placeformula
> \startformula
> \startcollected
> \NC - \Delta u \NC = 0 \NC \qquad\text{in } \Omega \NR
> \NC \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC
> \qquad\text{on } \partial\Omega \NR
> \stopcollected
> \stopformula
> 
> \stoptext
> 
> Best, Mikael
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Bug in math alignment

2022-11-02 Thread Otared Kavian via ntg-context
Dear Jeong,

Thanks for testing my example, and pointing to the solution using \dm (which I 
didn’t know…).
I think the correct behaviour of math alignments should avoid using additional 
commands such as \dm.

We’ll see what Hans and Mikael say.

Best regards: OK

> On 2 Nov 2022, at 12:53, Jeong Dal via ntg-context  wrote:
> 
> Dear Otared,
> 
>> 
>> I think there is an issue with the size of math fonts in \frac when used in 
>> math alignments, as it is is shown in the following example.
>> 
> 
> I confirm what you said.
> 
> However, if I use \dm{} instead of \displaystyle as following, then the 
> output is correct.
> 
> \placeformula
> \startformula
> \startalignedcases
> \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
> \NC  \dm{\frac{\partial u}{\partial {\bi n}}}
>  \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR
> \stopalignedcases
> \stopformula
> or this (with\type{\displaystyle} added)
> \placeformula 
> \startformula
> \startalignedcases
> \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
> \NC  \dm{\frac{\partial u}{\partial {\bi n}}}
>  \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR
> \stopalignedcases
> \stopformula
> 
> In this example, it is OK to use \dm inside of \startformula … \stopformula.
> I am not sure that it is what Hans and Mikael want.
> 
> Thanks,
> 
> 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 / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Bug in math alignment

2022-11-02 Thread Otared Kavian via ntg-context
Hi Hans and Mikael,

I think there is an issue with the size of math fonts in \frac when used in 
math alignments, as it is is shown in the following example.


%% begin bug-mathalignment.tex
\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]

\starttext
Consider this
\placeformula
\startformula
\startalignedcases
\NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
\NC  \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC \qquad\text{on 
}\, \partial\Omega. \NR
\stopalignedcases
\stopformula
or this (with\type{\displaystyle} added)
\placeformula 
\startformula
\startalignedcases
\NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
\NC  \displaystyle\frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC 
\qquad\text{on }\, \partial\Omega. \NR
\stopalignedcases
\stopformula
Actually, one should have this
\startformula
\frac{\partial u}{\partial {\bi n}}  = V u + \phi  \qquad\text{on }\, 
\partial\Omega.
\stopformula
If one adds \type{\displaystyle} both to the numerator and denominator of 
\type{\frac}, the result is correct:
\placeformula 
\startformula
\startalignedcases
\NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR
\NC  \frac{\displaystyle\partial u}{\displaystyle\partial {\bi n}} \NC = V u + 
\phi \NC \qquad\text{on }\, \partial\Omega. \NR
\stopalignedcases
\stopformula

\stoptext
%% end bug-mathalignment.tex

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-24 Thread Otared Kavian via ntg-context
Hi Thomas,

Sorry for answering too late… Meanwhile you found the culprit :-)

Anyway, I cleaned the cache, did a rebuild and typeset your example files. They 
do typeset, but as you pointed out the math font is from LMR, not Stix as you 
specified.

Best regards: Otared

> On 23 Oct 2022, at 21:52, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> On 10/23/22 21:34, Otared Kavian via ntg-context wrote:
>> Hi Thomas,
>> Both your examples typeset fine with my installation of LMTX (version 
>> 2022.10.22 11:23) on MacOS 11.7.
>> (Indeed you previous file test file reporting the background issue is 
>> typeset fine also).
>> Best regards : Otared
> 
> Thanks, Otared - that's bizarre. I just tried both on linux64 and macos 
> (12.6, arm): run install.sh, reload font cache and run context without the 
> luatex switch on the minimal example with the XITS Math font, and on both 
> systems, I get the error that I have sent this afternoon. Can you try after 
> rebuilding the font cache?
> 
> Thanks
> 
> Thomas
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-23 Thread Otared Kavian via ntg-context
Hi Thomas,

Both your examples typeset fine with my installation of LMTX (version 
2022.10.22 11:23) on MacOS 11.7.
(Indeed you previous file test file reporting the background issue is typeset 
fine also).

Best regards : Otared

> On 23 Oct 2022, at 16:30, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> On 10/23/22 16:21, Mikael Sundqvist via ntg-context wrote:
>> It works here. Are you sure that you updated to the latest? (There was
>> a few updates lately)
>> /Mikael
> 
> I have just update to
> 
> current version: 2022.10.22 11:23
> 
> so I think that's the latest. Minimal example:
> 
> \definefontfamily [test] [serif] [Times]
> \definefontfamily [test] [sans]  [Helvetica]
> \definefontfamily [test] [mono]  [DejaVu Sans Mono] [rscale=0.9,features=none]
> \definefontfamily [test] [math]  [XITS Math]
> 
> \starttext
> 
> Test
> 
> \stoptext
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Backgrounds has changed in latest lmtx

2022-10-21 Thread Otared Kavian via ntg-context
Hi Thomas,

Your example does indeed show the issue I had reported on with Simpleslides: 
the backgrounds of the slides are not as expected.
So it seems that beginning with version 2022-10-15 something has changed with 
Metapost or the background mechanism.

Best regards: Otared

> On 21 Oct 2022, at 11:32, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> Hi everybody,
> 
> With the latest lmtx, my page backgrounds don’t work any more. I think Otared 
> mentioned that the simpleslides module is having problems. I’m trying to 
> figure out what is happening, but I don’t see any warnings or errors, just 
> unexpected results (which is not a good thing). I’m starting with the 
> fundamentals. Here is a fairly minimal example: compile with context --luatex 
> to see the expected result and with lmtx to see what is wrong.
> 
> All best
> 
> Thomas
> 
> \setuppapersize[A6,landscape][A6,landscape]
> 
> \setuplayout[backspace=1cm,
> topspace=0.4cm,
> marking=off,
> width=13cm,
> height=9.7cm,
> header=0.6cm,
> footer=0cm,
> ]
> 
> \startreusableMPgraphic{card}
> StartPage ;
> save p ; path p[] ;
> p[0] = ulcorner Page -- urcorner Page ;
> p[0] := p[0] shifted (0, -0.97cm) ;
> for i = 1 upto 18 :
>   p[i] = p[i-1] shifted (0, -14.42pt) ;
>   draw p[i] withcolor (0.5,0.5,0.5) ;
> endfor ;
> pickup pencircle scaled 2pt ;
> draw p[0] withcolor red ;
> StopPage ;
> \stopreusableMPgraphic
> 
> \defineoverlay[Card][\reuseMPgraphic{card}]
> 
> \setupbackgrounds[page]
>[state=repeat,
> background={Card}]
> 
> \starttext
> 
> Test
> 
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] new upload

2022-10-17 Thread Otared Kavian via ntg-context
Hi Mikael,

I use Lucida in my documents and did not notice any problem with the integrals 
and other large operators. 
Do you mean in the future I have to update to a new version of Lucida (and pay 
again…) or will future versions of LuaMetaTeX handle correctly large operators 
typeset in Lucida ?

The issue I observed with the new upload of 2022.10.15 is that the 
presentations I typeset with the simpleslides module are broken after three 
pages, but could not set up a minimal working example to send to the list. 
Those presentations are typeset correctly with previous versions.
Has Metapost changed some crucial settings ?

Best regards: Otared

> On 16 Oct 2022, at 19:03, Mikael Sundqvist via ntg-context 
>  wrote:
> 
> Hi,
> 
> On Sun, Oct 16, 2022 at 6:07 PM Aditya Mahajan via ntg-context
>  wrote:
>> 
>> On Fri, 14 Oct 2022, Hans Hagen via ntg-context wrote:
>> 
>>> Hi,
>>> 
>>> I uploaded a new version. Apart from a few fixes / extensions already
>>> mentioned here (or known to those who wanted it) the main changes are in
>>> the math goodie files (work in progress, we will clean them up later) as
>>> part of improving the rendering of math.
>> 
>> Something is wrong with the placement of limits around an integral with 
>> NeoEuler:
>> 
>> \usetypescriptfile[euler]
>> 
>> \definetypeface[mainfont][rm][specserif][CharisSil][default]
>> \definetypeface[mainfont][mm][math] [eulernova][default]
>> \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, 
>> features=none]
>> \setupbodyfont[mainfont,10pt]
>> 
>> \starttext
>> \startTEXpage[offset=1mm]
>>  $\displaystyle \int_{0}^{1} f(x) dx$
>> \stopTEXpage
>> \stoptext
>> 
>> gives the attached result.
> 
> This is because the integral "sits wrong" in its boundingbox. Almost
> all fonts have the glyph centered around the math axis, but there are
> a few that doesn't. In euler-math.lfg, add the tweak
> 
> {
> tweak = "fixoldschool",
> },
> 
> In fact, we have not updated the euler goodie file for a while it
> seems. I think there are more things that can be improved. Hopefully
> before next release.
> 
> It can also be mentioned that some fonts (Daniel Flipo was quick to
> fix concrete, erewhon and kpfonts) was fixed recently regarding this,
> and it is reported on and fixed in development of Lucida.
> 
> /Mikael
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] cannot update ConTeXt to 2022.09.16

2022-09-19 Thread Otared Kavian via ntg-context
Hi Pablo,

I had the same issue and, as this was discussed a few years or months ago, 
after removing the three files with extension « .tma » the update goes through 
normally.
On my machine, running MacOS X, I had to remove the following files:
texmf.tma
texmf-osx-64.tma
texmf-context.tma

Best regards: Otared

> On 19 Sep 2022, at 17:16, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Dear list,
> 
> after updating to latest from 2022.09.11 20:44 (altough LMTX was tagged
> as 20220918), I’m afraid I cannot update ConTeXt to 2022.09.16 (current
> latest according to https://www.pragma-ade.com/download-1.htm).
> 
> This happens to me with both Windows and Linux (both 64bit).
> 
> I guess this might be related to the issue with certificates and domains.
> 
> Could anyone confirm the issue?
> 
> Many thanks for your help,
> 
> Pablo
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> _______

Otared Kavian
e-mail: ota...@gmail.com
Phone: +33 6 88 26 70 95



___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Sudoku module

2022-07-18 Thread Otared Kavian via ntg-context
Hi Wolfgang,

Thank you for your reply and the explanations about the function « 
interfaces.implement ».

Regarding the examples given by Jairo, you are correct: those examples can be 
typeset with LMTX. I did a mistake when in TeXShop I saved the file « 
t-sudoku.mkvi » under the name « t-sudoku.tex »: indeed this creates an error 
in LMTX as well in earlier versions of ConTeXt… (maybe a colateral consequence 
of the heat wave in France :-)

I apologize to you and Jairo for having caused any trouble.

Best regards: Otared

> On 18 Jul 2022, at 22:10, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Otared Kavian via ntg-context schrieb am 18.07.2022 um 18:53:
>> Hi Wolfgang,
>> 
>> Thank you for your attention and the explanation regarding the « hash option 
>> » and why the sudoku module written by Jairo does not work. However I was 
>> reporting the issue when I tried to typeset the example file with LMTX 
>> (version 2022.07.06 21:42).
> 
> I have no problems with the examples at the end of the module and LMTX, only 
> when I use LuaTeX a error appears.
> 
>> As a matter of fact I am far from understanding what the « arguments = { « 
>> hash » } » is supposed to do in interfaces.implement in the code you sent…
> 
> The 'interfaces.implement' functions creates the command \test and 
> 'arguments={"hash"}' creates the argument which accepts key-val lists 
> ([text=Hello]).
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Sudoku module

2022-07-18 Thread Otared Kavian via ntg-context
Hi Wolfgang,

Thank you for your attention and the explanation regarding the « hash option » 
and why the sudoku module written by Jairo does not work. However I was 
reporting the issue when I tried to typeset the example file with LMTX (version 
2022.07.06 21:42). 
As a matter of fact I am far from understanding what the « arguments = { « hash 
» } » is supposed to do in interfaces.implement in the code you sent…

Best regards: Otared

> On 18 Jul 2022, at 17:39, Wolfgang Schuster via ntg-context 
>  wrote:
> 
> Otared Kavian via ntg-context schrieb am 18.07.2022 um 17:00:
>> Hi Jairo,
>> 
>> You sent a message last year about your Sudoku module, and today, out of 
>> curiosity, I wanted to test it. Unfortunately it stops with an error message 
>> at line 76 of the file t-sudoku.mkiv, where you have:
>> 
>> \def\sudokufunction_direct[#name][#parameters]#content
>> 
>> I would appreciate if you could tell me whether you have a working version 
>> of you module, or what one has to change in order to typeset your examples.
> 
> The error is unrelated to the sudoku module and when you use LMTX the error 
> disappears.
> 
> The real problem can be seen in the following minimal example and is related 
> to the "hash" option for the argument key.
> 
>  begin example
> \starttext
> 
> \startluacode
> interfaces.implement {
> name  = "test",
> public= true,
> arguments = { "hash" },
> actions   = function(t)
> print(table.serialize(t))
> end,
> }
> \stopluacode
> 
> \test[text=Hello]
> 
> \stoptext
>  end example
> 
> Wolfgang
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Sudoku module

2022-07-18 Thread Otared Kavian via ntg-context
Hi Jairo,

You sent a message last year about your Sudoku module, and today, out of 
curiosity, I wanted to test it. Unfortunately it stops with an error message at 
line 76 of the file t-sudoku.mkiv, where you have:

\def\sudokufunction_direct[#name][#parameters]#content

I would appreciate if you could tell me whether you have a working version of 
you module, or what one has to change in order to typeset your examples.

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Interaction broken for formulas in LMTX

2022-07-14 Thread Otared Kavian via ntg-context
Hi Jairo,

You are right, the interactions between references ad numbered equations are 
broken with the latest update.

Best regards: Otared

> On 14 Jul 2022, at 17:58, Jairo A. del Rio via ntg-context 
>  wrote:
> 
> Hi, list!
> 
> Sorry, I don't have a MWE, but it looks like interactive references for 
> formulas (via \in) are not working after the update. I mean, labels are fine, 
> but they do nothing when clicked. References for tables and figures are fine, 
> though.
> 
> Best regards,
> 
> Jairo
> 
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___

___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] Bug in placeformula

2022-07-13 Thread Otared Kavian via ntg-context
Hi Mikael,

Thank you for your reply. For the time being I am not in a hurry to solve the 
issue with placeformula (when the numbers are on the right, there is no 
problem…).

Best regards: Otared

> On 12 Jul 2022, at 23:08, Mikael Sundqvist via ntg-context 
>  wrote:
> […]
> 
> Thanks for reporting! We must have missed this one while testing. It
> should be fixed.
> 
> If you for the moment can live without splitting, then this seems to
> give you the formula number where expected:
> 
> \placeformula
> \startformula[location=left,split=no,numberlocation=overlay]
> a^2 + b^2 = c^2.
> \stopformula
> 
> (or put the keys in \setupformula)
> 
> I hope it helps.
> 
> /Mikael


___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


[NTG-context] Bug in placeformula

2022-07-12 Thread Otared Kavian via ntg-context
Dear Hans, dear Mikael,

In my experiments with the new math engine, I noticed that there is an issue 
with \placeformula when one sets the location of the numbers on the left: the 
number is one line above the formula. Here is a minimal example:

% begin bug-placeformula-left.tex
\setupformulas[location=left]

\starttext

\placeformula
\startformula
a^2 + b^2 = c^2.
\stopformula

\stoptext
% end bug-placeformula-left.tex

Moreover, in some environments (such as enumerations) the bug destroys 
completely the flow of text but I could not set up a minimal example to send 
you.

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] upload

2022-07-08 Thread Otared Kavian via ntg-context
I just found that \choose has been replaced with \binom (binomial coefficient):

\starttext
\meaning\choose

\meaning\binom

$\binom{n}{k}$
\stoptext

Sorry for complaining… :-)


> On 9 Jul 2022, at 00:34, Otared Kavian  wrote:
> 
> 
> 
>> On 6 Jul 2022, at 22:10, Hans Hagen via ntg-context  
>> wrote:
>> 
>> Hi,
>> 
>> We're pleased to announce the first official release of the new math code. 
>> We're talking of:
>> 
>> […]
> 
> Dear Hans and Mikael،
> 
> Thank you very much for the new upload and the new stuff for tyepsetting 
> maths. I have been playing around with the features presented in the example 
> file sent by Mikael, and I must say, among other things you have implemented, 
> the constructs \bearkhere and \skiphere, and friends, are absolutely great, 
> brilliant and so simple! I wonder why such a simple and elegant solution was 
> not around before…
> 
> As a plain TeX traditionalist I am a little bit sad to let the \over 
> construct be ditched, but my sadness did not last too long.
> 
> It seems that the \choose construct has been ditched but I did not guess what 
> has replaced it (I guess the reason is the same for ditching \over, since the 
> construct used to be ${n \choose k}$ and this is not what one wants to have 
> in a macro).
> 
> 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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] upload

2022-07-08 Thread Otared Kavian via ntg-context


> On 6 Jul 2022, at 22:10, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> We're pleased to announce the first official release of the new math code. 
> We're talking of:
> 
> […]

Dear Hans and Mikael،

Thank you very much for the new upload and the new stuff for tyepsetting maths. 
I have been playing around with the features presented in the example file sent 
by Mikael, and I must say, among other things you have implemented, the 
constructs \bearkhere and \skiphere, and friends, are absolutely great, 
brilliant and so simple! I wonder why such a simple and elegant solution was 
not around before…

As a plain TeX traditionalist I am a little bit sad to let the \over construct 
be ditched, but my sadness did not last too long.

It seems that the \choose construct has been ditched but I did not guess what 
has replaced it (I guess the reason is the same for ditching \over, since the 
construct used to be ${n \choose k}$ and this is not what one wants to have in 
a macro).

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 / https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
___


Re: [NTG-context] \sciteinlinebuffer inherits margin properties

2022-06-04 Thread Otared Kavian via ntg-context
Hi Pablo,

The example you gave in your first message about the Scite module, that is:

  \usemodule[scite]
  \starttext
  \startXML ñ\stopXML
  \stoptext

gives an error on my machine (MacOS 11.6.5 and Context version 2022.05.11 
11:36), with Context saying: « The file ended when scanning an argument.»

I don’t know where the error comes from…

Best regards: OK

> On 4 Jun 2022, at 19:54, Pablo Rodriguez via ntg-context  
> wrote:
> 
> On 6/4/22 16:13, Otared Kavian via ntg-context wrote:
>> Hi Pablo,
>> 
>> Typesetting your two examples, I can reproduce on MacOS and Context
>> version 2022.05.11 11:36 what you are reporting.
> Many thanks for your help, Otared.
> 
> Would you be so kind to confirm the first issue I reported earlier
> (https://mailman.ntg.nl/pipermail/ntg-context/2022/105918.html)?
> 
> Many thanks for your help again,
> 
> Pablo
> 
> ___
> 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] \sciteinlinebuffer inherits margin properties

2022-06-04 Thread Otared Kavian via ntg-context
Hi Pablo,

Typesetting your two examples, I can reproduce on MacOS and Context version 
2022.05.11 11:36 what you are reporting.

Best regards: Otared

> On 4 Jun 2022, at 14:11, Pablo Rodriguez via ntg-context  
> wrote:
> 
> Dear list,
> 
> I have my third sample with scite:
> 
>  \usemodule[scite]
>  \setuptyping[margin=yes]
>  \starttext
>  \startbuffer[b]b\stopbuffer
>  \startTEXpage[offset=1em]
>  a \sciteinlinebuffer[none][b] a\par
>  a \typeinlinebuffer[b][option] a
>  \stopTEXpage
>  \stoptext
> 
> I’m on Linux64 and using current latest from 2022.05.11 11:36.
> 
> For some strange reason, \sciteinlinebuffer inherits the margin option
> from \setuptyping and it indents the whole paragraph.
> 
> Could anyone confirm the issue?
> 
> Many thanks for your help,
> 
> Pablo
> ___
> 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] fatal error in LMTX

2022-04-12 Thread Otared Kavian via ntg-context
Hi Pablo,

Your example works fine on my machine (MacOS 11.6.4) with LMTX version 
2022.04.11. However in your example the \stopfrontmatter is missing.

Best regards: Otared

> On 12 Apr 2022, at 19:14, Pablo Rodriguez via ntg-context 
>  wrote:
> 
> Hi Hans,
> 
> I have a minimal sample that triggers a fatal error in ConTeXt LMTX
> (current latest from 2022.04.11 19:27):
> 
>  \starttext
>  \startfrontmatter
>  \input zapf
>  \stoptext
> 
> This gives the following error message:
> 
>  mkiv lua stats  > runtime: 0.386 seconds, 1 processed pages,
>1 shipped pages, 2.592 pages/second
>  mtx-context | fatal error: return code: 1
> 
> The one above is a stupid sample. But it took me about two hours to
> discover what was triggering the fatal error message.
> 
> I wonder whether it would be possible that ConTeXt or LuaMeTaTeX could
> be more verbose about an opened environment that isn’t closed.
> 
> Many thanks for your help and your excellent work,
> 
> Pablo
> ___
> 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] upload

2022-03-30 Thread Otared Kavian via ntg-context
Hi Aditya and Mikael,

Indeed in some situations it is useful to number each equation appearing in 
formulas grouped with \startcases, and one can construct a structure allowing 
this, as in the example below which is not satisfactory. I am sure Hans can 
find a better solution…

Here is a working example:

% begin math-cases-numbered.tex
\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]
\definereferenceformat[informula]  [left=(,right=),text=]
\def\eqref#1{\informula[eq:#1]} 

\starttext

Using \type{\startmathfenced} and \type{\startalign} we can number each 
equation, but the left brace is too far from the formula:
\startplaceformula
\startformula
\startmathfenced[cases]
\startalign[n=3,align={1:right,2:left,3:left}]
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\text{in }\; 
(0,T)\times\Omega \NR[+]
\NC u \NC = 0 \NC \quad\text{on }\; [0,T]\times\partial\Omega \NR[eq:Dirichlet]
\NC u(0,x) \NC = u_{0} \NC \quad\text{in }\; \Omega \NR[+]
\NC \partial_{t}u(0,x) \NC = v_{0} \NC \quad\text{in }\; \Omega \NR[+]
\stopalign
\stopmathfenced
\stopformula
\stopplaceformula
In some situations it is useful to number each equation, for example when we 
want to say:

Indeed we could study the above wave equation with Neumann boundary conditions, 
that is when \eqref{Dirichlet} is replaced with
\startplaceformula[eq:Neumann]
\startformula
{\partial u \over \partial {\bi n} } = 0 \quad \text{on }\; 
[0,T]\times\partial\Omega.
\stopformula
\stopplaceformula

Using \type{\startalignedcases} we cannot number each equation\dots
\startplaceformula
\startformula
\startalignedcases 
\NC \partial_{tt} u - \Delta u + q(x) u \NC = 0 \NC \quad\text{in }\; 
(0,T)\times\Omega \NR
\NC u \NC = 0 \NC \quad\text{in }\; [0,T]\times\partial\Omega \NR
\NC u(0,x) \NC = u_{0} \NC \quad\text{in }\; \Omega \NR
\NC \partial_{t}u(0,x) \NC = v_{0} \NC \quad\text{in }\; \Omega \NR
\stopalignedcases
\stopformula
\stopplaceformula
\stoptext
% end math-cases-numbered.tex

Best regards: Otared

> On 29 Mar 2022, at 18:08, Aditya Mahajan via ntg-context  
> wrote:
> 
> On Tue, 29 Mar 2022, Mikael Sundqvist via ntg-context wrote:
> 
>> On Tue, Mar 29, 2022 at 6:37 AM Otared Kavian  wrote:
>>> 
>>> Hi Mikael,
>> 
>> Hi Otared,
>> 
>>> 
>>> Thanks for your explanation and the example you sent about 
>>> \definemathsimplealign (I didn’t get immediately that « sesac » in the 
>>> command \startmathfenced[sesac] means « cases » in reverse or mirrored… I 
>>> guess this is a wise and humourous choice by Hans :-) ).
>> 
>> I guess so too :)
>> 
>>> 
>>> Regarding \startcases, it seems that it is still not possible to number 
>>> each equation, but I may be overlooking something. I’ll try a few examples 
>>> and will let you know, as well as Hans.
>> 
>> Hm, but a cases environment does not provide several formulas. This is
>> just one formula:
>> 
>> \startformula
>> |x|=
>> \startcases
>> \NC x \NC x>0\NR
>> \NC 0 \NC x=0\NR
>> \NC -x \NC x<0\NR
>> \stopcases
>> \stopformula
>> 
>> and as such should have (at most) one equation number, right?
> 
> However, some sub-disciplines like to number each case (for example, if you 
> want to refer to one of them in the future).
> 
>> Only Hans knows if it is (easily) doable to add the possibility to add
>> numbers to each three lines.
> 
> In the old implementation, this was tricky (the equation without the equation 
> number should be centered, and the equation number should be flush right). 
> But I think that this should be possible with the new low-level box alignment 
> macros. 
> 
> 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] upload

2022-03-28 Thread Otared Kavian via ntg-context
Hi Mikael,

Thanks for your explanation and the example you sent about 
\definemathsimplealign (I didn’t get immediately that « sesac » in the command 
\startmathfenced[sesac] means « cases » in reverse or mirrored… I guess this is 
a wise and humourous choice by Hans :-) ).

Regarding \startcases, it seems that it is still not possible to number each 
equation, but I may be overlooking something. I’ll try a few examples and will 
let you know, as well as Hans.

Best regards: Otared

> On 28 Mar 2022, at 23:54, Mikael Sundqvist  wrote:
> 
> On Mon, Mar 28, 2022 at 11:23 PM Otared Kavian  wrote:
>> 
>> Hi Hans,
>> 
>> Thank you for the new upload and the improvements you mention about the 
>> handling of math stuff. Thanks also to Mikael for the follow up of these 
>> matters.
>> 
>> I noticed that in math mode the command \cal does not work anymore and one 
>> has to use \mathcal.
>> However in almost all of my documents I use Lucida Bright OT, and in some 
>> occasions I replace its calligraphic letters by the slots from Asana Math 
>> with the following 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]
>> 
>> It seems that with the changes made recently the above definitions must be 
>> modified in order to have Asana Math show up.
>> 
>> So, I am asking for help from Mikael in this regard…
> 
> Hi Otared,
> 
> At the moment I don't know how one can use the fallback system with
> calligraphic/script fonts. Let me explain in a few sentences what we
> changed. Now we have \mathcal and \mathscr. If the font has both a
> chancery alphabet and a roundhand alphabet, the goodie file is coded
> so that \mathcal points to chancery and \mathscr to roundhand. This is
> the case for Lucida. So, maybe you could try to do
> \setupbodyfont[lucidadk] and then try \mathscr out. Other fonts that
> have both variants are stixtwo and xits. The rest have only either
> chancery style or roundhand style, and there you will get what it has.
> About \cal I don't know.
> 
>> 
>> Also, it would be nice to have a few explanations about the new stuff in 
>> math alignments.
> 
> I think the new math alignments are still work in progress. One thing
> that happens will probably go unnoticed, and that is the spacing. Hans
> is playing a lot with the new atoms, and right now he is playing(?)
> with construction atoms, ghosts and fences. There is one new type of
> alignments, called simplealignments. We can use them for example to
> collect some equations with a brace (and give the collection one
> number).
> 
> /Mikael
> 
> \setupbodyfont[lucidadk]
> 
> \definemathsimplealign[collecteqequations][
> left={\startmathfenced[sesac]},
> right=\stopmathfenced,
> align={1:right,2:left},
> ]
> 
> \starttext
> %\showmakeup[mathglue]
> ${\mathcal ABC}$ and ${\mathscr ABC}$
> 
> \placeformula
> \startformula
> \startcollecteqequations
> \NC x \NC = r\sin\theta\cos\phi\NR
> \NC y \NC = r\sin\theta\sin\phi \NR
> \NC z \NC = r\cos\theta \NR
> \stopcollecteqequations
> \stopformula
> 
> \stoptext
> <220328-5.pdf>

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

2022-03-28 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you for the new upload and the improvements you mention about the 
handling of math stuff. Thanks also to Mikael for the follow up of these 
matters.

I noticed that in math mode the command \cal does not work anymore and one has 
to use \mathcal.
However in almost all of my documents I use Lucida Bright OT, and in some 
occasions I replace its calligraphic letters by the slots from Asana Math with 
the following 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]

It seems that with the changes made recently the above definitions must be 
modified in order to have Asana Math show up.

So, I am asking for help from Mikael in this regard…

Also, it would be nice to have a few explanations about the new stuff in math 
alignments.

Best regards: Otared K.

> On 25 Mar 2022, at 11:01, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> Last night I uploaded a new lmtx:
> 
> - fix in new strut handling
> - zint support improved
> - some more math font tweaks (mikael will enlighten *)
> - math alignment spacing nornmalized (mikael will explain *)
> - new simplealignment environmet (mikael will document *)
> 
> We're now playing a bit more with combining graphics and math (educational 
> usage)
> 
> Hans
> 
> * when asked
> 
> -
>  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] Metafun, difficulty with graphical element in the margin

2022-03-19 Thread Otared Kavian via ntg-context
Hi Willi,

How about invoking the command \setups{Thumb-pictures} between a \start \stop 
pair as in the following:

\showframe

\starttext

\startfrontmatter
\startchapter[title=Test A]
\samplefile{knuth}
\stopchapter

\stopfrontmatter

%\page[yes]

\start
\setups{Thumb-pictures}

\startbodymatter
 \startchapter[title=Test B]
\samplefile{ward}
 \stopchapter

\startchapter[title=Test C]
\samplefile{ward}
\stopchapter

\startchapter[title=Test D]
\samplefile{ward}
\stopchapter


\stopbodymatter
\stop

\startbackmatter
\dorecurse{5}{\startchapter[title=Test #1]
\samplefile{thuan}
\stopchapter}

\stopbackmatter

\stoptext


> On 19 Mar 2022, at 21:42, Willi Egger via ntg-context  
> wrote:
> 
> Hello Otared,
> 
> thanks so much for your testing and comments. — Tthe problem is, that this 
> thumb-picture should only be placed in the \startboydmatter..\stopbodymatter 
> sections. In the case of this book however there are the title pages and 
> quite some text including the TOC in the \startfrontmatter..\stopfrontmatter. 
> SO I end up with being forced to invoke the setups at the beginning of the 
> bodymatter.
> 
> Thanks!
> Kind regards
> 
> Willi
> 
>> On 19 Mar 2022, at 16:52, Otared Kavian via ntg-context  
>> wrote:
>> 
>> Hi Willi,
>> 
>> Your test file works fine if I place 
>>  \setups{Thumb-pictures}
>> before \starttext (using version 2022.03.12 17:56 LMTX).
>> However in the file you sent the choice of the command
>>  \setups{Thumb-pictures}
>> is between chapter A and B, which seems starnge to me...
>> 
>> Best regards: Otared K.
>> 
>>> On 18 Mar 2022, at 20:29, Willi Egger via ntg-context  
>>> wrote:
>>> 
>>> Good evening!
>>> 
>>> I have a dictionary where I would like to include thumb-pictures in the 
>>> margin. — When I use the attached code with a single 
>>> \startchapter...\stopchapter, it works. However if I add another 
>>> \startchapter…\stopchapter before loading the setups for the thumb-picture 
>>> metafun throws an error about not having complete information for 
>>> performing a transformation.
>>> 
>>> I am currently using the before last version of LMTX-ConTeXT (January 21st 
>>> 2022).
>>> 
>>> Could someone try to compile?
>>> 
>>> Thanks, kind regards
>>> 
>>> Willi___
>>> 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] Metafun, difficulty with graphical element in the margin

2022-03-19 Thread Otared Kavian via ntg-context
Hi Willi,

Your test file works fine if I place 
\setups{Thumb-pictures}
before \starttext (using version 2022.03.12 17:56 LMTX).
However in the file you sent the choice of the command
\setups{Thumb-pictures}
is between chapter A and B, which seems starnge to me...

Best regards: Otared K.

> On 18 Mar 2022, at 20:29, Willi Egger via ntg-context  
> wrote:
> 
> Good evening!
> 
> I have a dictionary where I would like to include thumb-pictures in the 
> margin. — When I use the attached code with a single 
> \startchapter...\stopchapter, it works. However if I add another 
> \startchapter…\stopchapter before loading the setups for the thumb-picture 
> metafun throws an error about not having complete information for performing 
> a transformation.
> 
> I am currently using the before last version of LMTX-ConTeXT (January 21st 
> 2022).
> 
> Could someone try to compile?
> 
> Thanks, kind regards
> 
> Willi___
> 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] Why isn't bold + italics working together?

2022-01-29 Thread Otared Kavian via ntg-context


> On 29 Jan 2022, at 18:03, Denis Maier via ntg-context  
> wrote:
> 
> IDK, but then it's probably a font issue?
> […]
> This thread is outdated, you can now stack styles.
> 
> \starttext
> 
> text {\italicface text {\boldface text} text} text
> 
> \stoptext
> 
> Wolfgang

However there seems to be an inconsistency, as in the example below: in this 
particular example it is better to use explicitely \bi to have bold italic.

\starttext

text {\italicface text {\boldface text} text} text

text {\it text {\bf text} text} text: here the third instance of text is in 
boldface, but not in italic boldface.

text {\it text {\bi text} text} text

\stoptext

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] OT world history: other measuring systems?

2022-01-26 Thread Otared Kavian via ntg-context

> On 26 Jan 2022, at 00:17, Hans Hagen via ntg-context  
> wrote:
> […]
> times (clocks) were definitely different per city

Regarding the issue of the absolute necessity of defining a standard time the 
book by Peter Galison « Einstein’s Clocks, Poincaré’s Maps » gives some 
interesting insight. In particular, since after the mid 19th century trains 
were developed while the time was not standardized, many accidents happened 
with hundreds of people killed. This led Henri Poincaré, Lorentz and Einstein 
(among other mathematcians and physicists) to th enotion of relativity…

Regarding the measure of the distance, area, volumes and weight indeed each 
region of the world had its own units because the trade and exchange of 
products were essentially local. With the progressive extension of the 
exchanges between regions and countries the need for a standardization appeared 
more and more.
For example the problem of measuring grains is a quite difficult one: if one 
measures the weight, depending on how much humidity the grains contain, one has 
different amount of the real stuff. If one measures the volume of the grains, 
then according how compressed they are, the amount of the grains may be 
different… (at some point there was a law which stated that when a unit vessel 
of grains was to be sold, the seller should struck the bottom of the vessel on 
a table three times and then refill again sthe vessel for it to be full).

The measure of the distances on roads in the Persian empire had one unit and 
one subunit: « parasang » and « mil ». Parasang, which means « big stone » in 
Persian, was the average distance which a fantassin could walk in a certain 
amount of time, and was marked by a large piece of stone on the road (this is 
also reported by Herodotus). Each parasang was divided into three « mil », 
which means « iron bar » in Persian, and was marked by planting an iron bar on 
the road side. A parasang is between 5400 and 6000 meters, and thus a « mil » 
is something about 1800 and 2000 meters. These units were used in many areas 
outside the Persian empire, and are still used, in particular the parasang, in 
Iran and Afghanistan (in Iran a parasang is 6 kilometers now). (Personnaly I 
think the Roman mile has its origin in the Persian « mil »: I think the 
etymology of the word mile based on the word « mille », a thousand, cannot be 
correct since it does not correspond to one thousand of any other unit of 
length used in the Roman empire).

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] definemathcommand and Lucida OT

2022-01-18 Thread Otared Kavian via ntg-context
Hi Hans,

Some time ago I reported about an issue with \definemathcommand, and the issue 
is still present, as one can see with following example.

Best regards: Otared
% begin liminf-Argmin.tex

\setupbodyfont[lucidaot]
%\setupbodyfont[termes]

\definemathcommand [Argmin]  [limop] {\mfunctionlabeltext{ArgMin}}
\definemathcommand [liminfbar]  [limop] {\underline{\mfunctionlabeltext{lim}}}
\definemathcommand [limsupbar]  [limop] {\overline{\mfunctionlabeltext{lim}}}

\starttext
The built-in commands \type{\liminf}, yielding $\liminf$, and \type{\limsup}, 
yielding $\limsup$ do not work properly with LucidaOT:
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad 
\limsup_{n\geq 0} x_{n}= +1.
\stopformula

The user defined commands \type{\liminfbar} and \type{\limsupbar} behave 
correctly:
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad 
\limsupbar_{n\geq 0}x_{n} = +1,
\stopformula
but not the command \type{\Argmin}
\startformula
\Argmin_{x\in {\Bbb R}} (x^2 - x + 1) = {1 \over 2}.
\stopformula

\stoptext

% end liminf-Argmin.tex



liminf-Argmin.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] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-18 Thread Otared Kavian via ntg-context
Hi Hans and Aditya,

Thanks for the clarification. Since for some documents I still use mkiv, I 
ended up using a definition which depends on whether one is using mkiv or lmtx, 
as in the example below. I wonder if there is a better solution.

Best regards: Otared
% begin bug-aligned-solved.tex
\doifmode{mkiv}{\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]}

\doifmode{mkiv}{\definemathmatrix[matrix]
[align={right,left,left}]}

\doifmode{lmtx}{\definemathmatrix[alignedcases]
[align={1:right,2:left,3:left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]}

\doifmode{lmtx}{\definemathmatrix[matrix]
[align={1:right,2:left,3:left}]}

\starttext

\doifelsemode{lmtx}{We are using LMTX}{We are using mkiv}

\placeformula[eq:1]
\startformula
\startalignedcases
\NC  \partial_{t} u  \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, 
\Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\,  
\partial \Omega\times (0,+\infty)\NR
\NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR
\stopalignedcases
\stopformula

\startformula
 \startmatrix
\NC ABC\NC ABC\NC ABC\NR
\NC AA \NC AA \NC AA \NR
  \stopmatrix
\stopformula
% end bug-aligned-solved.tex

> On 17 Jan 2022, at 23:53, Hans Hagen via ntg-context  
> wrote:
> 
> On 1/17/2022 11:35 PM, Aditya Mahajan via ntg-context wrote:
>> On Mon, 17 Jan 2022, Aditya Mahajan via ntg-context wrote:
>>> I confirm that this is a bug, which was not there in the version from mid 
>>> Dec.
>> Not a bug, but new interface. You need:
>> \definemathmatrix[matrix]
>>  [align={1:right,2:left,3:left}]
>> It is also possible to say: align={all:middle}. Combination of the two don't 
>> seem to work.
> basically we increment each element but a number sets the column so one can 
> go to a specific column; empty (whatever non number will start again at zero)
> 
> 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] Bug in alignment with LMTX version 2022.01.15 17:32

2022-01-17 Thread Otared Kavian via ntg-context
Hi Hans and Mikael,

While investigating the latest version regarding the math environment, I found 
that the alignments are not correct.
Here is an example:

% begin bug-alignment.tex
\definemathmatrix[alignedcases]
[align={right,left,left},
distance=3pt,
left={\left\{},
right={\right.},
style=\displaystyle]
\starttext

\placeformula[eq:1]
\startformula
\startalignedcases
\NC  \partial_{t} u  \NC = \Delta u + \epsilon^{-2}f(u) \NC\qquad\text{in }\, 
\Omega\times (0,+\infty) \NR
\NC {\partial\phi(u) \over \partial{\bi n}} \NC = 0 \NC\qquad\text{on }\,  
\partial \Omega\times (0,+\infty)\NR
\NC u(x,0) \NC = u_{0}(x)\NC\qquad\text{in }\, \Omega.\NR
\stopalignedcases
\stopformula

\stoptext
% end bug-alignment.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] Simpleslides and LMTX

2022-01-17 Thread Otared Kavian via ntg-context
Hi Aditya and Thomas,

Following the hint given by Thomas about fixing the behaviour of the visual 
counter in the simpleslides module, I tried all the possible styles and found 
that once the PageNumber is changed into RealPageNumber in the 
s-simpleslides-*.tex
style files. All the styles work fine unless three of them which I describe 
below.
I don’t know how the modules are maintained on the wiki or elsewhere, but if 
you wish I can send you privately the files where I have changed PageNumber to 
RealPageNumber so that the simpleslides module can be used ot of the box with 
LMTX.

Best regards: Otared
PS: Here are the issues with the three styles which don’t work properly:

• BigNumber: for the style to be typeset,  one has to modify the part where 
BigNumberFont is defined

%\beginOLDTEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym  [BigNumberFont] [ec-qhvb] 
%\endOLDTEX
%
%\beginXETEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym  [BigNumberFont] [ec-qhvb] 
%\endXETEX
%
%\beginLUATEX
\definefontsynonym  [BigNumberFont] [name:texgyreherosbold]
%\endLUATEX

Then the file « example.tex » can be typeset, but the big numbers shown are 
always 1.

• Embossed: for the style to be typeset, one has to modify the part where 
EmbossedFont is defined

%\beginOLDTEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym [Embossed] [ec-qhvb] 
%\endOLDTEX
%
%\beginXETEX
%\loadmapfile[qhv-ec.map]
%\definefontsynonym [Embossed] [ec-qhvb] 
%\endXETEX
%
%\beginLUATEX
\definefontsynonym [Embossed] [name:texgyreherosbold]
%\endLUATEX

• SideToc: the file example.tex can be typeset with this style, but all pages 
come out in black… the text cannot be seen.

___
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] SimpleSlides and Visual counters

2022-01-16 Thread Otared Kavian via ntg-context
Hi Thomas,

Thanks for your attention. Indeed I could have asked you, but since Aditya 
answered my previous message I continued asking him…

Anyway, you are correct: replacing PageNumber with RealPageNumber everywhere, 
the visual counter is shown correctly…

For the sake of the mail archives, in case someone else encounters the issue, I 
add the example below.

Many thanks for help !
Best regards: Otared 

% begin interactive-visual-counter.tex
%% to use with the simpleslides module
\setupinteraction[state=start]
\usemodule[simpleslides]
[style=swoosh]

\startuseMPgraphic{simpleslides:MP:counter}
save b, s, t, p, circcenter, theta, pic ;
path p[] ;
pair t[] ;
pair s[] ;
pair circcenter ; 
circcenter = urcorner Page shifted (-1cm,-1cm) ; % the counter is shown 
in the upper right corner
%   circcenter = lrcorner Page shifted (-1cm,1cm) ; % the counter is shown 
in the lower right corner
pair zt, zr, zb, zl ;
picture pic ;
b = 1.5cm ;
if RealPageNumber > 1 : % the page after which the visual counter is 
shown
theta = (RealPageNumber - 1)/(NOfPages - 1) ;
p[4] = fullcircle scaled b rotated 90 ;
p[4] := p[4] shifted circcenter ;
fill p[4] withcolor \MPcolor{simpleslides:altcontrastcolor} ;
t[0] = center p[4] ;
t[1] = point 1 along p[4] ;
t[2] = point -theta along p[4] ;
t[3] = point -theta/2 along p[4] ;
p[5] = t[0] -- t[1] .. t[3] .. t[2] -- cycle ;
fill p[5] withcolor \MPcolor{simpleslides:contrastcolor} ;
for i = 1 upto NOfPages :
s[i] = point i/(NOfPages -1) along p[4] ;
pickup pencircle scaled 1pt ;
draw s[i] -- t[0] 
withcolor 
\MPcolor{simpleslides:backgroundcolor} ;
endfor ;
zt = t[0] shifted (0, b * 0.2) ;
zr = t[0] shifted (b * 0.2, 0) ;
zb = t[0] shifted (0, -b * 0.2) ;
zl = t[0] shifted (-b * 0.2, 0) ;
p[3] = zt .. zr .. zb .. zl .. cycle ;
fill p[3] withcolor  \MPcolor{simpleslides:contrastcolor} ;
draw p[3] withcolor \MPcolor{simpleslides:backgroundcolor} ;
label(textext("\start\switchtobodyfont[10pt]%

\setupinteraction[color=simpleslides:backgroundcolor,style=normal]%
\startcolor[simpleslides:backgroundcolor]
\goto{\pagenumber}[PreviousJump]
\stopcolor\stop"),center p[3]) ;
fi ;
\stopuseMPgraphic

\starttext

\setupTitle
[title={Somewhere university},
author={Someone Else},
date={Somewhere, Someday 2021}]
\placeTitle

\page
\SlideTitle{Knuth} 

\input knuth.tex

\SlideTitle{Ward} 

\input ward.tex

\SlideTitle{Lorem} 

\input lorem.tex

\SlideTitle{Thuan} 

\input thuan.tex

\stoptext
% end interactive-visual-counter.tex



> On 16 Jan 2022, at 16:14, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> 
> On 16.01.22 15:56, Otared Kavian via ntg-context wrote:
>> Hi Aditya,
>> Some time ago I reported an issue with LMTX regarding your visual counter 
>> (at least the version used in the simpleslides module).
>> Now I think I have found where the issue comes from: it is due to the fact 
>> that somehow the conditional
>>  if PageNumber > 2 :
>>  
>>  [some code]
>>  fi ;
> 
> Hi Otared,
> 
> I'm not Aditya, but I've encountered the same problem within simpleslides. 
> Can you replace PageNumber with RealPageNumber and see whether this solves 
> your problem?
> 
> 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] SimpleSlides and Visual counters

2022-01-16 Thread Otared Kavian via ntg-context
Hi Aditya,

Some time ago I reported an issue with LMTX regarding your visual counter (at 
least the version used in the simpleslides module).
Now I think I have found where the issue comes from: it is due to the fact that 
somehow the conditional

if PageNumber > 2 :

[some code]

fi ;

is not treated correctly, and if one removes the conditional while keeping only 
[some code] above, then the visual counter is shown correctly. 

I am sending you the TeX file where you can see that if lines 17 and 46 are 
uncommented then the visual counter does not show up.

Thanks for your help: Otared K.



bug-visual-counter.tex
Description: Binary data




bug-visual-counter.pdf
Description: Adobe PDF document



> On 16 Nov 2021, at 23:11, Otared Kavian  wrote:
> 
> Hi Aditya,
> 
> Thank you for your attention and your kind reply.
> 
> I am sending a setup file with an example of presentation, which shows the 
> issue with LMTX while with mkiv the result is fine.
> Actually as you can see in the setup file, I have slightly modified the 
> visula counter in order for it to be interactive (clicking in the center of 
> the visula counter gives a jump to the previous location…).
> 
> Best regards: Otared
> 
> 
> 
> 
>> On 16 Nov 2021, at 18:34, Aditya Mahajan via ntg-context 
>>  wrote:
>> 
>> On Mon, 15 Nov 2021, Otared Kavian via ntg-context wrote:
>> 
>> Hi Otared,
>> 
>>> It seems that the visual counter in  SimpleSlides module (the version I 
>>> have from ConTeXt Garden is from 2014) does not work fine with the latest 
>>> LMTX.
>>> Is the issue is known ? If so, is there a new version of SimpleSlides in 
>>> which the issue has been fixed ?
>> 
>> I haven't looked at simpleslides in over a decade! The module did use some 
>> low-level macros, which are unlikely to work with LMTX without change. 
>> 
>> It could also be a bug with visualcounter module. I haven't tested in with 
>> LMTX (I still use MkIV for most of my presentations). If you can post a 
>> minimal example, I could take a look.
>> 
>> Thanks,
>> 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] Why mtxrun fails ?

2022-01-07 Thread Otared Kavian via ntg-context
Hi Jean-Pierre,

In which directory (or « folder », speaking MacOS…) have you installed the 
ConTeXt tree ? 
For instance, on my machine, I have installed the ConTeXt LMTX tree in

/Applications/context-osx-arm64/

and then if for example I need to execute the mtxrun coming with this tree, I 
can say

/Applications/context-osx-arm64/tex/texmf-osx-64/bin/mtxrun - -generate

(beware the « - - generate » should be actually two successive « - » dashes 
without a space between them… I am using Mail.app on my Mac and it replaces the 
two dashes with a longer n-dash « — »).

Of course the best would be to create an alias for 

/Applications/context-osx-arm64/tex/texmf-osx-64/bin/mtxrun

in your .bashrc, if you use bash.

Best regards: Otared K.

> On 7 Jan 2022, at 23:01, Jean-Pierre Delange via ntg-context 
>  wrote:
> 
> Hello !
> Sorry for this newbie question : I’ve just uploaded CTX on my new MacOS (High 
> Sierra), and when I pass the command mtxrun —generate or any other option 
> with mtxrun, I get this : -bash: mtxrun: command not found
> 
> I did that before :  echo "export 
> PATH=/Users/adeimantos/Documents/context/tex/texmf-osx-64/bin:$PATH" >> 
> ~/.bashrc
> 
> What I am missing ?
> JP
> ___
> 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] critical fun

2022-01-06 Thread Otared Kavian via ntg-context
Hi Jean-Pierre,

You need to update your ConTeXt LMTX: the example works fine on MacOS when one 
has the version 2022.01.06 19:51.

Best regards: Otared K.

> On 6 Jan 2022, at 22:09, Jean-Pierre Delange via ntg-context 
>  wrote:
> 
> This ‘CriticalFun’ test failed, and CTX complains that \setupsynchronize was 
> never defined (see the log, as attached file)
> 
>> Le 6 janv. 2022 à 20:00, Hans Hagen via ntg-context  a 
>> écrit :
>> 
>> Hi,
>> 
>> Maybe this is of interest to critical users:
>> 
>> \setupsynchronize [paralleltext] [color=darkblue]
>> % \setupsynchronize [paralleltext] [style=\tx,color=darkred]
>> % \setupsynchronize [paralleltext] [style=\txx,color=darkgreen]
>> 
>> \starttext
>> 
>> \dorecurse{10}{%
>>   \paralleltext
>>   {[een allereerste zinnetje]}
>>   {[een tweede  zinnetje]}%
>>   \space
>>   \paralleltext
>>   {[een derde zin]}
>>   {[een vierde zinnetje]}
>>   \space
>> } \removeunwantedspaces
>> \par test line \page
>> 
>> \paralleltext
>>   {[\ignorespaces\samplefile{tufte}\removeunwantedspaces]}
>>   {[\samplefile{ward}\removeunwantedspaces]}%
>> \par test line \page
>> 
>> \paralleltext
>>   {[\ignorespaces\samplefile{tufte}\removeunwantedspaces]}
>>   {[\ignorespaces\samplefile{tufte}\removeunwantedspaces]}%
>> \par test line \page
>> 
>> \paralleltext
>>   {[\ignorespaces\samplefile{ward}\removeunwantedspaces]}%
>>   {[\ignorespaces\samplefile{tufte}\removeunwantedspaces]}
>> \par test line \page
>> 
>> \stoptext
>> 
>> Kind of experimental and semi-automatic (triggered by question from 
>> collegue). I want to add some larger text sync points (just mark locations 
>> in two running texts) stuff but i have no examples.
>> 
>> 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
> ___

___
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] Math in LMTX and definemathcommand

2021-11-17 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you for the new upload and the rewriting of the math fonts stuff, thanks 
also to Mikael S. I did several tests on real size math projects and did not 
notice important issues.

The two issues I noticed, show up mainly with LucidaOT, and are explained in 
the following example:

\setupbodyfont[lucidaot]

\definemathstackers[MySymbol]
[voffset=-1.4\mathexheight, % -.8\mathexheight
hoffset=\zeropoint,
mathclass=ord,
topoffset=.3\mathemwidth, % poor man's italic correction
middlecommand=\mathematics]

\define[1]\interior{\mathover[MySymbol]{176}{#1}} %2218 U+00B0

\definemathcommand [Argmin]  [limop] {\mfunctionlabeltext{ArgMin}}
\definemathcommand [liminfbar]  [limop] {\underline{\mfunctionlabeltext{lim}}}
\definemathcommand [limsupbar]  [limop] {\overline{\mfunctionlabeltext{lim}}}

\starttext
If $A \subset {\Bbb R}$ is a set, its interior is denoted by $\interior{A}$. 
Can one have the circle over $A$ slightly bigger (probbaly this is font 
dependent)?

The built-in commands $\liminf$ and $\limsup$ do not work properly with 
LucidaOT (I tried other fonts and there they are fine):
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad 
\limsup_{n\geq 0} x_{n}= +1.
\stopformula

The commands defined above, \type{\liminfbar} and \type{\limsupbar}, behave 
correctly in all fonts I tested:
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad 
\limsupbar_{n\geq 0}x_{n} = +1,
\stopformula
but not the command \type{\Argmin} (which does not show Argmin in any font…)
\startformula
\Argmin_{x\in {\Bbb R}} (x^2 - x + 1) = {1 \over 2}.
\stopformula

\stoptext

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] SimpleSlides and Visual counters

2021-11-16 Thread Otared Kavian via ntg-context
Hi Aditya,

Thank you for your attention and your kind reply.

I am sending a setup file with an example of presentation, which shows the 
issue with LMTX while with mkiv the result is fine.
Actually as you can see in the setup file, I have slightly modified the visula 
counter in order for it to be interactive (clicking in the center of the visula 
counter gives a jump to the previous location…).

Best regards: Otared



presentation.tex
Description: Binary data



conf-pre-setup.tex
Description: Binary data


> On 16 Nov 2021, at 18:34, Aditya Mahajan via ntg-context  
> wrote:
> 
> On Mon, 15 Nov 2021, Otared Kavian via ntg-context wrote:
> 
> Hi Otared,
> 
>> It seems that the visual counter in  SimpleSlides module (the version I have 
>> from ConTeXt Garden is from 2014) does not work fine with the latest LMTX.
>> Is the issue is known ? If so, is there a new version of SimpleSlides in 
>> which the issue has been fixed ?
> 
> I haven't looked at simpleslides in over a decade! The module did use some 
> low-level macros, which are unlikely to work with LMTX without change. 
> 
> It could also be a bug with visualcounter module. I haven't tested in with 
> LMTX (I still use MkIV for most of my presentations). If you can post a 
> minimal example, I could take a look.
> 
> Thanks,
> 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] new upload

2021-11-16 Thread Otared Kavian via ntg-context
Hi Hans,

Thank you for the new upload and the rewriting of the math fonts stuff, thanks 
also to Mikael S. I did several tests on real size math projects and did not 
notice important issues.

The two issues I noticed, show up mainly with LucidaOT, and are explained in 
the following example:

\setupbodyfont[lucidaot]

\definemathstackers[MySymbol]
[voffset=-1.4\mathexheight, % -.8\mathexheight
hoffset=\zeropoint,
mathclass=ord,
topoffset=.3\mathemwidth, % poor man's italic correction
middlecommand=\mathematics]

\define[1]\interior{\mathover[MySymbol]{176}{#1}} %2218 U+00B0

\definemathcommand [Argmin]  [limop] {\mfunctionlabeltext{ArgMin}}
\definemathcommand [liminfbar]  [limop] {\underline{\mfunctionlabeltext{lim}}}
\definemathcommand [limsupbar]  [limop] {\overline{\mfunctionlabeltext{lim}}}

\starttext
If $A \subset {\Bbb R}$ is a set, its interior is denoted by $\interior{A}$. 
Can one have the circle over $A$ slightly bigger (probbaly this is font 
dependent)?

The built-in commands $\liminf$ and $\limsup$ do not work properly with 
LucidaOT (I tried other fonts and there they are fine):
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminf_{n \geq 0}x_{n} = -1, \quad 
\limsup_{n\geq 0} x_{n}= +1.
\stopformula

The commands defined above, \type{\liminfbar} and \type{\limsupbar}, behave 
correctly in all fonts I tested:
\startformula
x_{n} := (-1)^n, \quad\mbox{then} \quad \liminfbar_{n \geq 0}x_{n} = -1, \quad 
\limsupbar_{n\geq 0}x_{n} = +1,
\stopformula
but not the command \type{\Argmin} (which does not show Argmin in any font…)
\startformula
\Argmin_{x\in {\Bbb R}} (x^2 - x + 1) = {1 \over 2}.
\stopformula

\stoptext

Best regards: Otared

> On 13 Nov 2021, at 21:19, Hans Hagen via ntg-context  
> wrote:
> 
> Hi,
> 
> I uploaded a new lmtx versions. It mostly concerns new math lfg file 
> functionality (and control) that Mikael Sundqvist and I are currently working 
> on so there might be subtle differences in math, which is, unless there are 
> bugs, intentional and for the best. At some point there will be additional 
> test files in the distribution and a chapter on fonts in the math manual (the 
> deadline is next years ctx meeting).
> 
> If you have wishes wrt fonts you can tell us and we'll take them into account 
> (if possible) but we need proper (real) minimal examples, and not for only 
> one font as we're looking at:
> 
> cambria (the reference font, very little tweaking needed)
> modern  (which has some properties different from other gyre fonts)
> modernlatin (the boldened aka bachotex version)
> dejavu  (a gyre font but different from other gyre fonts)
> pagella (a gyre font, all have subtle differences)
> schola  (a gyre font, all have subtle differences)
> termes  (a gyre font, all have subtle differences)
> bonum   (a gyre font, all have subtle differences)
> lucida  (commercial but rather cheap from tug)
> xits(is that one still used?)
> libertinus  (a mixed bag)
> stix-two(a mixed bag)
> asana   (we might drop it because of quality reasons)
> ebgaramond  (this one is quite cambria conforming)
> minion  (tricky because commercial and not generally available)
> 
> Maybe later the newlatin modern will get a lfg too but it's beta and we 
> 'modernlatin' anyway which uses our normal lm lgf file as it's A runtime 
> derived font and therefore fully compatible.
> 
> The bold (heavy) math fonts also are dealt with automagically.
> 
> For practical reasons we might freeze fonts in the distribution and only 
> update when explicitly checked for changes (and/or I might cook up version 
> support in the lfg file assuming version checking is doable as often version 
> strings are somewhat messy). We're not that bound to conventions (in the 
> perspective of tex usage) and can "fix" them once and for all (read: we can 
> divert from how these fonts are currently tuned for usage and expectations in 
> e.g. latex and plain tex) so feel free to suggest esthetical pleasing 
> options. If needed we can add variants (for which we can extend the lfg 
> format). We also have plenty of yet unused (detailed) control in the engine. 
> We can for instance have specific parameter sets / finetuning defined in the 
> lfg files too but I don't know how useful and in demand that is (Mikael is 
> looking into that).
> 
> (I'm sure Aditya has some wishes. We'll deal with Euler later as that's a 
> virtual mix and virtual opentype might be redone later because we can simply 
> matters a bit due to the fact that we have some more and better trickery wrt 
> virtual fonts now.)
> 
> More in due time (as it's a tedious and somewhat boring job that demands lots 
> of testing and investigation),
> 
> Hans
> 
> -
>  Hans Hagen | PRAGMA ADE
>  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>   

[NTG-context] SimpleSlides and Visual counters

2021-11-15 Thread Otared Kavian via ntg-context
Hi all, in particular Aditya M. and Thomas A.S.,

It seems that the visual counter in  SimpleSlides module (the version I have 
from ConTeXt Garden is from 2014) does not work fine with the latest LMTX.
Is the issue is known ? If so, is there a new version of SimpleSlides in which 
the issue has been fixed ?

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] \externafigure and \at do not work together

2021-10-31 Thread Otared Kavian via ntg-context
Hi,

Your example has two issues, since you invoke \externalfigure before 
\starttext, and moreover you don’t use the place figure mechanism.
The following gives the result you want:

\setupinteraction[state=start]
\starttext
\startplacefigure[reference=clock]
\externalfigure[clock.jpg]
\stopplacefigure
In figure \at[clock] you see a clock
\page
In figure \at[clock] you see a clock. 

Or better: in \in{Figure}[clock] you see a clock.
\stoptext

Best regards: Otared

> On 31 Oct 2021, at 13:49, a badin via ntg-context  wrote:
> 
> The fix is not really a fix thought, as it makes the image of the
> figure disappear.
> Still don't know how to make a .jpg work with \at
> 
> On Sun, 31 Oct 2021 at 13:07, a badin  wrote:
>> 
>> Hello, perhaps this is how it is supposed to work, but:
>> 
>> \externalfigure[clock.jpg][clock]
>> \starttext
>> \at[clock] refers to a clock
>> \stoptext
>> 
>> produces "?? refers to a clock", instead of "1 refers a clock" --- the
>> wiki of \at says, that labels of figures can be refered to. Is this a
>> bug, or can only some labels be refered to? I was able to fix it
>> using:
>> 
>> \reference[clock]{\externalfigure[clock.jpg]}
>> \starttext
>> \at[clock] refers to a clock
>> \stoptext
>> 
>> and
>> 
>> \externalfigure[clock][]
>> \starttext
>> \at
>> \stoptext
>> 
>> produces an interesting artwork... so I thought maybe this could be a
>> bug. LMTX 2021.10.21
>> 
>> Best,
>> Andrej
> ___
> 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] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context
> On 11 Aug 2021, at 10:19, Thomas A. Schmitz via ntg-context 
>  wrote:
> 
> 
>> On 11. Aug 2021, at 10:09, Otared Kavian via ntg-context 
>>  wrote:
>> 
>> Thanks for the example and the fix, but I would rather think that the « 
>> french » part of ordinals should be
>> 
>>  french = function(n)
>>  if n == 1 then
>>  return « er"
>>  else
>>   return « ème"
>>  end
>>  end,
> 
> Except if you have something like “1ère image”… Ah, languages are so messy 
> (no pun with recent events in Paris intended).
> 
> Thomas

Sure… But then maybe it is possible to define one’s own « ordinals.french » for 
messy cases :-) 
___
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] Create an enumeration style

2021-08-11 Thread Otared Kavian via ntg-context


> On 9 Aug 2021, at 18:10, Wolfgang Schuster via ntg-context 
>  wrote:
> (…)
> core-con.lua (line 1155):
> 
> local ordinals = {
> [...]
> french = function(n)
> if n == 1 then
> return "er"
> +   else
> +   return "e"
> end
> end,
> }

Hi Wolfgang,

Thanks for the example and the fix, but I would rather think that the « french 
» part of ordinals should be

french = function(n)
if n == 1 then
return « er"
else
 return « ème"
end
end,

Now if this were not accepted as a fix in core-con.lua, is there a way for a 
user to change the default to the above choice in his document ?

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] Strange new behaviour of the mailing list

2021-07-31 Thread Otared Kavian via ntg-context
> On 31 Jul 2021, at 00:05, Bruce Horrocks  wrote:
> […]
> I see the same thing, also on Macos. Looking at an older message, I see that 
> the Reply-To: header has changed from
> 
> Reply to: Bruce Horrocks ,
>  mailing list for ConTeXt users 
> 
> to
> 
> Reply to: mailing list for ConTeXt users 
> 
> 
> So I suggest that there is little you can do as it appears to be a 
> configuration change on the mailing list server; and Apple Mail doesn't have 
> the facilities to easily allow you to re-write that header

Hi Bruce,

Thanks for your reply. 
I don’t know what has triggered this change, which seems to me strange and 
inconvenient.

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] Strange new behaviour of the mailing list

2021-07-31 Thread Otared Kavian via ntg-context
> On 31 Jul 2021, at 00:47, Henning Hraban Ramm via ntg-context 
>  wrote:
>> […]
> 
> If you click on that name, you can see the actual address.
> 
> Hraban

Sure, but I don’t understand why the behaviour has changed. It seems to me a 
regression…

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] Strange new behaviour of the mailing list

2021-07-30 Thread Otared Kavian via ntg-context
Hi all,

I noticed that beginning July 27th, the messages distributed by the ConTeXt 
mailing list appear to be from

Mailing list for ConTeXt users

without the actual name of the sender appearing. It may be dependent on the 
mail client I am using (Mail.app on MacOS 11.4), but I wonder whether something 
has changed on mailing list server, and whether if there is something I can do 
to have the old behaviour (which was convenient when one wanted to follow up 
mails from some specific contributors). 

Also has anybody else noticed this change?

Thanks in advance for any hint.
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] Metapost Animation of Sine

2021-07-22 Thread Otared Kavian
Hi Jeroen,

Unfortunately I am not familiar with Tikz, since all my documents use what is 
built-in ConTeXt and Metapost…
That being said I am sure someone on the list can help you with Tikz module.

Best regards: Otared

> On 22 Jul 2021, at 14:28, Jeroen  wrote:
> 
> Hi, both solutions are great! This is what I had in mind, a rolling sine. Is 
> there a way to get the same result with the Tikz module?
> 
> \usemodule[animation]
> \setupinteraction[state=start]
> 
> \starttext
> 
> \input tufte
> 
> \framed{
> \startanimation[menu=yes,framerate=40]
> \dorecurse{50}{\expanded
> {\startframe
> \startMPcode
> numeric u, omega, mylength, tt ;
> u := 2cm ;
> omega := 4 ;
> mylength := 3.141596 ;
> tt := \recurselevel ;
> path p ;
> p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 upto 100 : 
> .. (((mylength/100)*i)*u,sin(omega*(mylength/100)*(i + tt))*u) 
> endfor ;
> draw p withpen pencircle scaled .5pt withcolor darkred ;
> \stopMPcode
> \stopframe}
> }
> \stopanimation
> }
> 
> \stoptext
> 
> Op wo 21 jul. 2021 om 23:26 schreef Otared Kavian  <mailto:ota...@gmail.com>>:
> Hi, 
> 
> I wonder whether something like the following is what you are looking for:
> 
> % begin wave-sine.tex
> \usemodule[animation]
> \setupinteraction[state=start]
> \starttext
> \startTEXpage[offset=2pt]
> \startanimation[menu=yes,framerate=10]
> \dorecurse{100}{\expanded
> {\startframe
> \startMPcode
> numeric u, omega, mylength, tt ;
> u := 2cm ;
> omega := 4 ;
> mylength := 3.141596 ;
> tt := \recurselevel ;
> path p ;
> p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 
> upto 100 : 
> .. 
> (((mylength/100)*i)*u,sin(omega*(mylength/100)*(i + tt))*u) 
> endfor ;
> draw p withpen pencircle scaled .5pt withcolor 
> darkred ;
> \stopMPcode
> \stopframe}
> }
> \stopanimation
> \stopTEXpage
> \stoptext
> % end wave-sine.tex
> 
> Best regards: OK
> 
> > On 21 Jul 2021, at 19:44, Jeroen  > <mailto:context...@gmail.com>> wrote:
> > 
> > I am looking for a sine animation as the one file f.pdf on this site
> > 
> > http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm
> >  
> > <http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm>
> > 
> > Jeroen
> > 
> > Op wo 21 jul. 2021 om 17:54 schreef Fabrice L  > <mailto:fabrice.al...@gmail.com>>:
> > Hi,
> > 
> >> Le 21 juill. 2021 à 10:08, Jeroen  >> <mailto:context...@gmail.com>> a écrit :
> >> 
> >> I use this small animation to enlarge a circle
> >> 
> >> 
> >> \usemodule[animation]
> >> \setupinteraction[state=start]
> >> \starttext
> >> \startanimation[menu=yes,framerate=10]
> >> \dorecurse{7}{\expanded
> >>   {\startframe
> >> \startMPcode
> >> path p;
> >> numeric n, u;
> >> u := 1cm;
> >> n:=\recurselevel*u;
> >> p := fullcircle scaled n;
> >> draw p;
> >> \stopMPcode
> >>   \stopframe}}
> >> \stopanimation
> >> \stoptext
> >> 
> >> 
> >> This I use to draw a sine
> >> 
> >> 
> >> \starttext
> >> \startMPcode
> >>   draw(-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
> >> (i/360*1.5cm,0.9cm*(sind(i)))endfor;
> >> \stopMPcode
> >> \stoptext
> >> 
> >> 
> >> When I put it together to animate the sine as following, it does not 
> >> entirely create the sine animation I am looking for
> >> 
> >> 
> >> \usemodule[animation]
> >> \setupinteraction[state=start]
> >> \starttext
> >> \startanimation[menu=yes,framerate=10]
> >> \dorecurse{7}{\expanded
> >>   {\startframe
> >> \startMPcode
> >> path p;
> >> numeric n, u;
> >> u := 1cm;
> >> n:=\recurselevel*u;
> >> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
> >> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
> >> draw p;
> >> \stopMPcode
> >> \stopframe}}
> >> \stopanimation
> >> \stoptext

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
Hi,

Adding to my previous message, if you are looking for an animation of the wave 
equation for a string with fixed endpoints, one has to use something like the 
following:

% begin wave-sine-string.tex
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\startTEXpage[offset=2pt]
\startanimation[menu=yes,framerate=10]
\dorecurse{101}{\expanded
{\startframe
\startMPcode
numeric u, omega, mylength, tt, N ;
u := 2cm ;
omega := 4 ;
mylength := 3.141596 ;
tt := \recurselevel - 1 ;
N := 500 ; % number of steps
path p ;
p := (0u,0u) for i = 1 upto N : 
-- 
(((mylength/N)*i)*u,cos(omega*(mylength/N)*tt)*sin(omega*(mylength/N)*i)*u) 
endfor ;
draw p withpen pencircle scaled .5pt withcolor darkred ;
\stopMPcode
\stopframe}
}
\stopanimation
\stopTEXpage
\stoptext
% end wave-sine-string.tex

Best regards: OK

> On 21 Jul 2021, at 19:44, Jeroen  wrote:
> 
> I am looking for a sine animation as the one file f.pdf on this site
> 
> http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm
> 
> Jeroen
> 
> Op wo 21 jul. 2021 om 17:54 schreef Fabrice L :
> Hi,
> 
>> Le 21 juill. 2021 à 10:08, Jeroen  a écrit :
>> 
>> I use this small animation to enlarge a circle
>> 
>> 
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> \starttext
>> \startanimation[menu=yes,framerate=10]
>> \dorecurse{7}{\expanded
>>   {\startframe
>> \startMPcode
>> path p;
>> numeric n, u;
>> u := 1cm;
>> n:=\recurselevel*u;
>> p := fullcircle scaled n;
>> draw p;
>> \stopMPcode
>>   \stopframe}}
>> \stopanimation
>> \stoptext
>> 
>> 
>> This I use to draw a sine
>> 
>> 
>> \starttext
>> \startMPcode
>>   draw(-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
>> (i/360*1.5cm,0.9cm*(sind(i)))endfor;
>> \stopMPcode
>> \stoptext
>> 
>> 
>> When I put it together to animate the sine as following, it does not 
>> entirely create the sine animation I am looking for
>> 
>> 
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> \starttext
>> \startanimation[menu=yes,framerate=10]
>> \dorecurse{7}{\expanded
>>   {\startframe
>> \startMPcode
>> path p;
>> numeric n, u;
>> u := 1cm;
>> n:=\recurselevel*u;
>> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
>> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
>> draw p;
>> \stopMPcode
>> \stopframe}}
>> \stopanimation
>> \stoptext
>> 
>> 
>> What better way can I create a sine animation with Metapost?
>>  
>> 
> 
> Here is another way to do your animation. This is doing something, but I 
> guess not what you want. Could you describe what do you have in mind ?
> 
> \starttext
> \dorecurse{7}{ % 3180
> \startMPpage
>   myvariable := #1 ;
>   path p;
> numeric n, u;
> u := 1cm;
> n:=myvariable*u;
> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
> draw p;
> \stopMPpage
> }
> \stoptext
> 
> 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-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] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
Hi, 

I wonder whether something like the following is what you are looking for:

% begin wave-sine.tex
\usemodule[animation]
\setupinteraction[state=start]
\starttext
\startTEXpage[offset=2pt]
\startanimation[menu=yes,framerate=10]
\dorecurse{100}{\expanded
{\startframe
\startMPcode
numeric u, omega, mylength, tt ;
u := 2cm ;
omega := 4 ;
mylength := 3.141596 ;
tt := \recurselevel ;
path p ;
p := (0u,sin(omega*(mylength/100)*tt)*u) for i = 1 upto 
100 : 
.. 
(((mylength/100)*i)*u,sin(omega*(mylength/100)*(i + tt))*u) 
endfor ;
draw p withpen pencircle scaled .5pt withcolor darkred ;
\stopMPcode
\stopframe}
}
\stopanimation
\stopTEXpage
\stoptext
% end wave-sine.tex

Best regards: OK

> On 21 Jul 2021, at 19:44, Jeroen  wrote:
> 
> I am looking for a sine animation as the one file f.pdf on this site
> 
> http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm
> 
> Jeroen
> 
> Op wo 21 jul. 2021 om 17:54 schreef Fabrice L :
> Hi,
> 
>> Le 21 juill. 2021 à 10:08, Jeroen  a écrit :
>> 
>> I use this small animation to enlarge a circle
>> 
>> 
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> \starttext
>> \startanimation[menu=yes,framerate=10]
>> \dorecurse{7}{\expanded
>>   {\startframe
>> \startMPcode
>> path p;
>> numeric n, u;
>> u := 1cm;
>> n:=\recurselevel*u;
>> p := fullcircle scaled n;
>> draw p;
>> \stopMPcode
>>   \stopframe}}
>> \stopanimation
>> \stoptext
>> 
>> 
>> This I use to draw a sine
>> 
>> 
>> \starttext
>> \startMPcode
>>   draw(-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
>> (i/360*1.5cm,0.9cm*(sind(i)))endfor;
>> \stopMPcode
>> \stoptext
>> 
>> 
>> When I put it together to animate the sine as following, it does not 
>> entirely create the sine animation I am looking for
>> 
>> 
>> \usemodule[animation]
>> \setupinteraction[state=start]
>> \starttext
>> \startanimation[menu=yes,framerate=10]
>> \dorecurse{7}{\expanded
>>   {\startframe
>> \startMPcode
>> path p;
>> numeric n, u;
>> u := 1cm;
>> n:=\recurselevel*u;
>> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
>> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
>> draw p;
>> \stopMPcode
>> \stopframe}}
>> \stopanimation
>> \stoptext
>> 
>> 
>> What better way can I create a sine animation with Metapost?
>>  
>> 
> 
> Here is another way to do your animation. This is doing something, but I 
> guess not what you want. Could you describe what do you have in mind ?
> 
> \starttext
> \dorecurse{7}{ % 3180
> \startMPpage
>   myvariable := #1 ;
>   path p;
> numeric n, u;
> u := 1cm;
> n:=myvariable*u;
> p := (-90/360*1.5cm,-0.9cm) for i = -90 upto 630: .. 
> (i/360*1.5cm,0.9cm*(sind(i))) endfor shifted (n,0);
> draw p;
> \stopMPpage
> }
> \stoptext
> 
> 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-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] Hyphens broken with lucidaot

2021-06-30 Thread Otared Kavian
Hi Hans,

I noticed that with the recent LMTX version 2021.06.27 16:59 the hyphens do not 
show up correctly with lucidaot.
Here is a minimal example and the resulting PDF

\setupbodyfont[lucidaot,10pt]
\startTEXpage
c'est-à-dire

sous-ensemble

sous-préfet
\stopTEXpage

Best regards: Otared



hyphen-lucidaot.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] simplifying repeated macro calls in metafun

2021-06-22 Thread Otared Kavian
Dear Dalyoung, dear Mikael

Thank you both for your explanations: indeed this « whatever » command in 
MetaPost is magic and very useful (I am not sure whether it is a command only 
in MetaFun, or it exists also in the original MetaPost).

Regarding the way Aditya uses \startuseMPgraphic, it is also very instructive. 
Dalyoung, can you also share the animation example for the foldings ? I am sure 
we are a few on the list to learn something…

Best regards: Otared

> On 21 Jun 2021, at 23:50, Jeong Dal  wrote:
> 
> 
> Dear Otared,
> 
> I received list mail in condensed form, I didn’t see your mail before I sent 
> one.
> 
> As Mikael explained, “whatever” is very nice to find the intersection point 
> of two lines.
> You can see nice examples which use “whatever” in MetaFun manual.
> 
> In my code, the next point is the intersection point of the edge and the 
> folding line which bisect the angle of the former folding line [M,N].
> 
> H := whatever[N, N + dir(.5*angle(M-N))*u] = whatever[A,B];
> 
> Enjoy the use of “whatever”!
> 
> I made an animation of the folding process using animation module and 
> \processMPbuffer.
> But Woldgang’s code showed a way to make it using \startuseMPgraphic.
> 
> 
> 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
___


  1   2   3   4   5   6   7   8   9   10   >