[NTG-context] Re: Wiki - test/proposal to further clarify documentation

2024-05-18 Thread Bruce Horrocks
On 17 May 2024, at 21:40, garu...@azules.eu wrote:
> 
> I have tested on 2 pages :
> - https://wiki.contextgarden.net/Sciences (only mathematics part)
> - https://wiki.contextgarden.net/Fonts
> 
> After these tests, I think this may help users to find their way around the 
> various sources of documentation :
> In one small table he/she has an overview of the documentation for a given 
> topic,  :
> - the few key tutorials
> - link to one "main wiki page" about the topic
> - the few key manuals
> - the reference for commands

The fonts page is a lot better than before[1], IMHO. I would prefer the table 
were 90% width rather than 50 but that is minor.

So is the plan to go through each of the main headings in the left side-bar and 
make the same type of change?

> 
> I'm not sure I've selected the few documents that are considered by the 
> community as the key tutorials.
> Thanks for your feedback again.

I don't think that is a problem - the Wiki can be updated by others as long as 
the layout/structure of the page is clear so people know where to add links.

> PS : in order to benefit from mediawiki page organization features, I moved 
> some pages, for example
> wiki.contextgarden.net/blablabla
> ==> wiki.contextgarden.net/Topic/blablabla


[1] Previous style for reference: 
<https://web.archive.org/web/20231116125758/https://wiki.contextgarden.net/Fonts>
—
Bruce Horrocks
Hampshire, UK

___
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 - test/proposal to further clarify documentation

2024-05-17 Thread garulfo
I have tested on 2 pages :
- https://wiki.contextgarden.net/Sciences (only mathematics part)
- https://wiki.contextgarden.net/Fonts

After these tests, I think this may help users to find their way around the 
various sources of documentation :
In one small table he/she has an overview of the documentation for a given 
topic,  :
- the few key tutorials
- link to one "main wiki page" about the topic
- the few key manuals
- the reference for commands

I'm not sure I've selected the few documents that are considered by the 
community as the key tutorials.
Thanks for your feedback again.

PS : in order to benefit from mediawiki page organization features, I moved 
some pages, for example
wiki.contextgarden.net/blablabla
==> wiki.contextgarden.net/Topic/blablabla
___
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: outlinetext broken?

2024-05-11 Thread Hans Hagen

On 5/11/2024 8:33 PM, Jairo A. del Rio wrote:
As for the current ConTeXt, the example above still produces the wrong 
output. Can anyone reproduce this case? Thank you in advance. 

It's a bit tricky but this is what i can get ... see attached.

(You have to wait till a next upload.)

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
-


outlines-003.pdf
Description: Adobe PDF document
\continuewhenlmtxmode

\starttext
\startMPpage[offset=10pt]
draw lmt_outline [
text = "\mathematics{\sqrt{2}-1}"
] ;

draw lmt_outline [
    text = "\mathematics{\sqrt[rule=no]{2}-1}"
] shifted (0,-1cm) ;

draw lmt_outline [
    text = "\mathematics{\sqrt[rule=yes]{2}-1}"
] shifted (0,-2cm) ;
\stopMPpage
\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.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: outlinetext broken?

2024-05-11 Thread Jairo A. del Rio
As for the current ConTeXt, the example above still produces the wrong
output. Can anyone reproduce this case? Thank you in advance.

Jairo

El sáb, 4 may 2024 a la(s) 7:23 p.m., Jairo A. del Rio (
jairoadelr...@gmail.com) escribió:

> Hi, list
>
> \startMPpage
> draw outlinetext.d("\mathematics{\sqrt{2}-1}")(withcolor black withpen
>   currentpen) scaled 1;
> \stopMPpage
>
> fails (radicals are not drawn at all). As for context --version,
>
> mtx-context | ConTeXt Process Management 1.06
> mtx-context |
> mtx-context | main context file:
> /usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2024.04.01 08:59
> mtx-context | main context file:
> /usr/local/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2024.04.01 08:59
>
> Maybe it's only me, but I tried with several fonts and the outcome is
> similar.
>
> Best regards,
> Jairo
>


ema.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 / 
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] outlinetext broken?

2024-05-04 Thread Jairo A. del Rio
Hi, list

\startMPpage
draw outlinetext.d("\mathematics{\sqrt{2}-1}")(withcolor black withpen
  currentpen) scaled 1;
\stopMPpage

fails (radicals are not drawn at all). As for context --version,

mtx-context | ConTeXt Process Management 1.06
mtx-context |
mtx-context | main context file:
/usr/local/context/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2024.04.01 08:59
mtx-context | main context file:
/usr/local/context/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2024.04.01 08:59

Maybe it's only me, but I tried with several fonts and the outcome is
similar.

Best regards,
Jairo


ema.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 / 
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] \intertext and highlighting with \alignhere/\breakhere

2024-03-12 Thread Max Chernoff
Hi all,

Often I want to include a sentence/paragraph in the middle of a long
multipart formula. With the old \startalign/\stopalign formulas, I could
use \intertext{...} to do this, but this doesn't work with the new
\alignhere/\breakhere formulas. I've managed to find a "solution" for
this, although I'd prefer something a bit less hacky. Any ideas?

Also, is there a way to highlight an equation across an \alignhere? Once
again, I've found a "solution", but like before, it's pretty hacky.

Example files are attached.

Thanks,
-- Max
\setupindenting[yes, 3em]
\setuphead[section][page=yes]

\unprotect
\newbox\intertext_tmp_box
\newdimen\intertext_tmp_dimen

\starttexdefinition protected newintertext #1
\texthere[left]{
\setbox\intertext_tmp_box=\hbox{
\startframedtext[
offset=none,
width=\hsize,
frame=off,
]
\parindent = \v_spac_indentation_normal
\noindent
#1
\stopframedtext
}
\global\intertext_tmp_dimen = \ht\intertext_tmp_box
\vbox to 0pt{
\vskip\dimexpr 1ex - \baselineskip \relax
\box\intertext_tmp_box
\vss
}
\aftergrouped{
\aftergrouped{
\vadjust{
\penalty 1
\vskip\dimexpr \intertext_tmp_dimen - \baselineskip \relax
}
}
}
}
\breakhere
\stoptexdefinition
\protect

\starttext
\section{Old alignment}
\samplefile{knuth}
\placeformula\startformula\startalign
\NC \text{something} + \text{really} + \text{really} + \text{long} \NC= \sqrt{x} \NR[+]
\intertext{\samplefile{knuth}}
\NC d \NC= e + f \NR[+]
\NC g \NC= h + i
\stopalign\stopformula
\samplefile{knuth}


\section{“I expect to see \tex{noalign} only after the \tex{cr} of an alignment.”}
\starttyping
\samplefile{knuth}
\startformula
\text{something} + \text{really} + \text{really} + \text{long} \alignhere= \sqrt{x} \numberhere \breakhere
\intertext{\samplefile{knuth}}
d \alignhere= e + f \numberhere \breakhere
g \alignhere= h + i
\stopformula
\samplefile{knuth}
\stoptyping


\section{Alignment not kept}
\samplefile{knuth}
\startformula
\text{something} + \text{really} + \text{really} + \text{long} \alignhere= \sqrt{x} \numberhere
\stopformula
\samplefile{knuth}
\startformula
d \alignhere= e + f \numberhere \breakhere
g \alignhere= h + i
\stopformula
\samplefile{knuth}


\section{My hack}
\samplefile{knuth}
\startformula
\text{something} + \text{really} + \text{really} + \text{long} \alignhere= \sqrt{x} \numberhere \breakhere
\newintertext{\samplefile{knuth}}
d \alignhere= e + f \numberhere \breakhere
g \alignhere= h + i
\stopformula
\samplefile{knuth}
\stoptext
\unprotect
\newbox\hightlight_tmp_box

\definemathframed[_highlight][
location=mathematics,
frame=off,
background=color,
backgroundcolor=lightred,
backgroundoffset=0.25ex,
]

\tolerant\def\highlighthere#1\alignhere#2#3\breakhere{%
\setbox\hightlight_tmp_box=\hbox{%
\m{%
\forcedisplaymath%
#1#2\null%
}%
}%
\alignhere%
\phantom{%
\null#2\null%
}%
\mskip -8mu%
\hskip -\wd\hightlight_tmp_box%
\lower 1ex \hbox{%
\_highlight[
loffset=\wd\hightlight_tmp_box,
location=keep
]{%
\hskip -\wd\hightlight_tmp_box%
\forcedisplaymath%
#1#2#3%
}%
}%
\breakhere%
}
\protect

\starttext
\startformula
a \alignhere= b + c \breakhere
\highlighthere d + e \alignhere= f \breakhere
g \alignhere= h + i
\stopformula
\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.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: Font version parse question

2024-03-07 Thread Hans Hagen

On 3/7/2024 7:36 PM, Rik Kabel wrote:

Hello all,

The font tweak file libertinus_math.lfg tests for a font version of 
*7.040*, but the result of the version parse is *7.040;RELEASE*, 
resulting in an error message. I do not know if this is the fault of the 
parser or of the font metadata. Changing the test in the .lfg file fixes 
the error, but that is not a long-term solution.


The exact message I get in the log is:

mathematics > tweak > 'LibertinusMath-Regular', size 10, math
size 0, version 'Version, 7.040;RELEASE' found, version 'Version
7.040' expected

This is not a high-priority issue for me -- I have nothing in this 
document that would benefit -- but others may appreciate a fix.
Unless we have a crash it's just a warning, more for Mikael and me so 
that we know when to check. One cannot rely on a version being a number, 
so who knows what to test. Consistency, also within a font family is 
often an issue.


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
___


[NTG-context] Font version parse question

2024-03-07 Thread Rik Kabel

Hello all,

The font tweak file libertinus_math.lfg tests for a font version of 
*7.040*, but the result of the version parse is *7.040;RELEASE*, 
resulting in an error message. I do not know if this is the fault of the 
parser or of the font metadata. Changing the test in the .lfg file fixes 
the error, but that is not a long-term solution.


The exact message I get in the log is:

   mathematics > tweak > 'LibertinusMath-Regular', size 10, math
   size 0, version 'Version, 7.040;RELEASE' found, version 'Version
   7.040' expected

This is not a high-priority issue for me -- I have nothing in this 
document that would benefit -- but others may appreciate a fix.


--
Rik
___
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: manuals

2024-02-18 Thread Jean-Pierre Delange

Hello everyone!
 As an eternal newbie (with a memory like a goldfish), I started by 
building my own documentation from the web pages constructed by Bertrand 
Masson (prehistory archaeologist in Northern France) "les fiches à 
Bébert" (obsolete version here: http://bertrandmasson.free.fr/; new 
recommended version here: 
http://lesfichesabebert.fr/TeX/context/context-intro.html). As 
mentionned by Alain Delmotte.
Bertrand Masson always keeps his site up to date, as he gives references 
to the documentation compiled by Garulfo (Joaquín Ataz López ), 
available in several languages, which I personally found well-done, 
useful and welcome. It's interesting to note with a rather positive 
smile that documentations, even if they're never really up to date in 
the details of ConTeXt's evolution, copy each other: that's what I did 
to write the beginning of a Wikibook in French 
(https://fr.wikibooks.org/wiki/ConTeXt/Qu%27est-ce_que_ConTeXt_%3F). I 
took things written by Bertrand Masson and was partially taken over by 
Garulfo and so on.
Fortunately, the ConTeXT discussion list offers MWEs: all you have to do 
is to test them and save these examples on your system in the CTX-TESTS 
document folder. The next step is to classify these examples under the 
appropriate headings, then insert them into a coding system for a 
complex document that always calls for requests for explanations from 
discussion list participants.


This question of documentation seems to me to be an age-old snake, not 
only on a technical subject which can be complex, as ConTeXt can be, but 
also concerning other types of documentation. For my part, although I 
haven't yet exhausted all the available documentation resources, whether 
internal to the distribution, or online like the ConTeXt Garden wiki, I 
think (but this has been better expressed here by others than me) that a 
real documentation refresh could be carried out collectively, with the 
great ambition of keeping obsolete documentation in an archive, while 
proposing a wiki with the date of update visible, in correlation with 
the PDF version. I have no idea how this documentation update could be 
achieved, but the fact is that it would be desirable to devote a section 
to the purely technical and basic aspects of CTX installation and font 
availability on Windows, Mac OS, Linux, BSD, etc., with MWEs and 
examples a little more detailed. Once this documentation has been passed 
as an introductory part (itself containing chapters explaining how this 
page of documentation was put together, with notes in the margins, 
etc.), this book could introduce MKIV, LuaTeX, MetaPost and so on, but 
with a clear distinction between the objectives sought: writing 
documentation with figures, writing a thesis in mathematics and physics, 
how to construct figures, or a bibliography. Not to mention the handling 
of photographs in an aesthetically demanding layout; all this with the 
possibility of showing complete or partial examples of work produced...


In a nutshell: even if I give the impression that I'm asking you to 
reinvent the wheel, in reality it's a question of collating relevant 
existing information in a way that is intelligible and clear to the 
neophyte, but that also meets the demands of experienced users, who 
don't all use ConTeXt for the same reasons. Don't get me wrong: I'm not 
telling you what to do, I'm just giving you my opinion. Basically, I'm 
saying: documentation exists, but it has to be reliable, up to date, 
easy to find and enable you to make progress in difficult situations. As 
I said, I found Garulfo's work very welcome. It's not obsolete and 
doesn't need replacing. But perhaps it could be amended on certain 
points and completed and made available both in PDF and online in the 
ConTeXt Garden wiki pages?


So, if by hypothesis the relevant documentation exists, here and there, 
but it's in the middle of pages that are in the past, it can be 
considered a daunting task to go looking for information that you 
realize is no longer up to date, because experience shows that it's no 
longer reliable. If confusion reigns, those seeking to apply what 
they've read risk turning away from ConTeXt, or asking the same 
questions over and over again.


So there's plenty of food for thought to be had when it comes to methods 
for overhauling existing documentation. It's not a question of thinking 
long and hard about the availability of this documentation (on line or 
as a PDF?), but rather of knowing whether to build an encyclopedia, or a 
series of manuals, each of which is intended to circumscribe as closely 
as possible the problems encountered when attempting this or that form 
of page layout.


I remember being astonished to discover, when I first started learning 
ConTeXt, all the vocabulary that existed around page layout (in French: 
Grand fond, petit fond, blanc de tête, blanc de pied, etc.), vocabulary 
that we ignore when we come from Word office autom

[NTG-context] Re: Square right aligned

2024-02-09 Thread Wolfgang Schuster

Pablo Rodriguez via ntg-context schrieb am 09.02.2024 um 20:07:

On 2/8/24 22:37, Otared Kavian wrote:

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.


Hi Otared,

\qed seems to have been disabled (line 988 in strc-con.mklx).



The \qed command works only in a description or enumeration environment.

\definedescription [qedtest] [closesymbol=\symbol{qed}]

\starttext

\startqedtest
\samplefile{lorem}\qed
\stopqedtest

\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://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-09 Thread Pablo Rodriguez via ntg-context
On 2/8/24 22:37, Otared Kavian wrote:
> 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.

Hi Otared,

\qed seems to have been disabled (line 988 in strc-con.mklx).

Functionality seems to have been enabled in \QED (line 45 in math-mis.mkxl).

Just in case it might 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
___


[NTG-context] Re: Square right aligned

2024-02-09 Thread Ursula Hermann
Dear Otared and Dear Hraban,

So this is my little example: works perfect, after our correspondence.

\starttext
\startalignment[normal]
\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 \par Sie sich die Bedeutung der beiden Aussagen klar.}\wordright{\square}
\stopalignment
\stoptext

Many thanks
Uschi



Von: Ursula Hermann 
Gesendet: Freitag, 9. Februar 2024 08:39:10
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Square right aligned


Dear Hraban,  Dear Otared!


Many Thanks,


Hraban: Because of \wordright: I took a look at wordright at the wiki, works 
perfect.


Otared, many thanks too. It also works perfect with your example


Uschi




Von: Otared Kavian 
Gesendet: Donnerstag, 8. Februar 2024 22:37:08
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Square right aligned

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 
mailto:ursula.herm...@univie.ac.at>> 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
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
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
___


[NTG-context] Re: Square right aligned

2024-02-08 Thread Ursula Hermann
Dear Hraban,  Dear Otared!


Many Thanks,


Hraban: Because of \wordright: I took a look at wordright at the wiki, works 
perfect.


Otared, many thanks too. It also works perfect with your example


Uschi




Von: Otared Kavian 
Gesendet: Donnerstag, 8. Februar 2024 22:37:08
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Square right aligned

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 
mailto:ursula.herm...@univie.ac.at>> 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
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
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
___


