[NTG-context] defining font family for several options

2020-08-31 Thread jbf
Perhaps someone can assist me with the following query. I have a 
situation where I need to use more than one sans serif fonts (especially 
within complicated chapter heads). I currently have the following:


\definefontfamily [mainface] [rm] [alegreya]
\definefontfamily [mainface] [ss] [dax][tf=file:dax-regular]
\definefontfamily [mainface] [mm] [alegreya]
\setupbodyfont[mainface]
\setupbodyfont[11pt]

But what if I need to have, in addition to the Dax sans serif typeface, 
an additional sans serif typeface such as ITCAvantGarde? How do I 
declare that? Do I just give it another name, e.g. 
\definefontfamily[chapter][itcavantgarde] etc? If I did that, how then 
do I refer to it? Obviously not just as {\ss my text} since that would 
call in the dax font.


Julian

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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

2020-08-31 Thread Jairo A. del Rio
Hi, Hans. :)
Is there an analogue for display math? Could discretionaries be applicable
to math formulas when "split=yes" is enabled, for instance?

Thank you in advance.

Jairo :)

El lun., 31 de ago. de 2020 a la(s) 15:21, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> Hi,
>
> In order to keep the 'context is good for toy math' reputation up to
> date, in lmtx we can now have proper discretionaries in math and math in
> discretionaries. The kind of things no one asks for but they might be
> useful in educational settings.
>
> Here are some examples ():
>
> \starttext
>
> \showframe
>
> \enabletrackers[math.toysymbol]
>
> \definemathtoysymbol[Plus] [bin][+]
> \definemathtoysymbol[Minus][bin][-]
> \definemathtoysymbol[Equal][rel][=]
>
> $\dorecurse{199} {
>  x_{#1} \ifodd#1\relax\Plus\else\Minus\fi
> } x_{200} \Equal n$
>
> \blank
>
> \dorecurse{10} {
>  test \discretionary
>  {\darkred   hel  $\sqrt{y}$ lo}
>  {\darkgreen good $\sqrt{z}$ bye}
>  {\darkblue  wel  $\sqrt{x}$ come} test
> }
>
> \blank
>
> \dorecurse{10} {test me #1
>  $x + 2x \discretionary class 2
>  {$+ \, \cdots $}
>  {$ \cdots \, +$}
>  {$+ \, \cdots \, +$} nx$ test
> }
>
> \stoptext
>
> You might be able to guess from this code what is supposed to happen.
> I'll play a bit more with this later (assuming that it's somehow
> useful). We could predefine a bunch. As usual there might be issues but
> I'll sort them out when we run into them (it's a non critical feature
> with not much impact).
>
> Hans
>
> (who must not forget to document it somewhere)
>
>
> -
>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] LuaMetaTex dereferences NULL pointer

2020-08-31 Thread Marcel Fabian Krüger
Hi,

with the latest LuaMetaTeX upload (running on Linux x64),
\normalunexpanded tries to write to address 0 and therefore
segfaults:

\normalunexpanded{abc}
\starttext
\stoptext

ConTeXt fails with

mtx-context | fatal error: return code: 139

The most interesting message from valgrind is

==53200== Invalid write of size 4
==53200==at 0x17113D: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x151625: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x151E40: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x15E1A2: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x154AA1: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x122347: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x4A0C151: (below main) (in /usr/lib/libc-2.32.so)
==53200==  Address 0x0 is not stack'd, malloc'd or (recently) free'd
==53200== 
==53200== 
==53200== Process terminating with default action of signal 11 (SIGSEGV): 
dumping core
==53200==  Access not within mapped region at address 0x0
==53200==at 0x17113D: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x151625: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x151E40: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x15E1A2: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x154AA1: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x122347: ??? (in 
/home/marcel/lmtx-install/tex/texmf-linux-64/bin/luametatex)
==53200==by 0x4A0C151: (below main) (in /usr/lib/libc-2.32.so)
==53200==  If you believe this happened as a result of a stack
==53200==  overflow in your program's main thread (unlikely but
==53200==  possible), you can try to increase the size of the
==53200==  main thread stack using the --main-stacksize= flag.
==53200==  The main thread stack size used in this run was 8388608.

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

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] new upload

2020-08-31 Thread Hans Hagen

Hi,

In order to keep the 'context is good for toy math' reputation up to 
date, in lmtx we can now have proper discretionaries in math and math in 
discretionaries. The kind of things no one asks for but they might be 
useful in educational settings.


Here are some examples ():

\starttext

\showframe

\enabletrackers[math.toysymbol]

\definemathtoysymbol[Plus] [bin][+]
\definemathtoysymbol[Minus][bin][-]
\definemathtoysymbol[Equal][rel][=]

$\dorecurse{199} {
x_{#1} \ifodd#1\relax\Plus\else\Minus\fi
} x_{200} \Equal n$

\blank

\dorecurse{10} {
test \discretionary
{\darkred   hel  $\sqrt{y}$ lo}
{\darkgreen good $\sqrt{z}$ bye}
{\darkblue  wel  $\sqrt{x}$ come} test
}

\blank

\dorecurse{10} {test me #1
$x + 2x \discretionary class 2
{$+ \, \cdots $}
{$ \cdots \, +$}
{$+ \, \cdots \, +$} nx$ test
}

\stoptext

You might be able to guess from this code what is supposed to happen. 
I'll play a bit more with this later (assuming that it's somehow 
useful). We could predefine a bunch. As usual there might be issues but 
I'll sort them out when we run into them (it's a non critical feature 
with not much impact).


Hans

(who must not forget to document it somewhere)


-
  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] Mathematical symbol of non-inclusion

2020-08-31 Thread Fabrice Couvreur
Hi Hans,
Thank you for the clarification
Fabrice

Le dim. 30 août 2020 à 17:56, Hans Åberg  a écrit :

>
> > On 30 Aug 2020, at 11:40, Fabrice Couvreur 
> wrote:
> >
> > @Hans My ignorance is total : how to write symbols from the keyboard ?
>
> I use text substitutions on MacOS: a sequence of characters can be
> automatically translated into another. So for example, ".subset" might
> translate into "⊂" as you type along. To find the ⊂ the first time, there
> is a Unicode symbol table. Other platforms and editors have similar
> features. There are other ways, but I have found this easiest and fastest
> both to create and use.
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/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
___