[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: Size of subscript notations

2023-12-29 Thread Mikael Sundqvist
Hi,

On Fri, Dec 29, 2023 at 5:41 PM Fabrice Couvreur <
fabrice1.couvr...@gmail.com> wrote:

> Perhaps the size should be even smaller because I personally find it still
> a little large.
>

But that would imply different scaling for different content.


>
> PS : In a thread, I thought I read that you had written a document on the
> use of mathematics with ConTeXt, true or false?
>

It is in the writing, but it takes some time (working on it tonight). I
hope to have it out in some form in a not too distant future.

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


[NTG-context] Re: Size of subscript notations

2023-12-29 Thread Fabrice Couvreur
Perhaps the size should be even smaller because I personally find it still
a little large.

PS : In a thread, I thought I read that you had written a document on the
use of mathematics with ConTeXt, true or false?

Le ven. 29 déc. 2023 à 16:14, Mikael Sundqvist  a écrit :

> Great, all is good then. (Or?)
>
> /Mikael
>
> On Fri, Dec 29, 2023 at 5:07 PM Fabrice Couvreur <
> fabrice1.couvr...@gmail.com> wrote:
>
>> Well, actually I get the same thing .
>> [image: test.png]
>>
>> Le ven. 29 déc. 2023 à 16:00, Mikael Sundqvist  a
>> écrit :
>>
>>> Hi,
>>>
>>> On Fri, Dec 29, 2023 at 4:49 PM Fabrice Couvreur
>>>  wrote:
>>> >
>>> > Thank you for your suggestion but in the following example the
>>> operational symbol is too big as well as the number 1.
>>> >
>>> > \mapfontsize[modern][script] [.4]
>>> > \mapfontsize[modern][scriptscript][.2]
>>> >
>>> > \setupbodyfont[modern,12pt]
>>> >
>>> > \startTEXpage[offset=1DK]
>>> >   \m{z_{n+1}}
>>> > \stopTEXpage
>>>
>>> Strange, here it looks OK. Maybe something that will be solved when
>>> there is an update then.
>>>
>>> /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
>>>
>>> ___
>>>
>>
>> ___
>> 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
>
> ___
>
___
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: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
What do you expect here to pass as argument to the oldfact command?
>
I will pass something like n, 5, 10 etc.

>
> This works here:
>
> \defineenumeration
>   [proof]
>   [closesymbol={\mathematics{\square}}]
>
> \starttext
>
> \startproof
> \samplefile{lorem}
> \stopproof
>
> \stoptext
>

Thanks. I will test this again.
-- 
Respect,
Shiv Shankar Dayal
___
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: old style factorial symbol and theorems

2023-12-27 Thread Wolfgang Schuster

Shiv Shankar Dayal schrieb am 27.12.2023 um 13:19:

I use following in Latex to generate old factorial symbol:

\newcommand{\oldfact}[1]{%
\tikz[baseline]{\node[anchor=base,inner 
sep=0.3ex](mynode){\ensuremath{#1}};\draw(mynode.north 
west)--(mynode.south west)--(mynode.south east);\path[use as bounding 
box]($(mynode.south west)+(-0.3ex,-0.3ex)$)rectangle($(mynode.north 
east)+(0.3ex,0.3ex)$);}

}


What do you expect here to pass as argument to the oldfact command?

But I do not know how to make it work in ConTeXt as I am not very 
familiar with ConTeXt.


If you see https://www.ntg.nl/maps/36/09.pdf page no. 28 then proof is 
defined as


\defineenumeration
[proof]
[ text=Proof,
number=no,
headstyle=italic,
title=no, %this is the default
closesymbol={\mathematics{\square}},
style=normal]

But the closessymbol does not work.

I will create a minimum working example and post it as soon as possible.


This works here:

\defineenumeration
  [proof]
  [closesymbol={\mathematics{\square}}]

\starttext

\startproof
\samplefile{lorem}
\stopproof

\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://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: old style factorial symbol and theorems

2023-12-27 Thread Shiv Shankar Dayal
I use following in Latex to generate old factorial symbol:

\newcommand{\oldfact}[1]{%
\tikz[baseline]{\node[anchor=base,inner
sep=0.3ex](mynode){\ensuremath{#1}};\draw(mynode.north west)--(mynode.south
west)--(mynode.south east);\path[use as bounding box]($(mynode.south
west)+(-0.3ex,-0.3ex)$)rectangle($(mynode.north east)+(0.3ex,0.3ex)$);}
}

But I do not know how to make it work in ConTeXt as I am not very familiar
with ConTeXt.

If you see https://www.ntg.nl/maps/36/09.pdf page no. 28 then proof is
defined as

\defineenumeration
[proof]
[ text=Proof,
number=no,
headstyle=italic,
title=no, %this is the default
closesymbol={\mathematics{\square}},
style=normal]

But the closessymbol does not work.

I will create a minimum working example and post it as soon as possible.

On Wed, Dec 27, 2023 at 5:44 PM Wolfgang Schuster <
wolfgang.schuster.li...@gmail.com> wrote:

> Shiv Shankar Dayal schrieb am 27.12.2023 um 13:01:
> > Hi,
> >
> > How can I typeset old style factorial symbol and theorems in ConTeXt.
> > I found https://www.ntg.nl/maps/36/09.pdf but it does not work. What
> > adaptation should I do for it to work?
>
> Can you be more precise what you have tried and doesn't work, a complete
> minimal example would be perfect.
>
> Wolfgang
>
>

-- 
Respect,
Shiv Shankar Dayal
___
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: Fractions

2023-12-10 Thread Gavin via ntg-context
Hello fraction fascinated friends,

> On Dec 10, 2023, at 5:24 AM, Henning Hraban Ramm  wrote:
> 
> Am 09.12.23 um 23:30 schrieb Mikael Sundqvist:
>> Hi,
>> On Sat, Dec 9, 2023 at 4:39 PM Wolfgang Schuster
>>  wrote:
>>> 
>>> Fabrice Couvreur schrieb am 09.12.2023 um 17:19:
>>> 
>>> Very clear !
>>> In typography for Mathematics books, what choice should we make for the 
>>> best possible result ?
>>> 
>>> A question better answered by Mikael or Aditya!
>> Thank you for your trust, Wolfgang. I am not sure I have something
>> valuable to say in addition to Adityas suggestion \frac{1/3} in inline
>> math. In any case, I attach a passage, with suggestions inspired by
>> Lansburgh's book (iin Swedish). Not sure the file size makes it
>> through to the list, though.
> 
> Thank you!
> 
> I usually only need simple inline fractions like 1/n, 1/2 or 3/8 in text.
> With these and \frac, the spacing below the numerator (depth) is too big, 
> while the denominator sticks too tightly to the fraction bar.
> (Of course I use regular numbers for fractions, not mediaeval.)
> 
> Usually I’d prefer “vulgar fractions”, but \vulgarfraction looks “horrible” 
> in comparison to the few usual fractions contained in fonts (like ½ & ¾).
> 
> I tried to use the OpenType fraction features to no avail.
> 
> So I’m still looking for “the best” solution for simple fractions inline.
> 
> Hraban

I also use fractions frequently, so I’ve tried a few things.

Some fonts have superior and inferior numbers that can be used to make small 
slash fractions. I’ve done this, but my method is not pretty. Hraban suggested 
using font features for this, but I haven’t learned how to do that. Any advice 
is welcome.

Example code below uses the Libertinus font, which has these superior and 
inferior numbers, to produce sample paragraph demonstrating a few options for 
fractions in text.

Gavin


\usetypescriptfile[libertinus]
\setupbodyfont [libertinus,11pt]%
\setupinterlinespace[line=3.1ex]

\define\fracone{\getnamedglyphdirect{libertinus}{onesuperior}} % 1
\define\fracthree{\getnamedglyphdirect{libertinus}{threesuperior}} % 3
\define\fracnine{\getnamedglyphdirect{libertinus}{ninesuperior}} % 9

\define\thirteenths{\textfraction\getnamedglyphdirect{libertinus}{oneinferior}\getnamedglyphdirect{libertinus}{threeinferior}}
 % /13

\define\onethirteenth{\text{\fracone\thirteenths}} % 1/13
\define\threethirteenths{\text{\fracthree\thirteenths}} % 3/13
\define\ninethirteenths{\text{\fracnine\thirteenths}} % 9/13

\starttext
Some small fractions are already available in many fonts, like \onehalf\ and 
\onethird. Others can be built using superior and inferior numbers in some 
fonts. This includes the fractions required to
find the normal and shearing stresses on an oblique plane defined by 
$l=\sqrt{\threethirteenths}$, $m=\sqrt{\onethirteenth}$, and 
$n=\sqrt{\ninethirteenths}$.
Of course, you could just find the normal and shearing stresses on an oblique 
plane defined by $l=\sqrt{3/13}$, $m=\sqrt{1/13}$, and $n=\sqrt{9/13}$.
Vulgar fractions are between these extremes.
Find the normal and shearing stresses on an oblique plane defined by 
$l=\sqrt{\vfrac{3}{13}}$, $m=\sqrt{\vfrac{1}{13}}$, and 
$n=\sqrt{\vfrac{9}{13}}$.
I included more text than strictly necessary in this example to demonstrate the 
effect on line spacing.
\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.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: Fractions

2023-12-10 Thread Henning Hraban Ramm

Am 09.12.23 um 23:30 schrieb Mikael Sundqvist:

Hi,

On Sat, Dec 9, 2023 at 4:39 PM Wolfgang Schuster
 wrote:


Fabrice Couvreur schrieb am 09.12.2023 um 17:19:

Very clear !
In typography for Mathematics books, what choice should we make for the best 
possible result ?

A question better answered by Mikael or Aditya!


Thank you for your trust, Wolfgang. I am not sure I have something
valuable to say in addition to Adityas suggestion \frac{1/3} in inline
math. In any case, I attach a passage, with suggestions inspired by
Lansburgh's book (iin Swedish). Not sure the file size makes it
through to the list, though.


Thank you!

I usually only need simple inline fractions like 1/n, 1/2 or 3/8 in text.
With these and \frac, the spacing below the numerator (depth) is too 
big, while the denominator sticks too tightly to the fraction bar.

(Of course I use regular numbers for fractions, not mediaeval.)

Usually I’d prefer “vulgar fractions”, but \vulgarfraction looks 
“horrible” in comparison to the few usual fractions contained in fonts 
(like ½ & ¾).


I tried to use the OpenType fraction features to no avail.

So I’m still looking for “the best” solution for simple fractions inline.

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
___


[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 09.12.2023 um 17:19:

Very clear !
In typography for Mathematics books, what choice should we make for 
the best possible result ?


A question better answered by Mikael or Aditya!

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
___


[NTG-context] Several math features broke for me in new Debian version

2023-11-03 Thread Kumar Appaiah
Dear Friends,

I am a regular user of ConTeXt. A recent upgrade of ConTeXt in Debian
broke things for me. The bug report is here:

https://bugs.debian.org/1055233

but I have reproduced the gist here:

Upon upgrading to ConTeXt 2023.05.05.20230730+dfsg-2, several math
features seem to break for me. Here is an example:

\starttext
Hello world!
\startformula
 X(f) = \startcases[align={right,left},distance=3pt]
   \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
   \NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
 \stopcases
\stopformula
\stoptext

The above works very well in 2021.03.05.20230120+dfsg-1+deb12u1 but
gives me this error in 2023.05.05.20230730+dfsg-2:


resolvers   | formats | executing runner 'run luametatex format': 
/usr/bin/luametatex --jobname="./test.tex" --socket --shell-escape 
--fmt=/home/kumar/.texlive2023/texmf-var/luametatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luametatex/cont-en.fmt
 
--lua=/home/kumar/.texlive2023/texmf-var/luametatex-cache/context/f919750633122078d706dd10f1cfd39b/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./test.tex" --c:input="./test.tex" 
--c:kindofrun=1 --c:maxnofruns=9 --c:texmfbinpath="/usr/bin"
job > passes > version mismatch: 1.32 <> 1.33
system  > 
system  > ConTeXt  ver: 2023.05.05 18:36 LMTX  fmt: 2023.11.2  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/usr/share/texmf/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/usr/share/texmf/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './test', input './test.tex', result './test'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './test.tex'
fonts   > preloading latin modern fonts (second stage)
mathematics > tweak > 'LatinModernMath-Regular', size 6, math size 3, 
version 'Version 1.959' found, version 'Version 1.958' expected
fonts   > 'fallback modern rm 12pt' is loaded
tex error   > tex error on line 5 in file ./test.tex: Missing $ inserted

 

$
 

\mathatom 
 \math_atom_by_parameter_indeed 
#1->\mathatom 
\s!class \mathcodechecked {#1}
 \math_frac 
#1#*[#2]->\beginmathgroup \setlocalmathfractioncurrent {#1}\ifparameter 
#2\or \setupcurrentmathfraction [#2]\fi \edef \p_math_fraction_fences 
{\mathfractionparameter \c!fences }\math_atom_by_parameter 
\mathfractionparameter 
\bgroup \ifempty \p_math_f
 

{
 
   \NC T, \NC{} $|f| < \frac{
1}{2T}$ \NR

 1 \starttext
 2 Hello world!
 3 \startformula
 4  X(f) = \startcases[align={right,left},distance=3pt]
 5 >> \NC T, \NC{} $|f| < \frac{1}{2T}$ \NR
 6\NC 0, \NC{} $|f| \geq \frac{1}{2T}$ \NR
 7  \stopcases
 8 \stopformula
 9 \stoptext
10 
I've inserted a begin-math/end-math symbol since I think you left one out.
Proceed, with fingers crossed.
mtx-context | fatal error: return code: 1

Just another note: some examples seem broken here as well:

https://wiki.contextgarden.net/Multiline_equations

Please let me know how I can help debug this.

Thanks.

Kumar
-- 
Kumar Appaiah
___
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: Inline mathematics is stretched

2023-10-30 Thread Hans Hagen via ntg-context

On 10/30/2023 8:05 AM, Mia Bikey wrote:

Yes well of course no issue arises if I just change the whole font.
But I wanted to keep using the mono font thus reporting issues with it.

In that case you have to go for flushleft

\setupalign[verytolerant,nothyphenated,flushleft]

because otherwise tex will try to come to the best solution by using 
stretch and shrink and therefore stretch and shrink in interatom spacing 
wins over little or none in mono spacing


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
___


[NTG-context] Re: Inline mathematics is stretched

2023-10-29 Thread Hans Hagen via ntg-context

On 10/29/2023 1:33 PM, Mia Bikey wrote:

Hi,
I was using \setupalign[verytolerant,stretch] so that the mono font does 
not go inside the right inline image but after using that command the 
inline math seems to spread.

how about just using this

\setupbodyfont[concrete]

\starttext

When $a, b, c$ are given, two values of $x$ and no more can be found 
which shall make the function $ax^2 + bx + c$ vanish; that is, the 
equation always has two roots and no more. The roots may be equal or 
unequal, real or imaginary, according to circumstances.


\stoptext

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
___


[NTG-context] Inline mathematics is stretched

2023-10-29 Thread Mia Bikey
Hi,
I was using \setupalign[verytolerant,stretch] so that the mono font does
not go inside the right inline image but after using that command the
inline math seems to spread.

Here is a Minimal Working Example:

ConTeXt  ver: 2023.09.26 18:19 LMTX

\setupbodyfont[10pt, mono]

This is how it should look. \\
When $a, b, c$ are given, two values of $x$ and no more can be found which
shall make the function $ax^2 + bx + c$ vanish; that is, the equation
always has two roots and no more. The roots may be equal or unequal, real
or imaginary, according to circumstances. \\

\starttext

\setupalign[stretch]
This paragraph seems to look fine on 12pt. \\
When $a, b, c$ are given, two values of $x$ and no more can be found which
shall make the function $ax^2 + bx + c$ vanish; that is, the equation
always has two roots and no more. The roots may be equal or unequal, real
or imaginary, according to circumstances. \\

\setupalign[verytolerant, nothyphenated]
It looks even worse when I also use verytolerant and nothyphenated. \\
When $a, b, c$ are given, two values of $x$ and no more can be found which
shall make the function $ax^2 + bx + c$ vanish; that is, the equation
always has two roots and no more. The roots may be equal or unequal, real
or imaginary, according to circumstances.

\stoptext


Thisishowitlooks.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 / 
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: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hans Hagen

On 8/22/2023 5:45 PM, Hamid,Idris wrote:


(OTOH, had previously seen yours and Mikael's sophisticated minion-math.lfg)


It's not that complete and we only tested an old evaluation copy. Our 
policy wrt commercial fonts is now that we only look into them when we 
get (some 5) copies for context dev without any restriction of usage 
because we might want to show them in manuals or articles or 
presentations and there is no reason to spend time on them unlees we're 
paid for it.



I think that my version is/will be more complete - except for mathematics. Once 
some fine-tuning and additional testing is done, will donate the results to 
ConTeXt.


Good.


As for free fonts. MinionPro Opticals should be considered an exception to the 
free-fonts rubric. After all,

i)  its multiple-master design base was inspired by MetaFont/Knuth, and hence
ii) it's very popular with TeXies.


I don't have that font set and am not willing to spend money in it either.


Put another way, Minion Pro should be considered an honorary TeX typeface -)


Hm, so we should honor a font vendor for that? Do font vendors expect 
texies to spend time on something they cannot use? Also, some of these 
commercial licenses have become pretty restrictive. With respect to 
spending time on something, the same is true for some tools: supporting 
acrobat, fonts, specific file formats, features etc ... one way tickets 
... if we need it in a project i can waste the time on it, otherwise i 
rather spend the time on things we (and users) can actually use and have 
fun with.


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
___


[NTG-context] Re: Fallbacks for design sizes in the current typescripts regime

2023-08-22 Thread Hamid,Idris
On Aug 22, 2023, 2:06 AM -0600, Hans Hagen via ntg-context 
, wrote:
On 8/22/2023 6:31 AM, Hamid,Idris wrote:

Design sizes for typefaces -- aka "optical sizes" -- are no longer directly 
implemented in typescripts. From the manual Fonts out of ConTeXt by Hans Hagen, 
p. 109:

You can still do it but for all these years only cm has design sizes so
one can wonder.

Hm.. There are a few others, Minion perhaps being the most popular and 
extensive. More below:

"at some point the decision was made to kick out these definitions and move the 
burden of figuring out the right size to Lua."

They were moved to the goodie file (there are every few design size
setups in goodie files, minion has one, but i don't have these fonts nor
use them.

Have just completed a minion-pro-opticals typescript collection with a 
minion-opticalsizes.lfg.

Somehow I didn't even see yours and Mathias' minion.lfg (and associated 
type-imp-minion) until just now, had to figure it all out from scratch from 
demo.lfg and lm.lfg templates -)

(OTOH, had previously seen yours and Mikael's sophisticated minion-math.lfg)

I think that my version is/will be more complete - except for mathematics. Once 
some fine-tuning and additional testing is done, will donate the results to 
ConTeXt.

(Thus some large typescript collections painstakingly built over the years are 
now obsolete and have to be rewritten. Oh well..)

Well, i suppose one can still setup/use the typescripts but it's less
fun. The old definefont mechanism is still there.

Unfortunately it doesn't work anymore -  or at least not the way it used to. My 
mkiv minion typescript collection, for example, still compiles in lmtx, but the 
design sizes do not show up in the output anymore, only the default size.

As a side note: we have design sizes (very few fonts) and weights (more
and more fonts) .. weights are imo an even bigger mess, as it looks like
some designers can't make up their mind and come with plenty weights
independent of the fact that some look bad; variable fonts only add to
this: the easier to use the creater tools become the easier it becomes
to make ugly fonts (I tend to ignore fonts that show off too many
possible choices; not much different from excessive kerning, ligatures
and other incomplete features).

You make an important point, especially about the proliferation of bad fonts 
via more accessible tools. On a related front, there are more and more 
Arabic-script fonts, but hardly anything really good or useable, even from 
reputable foundries like Adobe. At some point, presumably, designers quit early 
(or the company does not care to invest the needed time and funds).

Presumably, designing good optical sizes requires more care and subtlety than 
designing weights.

OTOH the more professional/high-end foundries sometimes recommend certain 
weights for optical-sizes. For example, your neighbors at Enschede:

http://www.teff.nl/fonts/geronimo/

"While Geronimo was mainly conceived as a typeface for (small) text, it also 
performs well at bigger sizes most notably the lighter weights.”"

There are 12 weights total (six regular + six italic), but the lighter weights 
are designed to work well at larger sizes. So from 12 fonts one can create a 
reasonable, combined optical-size and weight space.

(Speaking of Enschede, their Lexicon typeface use an interesting/unique 
optical-size concept.)

One thing about the explosion of weights is that the distinction between \tf 
and \bf (or \it and \bi) vanishes and becomes a spectrum. In that case, 
presumably one would

i)  forget about \bf and \bi
ii) multiply bodyfont-typefaces and switch directly between them as needed.

Etc.

If this appearance of a loss reflects the reality of the situation, would like 
to kindly request that the original functionality be restored to the 
higher-level user interface, presumably within the lfg file. So perhaps 
something like a keyval

fallbacks = {
["MyRomanRegular"] = {
"file:MyFont-Small" = "fallbacks=",
"file:MyFont-Regular", = "fallbacks=",
"file:MyFont-Bigger", = "fallbacks=",
"file:MyFont-Biggest", = "fallbacks=",
},

On the other hand, if access to the former functionality is still there 
somewhere in the user interface, would like to humbly request that someone 
share where it is and how to use it!

Thank you kindly for consideration of this request.

I'm not going to look into this until there is a complete test case for
this which means:

- free fonts (so that others can also test and use)
- design sizes
- fallback design sizes

As for free fonts. MinionPro Opticals should be considered an exception to the 
free-fonts rubric. After all,

i)  its multiple-master design base was inspired by MetaFont/Knuth, and hence
ii) it's very popular with TeXies.

Put another way, Minion Pro should be considered an honorary TeX typeface -)

(There is also an update, Mi

[NTG-context] Re: Nested itemize

2023-08-22 Thread fv leung
It seems that displaystyle fractions insert extra vertical space before the
main item.
With textstyle fractions, the code works fine.
\blank[back,overlay] can get rid of the gap above the first row, but not
the space inserted by \dfrac.


\defineitemgroup[alex]

\setupitemgroup
 [alex]
 [each]
 [a,two]
 [
 margin=2cm,
 before={\blank[overlay,-depth]},
 after={\blank[nowhite]},
 stopper=)
 ]

%\showboxes
\autofences

\starttext
\samplefile{ward}
\startitemize[n][style=\bf,before={\blank[back,overlay]},after={\blank[medium]}]
  \startitem
\startalextable
  \startitem
\m{6(x - \frac{5}{12})^2 - \frac{1}{24}}
  \stopitem
  \startitem
\m{-3(x - \frac{1}{3})^2 + \frac{1}{3}}
  \stopitem
  \startitem
\m{7(x + \frac{5}{14})^2 + \frac{199}{28}}
  \stopitem
  \startitem
\m{-\frac{1}{2}(x + 2)^2 + \frac{9}{2}}
  \stopitem
\stopalextable
  \stopitem
\stopitemize

\samplefile{ward}
\stoptext

Alexandre Christe  於 2023年8月22日 週二 下午5:48寫道:

> Hi Mikael,
>
> That looks very attractive. However, with the following code, I end up
> with a large gap above the first row.
>
> \defineitemgroup[alex]
>
> \setupitemgroup
>  [alex]
>  [each]
>  [a,two]
>  [
>  margin=2cm,
>  before=\blank[overlay,-depth],
>  stopper=)
>  ]
>
> \showboxes
> \autofences
>
> \starttext
> \samplefile{ward}
>
> \startitemize[n][style=\bf]
>  \startitem
>  \startalextable
>  \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem
>  \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem
>  \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem
>  \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitem
>  \stopalextable
>  \stopitem
> \stopitemize
>
> \samplefile{ward}
> \stoptext
>
> A. Christe
> Le 22 août 2023 à 07:12 +0200, Alexandre Christe ,
> a écrit :
>
> It’s true that \vtop{…} does the job for a single line of items, but it
> doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom.
>
> Here’s a modified MWE
>
> \startitemize[n][style=\bf]
>   \item \godown[-\lineheight] \startitemize
> [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>   \stopitemize
> \stopitemize
>
> A. Christe
> Le 22 août 2023 à 04:08 +0200, fv leung , a écrit :
>
> I'd do it this way:
>
> \starttext
> \startitemize[n][style=\bf]
> \item\vtop{%
>   \startitemize[a,horizontal,four][stopper=\)]
> \startitem
>   $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \stopitem
> \startitem
>   $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \stopitem
> \startitem
>   $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \stopitem
> \startitem
>   $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> \stopitem
>   \stopitemize
> }
> \stopitemize
>
> \stoptext
>
> Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:
>
>> Dear ConTeXt users,
>>
>> Time goes by but I haven't yet found a nice solution to this issue. When
>> having mathematics, I'd not like to adjust by hand the factor of \linewidth
>> for the \godown command.
>>
>> Here's a MWE
>>
>> \starttext
>>
>> \startitemize[n][style=\bf]
>>   \item \godown[-\lineheight] \startitemize
>> [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
>> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
>> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
>> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
>> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>>   \stopitemize
>> \stopitemize
>>
>> \stoptext
>>
>> Thanks in advance.
>>
>> Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context <
>> ntg-context@ntg.nl> a écrit :
>>
>>>
>>> \starttext
>>>
>>> \startitemize[n]
>>> \item\godown[-\lineheight]
>>>
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \item\godown[-\lineheight]
>>>
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \item\godown[-\lineheight]
>>>
>>> \star

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
Hi Mikael,

That looks very attractive. However, with the following code, I end up with a 
large gap above the first row.

\defineitemgroup[alex]

\setupitemgroup
 [alex]
 [each]
 [a,two]
 [
 margin=2cm,
 before=\blank[overlay,-depth],
 stopper=)
 ]

\showboxes
\autofences

\starttext
\samplefile{ward}

\startitemize[n][style=\bf]
 \startitem
 \startalextable
 \startitem $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$ \stopitem
 \startitem $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$ \stopitem
 \startitem $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ \stopitem
 \startitem $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ \stopitem
 \stopalextable
 \stopitem
\stopitemize

\samplefile{ward}
\stoptext

A. Christe
Le 22 août 2023 à 07:12 +0200, Alexandre Christe , a 
écrit :
> It’s true that \vtop{…} does the job for a single line of items, but it 
> doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom.
>
> Here’s a modified MWE
>
> \startitemize[n][style=\bf]
>   \item \godown[-\lineheight] \startitemize 
> [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
>     \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
>     \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
>     \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
>     \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>   \stopitemize
> \stopitemize
>
> A. Christe
> Le 22 août 2023 à 04:08 +0200, fv leung , a écrit :
> > I'd do it this way:
> >
> > \starttext
> > \startitemize[n][style=\bf]
> > \item\vtop{%
> >   \startitemize[a,horizontal,four][stopper=\)]
> >     \startitem
> >       $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> >     \stopitem
> >     \startitem
> >       $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> >     \stopitem
> >     \startitem
> >       $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> >     \stopitem
> >     \startitem
> >       $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> >     \stopitem
> >   \stopitemize
> > }
> > \stopitemize
> >
> > \stoptext
> >
> > > Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:
> > > > Dear ConTeXt users,
> > > >
> > > > Time goes by but I haven't yet found a nice solution to this issue. 
> > > > When having mathematics, I'd not like to adjust by hand the factor of 
> > > > \linewidth for the \godown command.
> > > >
> > > > Here's a MWE
> > > >
> > > > \starttext
> > > >
> > > > \startitemize[n][style=\bf]
> > > >   \item \godown[-\lineheight] \startitemize 
> > > > [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
> > > >     \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> > > >     \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> > > >     \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> > > >     \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> > > >   \stopitemize
> > > > \stopitemize
> > > >
> > > > \stoptext
> > > >
> > > > Thanks in advance.
> > > >
> > > > > Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context 
> > > > >  a écrit :
> > > > > >
> > > > > > \starttext
> > > > > >
> > > > > > \startitemize[n]
> > > > > > \item\godown[-\lineheight]
> > > > > >   
> > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \stopitemize
> > > > > > \item\godown[-\lineheight]
> > > > > >   
> > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \stopitemize
> > > > > > \item\godown[-\lineheight]
> > > > > >   
> > > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > > >   \item bla
> > > > >

[NTG-context] Re: Nested itemize

2023-08-22 Thread Mikael Sundqvist
Hi,

On Tue, Aug 22, 2023 at 7:16 AM Alexandre Christe
 wrote:
>
> It’s true that \vtop{…} does the job for a single line of items, but it 
> doesn’t in the case there’re multiple (\vtop{}) aligns with the bottom.
>
> Here’s a modified MWE
>
> \startitemize[n][style=\bf]
>   \item \godown[-\lineheight] \startitemize 
> [a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>   \stopitemize
> \stopitemize
>
> A. Christe
> Le 22 août 2023 à 04:08 +0200, fv leung , a écrit :
>
> I'd do it this way:
>
> \starttext
> \startitemize[n][style=\bf]
> \item\vtop{%
>   \startitemize[a,horizontal,four][stopper=\)]
> \startitem
>   $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \stopitem
> \startitem
>   $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \stopitem
> \startitem
>   $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \stopitem
> \startitem
>   $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> \stopitem
>   \stopitemize
> }
> \stopitemize
>
> \stoptext
>
> Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:
>>
>> Dear ConTeXt users,
>>
>> Time goes by but I haven't yet found a nice solution to this issue. When 
>> having mathematics, I'd not like to adjust by hand the factor of \linewidth 
>> for the \godown command.
>>
>> Here's a MWE
>>
>> \starttext
>>
>> \startitemize[n][style=\bf]
>>   \item \godown[-\lineheight] \startitemize 
>> [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
>> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
>> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
>> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
>> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>>   \stopitemize
>> \stopitemize
>>
>> \stoptext
>>
>> Thanks in advance.
>>
>> Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context  
>> a écrit :
>>>
>>>
>>> \starttext
>>>
>>> \startitemize[n]
>>> \item\godown[-\lineheight]
>>>   
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \item\godown[-\lineheight]
>>>   
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \item\godown[-\lineheight]
>>>   
>>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \item bla
>>>   \stopitemize
>>> \stopitemize
>>>
>>> \stoptext
>>>
>>> Alexandre Christe via ntg-context  於 2022年9月2日 週五 
>>> 下午5:08寫道:
>>>>
>>>> Dear all,
>>>>
>>>> I'm struggling to setup a nested itemize with no blank line and several 
>>>> columns.
>>>>
>>>> What I mean is something like
>>>> 1. a) bla   c) bla
>>>> b) bla   d) bla
>>>>
>>>> The following MWE is my starting point
>>>>
>>>> \starttext
>>>> \startitemize[n]
>>>> \item \blank[-line]
>>>> \startitemize[a,horizontal,two] [margin=2cm]
>>>> \item First
>>>> \item Second
>>>> \item Third
>>>> \item Fourth
>>>> \stopitemize
>>>> \item \blank[-line]
>>>> \startitemize[a,horizontal,columns,two]
>>>> \item First
>>>> \item Second
>>>> \item Third
>>>> \item Fourth
>>>> \stopitemize
>>>> \stopitemize
>>>> \stoptext
>>>>
>>>> Thanks in advance

Not really tested, but \blank[overlay,-depth] seems to work OK (thanks Hans!).

I also take the opportunity to push a bit for the new itemtable mechanism:

\defineitemgroup[alex]

\setupitemgroup
[alex]
[each]
[a,two]
[margin=2cm,
before=\blank[overlay,-depth]]

\showboxes

\starttext
\startitemize[n]
\startitem
\startalextable
\startitem First \stopitem
\startitem Second \stopitem
\startitem Third \stopitem
\startitem Fourth \stopitem
\stopalextable
\stopitem
\stopitemize
\stoptext

Please test for a larger document to see if it works well.

/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] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
It’s true that \vtop{…} does the job for a single line of items, but it doesn’t 
in the case there’re multiple (\vtop{}) aligns with the bottom.

Here’s a modified MWE

\startitemize[n][style=\bf]
  \item \godown[-\lineheight] \startitemize 
[a,columns,two,packed,broad][stopper=),before={\blank[nowhite]}]
    \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
    \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
    \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
    \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
  \stopitemize
\stopitemize

A. Christe
Le 22 août 2023 à 04:08 +0200, fv leung , a écrit :
> I'd do it this way:
>
> \starttext
> \startitemize[n][style=\bf]
> \item\vtop{%
>   \startitemize[a,horizontal,four][stopper=\)]
>     \startitem
>       $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
>     \stopitem
>     \startitem
>       $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
>     \stopitem
>     \startitem
>       $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
>     \stopitem
>     \startitem
>       $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>     \stopitem
>   \stopitemize
> }
> \stopitemize
>
> \stoptext
>
> > Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:
> > > Dear ConTeXt users,
> > >
> > > Time goes by but I haven't yet found a nice solution to this issue. When 
> > > having mathematics, I'd not like to adjust by hand the factor of 
> > > \linewidth for the \godown command.
> > >
> > > Here's a MWE
> > >
> > > \starttext
> > >
> > > \startitemize[n][style=\bf]
> > >   \item \godown[-\lineheight] \startitemize 
> > > [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
> > >     \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> > >     \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> > >     \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> > >     \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
> > >   \stopitemize
> > > \stopitemize
> > >
> > > \stoptext
> > >
> > > Thanks in advance.
> > >
> > > > Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context 
> > > >  a écrit :
> > > > >
> > > > > \starttext
> > > > >
> > > > > \startitemize[n]
> > > > > \item\godown[-\lineheight]
> > > > >   
> > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \stopitemize
> > > > > \item\godown[-\lineheight]
> > > > >   
> > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \stopitemize
> > > > > \item\godown[-\lineheight]
> > > > >   
> > > > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \item bla
> > > > >   \stopitemize
> > > > > \stopitemize
> > > > >
> > > > > \stoptext
> > > > >
> > > > > > Alexandre Christe via ntg-context  於 2022年9月2日 
> > > > > > 週五 下午5:08寫道:
> > > > > > > Dear all,
> > > > > > >
> > > > > > > I'm struggling to setup a nested itemize with no blank line and 
> > > > > > > several columns.
> > > > > > >
> > > > > > > What I mean is something like
> > > > > > > 1. a) bla   c) bla
> > > > > > >     b) bla   d) bla
> > > > > > >
> > > > > > > The following MWE is my starting point
> > > > > > >
> > > > > > > \starttext
> > > > > > > \startitemize[n]
> > > > > > > \item \blank[-line]
> > > > > > > \startitemize[a,horizontal,two] [margin=2cm]
> > > > > > > \item First
> > > > > > > \item Second
> > > > > > > \item T

[NTG-context] Re: Nested itemize

2023-08-21 Thread fv leung
I'd do it this way:

\starttext
\startitemize[n][style=\bf]
\item\vtop{%
  \startitemize[a,horizontal,four][stopper=\)]
\startitem
  $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
\stopitem
\startitem
  $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
\stopitem
\startitem
  $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
\stopitem
\startitem
  $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
\stopitem
  \stopitemize
}
\stopitemize

\stoptext

Alexandre Christe  於 2023年8月22日 週二 上午2:58寫道:

> Dear ConTeXt users,
>
> Time goes by but I haven't yet found a nice solution to this issue. When
> having mathematics, I'd not like to adjust by hand the factor of \linewidth
> for the \godown command.
>
> Here's a MWE
>
> \starttext
>
> \startitemize[n][style=\bf]
>   \item \godown[-\lineheight] \startitemize
> [a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
> \item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
> \item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
> \item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
> \item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
>   \stopitemize
> \stopitemize
>
> \stoptext
>
> Thanks in advance.
>
> Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context 
> a écrit :
>
>>
>> \starttext
>>
>> \startitemize[n]
>> \item\godown[-\lineheight]
>>
>> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \stopitemize
>> \item\godown[-\lineheight]
>>
>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \stopitemize
>> \item\godown[-\lineheight]
>>
>> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \item bla
>>   \stopitemize
>> \stopitemize
>>
>> \stoptext
>>
>> Alexandre Christe via ntg-context  於 2022年9月2日 週五
>> 下午5:08寫道:
>>
>>> Dear all,
>>>
>>> I'm struggling to setup a nested itemize with no blank line and several
>>> columns.
>>>
>>> What I mean is something like
>>> 1. a) bla   c) bla
>>> b) bla   d) bla
>>>
>>> The following MWE is my starting point
>>>
>>> \starttext
>>> \startitemize[n]
>>> \item \blank[-line]
>>> \startitemize[a,horizontal,two] [margin=2cm]
>>> \item First
>>> \item Second
>>> \item Third
>>> \item Fourth
>>> \stopitemize
>>> \item \blank[-line]
>>> \startitemize[a,horizontal,columns,two]
>>> \item First
>>> \item Second
>>> \item Third
>>> \item Fourth
>>> \stopitemize
>>> \stopitemize
>>> \stoptext
>>>
>>> Thanks in advance
>>>
>>> ___
>>> 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
>>
>> ___
>>
>
> ___
> 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] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
Dear ConTeXt users,

Time goes by but I haven't yet found a nice solution to this issue. When
having mathematics, I'd not like to adjust by hand the factor of \linewidth
for the \godown command.

Here's a MWE

\starttext

\startitemize[n][style=\bf]
  \item \godown[-\lineheight] \startitemize
[a,columns,four,packed,broad][stopper=),before={\blank[nowhite]}]
\item $6(x - \dfrac{5}{12})^2 - \dfrac{1}{24}$
\item $-3(x - \dfrac{1}{3})^2 + \dfrac{1}{3}$
\item $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$
\item $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$
  \stopitemize
\stopitemize

\stoptext

Thanks in advance.

Le ven. 2 sept. 2022 à 11:24, fv leung via ntg-context 
a écrit :

>
> \starttext
>
> \startitemize[n]
> \item\godown[-\lineheight]
>
> \startitemize[a,columns,packed][before={\blank[nowhite]},right=\),stopper=]
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \stopitemize
> \item\godown[-\lineheight]
>
> \startitemize[a,columns,packed][before={\blank[nowhite]},n=3,right=\),stopper=]
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \stopitemize
> \item\godown[-\lineheight]
>
> \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=]
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \item bla
>   \stopitemize
> \stopitemize
>
> \stoptext
>
> Alexandre Christe via ntg-context  於 2022年9月2日 週五
> 下午5:08寫道:
>
>> Dear all,
>>
>> I'm struggling to setup a nested itemize with no blank line and several
>> columns.
>>
>> What I mean is something like
>> 1. a) bla   c) bla
>> b) bla   d) bla
>>
>> The following MWE is my starting point
>>
>> \starttext
>> \startitemize[n]
>> \item \blank[-line]
>> \startitemize[a,horizontal,two] [margin=2cm]
>> \item First
>> \item Second
>> \item Third
>> \item Fourth
>> \stopitemize
>> \item \blank[-line]
>> \startitemize[a,horizontal,columns,two]
>> \item First
>> \item Second
>> \item Third
>> \item Fourth
>> \stopitemize
>> \stopitemize
>> \stoptext
>>
>> Thanks in advance
>>
>> ___
>> 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
>
> ___
>
___
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] tikz error upgrading to texlive version (artix)

2023-04-02 Thread Max Chernoff via ntg-context
Hi Xavier,

On Sun, 2023-04-02 at 11:00 +, Xavier B. wrote:
> Max, when I use context minimals, I get:
> 
> modules > 'pgfrcs' is not found
> modules > 'pgfmat' is not found
> modules > 'tikz' is loaded
> open source > level 3, order 4, name 
> '/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
> runtime error : input file 'pgfutil-common.tex' is not found, quitting
> mtx-context | fatal error: return code: 1
> make: *** [Makefile:10: ng-exercicis.conTeXt.pdf] Error 1
> [xan@coronari apunts-espa]$
> 
> 
> but when I run texlive, no errors shown:
> 
> $ pacman -Qs texlive
> local/texlive-bin 2023.66539-1
> TeX Live binaries
> local/texlive-core 2023.66587-1 (texlive-most)
> TeX Live core distribution
> local/texlive-pictures 2023.66549-1 (texlive-most)
> TeX Live - Packages for drawings graphics
> local/texlive-science 2023.66461-1 (texlive-most)
> TeX Live - Typesetting for mathematics, natural and computer sciences
> 
> 
> Any hints?

The ConTeXt distribution doesn't contain any packages/modules by
default, so you'll need to install TikZ manually. I usually use the
script listed here:

   https://wiki.contextgarden.net/Modules#ConTeXt_LMTX
   
But you could also install manually using the .zip file here:

   https://mirrors.ctan.org/install/graphics/pgf/base/pgf.tds.zip
   
-- Max

___
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] tikz error upgrading to texlive version (artix)

2023-04-02 Thread Xavier B. via ntg-context
Max, when I use context minimals, I get:

modules > 'pgfrcs' is not found
modules > 'pgfmat' is not found
modules > 'tikz' is loaded
open source > level 3, order 4, name 
'/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
runtime error : input file 'pgfutil-common.tex' is not found, quitting
mtx-context | fatal error: return code: 1
make: *** [Makefile:10: ng-exercicis.conTeXt.pdf] Error 1
[xan@coronari apunts-espa]$


but when I run texlive, no errors shown:

$ pacman -Qs texlive
local/texlive-bin 2023.66539-1
TeX Live binaries
local/texlive-core 2023.66587-1 (texlive-most)
TeX Live core distribution
local/texlive-pictures 2023.66549-1 (texlive-most)
TeX Live - Packages for drawings graphics
local/texlive-science 2023.66461-1 (texlive-most)
TeX Live - Typesetting for mathematics, natural and computer sciences


Any hints?
___
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] Stack overflow when using Neo Euler for math

2023-03-31 Thread Rory Molinari via ntg-context
Hi,

I'm in the process of updating to TeXlive 2023 after a long time of light
use with 2018. One issue I'm now having is an error when I try to use Neo
Euler as my math font.

\definefontfamily[mypalatinoeuler][rm][TeX Gyre Pagella]
\definefontfamily[mypalatinoeuler][mm][Neo Euler]

\setupbodyfont[mypalatinoeuler]

\starttext
$x=1$
\stoptext

Result:

mathematics > tweak > 'Neo-Euler', size 7, math size 3, version
'Version 000.002' found, version 'Version 000.002 ' expected
tex error   > tex error on line 5 in file ./euler_problem.tex:

lua error:

registered function call [1160]:
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254: stack
overflow
stack traceback:
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3254:
in upvalue 'add'
... (skipping 99970 levels)
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3267:
in local 'action'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3617:
in upvalue 'tweaklist'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3653:
in upvalue 'applytweaks'
...xlive/2023/texmf-dist/tex/context/base/mkxl/math-act.lmt:3682:
in upvalue 'mathematics_tweakaftercopyingfont'
[string "local mathematics_tweakaftercopyingfont = mat..."]:5: in
local 'runner'
...xlive/2023/texmf-dist/tex/context/base/mkxl/font-ctx.lmt:510: in
field 'aftercopyingcharacters'
...xlive/2023/texmf-dist/tex/context/base/mkxl/font-con.lmt:859: in
field 'scale'
...xlive/2023/texmf-dist/tex/context/base/mkxl/font-otl.lmt:659: in
function <...xlive/2023/texmf-dist/tex/context/base/mkxl/font-otl.lmt:651>
(...tail calls...)
...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:378: in
function <...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:366>
(...tail calls...)
...xlive/2023/texmf-dist/tex/context/base/mkxl/font-def.lmt:485: in
field 'read'
...xlive/2023/texmf-dist/tex/context/base/mkxl/font-ctx.lmt:1377:
in function
<...xlive/2023/texmf-dist/tex/context/base/mkxl/font-ctx.lmt:1234>
(...tail calls...)

It works if I use, say, [TeX Gyre Pagella Math] in place of [Neo Euler].

15:49:15 $ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file:
/usr/local/texlive/2023/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2023.03.10 12:15
mtx-context | main context file:
/usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2023.03.10 12:15


I don't know how to diagnose any further.

Cheers,
Rory Molinari
___
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] tikz error upgrading to texlive version (artix)

2023-03-30 Thread Xavier B. via ntg-context
If I run the minimal context distro 
[https://wiki.contextgarden.net/Installation], I get this:

$ context a.tex 

resolvers   | formats | executing runner 'run luametatex format': 
/home/xan/bin/context-minimal/tex/texmf-linux-64/bin/luametatex 
--jobname="./a.tex" 
--fmt=/home/xan/bin/context-minimal/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt
 
--lua=/home/xan/bin/context-minimal/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./a.tex" --c:input="./a.tex" 
--c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/home/xan/bin/context-minimal/tex/texmf-linux-64/bin"
job > passes > version mismatch: 1.32 <> 1.33
system  > 
system  > ConTeXt  ver: 2023.03.20 17:07 LMTX  fmt: 2023.3.30  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/xan/bin/context-minimal/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/home/xan/bin/context-minimal/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './a', input './a.tex', result './a'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './a.tex'
modules > 'tikz' is loaded
open source > level 2, order 3, name 
'/home/xan/bin/context-minimal/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'
runtime error : input file 'pgfutil-common.tex' is not found, quitting
mtx-context | fatal error: return code: 1


So, the problem is not the package or the distro, it's something more basic 
which causes the error.


Thanks in advance,

On Thu, 30 Mar 2023 20:52:51 +0200
"Xavier B."  ha escrit:

> Hi,
> 
> I use artix linux (a fork of arch with systemd alternative init systems).
> During the texlive package, I get this error:
> 
> return {
>  
> ["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex",
>  ["lastcontext"]="\n \n \\inaccessible \n \n 
> \"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode 
> `\\|=12 \\catcode `\\&=12 \\let \"\n  
>  \\pgfmath@char@quote \n\\pgfmathparse 
> ->\\begingroup \\pgfmath@catcodes \n   
> \\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next 
> =\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next =\\pgfmathparse@ 
> \\fi \\pgfmath@parse@next \n \\pgfmathparse \n   
> {1cm}\\ifpgfmathmathunitsdeclared \\pgf@x \\pgfmathresult mu\\relax \\else 
> \\pgf@x \\pgfmathresult pt\\relax \\fi \n\\pgfmath@next #1#2->#2\n   
> \n...\nl.926 \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n 
> ",
>  ["lastluaerror"]="?",
>  ["lasttexerror"]="! Missing control sequence inserted",
>  ["linenumber"]=926,
>  ["offset"]=10,
> }
> 
> I simply run context to this file:
> 
> \usemodule[tikz]
> 
> \starttext
> {\bf a} \tikz (0,0) -- (1,0);
> \stoptext
> 
> My version of context is:
> 
> [xan@coronari ~]$ context --version
> mtx-context | ConTeXt Process Management 1.04
> mtx-context |
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
> mtx-context | current version: 2023.03.10 12:15
> mtx-context | main context file: 
> /usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
> mtx-context | current version: 2023.03.10 12:15
> 
> My packages are:
> 
> $ pacman -Qs texlive
> local/texlive-bibtexextra 2023.66579-1 (texlive-most)
> TeX Live - Additional BibTeX styles and bibliography databases
> local/texlive-bin 2023.66539-1
> TeX Live binaries
> local/texlive-core 2023.66587-1 (texlive-most)
> TeX Live core distribution
> local/texlive-pictures 2023.66549-1 (texlive-most)
> TeX Live - Packages for drawings graphics
> local/texlive-publishers 2023.66550-1 (texlive-most)
> TeX Live - LaTeX classes and packages for specific publishers
> local/texlive-science 2023.66461-1 (texlive-most)
> TeX Live - Typesetting for mathematics, natural and computer sciences
> 
> 
> 
> I also posted the message in Artix mailing list 
> [https://lists.artixlinux.org/archives/artix-general/2023-March/000977.html]
> 
> 
> Thanks in advance,
&g

[NTG-context] tikz error upgrading to texlive version (artix)

2023-03-30 Thread Xavier B. via ntg-context
Hi,

I use artix linux (a fork of arch with systemd alternative init systems).
During the texlive package, I get this error:

return {
 
["filename"]="/usr/share/texmf-dist/tex/generic/pgf/basiclayer/pgfcorepoints.code.tex",
 ["lastcontext"]="\n \n \\inaccessible \n \n 
\"\n\\pgfmath@catcodes ->\\catcode `\\==12 \\catcode `\\,=12 \\catcode `\\|=12 
\\catcode `\\&=12 \\let \"\n
   \\pgfmath@char@quote \n\\pgfmathparse ->\\begingroup 
\\pgfmath@catcodes \n   
\\pgfmath@quickparsefalse \\ifpgfmathfloat \\let \\pgfmath@parse@next 
=\\pgfmathfloatparsenumber \\else \\let \\pgfmath@parse@next =\\pgfmathparse@ 
\\fi \\pgfmath@parse@next \n \\pgfmathparse \n   
{1cm}\\ifpgfmathmathunitsdeclared \\pgf@x \\pgfmathresult mu\\relax \\else 
\\pgf@x \\pgfmathresult pt\\relax \\fi \n\\pgfmath@next #1#2->#2\n   
\n...\nl.926 \\pgfsetxvec{\\pgfpoint{1cm}{0cm}}\n   
  ",
 ["lastluaerror"]="?",
 ["lasttexerror"]="! Missing control sequence inserted",
 ["linenumber"]=926,
 ["offset"]=10,
}

I simply run context to this file:

\usemodule[tikz]

\starttext
{\bf a} \tikz (0,0) -- (1,0);
\stoptext

My version of context is:

[xan@coronari ~]$ context --version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2023.03.10 12:15
mtx-context | main context file: 
/usr/share/texmf-dist/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2023.03.10 12:15

My packages are:

$ pacman -Qs texlive
local/texlive-bibtexextra 2023.66579-1 (texlive-most)
TeX Live - Additional BibTeX styles and bibliography databases
local/texlive-bin 2023.66539-1
TeX Live binaries
local/texlive-core 2023.66587-1 (texlive-most)
TeX Live core distribution
local/texlive-pictures 2023.66549-1 (texlive-most)
TeX Live - Packages for drawings graphics
local/texlive-publishers 2023.66550-1 (texlive-most)
TeX Live - LaTeX classes and packages for specific publishers
local/texlive-science 2023.66461-1 (texlive-most)
TeX Live - Typesetting for mathematics, natural and computer sciences



I also posted the message in Artix mailing list 
[https://lists.artixlinux.org/archives/artix-general/2023-March/000977.html]


Thanks in advance,
Xavier

PS: In arch there are many AUR packages for installing minimal latest version: 

https://aur.archlinux.org/packages/context-minimals-git
https://aur.archlinux.org/packages/context
https://aur.archlinux.org/packages/context-modules

Which one do you recomend to?
___
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] registered function call [1160]:...live/2023/texmf-dist/tex/context/base/mkiv/l-sandbox.lua:87: cannot open /.: Permission denied - Alpine Linux

2023-03-25 Thread Carlos via ntg-context
On Sat, Mar 25, 2023 at 09:45:25PM +0100, Hans Hagen via ntg-context wrote:
> On 3/25/2023 8:55 PM, Carlos via ntg-context wrote:
> 
> >  ...xlive/2023/texmf-dist/tex/context/base/mkiv/font-syn.lua:1030: 
> > in upvalue 'walk_tree'
> Maybe your OSFONTDIR is pointing to empty. Does

Good call. Thank you for the reminder Hans. But no. That variable was set long 
ago . Even appended it to both the bash initialization file and also under 
/etc/profile (just in case here). Alpine uses ash so shells must be changed 

> 
>   mtxrun --script font --reload
> 
fonts   | names | 3092 afm files checked,   okay
fonts   | names | identifying tree font files with suffix 'AFM'
fonts   | names | scanning path '/home/ce/.texlive2023/texmf-config' 
for AFM files
fonts   | names | 0 AFM files checked,   okay
fonts   | names | scanning path '/home/ce/texmf' for AFM files
fonts   | names | 0 AFM files checked,   okay
fonts   | names | scanning path '/usr/local/texlive/2023/texmf-config' 
for AFM files
fonts   | names | 0 AFM files checked,   okay
fonts   | names | scanning path '/usr/local/texlive/2023/texmf-var' for 
AFM files
fonts   | names | 0 AFM files checked,   okay
fonts   | names | scanning path '/usr/local/texlive/2023/texmf-local' 
for AFM files
fonts   | names | 24 AFM files checked,   okay
fonts   | names | scanning path '/usr/local/texlive/2023/texmf-dist' 
for AFM files
fonts   | names | 3092 AFM files checked,   okay
fonts   | names | 6232 tree files identified,  14 skipped,  14 
duplicates,  6218 hash entries added,  runtime 8.458 seconds
fonts   | names | identifying system font files with suffix 'otf'
fonts   | names | variable 'OSFONTDIR' specifies path '/home/ce'
fonts   | names | variable 'OSFONTDIR' specifies path '/usr/share/fonts'
fonts   | names | globbing path '/home/ce/**.otf'

lua error : function call: 
/usr/local/texlive/2023/bin/x86_64-linuxmusl/mtxrun.lua:649: cannot open 
/home/ce/cache/headers/imaps:@gmail@imap.gmail.com/[Gmail]/.: Permission 
denied

Recall that the other folders owned by root had to be moved out of the way

So it seems it wasn't enough, nope. Now it wants access elsewhere

bottom line: it wants root permissions or else fails flat out

Even with sudo privileges the best it can do is:

resolvers   | formats | executing runner 'run luametatex format': 
/usr/local/texlive/2023/bin/x86_64-linuxmusl/luametatex 
--jobname="./atestinlucida-context-55.mkiv" 
--fmt=/usr/local/texlive/2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/formats/luametatex/cont-en.fmt
 
--lua=/usr/local/texlive/2023/texmf-var/luametatex-cache/context/78ac5e3684a91334606faa581c7ce1d1/formats/luametatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./atestinlucida-context-55.mkiv" 
--c:input="./atestinlucida-context-55.mkiv" --c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/usr/local/texlive/2023/bin/x86_64-linuxmusl"
system  > 
system  > ConTeXt  ver: 2023.03.10 12:15 LMTX  fmt: 2023.3.25  int: 
english/english
system  > 
system  > 'cont-new.mkxl' loaded
open source > level 1,  order 1,  name 
'/usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/cont-new.mkxl'
system  > beware: some patches loaded from cont-new.mkiv
close source> level 1,  order 1,  name 
'/usr/local/texlive/2023/texmf-dist/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './atestinlucida-context-55',  input 
'./atestinlucida-context-55.mkiv',  result './atestinlucida-context-55'
fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1,  order 2,  name './atestinlucida-context-55.mkiv'
fonts   > preloading latin modern fonts (second stage)
mathematics > tweak > 'LatinModernMath-Regular',  size 6,  math size 3,  
version 'Version 1.959' found,  version 'Version 1.958' expected
fonts   > 'fallback modern rm 12pt' is loaded
open source > level 2,  order 3,  name 
'/usr/local/texlive/2023/texmf-dist/tex/context/fonts/mkiv/type-imp-lucida.mkiv'
close source> level 2,  order 3,  name 
'/usr/local/texlive/2023/texmf-dist/tex/context/fonts/mkiv/type-imp-lucida.mkiv'
fonts   > defining > forced type 'otf' of 'LucidaBrightOT' not found
fonts   > defining > unable to define 'LucidaBrightOT.otf' as 
'MyLucida-10pt-rm-tf-0--0'
open source > level 2,  order 4,  name 'zapf.tex'
close source> level 2,  order 4,  name 'zapf.tex'
open source > level 2,  order 5,  name 'tufte.tex'
close source> level 2,  order 5,  name 'tufte.tex'
backend > xmp > using file 
'/usr/local/texlive/2023/texmf-dist/tex/context/bas

Re: [NTG-context] \hpos in math

2022-12-06 Thread Gavin via ntg-context
Hi Hans,

> On Dec 6, 2022, at 2:15 AM, Hans Hagen via ntg-context  
> wrote:
> On 12/6/2022 12:39 AM, Gavin via ntg-context wrote:
>> 1) Is there a mathematics version of \hpos? The contents of \hpos are set as 
>> text, even when \hpos is in mathematics, so I wrote an \mpos macro that uses 
>> \hpos but sets the contents as display-style math. This isn’t great for 
>> spacing, and it does't adapt to different math styles. \framed has a math 
>> version, \mframed, that sets the contents in the appropriate math style. If 
>> anyone know a way to accomplish that with \hpos, I’d love to know.
> 
> there actually is a subsystem that keeps math as-is-it (styles and spacing 
> and such), see attached

I tried using \mathboxanchored, and was able to get the bottom two equations 
shown here. (The top equation uses \hpos, for comparison.)



mathboxanchored.pdf
Description: Adobe PDF document

There are two problems that I didn’t know how to fix.

1) The line connects to the box including the subscript or superscript, not 
just to the e.
2) I cannot make multiple connections to a single object, like the e^\mu in the 
center. If I try to connect top and bottom, I get no connections anywhere in 
the entire document.

The code for the formulas is:

\startformula
  % Each \connectboxanchors works alone, but both together make trouble:
\connectboxanchors[top][top]{X}{Y}
%\connectboxanchors[bottom][bottom]{Y}{Z}
  \mathboxanchored{X}{e}_\alpha \mathboxanchored{Y}{e}^\mu 
\mathboxanchored{Z}{e}_{\dot\beta}
= \textfrac{1}{\sqrt{2}}\sigma_{\alpha\dot\beta}^\mu
\stopformula

I added code to turn the arrow produced by \connectboxanchors into my 
contraction overlay, but that doesn’t affect these issues.

> in your example we need a way to anchor on just the 'e' right? or do you want 
> it on the e + super/subscript?

Yes, we only need to anchor to e. 

Thanks!
Gavin___
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] \hpos in math

2022-12-06 Thread Hans Hagen via ntg-context

On 12/6/2022 12:39 AM, Gavin via ntg-context wrote:

Hello List,

I am working on a project which combines graphics with formulas, like this:

My code for creating this formula is attached. It works well, but I have a 
couple of questions that could make it work better.

1) Is there a mathematics version of \hpos? The contents of \hpos are set as 
text, even when \hpos is in mathematics, so I wrote an \mpos macro that uses 
\hpos but sets the contents as display-style math. This isn’t great for 
spacing, and it does't adapt to different math styles. \framed has a math 
version, \mframed, that sets the contents in the appropriate math style. If 
anyone know a way to accomplish that with \hpos, I’d love to know.


there actually is a subsystem that keeps math as-is-it (styles and 
spacing and such), see attached



2) Is there a way to limit the scope of the \hpos labels to a single formula. 
This could turn into a book length project, with several formulas per page and 
several connections per formula. If every \hpos in the entire book needs a 
unique identifier, I could go mad. Under no circumstances will I connect one 
formula to another, so I’d like to be able to use something like 
\hpos{A}{…}…\hpos{B}{…} in each formula. Any suggestions?


one problem is (and i'm working on that) that one could want multiple 
anchors on a math atom as well as pu tit on the nuclues only



I’ve got to say, LMTX is an absolutely amazing tool for this project, which 
includes complicated networks of connections above and below many formulas. The 
integration of TeX, MetaPost, and Lua makes this project tremendous fun.


that's the idea


P.S. For the curious, I’m using a method for doing General Relativity based on 
spinors rather than tensors, following the methods of Penrose and Rindler in 
their 1985 books “Spinors and Space-time.” In the typesetting example above, 
the e_\alpha and e_{\dot\beta} are basis spinors (one left-handed, one 
right-handed). The e^\mu is the Infeld-van der Waerden symbol relating the spin 
basis to the coordinate basis. The connections are spinor index contractions. 
The formula above relates the components of the Infeld-van der Waerden symbol 
to the Pauli sigma matrices. This relationship only works in flat space, so 
this is an easy example! [Penrose and Rindler, vol 1 p. 125]


in your example we need a way to anchor on just the 'e' right? or do you 
want it on the e + super/subscript?


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
-
\usemodule[article-basic]

\setupbodyfont[dejavu]

\starttext

\setupboxanchorcontent
  [top,left]
  [rulecolor=darkyellow]

\setupboxanchorcontent
  [bottom,right]
  [rulecolor=darkblue]

\input tufte

$
\connectboxanchors[top][top]{one}{two}
x + \frac[source=\namedboxanchor{one}]{1+x}{2-x} =
z + \frac[source=\namedboxanchor{two}]{1+x^2}{2-x^3}
$

\input ward


\connectboxanchors[top][top]{one}{two}

So how about
$
x + \frac[source=\namedboxanchor{one}]{1+x}{2-x}
$
and
$
z + \frac[source=\namedboxanchor{two}]{1+x^2}{2-x^3}
$
then. Of course we need to handle page crossing then.

\connectboxanchors[top][top]{one}{two}
\connectboxanchors[top][top][dash=1]{three}{four}

And can we do
$
% \showboxes
x + \frac{1 \mathboxanchored{one}{+} x \mathboxanchored{three}{-} z}{2-x}
$
and
$
% \showboxes
z + \frac{1 \mathboxanchored{two}{+} x^2 \mathboxanchored{four}{-} z}{2-x^3}
$
to be more granular?

\blank[2*big]

\connectboxanchors[top]   [top]   [text={\small\small\strut\bf watch}]{one}  
{two}
\connectboxanchors[bottom][bottom][text={\small\small\strut\bf out}]  
{three}{four}

And can we do
$
% \showboxes
x + \frac{1 \mathboxanchored{one}{+} x - z}{2 \mathboxanchored{three}{-} x}
$
and
$
% \showboxes
z + \frac{1 \mathboxanchored{two}{+} x^2 - z}{2 \mathboxanchored{four}{-} 
x^3}
$
to be more granular?

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


[NTG-context] \hpos in math

2022-12-05 Thread Gavin via ntg-context
Hello List,

I am working on a project which combines graphics with formulas, like this:



hposQuestion.pdf
Description: Adobe PDF document


My code for creating this formula is attached. It works well, but I have a 
couple of questions that could make it work better.

1) Is there a mathematics version of \hpos? The contents of \hpos are set as 
text, even when \hpos is in mathematics, so I wrote an \mpos macro that uses 
\hpos but sets the contents as display-style math. This isn’t great for 
spacing, and it does't adapt to different math styles. \framed has a math 
version, \mframed, that sets the contents in the appropriate math style. If 
anyone know a way to accomplish that with \hpos, I’d love to know.

2) Is there a way to limit the scope of the \hpos labels to a single formula. 
This could turn into a book length project, with several formulas per page and 
several connections per formula. If every \hpos in the entire book needs a 
unique identifier, I could go mad. Under no circumstances will I connect one 
formula to another, so I’d like to be able to use something like 
\hpos{A}{…}…\hpos{B}{…} in each formula. Any suggestions?

I’ve got to say, LMTX is an absolutely amazing tool for this project, which 
includes complicated networks of connections above and below many formulas. The 
integration of TeX, MetaPost, and Lua makes this project tremendous fun.

Thanks!
Gavin

P.S. For the curious, I’m using a method for doing General Relativity based on 
spinors rather than tensors, following the methods of Penrose and Rindler in 
their 1985 books “Spinors and Space-time.” In the typesetting example above, 
the e_\alpha and e_{\dot\beta} are basis spinors (one left-handed, one 
right-handed). The e^\mu is the Infeld-van der Waerden symbol relating the spin 
basis to the coordinate basis. The connections are spinor index contractions. 
The formula above relates the components of the Infeld-van der Waerden symbol 
to the Pauli sigma matrices. This relationship only works in flat space, so 
this is an easy example! [Penrose and Rindler, vol 1 p. 125] 



hposQuestion.tex
Description: Binary data
___
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] underbrace under matrix

2022-08-05 Thread Jethro Djan via ntg-context
Hi,

I will wait for the manual. With drawing commutative diagrams, I am sure 
learning how to use MetaFun/MetaPost better might help.

Thanks for the fantastic work.

Jethro

> On 5 Aug 2022, at 3:27 PM, Hans Hagen via ntg-context  
> wrote:
> 
> On 8/5/2022 5:12 PM, Jethro Djan via ntg-context wrote:
>> Hello Mikael,
>> Thanks for your solution; it works just fine. I am not familiar with how you 
>> defined the pmatrix. Any links to manuals to learn such definitions? Also, 
>> this is the second thing I have tried to adapt from typesetting mathematics 
>> in plain TeX that didn’t work. I tried to draw commutative diagrams some 
>> time back using \diagram{…} which didn’t work(Got the idea from the book “A 
>> beginner’s book of TeX” pg. 161 by Seroul et al ).
>> I guess what I am asking is that, what are the limits of what I can use 
>> out-of-the-box from Tex when typesetting mathematics? I have read Aditya’s 
>> ConTeXt-LaTeX tutorial which is fantastic. But the stuff illustrated there 
>> are quite limited. Are there any materials I can read on this?
> there is an extensive manual coming but you need to give us some time (as it 
> goes hand-in-hand with updating / extending some of the math machinery)
> 
> if you have specific wishes, just let is know and we'll have a look if it can 
> somehow fit in
> 
> 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
> ___

___
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] underbrace under matrix

2022-08-05 Thread Hans Hagen via ntg-context

On 8/5/2022 5:12 PM, Jethro Djan via ntg-context wrote:

Hello Mikael,

Thanks for your solution; it works just fine. I am not familiar with how 
you defined the pmatrix. Any links to manuals to learn such definitions? 
Also, this is the second thing I have tried to adapt from typesetting 
mathematics in plain TeX that didn’t work. I tried to draw commutative 
diagrams some time back using \diagram{…} which didn’t work(Got the idea 
from the book “A beginner’s book of TeX” pg. 161 by Seroul et al ).


I guess what I am asking is that, what are the limits of what I can use 
out-of-the-box from Tex when typesetting mathematics? I have read 
Aditya’s ConTeXt-LaTeX tutorial which is fantastic. But the stuff 
illustrated there are quite limited. Are there any materials I can read 
on this?
there is an extensive manual coming but you need to give us some time 
(as it goes hand-in-hand with updating / extending some of the math 
machinery)


if you have specific wishes, just let is know and we'll have a look if 
it can somehow fit in


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
___


Re: [NTG-context] underbrace under matrix

2022-08-05 Thread Jethro Djan via ntg-context
Hello Mikael,

Thanks for your solution; it works just fine. I am not familiar with how you 
defined the pmatrix. Any links to manuals to learn such definitions? Also, this 
is the second thing I have tried to adapt from typesetting mathematics in plain 
TeX that didn’t work. I tried to draw commutative diagrams some time back using 
\diagram{…} which didn’t work(Got the idea from the book “A beginner’s book of 
TeX” pg. 161 by Seroul et al ). 

I guess what I am asking is that, what are the limits of what I can use 
out-of-the-box from Tex when typesetting mathematics? I have read Aditya’s 
ConTeXt-LaTeX tutorial which is fantastic. But the stuff illustrated there are 
quite limited. Are there any materials I can read on this?

Thanks for your help.

Jethro



> On 5 Aug 2022, at 5:03 AM, Mikael Sundqvist via ntg-context 
>  wrote:
> 
> \definemathmatrix[pmatrix][matrix:parentheses][
> simplecommand=pmatrix,
> ]

___
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-05-11 Thread Hans Hagen via ntg-context

On 5/11/2022 5:46 PM, Zhichu Chen via ntg-context wrote:

Thanks for the update. But I noticed that the XITS fonts were still the 
old ones:




zhichu@large /opt/context-lmtx/tex/texmf/fonts/opentype/public/xits $ 
fc-query -f '%{fontversion}\n' XITS-Regular.otf  | perl -E 'printf 
"%.3f\n", <>/65536.0'

1.200




According to

https://github.com/aliftype/xits/releases

the final release is version 1.302. Maybe I don't care the new changes 
since 1.200, but every time I compile my file, I get the warnings I 
don't like:


========

mathematics > tweak > 'XITSMath-Regular', size 6pt, math size 3, 
version 'Version 1.200' found, version 'Version 1.302' expected
mathematics > tweak > 'XITSMath-Bold', size 6pt, math size 3, 
version 'Version 1.109' found, version 'Version 1.302' expected



Do you mind get the new ones in the next beta?

i'll try but you need to check

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
___


Re: [NTG-context] upload

2022-05-11 Thread Zhichu Chen via ntg-context

Hi Hans,


Thanks for the update. But I noticed that the XITS fonts were still the 
old ones:




zhichu@large /opt/context-lmtx/tex/texmf/fonts/opentype/public/xits $ 
fc-query -f '%{fontversion}\n' XITS-Regular.otf  | perl -E 'printf 
"%.3f\n", <>/65536.0'

1.200




According to

https://github.com/aliftype/xits/releases

the final release is version 1.302. Maybe I don't care the new changes 
since 1.200, but every time I compile my file, I get the warnings I 
don't like:


========

mathematics > tweak > 'XITSMath-Regular', size 6pt, math size 3, 
version 'Version 1.200' found, version 'Version 1.302' expected
mathematics > tweak > 'XITSMath-Bold', size 6pt, math size 3, 
version 'Version 1.109' found, version 'Version 1.302' expected



Do you mind get the new ones in the next beta?


Best regards,

Zhichu


On 5/9/22 23:41, Hans Hagen via ntg-context wrote:

Hi,

I uploaded a new version of lmtx (also because some users have to test 
some new metapost functionality). In the next upload metafun will use 
'double' mode (and scaledfun will be the traditional one). The 
advantage is less dager for overflows and in the meantime running in 
double mode is often also faster.


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] Issue in btx rendering

2022-05-04 Thread śrīrāma via ntg-context
Hi,

[my current version: 2022.05.02 16:19]
With the past two-or-so uploads, btx output seems to be broken in some cases. 
Compiling the below example

  \usebtxdataset[refs.bib]
  \usebtxdefinitions[aps]

  \starttext
  This reference has a tag which is in camel-case:
  \cite[Nielsen2011_ChernoffInformationExponentialFamilies]

  On the other hand this reference has a tag which is lower-case:
  \cite[vaart1998_asymptoticstatistics]

  \placelistofpublications
  \stoptext

along with the bibtex file (refs.bib attached here), only the second citation 
entry has a properly rendered bibliography entry while the first one does not. 
Notably, any bibtex entries whose tags are not all lowercase (ASCII) are not 
rendered correctly. Instead, in the log I get

publications > unknown tag 'nielsen2011_chernoffinformationexponentialfamilies' 
in dataset 'default'

Almost all my entries in bib files are in camel-case since I find that to be 
easier to read and it gives me a better clue of what the item is. With some 
recent uploads I noticed that in publ-ini.lua 'tag' and 'field' entries were 
string.lowered(). Upon removing those statements, I am able to get the proper 
output.

I also have certain bib files where the entries are not at all in ASCII (so I 
am not sure what the code might do there, I did not check in detail). I hope I 
can continue to use camel case for the tags (if its not too much to ask): is 
there some additional setting that I should change to allow this so that the 
output is rendered correctly?

Thanks,
  Sreeram@article{Nielsen2013_InformationGeometricCharacterizationChernoff,
	author= {Nielsen, Frank},
	doi   = {10.1109/LSP.2013.2243726},
	issn  = {1070-9908},
	journal   = {IEEE Signal Processing Letters},
	localfile = {Nielsen2013_InformationGeometricCharacterizationChernoff.pdf},
	month = {March},
	number= {3},
	pages = {269--272},
	title = {An Information-Geometric Characterization of Chernoff Information},
	volume= {20},
	year  = {2013},
}

@article{Nielsen2011_ChernoffInformationExponentialFamilies,
	author= {Nielsen, Frank},
	journal   = {CoRR},
	localfile = {Nielsen2011_ChernoffInformationExponentialFamilies.pdf},
	title = {Chernoff information of exponential families},
	url   = {http://arxiv.org/abs/1102.2684; https://dblp.org/rec/bib/journals/corr/abs-1102-2684},
	volume= {abs/1102.2684},
	year  = {2011},
}

@book{vaart1998_asymptoticstatistics,
	author = {Vaart, A. W. van der},
	collection = {Cambridge Series in Statistical and Probabilistic Mathematics},
	doi= {10.1017/CBO9780511802256},
	localfile  = {Vaart1998_AsymptoticStatistics.pdf},
	place  = {Cambridge},
	publisher  = {Cambridge University Press},
	series = {Cambridge Series in Statistical and Probabilistic Mathematics},
	title  = {Asymptotic Statistics},
	year   = {1998},
}

@article{Muller1997_IntegralProbabilityMetricsGeneratingClass,
	author  = {M{\"u}ller, Alfred},
	doi = {10.2307/1428011},
	issn= {0001-8678, 1475-6064},
	journal = {Advances in Applied Probability},
	month   = {Jun},
	number  = {2},
	pages   = {429--443},
	title   = {Integral Probability Metrics and Their Generating Classes of Functions},
	url = {https://www.cambridge.org/core/product/identifier/S000186780002807X/type/journal_article},
	volume  = {29},
	year= {1997},
}
___
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

2022-03-15 Thread Hans Hagen via ntg-context

On 3/15/2022 9:53 AM, śrīrāma wrote:

On Saturday, March 12, 2022 4:46 AM Hans Hagen via ntg-context wrote:

Hi,

It has been a while since there was an updaste but there it is.
[...]
There is a rough description in the 'ontarget' document. We hope you
enjoy it, at least we did (and so, as we're not finished yet).

Hans


Dear Hans,

Thank you for the remarkable upload! Also, thanks Mikael, for your work as well!

The new release coincides with the onset of warm summer months after some cold 
winters where I live ;)

[I am a little late to this discussion since I was held up with some college 
assignments and work, so sorry for that... I just updated today]
I have tested out most of my documents (some with many MetaFun diagrams) and 
all work well!

I have several documents which are very mathematics-heavy and all of those work 
great as well. In fact, I also noticed some improvements especially with 
spacing around fractions and signs/other expressions around them. [I must 
mention that I am using Asana in most documents: it does have its quirks but it 
is what I have; I also use Libertinus sometimes]. Since I have many expressions 
with \left \right braces delimiters with large fractions (fractions of 
fractions, etc.) I was able to notice that the spacing is now better overall. 
Also I see the truth behind the remark in Asana, before the update, many more 
things were strange and I had to manually adjust with spaces as necessary, now 
those don't seem to be necessary. However, Asana continues to remain weird (at 
least with uppercasescript c
haracters as subscripts + delimiters). I had relatively fewer issues with 
Libertinus and no issues with the fonts in LMTX itself. So overall, I am very 
happy with it (and grateful for it).
I also noticed that ontarget document from the previous upload had not much in 
it apart from the attractive cover page. Now it has so many nice details which 
I look forward to studying from.
We're glad that you notice the improvements! So it's worth the effort. 
And more is coming


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
___


Re: [NTG-context] new upload

2022-03-15 Thread śrīrāma via ntg-context
On Saturday, March 12, 2022 4:46 AM Hans Hagen via ntg-context wrote:
> Hi,
> 
> It has been a while since there was an updaste but there it is. 
> [...]
> There is a rough description in the 'ontarget' document. We hope you 
> enjoy it, at least we did (and so, as we're not finished yet).
> 
> Hans

Dear Hans,

Thank you for the remarkable upload! Also, thanks Mikael, for your work as well!

The new release coincides with the onset of warm summer months after some cold 
winters where I live ;)

[I am a little late to this discussion since I was held up with some college 
assignments and work, so sorry for that... I just updated today]
I have tested out most of my documents (some with many MetaFun diagrams) and 
all work well!

I have several documents which are very mathematics-heavy and all of those work 
great as well. In fact, I also noticed some improvements especially with 
spacing around fractions and signs/other expressions around them. [I must 
mention that I am using Asana in most documents: it does have its quirks but it 
is what I have; I also use Libertinus sometimes]. Since I have many expressions 
with \left \right braces delimiters with large fractions (fractions of 
fractions, etc.) I was able to notice that the spacing is now better overall. 
Also I see the truth behind the remark in Asana, before the update, many more 
things were strange and I had to manually adjust with spaces as necessary, now 
those don't seem to be necessary. However, Asana continues to remain weird (at 
least with uppercasescript characters as subscripts + delimiters). I had 
relatively fewer issues with Libertinus and no issues with the fonts in LMTX 
itself. So overall, I am very happy with it (and grateful for it).

I also noticed that ontarget document from the previous upload had not much in 
it apart from the attractive cover page. Now it has so many nice details which 
I look forward to studying from.

Thanks,
Sreeram


___
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 Hans Hagen via ntg-context

On 1/26/2022 10:07 PM, jbf via ntg-context wrote:
Just be careful, though (writing as a native English speaker), because 
the word 'polymath' for English speaker is not a reference to 
mathematicians at all. (Greek/mathē/ means 'learning' not mathematics). 
Translators are well aware of the danger of homonyms, and if you go for 
a title like Manual for Polymathematicians, then the word is being 
wrongly used. There is a word 'polymath' in English, but not 
'polymathematician', unless of course you make it clear that it is 
merely a play on words. But personally, I'd avoid that.
sure, it was a a play of word, although polymathematician as 
all-knowing-person definitely applies to Don Knuth which brings us back 
to TeX


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
___


Re: [NTG-context] OT world history: other measuring systems?

2022-01-26 Thread jbf via ntg-context
Just be careful, though (writing as a native English speaker), because 
the word 'polymath' for English speaker is not a reference to 
mathematicians at all. (Greek/mathē/ means 'learning' not mathematics). 
Translators are well aware of the danger of homonyms, and if you go for 
a title like Manual for Polymathematicians, then the word is being 
wrongly used. There is a word 'polymath' in English, but not 
'polymathematician', unless of course you make it clear that it is 
merely a play on words. But personally, I'd avoid that.


Julian

On 26/1/22 20:36, Hans Hagen via ntg-context wrote:

On 1/26/2022 10:23 AM, Jean-Pierre Delange via ntg-context wrote:
In line with what Otared writes about the measurement of distances in 
the context of Persia and ancient Rome, I am always very surprised to 
see the precision of the measurements in the evaluation of the 
circumference of the earth by Eratosthenes of Cyrene. What intrigues 
me is not really the geometry calculations involved, but the 
calculation of the distance between Aswan and Alexandria. There is 
little information on the taking of this measurement: is it Egyptian 
surveyors (bematists: https://en.wikipedia.org/wiki/Bematist) or the 
use of an instrument equivalent to a pedometer? see here: 
https://en.wikipedia.org/wiki/Eratosthenes

   Eratosthenes of Cyrene was a Greek polymath ...

Ah ... that makes a great subtitle for Mikaels upcoming math manual: 
"A manual for polymathematicians"


   A polymath (Greek: πολυμαθής, polymathēs, "having learned much";

and then we can talk 'polymathematical typesetting' and such (I'm sure 
that Arthur can come up with a reflective historical tex-talk.)


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___ 

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


maillist : ntg-context@ntg.nl / 
http://www.ntg.nl/mailman/listinfo/ntg-context

webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___ 
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] OT world history: other measuring systems?

2022-01-25 Thread Jean-Pierre Delange via ntg-context
As you know, there were very variable measurement systems in Europe 
after the fall of the Roman Empire, depending on the region within the 
same country. It is difficult to say precisely why political unity, when 
there was one in a given country, did not make it possible to 
systematize the use of the same standard of measurement throughout the 
country, because it is quite astonishing to see that the cubit, the 
foot, the pound etc. vary from one region to another during the medieval 
period. The answer to this question on the variability and versatility 
of measures is undoubtedly due to the fact that the birth of modern 
nations has been accompanied by the emergence of a rational State which 
has increasingly taken the place of a rational administration (legal) of 
social relationship. The French Revolution of 1789 carried out the 
efforts at rationalization that we had seen develop with the appearance 
of a strong State from the end of the wars of religion and the reign of 
Louis XIV in France: the metric system (based on a segment of the 
Greenwich meridian) in base 10, makes it possible to obtain measurements 
of surfaces, distances and volumes which are the same everywhere and 
which do not vary according to whether one is in Normandy, Lorraine or 
Provence. For those interested in the point Didot (the printing point 
under the French monarchy), its value was 1/72 of a foot (of the king's 
foot)... which king's foot could not be a foot of English king, nor a 
symbolic value as guinea was !


see here : https://en.wikipedia.org/wiki/Units_of_measurement_in_France
and here : 
https://en.wikipedia.org/wiki/Units_of_measurement_in_France_before_the_French_Revolution


Le 25/01/2022 à 20:28, Henning Hraban Ramm via ntg-context a écrit :

Am 25.01.22 um 18:27 schrieb Aditya Mahajan:

On Tue, 25 Jan 2022, Henning Hraban Ramm via ntg-context wrote:

why didn’t "we" stick to
the Roman system?


All you need to do is look at the definitions of roman imperial units 
to understand why we didn't stick to that:


An inch was the width of the base of the thumb, a foot, well length 
of a foot, a fathom was the width of outstretched arms, yard was the 
length of the man's belt, mile was 1000 paces of marching roman 
soldiers, and so on.


Ah, of course. So “normalization” to some ruler’s shoe size was 
already progress.


In India, from what I am aware, the pre-imperial units of 
measurements had similar origins as imperial. Length was based on 
width of fingers, cubit (also used in other civilizations of the 
time), person-height and so on. As with the imperial units, these 
definitions were not uniform and went through a uniformization 
process in the middle ages. However, India moved to imperial units 
with colonization, and adopted metric system after Independence.


Some of the units, particularly for measurement of land area, are 
still in use as they are effectively codified in the land records. 


Interesting.


Wikipedia has some summary of the ancient and medieval systems in India.
https://en.wikipedia.org/wiki/Indian_units_of_measurement

But it got more complicated than that (particularly for time). See, 
for example:
https://sites.google.com/site/mathematicsmiscellany/time-measurement-in-ancient-india 



Oh, that is nice!

There is also this fascinating book which covers the non-European 
history of mathematics (a lot of which in ancient times was to do 
with units and measurements but more importantly, calculations):
https://press.princeton.edu/books/paperback/9780691135267/the-crest-of-the-peacock 



Yes, that’s probably worth reading.

Thank you!
Hraban
___ 

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
___ 



--
Jean-Pierre Delange
Ancients
Professeur Agrégé de Philosophie (HC)
___
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-25 Thread Henning Hraban Ramm via ntg-context

Am 25.01.22 um 18:27 schrieb Aditya Mahajan:

On Tue, 25 Jan 2022, Henning Hraban Ramm via ntg-context wrote:

why didn’t "we" stick to
the Roman system?


All you need to do is look at the definitions of roman imperial units to 
understand why we didn't stick to that:

An inch was the width of the base of the thumb, a foot, well length of a foot, 
a fathom was the width of outstretched arms, yard was the length of the man's 
belt, mile was 1000 paces of marching roman soldiers, and so on.


Ah, of course. So “normalization” to some ruler’s shoe size was already 
progress.



In India, from what I am aware, the pre-imperial units of measurements had 
similar origins as imperial. Length was based on width of fingers, cubit (also 
used in other civilizations of the time), person-height and so on. As with the 
imperial units, these definitions were not uniform and went through a 
uniformization process in the middle ages. However, India moved to imperial 
units with colonization, and adopted metric system after Independence.

Some of the units, particularly for measurement of land area, are still in use as they are effectively codified in the land records. 


Interesting.


Wikipedia has some summary of the ancient and medieval systems in India.
https://en.wikipedia.org/wiki/Indian_units_of_measurement

But it got more complicated than that (particularly for time). See, for example:
https://sites.google.com/site/mathematicsmiscellany/time-measurement-in-ancient-india


Oh, that is nice!


There is also this fascinating book which covers the non-European history of 
mathematics (a lot of which in ancient times was to do with units and 
measurements but more importantly, calculations):
https://press.princeton.edu/books/paperback/9780691135267/the-crest-of-the-peacock


Yes, that’s probably worth reading.

Thank you!
Hraban
___
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-25 Thread Hans Hagen via ntg-context

On 1/25/2022 6:27 PM, Aditya Mahajan via ntg-context wrote:


Some of the units, particularly for measurement of land area, are still in use 
as they are effectively codified in the land records. Wikipedia has some 
summary of the ancient and medieval systems in India.
https://en.wikipedia.org/wiki/Indian_units_of_measurement


the same in nl ... for instance farmers still use old measures (e.g. 
when selling or buying land), also because for instance lots are defined 
that way



But it got more complicated than that (particularly for time). See, for example:
https://sites.google.com/site/mathematicsmiscellany/time-measurement-in-ancient-india

There is also this fascinating book which covers the non-European history of 
mathematics (a lot of which in ancient times was to do with units and 
measurements but more importantly, calculations):

https://press.princeton.edu/books/paperback/9780691135267/the-crest-of-the-peacock

also nice ... all gets figured out independent and multiple times over time

https://www.youtube.com/watch?v=KIEJHNoSWF4=10381s


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


Re: [NTG-context] OT world history: other measuring systems?

2022-01-25 Thread Aditya Mahajan via ntg-context
On Tue, 25 Jan 2022, Henning Hraban Ramm via ntg-context wrote:

> Hi all,
> just out of curiosity and since some of you are knowledgable in many 
> fields: Were there widely accepted measuring systems in Asia before the 
> introduction of the imperial or metric system? In Europe there was a 
> mess of local miles, feet, cubits, inches etc.; why didn’t "we" stick to 
> the Roman system?

All you need to do is look at the definitions of roman imperial units to 
understand why we didn't stick to that:

An inch was the width of the base of the thumb, a foot, well length of a foot, 
a fathom was the width of outstretched arms, yard was the length of the man's 
belt, mile was 1000 paces of marching roman soldiers, and so on. 

In India, from what I am aware, the pre-imperial units of measurements had 
similar origins as imperial. Length was based on width of fingers, cubit (also 
used in other civilizations of the time), person-height and so on. As with the 
imperial units, these definitions were not uniform and went through a 
uniformization process in the middle ages. However, India moved to imperial 
units with colonization, and adopted metric system after Independence. 

Some of the units, particularly for measurement of land area, are still in use 
as they are effectively codified in the land records. Wikipedia has some 
summary of the ancient and medieval systems in India.
https://en.wikipedia.org/wiki/Indian_units_of_measurement

But it got more complicated than that (particularly for time). See, for example:
https://sites.google.com/site/mathematicsmiscellany/time-measurement-in-ancient-india

There is also this fascinating book which covers the non-European history of 
mathematics (a lot of which in ancient times was to do with units and 
measurements but more importantly, calculations):

https://press.princeton.edu/books/paperback/9780691135267/the-crest-of-the-peacock

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

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


Re: [NTG-context] Linespacing modified across document

2022-01-23 Thread Hans Hagen via ntg-context

On 1/23/2022 8:58 AM, Alexandre Christe via ntg-context wrote:

Dear list,

I've noticed that in my document the linespacing (verified 
with \the\baselineskip) is not consistent across the whole document.


In the first section, it's fine (no maths). Later on, it gets increased 
by some amount, which tends to depend on what kind of mathematics are in 
between, so it's not constant.


Has anyone else noticed this too?


It can depend on the ht/dp ratio of the font, so maybe you need to adapt 
that (when setting up linespacing).


Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Linespacing modified across document

2022-01-22 Thread Alexandre Christe via ntg-context
Dear list,

I've noticed that in my document the linespacing (verified
with \the\baselineskip) is not consistent across the whole document.

In the first section, it's fine (no maths). Later on, it gets increased by
some amount, which tends to depend on what kind of mathematics are in
between, so it's not constant.

Has anyone else noticed this too?

BR
Alex
___
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 Editions?

2022-01-05 Thread Jean-Pierre Delange via ntg-context

Thank you Luigi !

"Quite old" doesn't matter. The date of the wiki page from Thomas is 
2010... And my own contribution to first steps with ConTeXt (in French 
and not for mathematics) through a Wikibook is no more valuable, full of 
errors and obsolete on many aspects 
(https://fr.wikibooks.org/wiki/ConTeXt) !


As Garulfo made a quite good job last year with his own contribution 
(https://github.com/contextgarden/not-so-short-introduction-to-context/tree/main/), 
it may be useful to produce a kind of "howto" with TEI-XML and LMTX-CTX.


I propose that at first time, any volunteer gather documentation on 
TEI-XML with ConTeXt to feed the wiki page on this topic, with in mind a 
real case of their choice (which may be a real academic case or an issue 
of their choice), not too tricky - or too far away of the common use, 
even if, by itself, the issues encountered in academic edition in 
humanities (or TEI-XML edition) are ... tricky and/or not very usual 
(because not it is not everybody who try to edit the work of Romanos the 
Melodist, or sanskrit poetry !).


As I saw that Thomas A. Schmitz was time to time an editor of Second 
Sophistic authors (among other things like French Renaissance poets), 
and few others Context users use to deal with CTX in order to publish 
ancients texts/poetry (like Pablo ...), I propose in a second time a 
general discussion on the topic, with in mind : What are the needs ? and 
what it is necessary to achieve at first and how ?


Thank you to share your views.

JP

Le 05/01/2022 à 09:43, luigi scarso a écrit :



On Wed, Jan 5, 2022 at 12:00 AM Jean-Pierre Delange via ntg-context 
 wrote:


Thomas,
Even if I am an occasional user of CTX (mainly class courses for
beginners and sophomore or by trying to write samples of what it
is possible to achieve with it), and if I think I am aware about
what can do CTX or what it cannot do, I didn't know that you wrote
a  wiki page on TEI-XML with ConTeXt : even if I am interested by
clever printing and issues with multi-languages texts topics, I
ignored your precious piece of work. I was interested by the
questions of Pr. Jürgen Hanneder, because even if I don't know a
word of Sanskrit,  it is allways a true pain to begin with
technical requisits when your real job is to think about the
problematic meaning of ancients or less ancients texts. You
precise clearly what I think about University mores, and J.
Hanneder tell us his problems, which all of us know.
There are, for people who are working on Ancient Greek, Latin,
Middle Age texts or Sanskrit (or whatever) some commercial tools
which seem do the work : but technical efficiency asks allways
money. I know of a company that works for a publisher, whose
service is to code some Perl with text formatted in LaTeX and XML,
in order to produce a display on screen and a printout on paper,
until the page which presents the cover of the book and the
summary of the contents, as well as its ISBN code, its price and
the quantity of books in stock.

quite old (2014),  but perhaps still interesting:
embedding of a tei-xml into a tagged pdf
https://www.guitex.org/home/images/ArsTeXnica/AT018/teitagged.pdf

--
luigi


--
Jean-Pierre Delange
Agrégé de philosophie
Ancients
"Few discoveries are more irritating than those which expose the pedigree of 
ideas" - Lord Acton
___
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] Malayalam conjuncts

2022-01-01 Thread Ajith R via ntg-context
On Sat, 01 Jan 2022 09:48:53 +0530
kauśika  wrote:

> On Friday, December 31, 2021 6:22:15 PM IST Ajith R via ntg-context
> wrote:
> > The conjuncts that are not formed
> > correctly are those where the second component is ര U+0D30,
> > followed by a symbol that is shown on the right side of the
> > conjunct viz ാ U+0D3E, ി U+0D3F, ീ U+0D40, ു  U+0D41, ൂ U+0D42. If
> > no symbols follow, or symbols follow on the left or on both sides,
> > the conjunct is well formed.In the minimum working example given 5
> > is well formed, while the first conjunct in 6 is well formed and
> > second ill formed conjunct.  
> 
> I have been using ConTeXt to typeset documents in several Indic
> languages and have run into similar issues (in many languages).
> Please see this for a similar issue in some conjuncts for Devanagari:
> https://www.mail-archive.com/ntg-context@ntg.nl/msg99691.html
> 
> For what its worth, I have not had issues with some fonts while
> issues with others persist. Some of these issues we can work around
> as I have pointed out in the above posting.
> 
> In almost all cases I encountered no issues while using Xe(La)Tex.
> Based on some advise from Hans and reading about these OTF features
> and their implementations in Indic fonts, I think these issues might
> be due to differences in implementation. [Not entirely sure since I
> am a novice]. My guess is that Harfbuzz (which is what Xe(La)TeX uses
> by default) uses some heuristics to work out these conjuncts (?!).
> 
> To answer your specific question regarding the conjuncts in the given
> words you have to use some Unicode hacking to get what you want in
> ConTeXt.
> 
> In each of the following ZWS refers to the Unicode character
> (zero-width space U+200B)
> 
> 1. ശ്രീ 
> This is typeset correctly by writing  
>   ശ്ര + 
>   ZWS (U+200B) + 
>   ീ
> 
> 2. അശ്രു
> Typeset correctly with
>   അശ്ര + 
>   ZWS (U+200B) + 
>   ​ൂ
> 
> 3. ശുശ്രൂഷ
> Typeset correctly with
>   ശുശ്ര +
>   ZWS (U+200B) + 
>   ൂ +
>   ഷ
> 
> 4. പ്രാസം
> Typeset correctly with
>   പ്ര + 
>   ZWS (U+200B) + 
>   ാ +
>   സം
> 
> 5. പ്രേയസി (rendered correctly as entered; no hacks necessary)
> 
> 6. പ്രോഗ്രാം
> Typeset correctly with
>   പ്രൊ +
>   ഗ്ര + 
>   ZWS (U+200B) +
>   ാ +‌
>   ം
> where the last character is the Malayalam Anusvara.
> 
> Consider yet another example:
> സാന്ദ്രാനന്ദാഅവബൊധാത്മകമ്
> 
> Here the 'ന്ദ്രാ' conjunct is not typeset in ConTeXt. To fix this I
> do ന്ദ്ര +
>   ZWS (U+200B) +
>   ​ാ
> 
> This is what I have been doing to ensure correct typesetting of
> Malayalam and other Indic languages in ConTeXt. Honestly, it is
> inconvenient since the .tex files containing Unicode are no longer
> sanitary. However, ConTeXt has so many remarkable features that the
> very thought of having to go back to (Xe)LaTeX (just for harfbuzz
> rendering) causes me immense pain. As far as I am concerned, in every
> other way ConTeXt simply has no match in the (Xe)LaTeX world. In my
> usage of ConTeXt for my academic work (in English with lots of
> mathematics) I have encountered no issues. Even if I did there was
> always some legitimate (non-hacky) fix for it. For me personally, the
> rendering in Indic languages is the only pain point with ConTeXt
> (which I am willing to live with).
> 
> So I am willing to live with the drawbacks till the day they are
> hopefully fixed. Anyway, I hope you can use these fixes temporarily.
> For example, if your editor supports it, you can replace all glyphs
> with this issue with the corresponding recipe involving ZWS.
> 
> Dear Hans and other developers of ConTeXt, LuaTeX, 
> If you happen to see this please look into the font system (where it
> concerns Indic systems). The present issue is very similar to the one
> I posted about earlier:
> https://www.mail-archive.com/ntg-context@ntg.nl/msg99691.html
> I have described the issue and the hacks to fix it the best I can. In
> case there is any other information that I can provide please let me
> know.
> 
> Best,
> kauśika
> 
> 

Hi Kausika,

Your workaround seems to help, though it entails adding the ZWS
throughout. Anyway, I agree with you in that even with this anomaly,
Context is worth sticking to.
Dear Hans and other developers of ConTeXt, LuaTeX, 
If a novice can help in any way to resolve this issue, please guide us
how we can contribute.

Thanks,
ajith
___
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] Malayalam conjuncts

2021-12-31 Thread kauśika via ntg-context
On Friday, December 31, 2021 6:22:15 PM IST Ajith R via ntg-context wrote:
> The conjuncts that are not formed
> correctly are those where the second component is ര U+0D30, followed by
> a symbol that is shown on the right side of the conjunct viz ാ U+0D3E,
> ി U+0D3F, ീ U+0D40, ു  U+0D41, ൂ U+0D42. If no symbols follow, or
> symbols follow on the left or on both sides, the conjunct is well
> formed.In the minimum working example given 5 is well formed, while the
> first conjunct in 6 is well formed and second ill formed conjunct.

I have been using ConTeXt to typeset documents in several Indic languages and 
have run into similar issues (in many languages). Please see this for a 
similar issue in some conjuncts for Devanagari:
https://www.mail-archive.com/ntg-context@ntg.nl/msg99691.html

For what its worth, I have not had issues with some fonts while issues with 
others persist. Some of these issues we can work around as I have pointed out 
in the above posting.

In almost all cases I encountered no issues while using Xe(La)Tex. Based on 
some advise from Hans and reading about these OTF features and their 
implementations in Indic fonts, I think these issues might be due to 
differences in implementation. [Not entirely sure since I am a novice]. My 
guess is that Harfbuzz (which is what Xe(La)TeX uses by default) uses some 
heuristics to work out these conjuncts (?!).

To answer your specific question regarding the conjuncts in the given words you 
have to use some Unicode hacking to get what you want in ConTeXt.

In each of the following ZWS refers to the Unicode character (zero-width space 
U+200B)

1. ശ്രീ 
This is typeset correctly by writing  
ശ്ര + 
ZWS (U+200B) + 
ീ

2. അശ്രു
Typeset correctly with
അശ്ര + 
ZWS (U+200B) + 
​ൂ

3. ശുശ്രൂഷ
Typeset correctly with
ശുശ്ര +
ZWS (U+200B) + 
ൂ +
ഷ

4. പ്രാസം
Typeset correctly with
പ്ര + 
ZWS (U+200B) + 
ാ +
സം

5. പ്രേയസി (rendered correctly as entered; no hacks necessary)

6. പ്രോഗ്രാം
Typeset correctly with
പ്രൊ +
ഗ്ര + 
ZWS (U+200B) +
ാ +‌
ം
where the last character is the Malayalam Anusvara.

Consider yet another example:
സാന്ദ്രാനന്ദാഅവബൊധാത്മകമ്

Here the 'ന്ദ്രാ' conjunct is not typeset in ConTeXt. To fix this I do 
ന്ദ്ര +
ZWS (U+200B) +
​ാ

This is what I have been doing to ensure correct typesetting of Malayalam and 
other Indic languages in ConTeXt. Honestly, it is inconvenient since the .tex 
files containing Unicode are no longer sanitary. However, ConTeXt has so many 
remarkable features that the very thought of having to go back to (Xe)LaTeX 
(just for harfbuzz rendering) causes me immense pain. As far as I am 
concerned, in every other way ConTeXt simply has no match in the (Xe)LaTeX 
world. In my usage of ConTeXt for my academic work (in English with lots of 
mathematics) I have encountered no issues. Even if I did there was always some 
legitimate (non-hacky) fix for it. For me personally, the rendering in Indic 
languages is the only pain point with ConTeXt (which I am willing to live 
with).

So I am willing to live with the drawbacks till the day they are hopefully 
fixed. Anyway, I hope you can use these fixes temporarily. For example, if your 
editor supports it, you can replace all glyphs with this issue with the 
corresponding recipe involving ZWS.

Dear Hans and other developers of ConTeXt, LuaTeX, 
If you happen to see this please look into the font system (where it concerns 
Indic systems). The present issue is very similar to the one I posted about 
earlier:
https://www.mail-archive.com/ntg-context@ntg.nl/msg99691.html
I have described the issue and the hacks to fix it the best I can. In case 
there is any other information that I can provide please let me know.

Best,
kauśika


___
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] Nested $$ in inline math

2021-12-13 Thread Hans Hagen via ntg-context

On 12/13/2021 6:57 PM, Aditya Mahajan via ntg-context wrote:

On Mon, 13 Dec 2021, Hans Hagen via ntg-context wrote:

which indeed makes

\starttext
  \mathematics{$text$}
\stoptext

a puzzle


Isn't that effectively:

$\relax$text$\relax$

which prevents the $$ lookup.

Indeed, you solved it.

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
___


Re: [NTG-context] Nested $$ in inline math

2021-12-13 Thread Aditya Mahajan via ntg-context
On Mon, 13 Dec 2021, Hans Hagen via ntg-context wrote:
> which indeed makes
> 
> \starttext
>  \mathematics{$text$}
> \stoptext
> 
> a puzzle

Isn't that effectively:

$\relax$text$\relax$

which prevents the $$ lookup. 

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

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


Re: [NTG-context] Nested $$ in inline math

2021-12-13 Thread Hans Hagen via ntg-context

On 12/13/2021 4:35 PM, Taco Hoekwater via ntg-context wrote:




On 13 Dec 2021, at 16:15, Jack Hill via ntg-context  wrote:

Dear list,

I was playing around and found that nesting $$s inside of \m blocks typesets 
the code as text.
I can't find anything about this on the wiki or in the math-mkiv manual, so I'm 
asking whether this is supported behaviour or just a bug?


I would say that this is unsupported expected behaviour ;)

It is better not to use $ at all (except when using it as a dollar sign when 
\asciimode is active).



\starttext
% All the same
\mathematics{math $text here$ math} \\
\math{math $text here$ math} \\
\m{math $text here$ math} \\
\m{math \text{text here} math} \\


A bit over-precise maybe, but while the first three are the same, the last line 
is
actually very subtly different.

The first three lines are essentially this in TeX82 :

   $math $text here$ math\hfill\break

while that last line is

   $math \hbox{text here} math\hfill\break

which indeed makes

\starttext
\mathematics{$text$}
\stoptext

a puzzle

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
___


Re: [NTG-context] Nested $$ in inline math

2021-12-13 Thread Taco Hoekwater via ntg-context


> On 13 Dec 2021, at 16:15, Jack Hill via ntg-context  
> wrote:
> 
> Dear list,
> 
> I was playing around and found that nesting $$s inside of \m blocks typesets 
> the code as text.
> I can't find anything about this on the wiki or in the math-mkiv manual, so 
> I'm asking whether this is supported behaviour or just a bug?

I would say that this is unsupported expected behaviour ;) 

It is better not to use $ at all (except when using it as a dollar sign when 
\asciimode is active).

> 
> \starttext
> % All the same
> \mathematics{math $text here$ math} \\
> \math{math $text here$ math} \\
> \m{math $text here$ math} \\
> \m{math \text{text here} math} \\

A bit over-precise maybe, but while the first three are the same, the last line 
is 
actually very subtly different. 

The first three lines are essentially this in TeX82 :

  $math $text here$ math\hfill\break

while that last line is 

  $math \hbox{text here} math\hfill\break

Best wishes,
Taco

— 
Taco Hoekwater  E: t...@bittext.nl
genderfluid (all pronouns)



___
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] Nested $$ in inline math

2021-12-13 Thread Jack Hill via ntg-context
Dear list,

I was playing around and found that nesting $$s inside of \m blocks
typesets the code as text.
I can't find anything about this on the wiki or in the math-mkiv manual, so
I'm asking whether this is supported behaviour or just a bug?

Jack

\starttext
% All the same
\mathematics{math $text here$ math} \\
\math{math $text here$ math} \\
\m{math $text here$ math} \\
\m{math \text{text here} math} \\
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

Re: [NTG-context] TeX's \downbracefill and \upbracefill

2021-10-12 Thread Rudolf Bahr via ntg-context
Am Tue, Oct 12, 2021 at 01:24:29PM +0200 schrieb Hans Hagen:
> On 10/12/2021 7:47 AM, Rudolf Bahr via ntg-context wrote:
> > 
> > 
> > Hello to all,
> > 
> > in Knuth's "The TeXbook" page 225/226 (excerpt is appended here) braces
> > are to be seen which I'd need to typeset a genealogical table.
> > 
> > Now, the commands \downbracefill and \upbracefill are no context commands.
> > Please, are there correspondings to them?
>  $\overbrace{\hbox{}}$
> 
>  \mathematics{\overbrace{\hbox{}}}


It works well. Thank you, Hans!

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

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


Re: [NTG-context] TeX's \downbracefill and \upbracefill

2021-10-12 Thread Hans Hagen via ntg-context

On 10/12/2021 7:47 AM, Rudolf Bahr via ntg-context wrote:



Hello to all,

in Knuth's "The TeXbook" page 225/226 (excerpt is appended here) braces
are to be seen which I'd need to typeset a genealogical table.

Now, the commands \downbracefill and \upbracefill are no context commands.
Please, are there correspondings to them?

 $\overbrace{\hbox{xxxx}}$

 \mathematics{\overbrace{\hbox{}}}


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


Re: [NTG-context] Converting LaTeX math to ConTeXt

2021-10-10 Thread Hans Hagen via ntg-context

On 10/10/2021 5:45 AM, Jason Ross via ntg-context wrote:

Hello,

I'm trying to provide more support for LaTeX math for an Org Mode
exporter for ConTeXt. LaTeX is the de facto standard for mathematics in
Org Mode. However, the syntax is quite different between LaTeX and
ConTeXt. I have a few ideas, but none that I'm happy about.

1. Export LaTeX to MathML then import that into ConTeXt. I don't know
    how to get this to work. latexmlmath only returns the first row of
    `align` environments (for me anyway). Also, this would require users
    to install another program.
2. Typeset equations with LaTeX as standalone pages and then include
    them as images. This will typeset everything with LaTeX defaults.
    Also, either equation alignment or equation numbering will break.
3. Hack every math environment I can think of to accept LaTeX syntax
    (see https://wiki.contextgarden.net/LaTeX_Math_in_ConTeXt). Lots
    of work, lots of problems as described in the article. End-users
    could add their own hacks to the template preamble for cases I
    don't get to.
4. Manually parse and convert every LaTeX math environment to ConTeXt
    before exporting. Basically a non-starter.

I'm wondering what's the best way to go about this. Surely others have
run into the same problem?

what do you mean with 'quite different'

Hans


-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Converting LaTeX math to ConTeXt

2021-10-09 Thread Jason Ross via ntg-context

Hello,

I'm trying to provide more support for LaTeX math for an Org Mode
exporter for ConTeXt. LaTeX is the de facto standard for mathematics in
Org Mode. However, the syntax is quite different between LaTeX and
ConTeXt. I have a few ideas, but none that I'm happy about.

1. Export LaTeX to MathML then import that into ConTeXt. I don't know
   how to get this to work. latexmlmath only returns the first row of
   `align` environments (for me anyway). Also, this would require users
   to install another program.
2. Typeset equations with LaTeX as standalone pages and then include
   them as images. This will typeset everything with LaTeX defaults.
   Also, either equation alignment or equation numbering will break.
3. Hack every math environment I can think of to accept LaTeX syntax
   (see https://wiki.contextgarden.net/LaTeX_Math_in_ConTeXt). Lots
   of work, lots of problems as described in the article. End-users
   could add their own hacks to the template preamble for cases I
   don't get to.
4. Manually parse and convert every LaTeX math environment to ConTeXt
   before exporting. Basically a non-starter.

I'm wondering what's the best way to go about this. Surely others have
run into the same problem?

Thanks,

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

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


Re: [NTG-context] Incorrect rendering in Devanagari forms in some fonts

2021-09-01 Thread kauśika cittūr via ntg-context
On Wednesday, September 1, 2021 1:43:56 PM IST kauśika cittūr wrote:
> Dear All,
> 
> I have encountered a strange problem using certain Devanagari fonts for the
> Sanskrit languagein ConTeXt, wherein the rakaar ligatures are not rendered
> properly in some glyphs/conjuncts. The problem is not too easy to describe
> so please pardon this long email.
> 
> The fonts I am using are as follows:
>   • Shobhika – https://github.com/Sandhi-IITBombay/Shobhika
>   • Murty Sanskrit – https://murtylibrary.com/mcli-fonts.php
> 
> I had previously posted about this issue on TeX SE and Ulrike Fischer was
> kind enough to suggest that the problem might have something to do with the
> font rendering (since I have no issues in XeLaTeX (using Harfbuzz)):
> 
> https://tex.stackexchange.com/questions/612634/devanagari-forms-in-context-u
> sing-shobhika-font
> 
> My ConTeXt (LMTX) version is: 2021.08.30 19:56
> 
> I am using the following typescript for Murty:
> 
> \starttypescript [serif] [murty]
>   \definefontsynonym
> [Serif]
> [name:murtysanskritregular]
> [features=devanagari-two]
> \stoptypescript
> 
> \starttypescript [murty]
>   \definetypeface [murty] [rm] [serif] [murty] [default]
> \stoptypescript
> 
> and the following for Shobhika:
> 
> \starttypescript [serif] [shobhika]
>   \definefontsynonym
> [Serif]
> [name:shobhikaregular]
> [features=devanagari-two]
>   \definefontsynonym
> [SerifBold]
> [name:shobhikabold]
> [features=devanagari-two]
> \stoptypescript
> 
> \starttypescript [shobhika]
>   \definetypeface [shobhika] [rm] [serif] [shobhika]
> \stoptypescript
> 
> Below is the test file I am using to demonstrate the problem:
> 
> \setupbodyfont[shobhika]
> \starttext
> \startcolumns
> ट्रा ट्रि ट्री ट्रु द्रू ट्रे ट्रै ट्रो ट्रौ
> 
> ठ्रा ठ्रि ठ्री ठ्रु ठ्रू ठ्रे ठ्रै ठ्रो ठ्रौ
> 
> ड्रा ड्रि ड्री ड्रु ड्रू ड्रे ड्रै ड्रो ड्रौ
> 
> ढ्रा ढ्रि ढ्री ढ्रु ढ्रू ढ्रे ढ्रै ढ्रो ढ्रौ
> 
> छ्रा छ्रि छ्री छ्रु छ्रू छ्रे छ्रै छ्रो छ्रौ
> 
> \column
> क्र ख्र ग्र घ्र ण्र
> 
> च्र छ्र ज्र झ्र ञ्र
> 
> च्रे छ्रे ज्रे झ्रे ञ्रे
> 
> त्रे थ्रे द्रे ध्रे न्रे
> 
> प्र फ्र ब्र भ्र म्र
> 
> य्र ल्र व्र स्र श्र ष्र ह्र
> \stopcolumns
> \stoptext
> 
> When I use the 'devanagari-two' feature set, which sets the script tag to
> 'dev2', the rakaar forms (provided by the features 'rkrf=yes' and
> 'blwf=yes') do not render properly for some glyphs, namely the glyphs in
> the right column, enclosed in a red rectangle in the file
> 'devanagari-two-forms-shobhika.png' attached in the Drive folder here.
> 
> When I switch to using the 'devanagari-one'
> feature set (in the foregoing typescript definitions), which sets the script
> tag to 'deva', the rakaar forms in the left column are rendered incorrectly
> in
> the file 'devanagari-one-forms-shobhika.png' attached in the Drive folder
> here.
> 
> Analogous problems occur with the Murty font. Further, in the Murty font,
> one other conjunct, namely
> त् +‌ त
> does not render properly. I have highlighted this in the file
> 'murty-conjuct.png'.
> 
> The sample images demonstrating the issues are available in the following
> public Google Drive folder:
> 
> https://drive.google.com/drive/folders/1aOmPKqBzB5usVvT9g-Bxk87exyiQn7ax
> 
> I must mention once again that I have no such problems using either of these
> fonts in XeLaTeX.
> 
> What I am noticing is that this problem only occurs with consonant forms
> that have a 'circular base', i.e., have no danda (the vertical line) next
> to the character. For what it is worth, I have noticed also that I am able
> to 'circumvent' this issue if I write
> 
> छ्र‌ +‌ ​ZWS + Devanagari vowel sign
> 
> where ZWS is the zero-width space U+200B. Unfortunately, this quickly
> becomes very untenable in large documents. Since I was new to ConTeXt I did
> not venture
> to ask earlier on since I had not read much of the documentaion. Now, after
> having read quite a bit, I have mustered up the courage to ask here. As a
> stop-gap solution, I defined another font alternative with
> \definefontalternative[rk]
> and used that with a font synonym using 'devanagari-two' where necessary.
> 
> I have completely migrated (away from (Xe)LaTeX )to ConTeXt for all my
> university work which is in English with lots of mathematics. I am by no
> means an expert but I have learned very much about ConTeXt by reading the
> excellent wiki, documentation and mailing list. I have no issues using
> ConTeXt on an everyday basis for my English-language based work. It is only
> when I tried to use it for my work in Indian-langu

[NTG-context] Incorrect rendering in Devanagari forms in some fonts

2021-09-01 Thread kauśika cittūr via ntg-context
Dear All,

I have encountered a strange problem using certain Devanagari fonts for the 
Sanskrit languagein ConTeXt, wherein the rakaar ligatures are not rendered 
properly in some glyphs/conjuncts. The problem is not too easy to describe so 
please pardon this long email.

The fonts I am using are as follows: 
  • Shobhika – https://github.com/Sandhi-IITBombay/Shobhika
  • Murty Sanskrit – https://murtylibrary.com/mcli-fonts.php

I had previously posted about this issue on TeX SE and Ulrike Fischer was 
kind enough to suggest that the problem might have something to do with the 
font rendering (since I have no issues in XeLaTeX (using Harfbuzz)): 

https://tex.stackexchange.com/questions/612634/devanagari-forms-in-context-using-shobhika-font

My ConTeXt (LMTX) version is: 2021.08.30 19:56

I am using the following typescript for Murty:

\starttypescript [serif] [murty]
  \definefontsynonym 
[Serif] 
[name:murtysanskritregular] 
[features=devanagari-two]
\stoptypescript

\starttypescript [murty]
  \definetypeface [murty] [rm] [serif] [murty] [default]
\stoptypescript 

and the following for Shobhika:

\starttypescript [serif] [shobhika]
  \definefontsynonym 
[Serif] 
[name:shobhikaregular] 
[features=devanagari-two]
  \definefontsynonym 
[SerifBold] 
[name:shobhikabold]
[features=devanagari-two]
\stoptypescript

\starttypescript [shobhika]
  \definetypeface [shobhika] [rm] [serif] [shobhika]
\stoptypescript

Below is the test file I am using to demonstrate the problem:

\setupbodyfont[shobhika]
\starttext
\startcolumns
ट्रा ट्रि ट्री ट्रु द्रू ट्रे ट्रै ट्रो ट्रौ

ठ्रा ठ्रि ठ्री ठ्रु ठ्रू ठ्रे ठ्रै ठ्रो ठ्रौ

ड्रा ड्रि ड्री ड्रु ड्रू ड्रे ड्रै ड्रो ड्रौ

ढ्रा ढ्रि ढ्री ढ्रु ढ्रू ढ्रे ढ्रै ढ्रो ढ्रौ

छ्रा छ्रि छ्री छ्रु छ्रू छ्रे छ्रै छ्रो छ्रौ

\column
क्र ख्र ग्र घ्र ण्र 

च्र छ्र ज्र झ्र ञ्र

च्रे छ्रे ज्रे झ्रे ञ्रे

त्रे थ्रे द्रे ध्रे न्रे 

प्र फ्र ब्र भ्र म्र

य्र ल्र व्र स्र श्र ष्र ह्र 
\stopcolumns
\stoptext

When I use the 'devanagari-two' feature set, which sets the script tag to 
'dev2', the rakaar forms (provided by the features 'rkrf=yes' and 'blwf=yes') 
do not render properly for some glyphs, namely the glyphs in the right column, 
enclosed in a red rectangle in the file 'devanagari-two-forms-shobhika.png' 
attached in the Drive folder here.

When I switch to using the 'devanagari-one' 
feature set (in the foregoing typescript definitions), which sets the script 
tag to 'deva', the rakaar forms in the left column are rendered incorrectly  
in 
the file 'devanagari-one-forms-shobhika.png' attached in the Drive folder here.

Analogous problems occur with the Murty font. Further, in the Murty font, one 
other conjunct, namely
त् +‌ त 
does not render properly. I have highlighted this in the file 
'murty-conjuct.png'.

The sample images demonstrating the issues are available in the following 
public Google Drive folder: 

https://drive.google.com/drive/folders/1aOmPKqBzB5usVvT9g-Bxk87exyiQn7ax

I must mention once again that I have no such problems using either of these 
fonts in XeLaTeX. 

What I am noticing is that this problem only occurs with consonant forms that 
have a 'circular base', i.e., have no danda (the vertical line) next to the 
character. For what it is worth, I have noticed also that I am able to 
'circumvent' this issue if I write 

छ्र‌ +‌ ​ZWS + Devanagari vowel sign

where ZWS is the zero-width space U+200B. Unfortunately, this quickly becomes 
very untenable in large documents. Since I was new to ConTeXt I did not 
venture 
to ask earlier on since I had not read much of the documentaion. Now, after 
having read quite a bit, I have mustered up the courage to ask here. As a 
stop-gap solution, I defined another font alternative with
\definefontalternative[rk]
and used that with a font synonym using 'devanagari-two' where necessary. 

I have completely migrated (away from (Xe)LaTeX )to ConTeXt for all my 
university work which is in English with lots of mathematics. I am by no means 
an expert but I have learned very much about ConTeXt by reading the excellent 
wiki, documentation and mailing list. I have no issues using ConTeXt on an 
everyday basis for my English-language based work. It is only when I tried to 
use it for my work in Indian-languages that I ran into this issue.

I request your kind help in this matter. I really want to be able to use 
ConTeXt for these Indic works. I will be grateful for any help and/or 
guidance.

Many thanks,
kauśika
___
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] Project structure: Specifying environment in component

2021-06-16 Thread denis.maier
I’ll look into this, and post to the list once I’ve made the changes so others 
can comment.

Denis

Von: ntg-context  Im Auftrag von jethro Reuel
Gesendet: Mittwoch, 9. Juni 2021 14:49
An: mailing list for ConTeXt users 
Betreff: Re: [NTG-context] Project structure: Specifying environment in 
component

Thanks. Maybe a change of how the wiki is worded is needed.


On 9 Jun 2021, at 12:07 PM, denis.ma...@unibe.ch<mailto:denis.ma...@unibe.ch> 
wrote:

I’ve also struggled with this before as you can see if you search the mailing 
list.
My question: https://www.mail-archive.com/ntg-context@ntg.nl/msg97763.html
Wolfgang’s answer : 
https://www.mail-archive.com/ntg-context@ntg.nl/msg97775.html

We should probably change the wiki to make it clear that no inheritance of 
environments happens here.

Denis

Von: ntg-context 
mailto:ntg-context-boun...@ntg.nl>> Im Auftrag von 
mastermind_ x
Gesendet: Mittwoch, 9. Juni 2021 13:36
An: ntg-context@ntg.nl<mailto:ntg-context@ntg.nl>
Betreff: [NTG-context] Project structure: Specifying environment in component

Hello everyone,

I am creating a project of notes across different areas of mathematics I am 
studying and the structure looks like this:

env_notes.tex
project_notes.tex
geogroups/groups-prd_geometry-groups.tex
geogroups/groups-c_chapter1.tex



I am following this wiki: https://wiki.contextgarden.net/Project_structure



My question is: Why do I need to specify
\environment env_notes
before It works at the component level? The wiki didn’t say that. Plus it is 
already specified at the product level. Thanks.



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

maillist : ntg-context@ntg.nl<mailto:ntg-context@ntg.nl> / 
http://www.ntg.nl/mailman/listinfo/ntg-context
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] Project structure: Specifying environment in component

2021-06-09 Thread jethro Reuel
Thanks. Maybe a change of how the wiki is worded is needed. 

> On 9 Jun 2021, at 12:07 PM, denis.ma...@unibe.ch wrote:
> 
> 
> I’ve also struggled with this before as you can see if you search the mailing 
> list.
> My question: https://www.mail-archive.com/ntg-context@ntg.nl/msg97763.html
> Wolfgang’s answer : 
> https://www.mail-archive.com/ntg-context@ntg.nl/msg97775.html
>  
> We should probably change the wiki to make it clear that no inheritance of 
> environments happens here.
> 
> Denis
>  
> Von: ntg-context  Im Auftrag von mastermind_ x
> Gesendet: Mittwoch, 9. Juni 2021 13:36
> An: ntg-context@ntg.nl
> Betreff: [NTG-context] Project structure: Specifying environment in component
>  
> Hello everyone,
>  
> I am creating a project of notes across different areas of mathematics I am 
> studying and the structure looks like this:
>  
> env_notes.tex
> project_notes.tex
> geogroups/groups-prd_geometry-groups.tex
> geogroups/groups-c_chapter1.tex
> 
> 
> I am following this wiki: https://wiki.contextgarden.net/Project_structure
> 
> 
> My question is: Why do I need to specify 
> \environment env_notes
> before It works at the component level? The wiki didn’t say that. Plus it is 
> already specified at the product level. Thanks.
> 
> 
> ~Jethro
> ___
> 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] Project structure: Specifying environment in component

2021-06-09 Thread denis.maier
I’ve also struggled with this before as you can see if you search the mailing 
list.
My question: https://www.mail-archive.com/ntg-context@ntg.nl/msg97763.html
Wolfgang’s answer : 
https://www.mail-archive.com/ntg-context@ntg.nl/msg97775.html

We should probably change the wiki to make it clear that no inheritance of 
environments happens here.

Denis

Von: ntg-context  Im Auftrag von mastermind_ x
Gesendet: Mittwoch, 9. Juni 2021 13:36
An: ntg-context@ntg.nl
Betreff: [NTG-context] Project structure: Specifying environment in component

Hello everyone,

I am creating a project of notes across different areas of mathematics I am 
studying and the structure looks like this:

env_notes.tex
project_notes.tex
geogroups/groups-prd_geometry-groups.tex
geogroups/groups-c_chapter1.tex


I am following this wiki: https://wiki.contextgarden.net/Project_structure


My question is: Why do I need to specify
\environment env_notes
before It works at the component level? The wiki didn’t say that. Plus it is 
already specified at the product level. Thanks.


~Jethro
___
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] Project structure: Specifying environment in component

2021-06-09 Thread mastermind_ x
Hello everyone,

I am creating a project of notes across different areas of mathematics I am 
studying and the structure looks like this:

env_notes.tex
project_notes.tex
geogroups/groups-prd_geometry-groups.tex
geogroups/groups-c_chapter1.tex

I am following this wiki: https://wiki.contextgarden.net/Project_structure

My question is: Why do I need to specify 
\environment env_notes
before It works at the component level? The wiki didn’t say that. Plus it is 
already specified at the product level. Thanks.

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

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-06 Thread Sylvain Hubert
If you happen to use ibus on a linux, there's a emoji/unicode picker
<https://mike-fabian.github.io/ibus-typing-booster/documentation.html#emoji-predictions>,
where you can type `elem` and pick one from the
candidates “∈∉∊⋲⋳⋴⋵⋶⋷⋸⋹⟒⫙” .

On Thu, 5 Nov 2020 at 21:25,  wrote:

> A quick question for the ConTeXt mailing list:
>
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
>
> \showmathfontcharacters gives the following information about it:
>
> U+02208: ∈ ∈ element of
> width: 524262, height: 426798, depth: 33798, italic: 0
> mathclass: relation, mathname: in
>
> I'm not completely sure how to read this information, but if I read it
> correctly, perhaps this character should be gotten with \in. Also, the
> Basic
> Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
> that you should be able to type this character with "\in". But that doesn't
> work (even inside a formula), since \in is used for references in ConTeXt.
> And in fact the link on the Basic Math page for \in takes you to the
> explanation of \in as used for ConTeXt references.
>
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)
>
> Thanks in advance,
>
>
> Sciurus
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread type
Thank you, Hans! The links you gave me provide me with another useful tool in 
my toolbox (which I had not been aware of before).

In this particular case, as Wolfgang pointed out, \in actually does work to get 
the desired symbol in math mode. But it is good to know how to use text 
substitutions too.

Thanks,


Sciurus

-Original Message-
From: ntg-context  On Behalf Of Hans Åberg
Sent: Thursday, November 5, 2020 12:44 PM
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] math symbol for "is an element of"


> On 5 Nov 2020, at 21:22, t...@projectivespace.com wrote:
> 
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
…
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)

There is no recommended way. One can have it in the input sources. The quickest 
way to both design and use I have found is text substitutions [1]. For the 
mathematical styles, TeX and Unicode do it differently, and ConTeXt follows the 
former unless one uses a command, see [2].

1. https://mailman.ntg.nl/pipermail/ntg-context/2020/099278.html
2. https://mailman.ntg.nl/pipermail/ntg-context/2020/099880.html


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

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

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

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread type
My sincere apologies. I tried to do my homework to avoid wasting everybody 
else's time with a silly question, but apparently I did not do so adequately. 
You're quite right -- it works with no problem. It was something else nearby 
that was causing my minimal example (apparently not minimal enough) to fail.

That being said, the link to "\in" on the Math Basics page does point to the 
wrong place (the "\in" command used for references). I'll go correct that as my 
penance for asking such a ridiculous question.

Thanks, and again my apologies,


Sciurus

-Original Message-
From: Wolfgang Schuster  
Sent: Thursday, November 5, 2020 12:36 PM
To: mailing list for ConTeXt users 
Cc: t...@projectivespace.com
Subject: Re: [NTG-context] math symbol for "is an element of"

t...@projectivespace.com schrieb am 05.11.2020 um 21:22:
> A quick question for the ConTeXt mailing list:
> 
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
> 
> \showmathfontcharacters gives the following information about it:
> 
> U+02208: ∈ ∈ element of
> width: 524262, height: 426798, depth: 33798, italic: 0
> mathclass: relation, mathname: in
> 
> I'm not completely sure how to read this information, but if I read it
> correctly, perhaps this character should be gotten with \in. Also, the Basic
> Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
> that you should be able to type this character with "\in". But that doesn't
> work (even inside a formula), since \in is used for references in ConTeXt.
> And in fact the link on the Basic Math page for \in takes you to the
> explanation of \in as used for ConTeXt references.
> 
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)

Do you have a example where \in fails?

\starttext

\m {A \in B}

\startformula
A \in B
\stopformula

\stoptext

Wolfgang

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

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread Hans Åberg

> On 5 Nov 2020, at 21:22, t...@projectivespace.com wrote:
> 
> Other than typing it directly (or cutting and pasting it), how does one get
> the character ∈ (in case this gets garbled in emailing, this is supposed to
> be the mathematical symbol that looks more or less like an epsilon, and
> which is the mathematical symbol for "is an element of" a set).
…
> This is a very common character in mathematics, so I wanted to ask: what is
> the recommended way to type this character? (I'm hoping to avoid having to
> cut and paste the character into the document every time I want to use it.
> And I don't have a utf enabled keyboard that would allow me to type this
> symbol readily from the keyboard.)

There is no recommended way. One can have it in the input sources. The quickest 
way to both design and use I have found is text substitutions [1]. For the 
mathematical styles, TeX and Unicode do it differently, and ConTeXt follows the 
former unless one uses a command, see [2].

1. https://mailman.ntg.nl/pipermail/ntg-context/2020/099278.html
2. https://mailman.ntg.nl/pipermail/ntg-context/2020/099880.html


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

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


Re: [NTG-context] math symbol for "is an element of"

2020-11-05 Thread Wolfgang Schuster

t...@projectivespace.com schrieb am 05.11.2020 um 21:22:

A quick question for the ConTeXt mailing list:

Other than typing it directly (or cutting and pasting it), how does one get
the character ∈ (in case this gets garbled in emailing, this is supposed to
be the mathematical symbol that looks more or less like an epsilon, and
which is the mathematical symbol for "is an element of" a set).

\showmathfontcharacters gives the following information about it:

U+02208: ∈ ∈ element of
width: 524262, height: 426798, depth: 33798, italic: 0
mathclass: relation, mathname: in

I'm not completely sure how to read this information, but if I read it
correctly, perhaps this character should be gotten with \in. Also, the Basic
Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
that you should be able to type this character with "\in". But that doesn't
work (even inside a formula), since \in is used for references in ConTeXt.
And in fact the link on the Basic Math page for \in takes you to the
explanation of \in as used for ConTeXt references.

This is a very common character in mathematics, so I wanted to ask: what is
the recommended way to type this character? (I'm hoping to avoid having to
cut and paste the character into the document every time I want to use it.
And I don't have a utf enabled keyboard that would allow me to type this
symbol readily from the keyboard.)


Do you have a example where \in fails?

\starttext

\m {A \in B}

\startformula
A \in B
\stopformula

\stoptext

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

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


[NTG-context] math symbol for "is an element of"

2020-11-05 Thread type
A quick question for the ConTeXt mailing list:

Other than typing it directly (or cutting and pasting it), how does one get
the character ∈ (in case this gets garbled in emailing, this is supposed to
be the mathematical symbol that looks more or less like an epsilon, and
which is the mathematical symbol for "is an element of" a set).

\showmathfontcharacters gives the following information about it:

U+02208: ∈ ∈ element of
width: 524262, height: 426798, depth: 33798, italic: 0
mathclass: relation, mathname: in

I'm not completely sure how to read this information, but if I read it
correctly, perhaps this character should be gotten with \in. Also, the Basic
Math page of the Wiki (https://wiki.contextgarden.net/Math/basic) states
that you should be able to type this character with "\in". But that doesn't
work (even inside a formula), since \in is used for references in ConTeXt.
And in fact the link on the Basic Math page for \in takes you to the
explanation of \in as used for ConTeXt references.

This is a very common character in mathematics, so I wanted to ask: what is
the recommended way to type this character? (I'm hoping to avoid having to
cut and paste the character into the document every time I want to use it.
And I don't have a utf enabled keyboard that would allow me to type this
symbol readily from the keyboard.)

Thanks in advance,


Sciurus



___
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] defining font family for several options

2020-09-03 Thread jbf

Thanks Otared. That clears up that little item :-)

BTW I know how to reduce font size in the headers (chapter titles) that 
appear on the recto pages, which I can do with something like 
\setupheader [style={\ss\switchtobodyfont[10pt]}], but it doesn't seem 
to affect the header (title of the book) on the verso pages, which is 
drawn from the simple statement:


\startdocument
  [metadata:title={Book title}]

Shouldn't  \setupheader affect both headers? Or is it possible I have 
left something out of my \setupheader declaration?


Julian

On 4/9/20 5:30 am, Otared Kavian wrote:

Hi Julian,

The tilde ~ in {\bf\ss #1.~#2} is only there to have an unbreakable fixed space 
between the dot and the first character of the chapter title.  Also in this way 
one can see that one has put a space there… :-)

Best tegards: Otared


On 2 Sep 2020, at 23:29, jbf  wrote:

Thanks Otared,

Still off list. You are very patient but also very thorough, and this is making 
a huge difference to what is in fact a considerable challenge for me, but one I 
am coming to grips with. I believe this aspect of things is now clear to me. No 
hurry, but when you have a moment can you explain the significance of the ~ in 
the {\bf\ss #1.~#2}}part of the definition, before the 2nd element?

After this I'll go back on list! I still have a couple of other queries (not 
font related) about things that are not functioning as they ought at the 
moment, which means I'll need either some understanding or some tweaking, but 
as always there are people on the list like yourself who are prompt with their 
assistance.

Kind regards,

Julian

On 3/9/20 12:34 am, Otared Kavian wrote:

Hi Julian,

First of all, your definition of mychapterfont is incomplete: a font family 
should contain also math fonts, because even if you don't have mathematics in 
your text where you use that font, ConTeXt may pick some characters from math 
fonts. So in my opinion you should define a whole font family named 
mychapterfont, where in particular the sans serif comes from what you are 
indicating.

The second point is that you should not setup bodyfont twice: when you say 
twice \setupbodyfont, ConTeXt will take the last one for the rest of your 
document…
So you say only once
\setupbodyfont[mainface]
and then only where you want to change the font you say
\start \switchtobodyfont[mychapterfont] \ss My special text. \stop

By the way, as we said earlier, you can also use braces instead of \start\stop, 
and even better you can say

\start \switchtobodyfont[mychapterfont,sans] My special text. \stop

A third point is that if you are using mychapterfont only to set the titles of 
chapters, in my opinion it would be better to define a command which takes care 
of all the formatting you are wishing, and then use it in the chapter header. 
Something like

\define[2]\MyChapterCommand{\switchtobodyfont[mychapterfont,12pt] {\bf\ss 
#1.~#2}}
\setuphead[chapter][command=\MyChapterCommand]

In this way you can just say

\startchapter[title={This is my first chapter}]

\input ward.tex

\stopchapter

without the hassles of formatting each title. If only some chapters have the 
special font, then you can define a new family of chapters which may share the 
same counter as the rest of your chapters.

Best regards: Otared


On 2 Sep 2020, at 03:30, jbf  wrote:

Otared, I thought I had it right - and it is partly right, but that newly 
declared font now applies to everything, not just the chapter title. So I 
haven't got it quite right! Maybe I shouldn't bother the list with these extra 
bits so am writing off list. Here is what my font definitions now look like 
(new one highlighted):

\definefontfamily [mainface] [rm] [alegreya] [sc=file:alegreyasc-bold]
\definefontfamily [mainface] [ss] [dax][tf=file:dax-regular,bf=file:dax-medium]
\definefontfamily [mainface] [mm] [alegreya]
\definefontfamily [mychapterfont] [ss] [itcavantgardepromd] 
[ss=file:itcavantgardepro-md]
\setupbodyfont[mainface]
\setupbodyfont[mychapterfont]

I presumed I would have to \setupbodyfont[mychapterfont], but is this where I 
have gone wrong?.

Then in the first chapter, I wrote as follows:

\chapter{{\switchtobodyfont[mychapterfont] \ss Introduction to the BDACE Online 
Project}} and I am getting my AvanteGardePro-MD font alright, but it now 
applies to the whole document!

I tried following title with \start switchtobodyfont[mainface] \rm and then my 
body text (followed by \stop obviously, at the end of the chapter). But this 
did not work.

I then thought that I could use this [mychapterfont] and include it somehow in 
my \setuphead[chapter] so it would work for all chapter titles, along the lines 
of: \setuphead [chapter] [header=empty, {\switchtobodyfont[mychapterfont] \ss}] 
but that hasn't worked either - my body text throughout is still in the sans 
serif, not the usual [mainface] [rm]

I think the problem is that if I define two or more \setupbodyfont items, it is 
the last

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

2020-08-08 Thread Otared Kavian
Hi Wolfgang,

Thanks for your explanations and the correct definition of the close symbol in 
an enumeration.
Following up the discussions with Hans, in order to put a close sympbol at the 
end of a formula, I have the following for the definition of \qed:

%% begin example-qed.tex
\showframe
\definesymbol[Fin][\mathematics{\square}]
\def\qed{%
\ifmmode
\inrightmargin{\hskip-7.5mm\symbol[Fin]} % --> attention here
\else
\dontleavehmode\wordright{\symbol[Fin]}
\fi}

\setupformulas[location=left]

\starttext

One sees that
\placeformula
\startformula
   a^2 + b^2 = c^2
\stopformula
which is the Pythagoras theorem. \qed

Another proof of Pythagors theorem is based on the figure below in which one 
sees that:
\placeformula
\startformula
(a+b)^2 = c^2 + 2ab \quad \imply \quad a^2 + b^2 = c^2. \qed
\stopformula

\stoptext
%% end example-qed.tex

Now how can I replace « \hskip-7.5mm » (which was found by trial and error…) in 
a robust manner so that the close symbols in the formulas are vertically 
aligned with the close symbols in the text?
In other terms can one compute automatically the amount of negative \hskip so 
that the definition is correct when one changes the font size and the layout?

Thanks in advance: Otared

> On 5 Aug 2020, at 21:15, Wolfgang Schuster 
>  wrote:
> […]
> 
> Below is a cleaner version to put a symbol at the end of each proof. The 
> \blank setting in the \PlaceProofSymbol definition moves the symbol back in 
> the math formula to avoid the vertical space between them, you can remove it 
> but I would at leas use \blank[back] to get rid of the empty line between the 
> formula and the symbol.
> 
> \define[1]\PlaceProofSymbol
>  {\blank[back,overlay]%
>   \dontleavehmode\wordright{#1}}
> 
> \defineenumeration
>  [proof]
>  [ closesymbol={\symbol[square]},
>   closecommand=\PlaceProofSymbol]
> 
> \starttext
> 
> \startproof
>  \startformula
>a^2 + b^2 = c^2
>  \stopformula
> \stopproof
> 
> \stoptext
> 
> Wolfgang
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
> ___

___
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 with \wordright in LMTX version 2020-08-03 14:25

2020-08-05 Thread Wolfgang Schuster

Fabrice Couvreur schrieb am 05.08.2020 um 19:33:

Hello,
I also use a square to complete a demonstration. I tried this without 
success

Thank you
Fabrice

\definesymbol[Fin][\mathematics{\square}]
\def\qed{\strut\wordright{\symbol[Fin]}}

\defineenumeration
   [proof]
   [...,
    closesymbol={\symbol[\qed]}]


1. \symbol is meant to access pre defined symbols, as fallback method 
when the requested symbol doesn't exist ConTeXt outputs the argument. 
This fallback is in my opinion problematic because it's easy to miss it.


\starttext

\symbol[square]

\symbol[quadrat]

\stoptext


2. When you use the closesymbol for a enumeration ConTeXt uses also the 
argument of the closecommand to apply something to the symbol, by 
default the argument to the closecommand key is \wordright.


This means you're putting \wordright (which itself is flushed as symbol) 
within \wordright which has to fail at some point.



Below is a cleaner version to put a symbol at the end of each proof. The 
\blank setting in the \PlaceProofSymbol definition moves the symbol back 
in the math formula to avoid the vertical space between them, you can 
remove it but I would at leas use \blank[back] to get rid of the empty 
line between the formula and the symbol.


\define[1]\PlaceProofSymbol
  {\blank[back,overlay]%
   \dontleavehmode\wordright{#1}}

\defineenumeration
  [proof]
  [ closesymbol={\symbol[square]},
   closecommand=\PlaceProofSymbol]

\starttext

\startproof
  \startformula
a^2 + b^2 = c^2
  \stopformula
\stopproof

\stoptext

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

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


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

2020-08-05 Thread Fabrice Couvreur
Hello,
I also use a square to complete a demonstration. I tried this without
success
Thank you
Fabrice

\definesymbol[Fin][\mathematics{\square}]
\def\qed{\strut\wordright{\symbol[Fin]}}

\defineenumeration
  [proof]
  [text=Démonstration,
   alternative=serried,
   distance=\zeropoint,
   number=no,
   headstyle=boldslanted,
   width=broad,
   closesymbol={\symbol[\qed]}]

\starttext
\startproof
\startformula
a^2 + b^2 = c^2
\stopformula
\stopproof
\stoptext


Le mar. 4 août 2020 à 14:02, Otared Kavian  a écrit :

> Hi Hans,
>
> Thanks for the hint which consists in adding an \ifmmode to the definition
> of \qed.
> However, as you suggest, one needs some other mechanism in math mode,
> since with your new definition of \qed the alignment of the formula changes
> when one adds this close symbol:
>
>  begin-example-qed.tex
> \definesymbol[Fin][\mathematics{\square}]
> \def\qed{\ifmmode\quad\symbol[Fin]\else\strut\wordright{\symbol[Fin]}\fi}
> \starttext
> \startformula
> a^2 + b^2 = c^2.
> \stopformula
> \startformula
> a^2 + b^2 = c^2. \qed
> \stopformula
> One sees that\type{\qed} in the formula changes the alignment of the
> formula. \qed
> \stoptext
>  end-example-qed.tex
>
> Thanks a lot for everything: Otared
>
> > On 4 Aug 2020, at 13:24, Hans Hagen  wrote:
> >
> > On 8/4/2020 11:17 AM, Otared Kavian wrote:
> >> Thanks Hans for your explanations.
> >> The problem I encountered is that, the command \qed is used dozens of
> time in my text without any issue because it was preceded by something on
> th eline, but the only place where it was alone after a formula resulted in
> the error and it was not easy for me to isolate the issue…
> >> By the way, in mkii it was possible to add \qed on the last line of a
> math formula, but that does not work anymore:
> >> \definesymbol[Fin][\mathematics{\square}]
> >> \def\qed{\strut\wordright{\symbol[Fin]}}
> >> \starttext
> >> \startformula
> >> a^2 + b^2 = c^2. \qed
> >> \stopformula
> >> The above formula does not show the close symbol.\qed
> >> \stoptext
> >> Is there a way to have something like \qed work in math formulas?
> > because that's now hwpo wordright works ...
> >
> > \def\qed{\ifmmode\quad\symbol[Fin]\else\strut\wordright{\symbol[Fin]}\fi}
> >
> > but we probably need something different, something that hooks into
> display math
> >
> > Hans
> >
> >
> > -
> >  Hans Hagen | PRAGMA ADE
> >  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> >   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> > -
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2020-08-04 Thread Otared Kavian
Hi Hans,

Thanks for the hint which consists in adding an \ifmmode to the definition of 
\qed.
However, as you suggest, one needs some other mechanism in math mode, since 
with your new definition of \qed the alignment of the formula changes when one 
adds this close symbol:

 begin-example-qed.tex
\definesymbol[Fin][\mathematics{\square}]
\def\qed{\ifmmode\quad\symbol[Fin]\else\strut\wordright{\symbol[Fin]}\fi}
\starttext
\startformula
a^2 + b^2 = c^2.
\stopformula
\startformula
a^2 + b^2 = c^2. \qed
\stopformula
One sees that\type{\qed} in the formula changes the alignment of the formula. 
\qed 
\stoptext
 end-example-qed.tex

Thanks a lot for everything: Otared

> On 4 Aug 2020, at 13:24, Hans Hagen  wrote:
> 
> On 8/4/2020 11:17 AM, Otared Kavian wrote:
>> Thanks Hans for your explanations.
>> The problem I encountered is that, the command \qed is used dozens of time 
>> in my text without any issue because it was preceded by something on th 
>> eline, but the only place where it was alone after a formula resulted in the 
>> error and it was not easy for me to isolate the issue…
>> By the way, in mkii it was possible to add \qed on the last line of a math 
>> formula, but that does not work anymore:
>> \definesymbol[Fin][\mathematics{\square}]
>> \def\qed{\strut\wordright{\symbol[Fin]}}
>> \starttext
>> \startformula
>> a^2 + b^2 = c^2. \qed
>> \stopformula
>> The above formula does not show the close symbol.\qed
>> \stoptext
>> Is there a way to have something like \qed work in math formulas?
> because that's now hwpo wordright works ...
> 
> \def\qed{\ifmmode\quad\symbol[Fin]\else\strut\wordright{\symbol[Fin]}\fi}
> 
> but we probably need something different, something that hooks into display 
> math
> 
> 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
___


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

2020-08-04 Thread Hans Hagen

On 8/3/2020 10:10 PM, Otared Kavian wrote:

Hi Hans,

A file which used to be typeset correctly with the previous versions of lmtx, 
now produces an error. Despite the error message being extremely cryptic:

Error  ! Missing number, treated as zero

I could guess the origin of the bug, which seems to be \wordright,  but 
although the following minimal example shows a bug it does not produce the same 
ERROR output page:

 the square ''end of proof''
\definesymbol[Fin][\mathematics{\square}]
\def\qed{\wordright{\symbol[Fin]}}

\starttext
\startformula
a^2 + b^2 = c^2
\stopformula
\qed % the problem is here
\stoptext

In the above example if one adds something before \qed, then the square 
end-of-proof appears.
However in my real file ConTeXt ouputs an error page and says: Error   ! 
Missing number, treated as zero.
One can debate if the old behavior was ok ... wordright is meant for 
adding something at the end of a paragraph and you have none here. You 
can add a \strut in your definition to force a line.


The lmtx implementation actually permit this:

\definesymbol[Fin][\mathematics{\square}]
\def\qed{\strut\wordright{\symbol[Fin1]}\wordright{\symbol[Fin2]}\wordright{\symbol[Fin3]}}

\starttext
\startformula
a^2 + b^2 = c^2
\stopformula
\qed % the problem is here
\stoptext

i'm still exploring this but it has to do with collecting stuff, as in:

\wordright{before} test \par

test \wordright{before} \par

(i'll look at the number issue which indeed looks a like a bug)

-
  Hans Hagen | PRAGMA ADE
  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


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

2020-08-03 Thread Otared Kavian
Hi Hans,

A file which used to be typeset correctly with the previous versions of lmtx, 
now produces an error. Despite the error message being extremely cryptic:

Error  ! Missing number, treated as zero

I could guess the origin of the bug, which seems to be \wordright,  but 
although the following minimal example shows a bug it does not produce the same 
ERROR output page:

 the square ''end of proof''
\definesymbol[Fin][\mathematics{\square}]
\def\qed{\wordright{\symbol[Fin]}}

\starttext
\startformula
a^2 + b^2 = c^2
\stopformula
\qed % the problem is here
\stoptext

In the above example if one adds something before \qed, then the square 
end-of-proof appears. 
However in my real file ConTeXt ouputs an error page and says: Error   ! 
Missing number, treated as zero.

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] Notation of the first derivative in mathematical mode (lmtx)

2020-08-03 Thread Fabrice Couvreur
Hello,
I replaced the context engine with the lmtx engine but I find that the
derivative symbol is too high regardless of the font used.
I mainly use modern and pagella because I type many texts using
mathematics: can we correct this problem,
Thanks for your help.
Fabrice

\starttext
\startitemize[n]
  \startitem
\math{f'(x)=x²+4x+4}
  \stopitem
  \startitem
 \math{f''(x)=2x+4}
  \stopitem
\stopitemize
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-14 Thread Garulfo


Hi,

a "early-alpha-version" of updated setup-fr.pdf
https://wiki.contextgarden.net/File:setup-fr.pdf

with the associated mult-def.lua.
https://wiki.contextgarden.net/File:20_output_mult-def_garulfo.zip

Any feedback will be welcome.

To developers : what priorities, in terms of categories,
would you advise for the translation ?

%-

Progress:

TYPE TOTALDONE
commands  3962 94324%
constants  841 70884%
elements26  26   100%
setupstrings   135  5742% = 100% other are { ( |...
variables 1329 63248%

  6293236638%


CATEGORYTOTALDONE
alignment   1639256%
attribute23 2 9%
background  1587145%
bibliography1482014%
buffer   301653%
catcode  22 418%
characters   59   0%
colors  1083230%
conditional  59   0%
counter 3117223%
float 1   0%
fonts   453   22449%
graphics2478836%
language2237333%
layout  1737946%
lua  42 1 2%
mathematics 3694211%
nan 650   57288%
None   1269   118 9%
pdf 2289943%
references   804253%
rules854553%
structure   892   56764%
symbols 1101917%
system3   0%
tables  1033231%
verbatim 221777%
whitespace  1073028%
xml 155 9 6%

   6293  236638%




___
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] Store images and text in the right margin

2020-07-02 Thread Fabrice Couvreur
Hello everyone and in particular to Wolfgang who has already provided me
with the solution below. I will have to write a Mathematics book for my
students and the remarks and graphics should be in the right margin. I got
the code written by Wolfgang and tried to include the graphics in it. The
result is not as expected because the graphic overflows on the text.
The course will be written in A4 format with an 11 pts font.
Thanks for your help.
Fabrice

\useMPlibrary[dum]

\setuppapersize[A4]

\setuplayout
  [width=12cm,
   rightmargin=5cm]

\definemargindata[marginfigure][inright]
\setupmargindata [marginfigure][command=\vbox,align=middle]

\defineuserdata [margintext] [alternative=margintext]

\defineuserdataalternative [margintext] [renderingsetup=userdata:margintext]

\startsetups [userdata:margintext]
  \margindata
[inright]
[%style=\smallbodyfont,
 style={\switchtobodyfont[9pt]},
 width=\rightmarginwidth,
 align={flushleft,broad}]
{{\bf Remarque — }\getinlineuserdata}
\stopsetups

\showframe
\starttext
\startuserdata[margintext]
 \input ward
\stopuserdata
\marginfigure{\externalfigure[dummy][width=\rightmarginwidth]}
\startchapter[title=First chapter]
\dorecurse{2}{\input knuth}
\stopchapter
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Converting from LaTeX for PDF accessibility tagging?

2020-06-28 Thread Alasdair McAndrew
Thank you very much - I think the problem was with a LaTeX "align"
environment which pandoc translated into a setting which  ConTeXt didn't
recognize.  These equations were monsters, so I'll try with simpler
equations to give you an idea.  But in fact what you say makes perfect
sense, and I'll go back and read through the mathematics document again,
and more closely this time!

(For matrices and arrays I still prefer the neat LaTeX implementation, but
maybe that's simply my general unfamiliarity with ConTeXt.)  Thanks again!

Alasdair

On Mon, Jun 29, 2020 at 2:27 AM Aditya Mahajan  wrote:

> On Sun, 28 Jun 2020, Alasdair McAndrew wrote:
>
> > I tried ConTeXt a few years ago, then gave up on it because of its
> > wordiness and verbosity.  The 2006 article on creating AMSTeX output in
> > ConTeXt at https://www.ntg.nl/maps/34/06.pdf shows exactly what I mean:
> the
> > LaTeX commands are small and neat; the ConTeXt commands are not.
>
> As explained in the last paragraph, there are pre-built shortcuts for the
> main alignments and you can define your own to match amsmath style, if you
> wish.
>
> If you are worried about typing, look into tab completion for your editor
> of choice. For example, in vim, I can do `for` which expands to
> `\startformula ... \stopformula` and `fora` expands to `\startformula
> \startalign ... \stopalign \stopformula`.
>
> > However, I need now to use ConTeXt for accessibility tagging, so I'm
> > prepared to give it another try.  And this means converting some LaTeX
> > documents into ConTeXt.  Is there a better way than using pandoc?  I ran
> a
> > LaTeX document through pandoc, but the result is certainly not fully
> > "ConTeXt compliant", and generates errors instead of compiling.
>
> AFAIK, pandoc is not aware of context math. When I convert latex to
> context, I find it simpler to do it some hand written regex which translate
> commands according to my writing style.
>
> > I can get easily lost on the ConTeXt site: the documentation is there in
> > plenty, but seems hard to search.  The main problem for me is mathematics
> > and alignment: not just for equations, but for matrices and arrays.  What
> > I'd love - if it exists - is a document showing how to rewrite LaTeX into
> > ConTeXt.  Something like the above document, which is now 14 years old.
>
> The user-interface is still the same.
>
> > Anyway, as I say, my main issues are converting LaTeX into ConTeXt. and
> > dealing with mathematics.  Any pointers would be gratefully received!
>
> Can you post an example of LaTeX math that you are having difficulty in
> converting? It is hard to answer this in the abstract.
>
> 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
>
> ___
>


-- 
https://numbersandshapes.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] Converting from LaTeX for PDF accessibility tagging?

2020-06-28 Thread Aditya Mahajan

On Sun, 28 Jun 2020, Alasdair McAndrew wrote:


I tried ConTeXt a few years ago, then gave up on it because of its
wordiness and verbosity.  The 2006 article on creating AMSTeX output in
ConTeXt at https://www.ntg.nl/maps/34/06.pdf shows exactly what I mean: the
LaTeX commands are small and neat; the ConTeXt commands are not.


As explained in the last paragraph, there are pre-built shortcuts for the main 
alignments and you can define your own to match amsmath style, if you wish.

If you are worried about typing, look into tab completion for your editor of choice. For 
example, in vim, I can do `for` which expands to `\startformula ... 
\stopformula` and `fora` expands to `\startformula \startalign ... \stopalign 
\stopformula`.


However, I need now to use ConTeXt for accessibility tagging, so I'm
prepared to give it another try.  And this means converting some LaTeX
documents into ConTeXt.  Is there a better way than using pandoc?  I ran a
LaTeX document through pandoc, but the result is certainly not fully
"ConTeXt compliant", and generates errors instead of compiling.


AFAIK, pandoc is not aware of context math. When I convert latex to context, I 
find it simpler to do it some hand written regex which translate commands 
according to my writing style.


I can get easily lost on the ConTeXt site: the documentation is there in
plenty, but seems hard to search.  The main problem for me is mathematics
and alignment: not just for equations, but for matrices and arrays.  What
I'd love - if it exists - is a document showing how to rewrite LaTeX into
ConTeXt.  Something like the above document, which is now 14 years old.


The user-interface is still the same.


Anyway, as I say, my main issues are converting LaTeX into ConTeXt. and
dealing with mathematics.  Any pointers would be gratefully received!


Can you post an example of LaTeX math that you are having difficulty in 
converting? It is hard to answer this in the abstract.

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
___


[NTG-context] Converting from LaTeX for PDF accessibility tagging?

2020-06-28 Thread Alasdair McAndrew
Hello,

I tried ConTeXt a few years ago, then gave up on it because of its
wordiness and verbosity.  The 2006 article on creating AMSTeX output in
ConTeXt at https://www.ntg.nl/maps/34/06.pdf shows exactly what I mean: the
LaTeX commands are small and neat; the ConTeXt commands are not.

However, I need now to use ConTeXt for accessibility tagging, so I'm
prepared to give it another try.  And this means converting some LaTeX
documents into ConTeXt.  Is there a better way than using pandoc?  I ran a
LaTeX document through pandoc, but the result is certainly not fully
"ConTeXt compliant", and generates errors instead of compiling.

I can get easily lost on the ConTeXt site: the documentation is there in
plenty, but seems hard to search.  The main problem for me is mathematics
and alignment: not just for equations, but for matrices and arrays.  What
I'd love - if it exists - is a document showing how to rewrite LaTeX into
ConTeXt.  Something like the above document, which is now 14 years old.

I also notice that much of the contextgarden wiki is outdated.  For
example, on the use of ConTeXt in MikTeX, we read "As of end of June 2011
MikTeX is still (or again) non-functional."  I'm aware that all of this is
the work of dedicated and unpaid volunteers, so this is not a complaint!
Just an observation.

Anyway, as I say, my main issues are converting LaTeX into ConTeXt. and
dealing with mathematics.  Any pointers would be gratefully received!

Thanks,
Alasdair
-- 
https://numbersandshapes.net
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Unexpected symbol with Enumeration

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

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


test-scriptfonts-lmtx.pdf
Description: Adobe PDF document
On 17 Oct 2019, at 08:00, Aditya Mahajan <adit...@umich.edu> wrote:On Wed, 16 Oct 2019, Otared Kavian wrote:I use Lucida OT fonts for all my documents, but since I prefer the script fonts from another font I have the following setups for my font:OT: Do you use this to get a less cursive script font?Lucida (like many opentype math fonts) comes with two stylistic variants for script letters. The default is the cursive variant, but you can get the less cursive variant using ss04 stylistic set. See page 8 ofhttps://tug.org/store/lucida/lucidaot.pdfAditya___If your question is of interest to others as well, please add an entry to the Wiki!maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : https://bitbucket.org/phg/context-mirror/commits/wiki : http://contextgarden.net__
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] mathring circle above a letter

2019-09-14 Thread Otared Kavian
Hi all,

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

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

Thanks for any help: OK

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

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

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

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

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

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

%%% end mathring-interior.tex



mathring-interior.pdf
Description: Adobe PDF document
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


  1   2   3   4   5   6   7   >