[NTG-context] BUG: colour spilling in btxrendering

2024-02-01 Thread Alexandre Christe
Dear list,

It seems with one of the latest lmtx this old reported issue 
(https://www.mail-archive.com/ntg-context@ntg.nl/msg84988.html) is back.

MWE:

\setupinteraction[state=start,color=red,style=]
\setupbtx[aps:cite][alternative=entry]
\usebtxdefinitions[aps]

\startbuffer [bib]
@ARTICLE{67533,
 author={De Doncker, R.W.A.A. and Divan, D.M. and Kheraluwala, M.H.},
 journal={IEEE Transactions on Industry Applications},
 title={A three-phase soft-switched high-power-density DC/DC converter for 
high-power applications},
 year={1991},
 volume={27},
 number={1},
 pages={63-73},
 keywords={DC-DC power converters;Resonance;Switching 
frequency;Inverters;Filters;Snubbers;Circuit topology;Thyristors;Switching 
converters;Industry Applications Society},
 doi={10.1109/28.67533}}

}
\stopbuffer
\usebtxdataset [bib.buffer]

\starttext

\cite[alternative=entry][67533]

\startnointerference
 \placelistofpublications
\stopnointerference

\stoptext

A. Christe
___
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 math spacing

2023-12-04 Thread Alexandre Christe
Hi Hans,

Thanks for your answer. It helps a lot. Would there be a way to only add space 
when inline math is not followed by punctuation, i.e., when inline math is 
followed by a space?


A. Christe
Le 4 déc. 2023 à 14:08 +0100, Hans Hagen , a écrit :
>
> \setupmathematics[textdistance=.25em plus .1em minus .1em]
___
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 math spacing

2023-12-03 Thread Alexandre Christe
Hi,

Here’s a MWE:

\setupinterlinespace[line=3ex]

\definefontfeature[default][default][lnum=yes,tnum=yes]
\usetypescriptfile[alegreya_libertinus]
\setupbodyfont[alegreya-light,ss,10pt]
\setupmathematics[autopunctuation={all}]

% math definitions
\enablemathautospacing % more global
% \enablemathautofencing % more global
\enablemathautonumbers % more global
% \autofences % more local

\usemodule[ipsum]

\starttext

\ipsum

\stoptext

And I attach the two files to setup the font.

A. Christe
Le 3 déc. 2023 à 22:44 +0100, Hans Hagen , a écrit :
> On 12/3/2023 10:31 PM, Alexandre Christe wrote:
> > Dear list,
> >
> > I’m facing some strange spacing with inline maths. Sometimes the space
> > is ok (like around the first two fractions), but sometimes it is way too
> > little. Do I miss to configure something?
> your spacing is little between words too .. hard to tell without MWE
>
> 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
> ___


libertinus-with-alegreya-math.lfg
Description: Binary data


type-imp-alegreya_libertinus.mkiv
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://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 math spacing

2023-12-03 Thread Alexandre Christe
Dear list,

I’m facing some strange spacing with inline maths. Sometimes the space is ok 
(like around the first two fractions), but sometimes it is way too little. Do I 
miss to configure something?


Thanks in advance,

A. Christe
___
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: ConTeXt support for Nova text editor (MacOS)

2023-11-16 Thread Alexandre Christe
Hi Paul,

Actually in the assets on Github it’s indicating a Typst extensions, not a 
ConTeXt one...

BR.

A. Christe
Le 11 nov. 2023 à 18:49 +0100, Paul Mazaitis , a écrit :
>
> Hello, list!
>
> I'm working on a ConTeXt language extension for the Nova editor by Panic 
> software (https://nova.app/).
>
> The extension is here:
>
> https://github.com/pmazaitis/nova-context/releases/tag/0.6.0
>
> ...currently in beta, but fairly functional.
>
> This version of the extension supports:
>
> * Syntax Highlighting
> * Folding for (most) environments
> * Navigating by Symbols (headings: chapter, section, etc.)
> * Spell-checking of body text and section titles
> * Managing builds with Nova's tasks system
>
> (As an aside, this extension uses an updated version of the ConTeXt 
> tree-sitter parser [https://github.com/pmazaitis/tree-sitter-context] that 
> can now recognize (most) environments and use them to parse out the document 
> hierarchy.)
>
> Limitations at the moment: not all environments are supported (only those 
> with \start and \stop commands right now), and the extension only supports 
> English.
>
> Happy for any bug reports, etc.,
>
> -Paul
> ___
> 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: Combining python and lua

2023-10-26 Thread Alexandre Christe
Hi,

Thanks for your inputs Aditya and Bruce.

I’m still having some issues when trying to include the output of the filter 
module within lua.

MNWE:

\defineexternalfilter
 [sympy]
 [filtercommand={/Users/aleks/miniconda3/bin/python3 
\externalfilterinputfile\space > \externalfilteroutputfile},
 bufferbefore=init,
 output={\externalfilterbasefile.out},
 readcommand=\typefile,
 read=no,]

\startbuffer[init]
from sympy import *
\stopbuffer

\starttext

\startluacode
 local deg2rad = [[
 %\startsympy

 print(latex(rad(%angleVal%)))
 %\stopsympy
]]

local calcTrigFunction = [[
 \startsympy
 from sympy import *

 print(latex(%fname%(rad(%angleVal%
 \stopsympy
]]

local angleList = {0, 30, 45, 60, 90, 120, 135, 150, 180, 210, 225, 
240, 270, 300, 315, 330, 360}

for _, a in ipairs(angleList) do
 context.templates[calcTrigFunction] {
 fname = "sin",
 angleVal = a
 }
end

\stopluacode

\stoptext

In particular, it fails as soon as  \startsympy and \stopsympy are part of the 
template. Should I protect these?

A. Christe
Le 25 oct. 2023 à 21:56 +0200, Aditya Mahajan , a écrit :
> On Wed, 25 Oct 2023, Alexandre Christe wrote:
>
> > Dear list,
> >
> > I’d like to know the best approach to make this a bit more usable. I’m 
> > trying to typeset a table with sin/cos/tan values. I’d like to be able to 
> > convert the angles in degrees into radians (with math notation) and to 
> > compute the trigonometric function leading to sin(pi/4) = 1/2, or cos(pi/6) 
> > = sqrt(3)/2 and display it in math mode.
> >
> > Here’s my current MWE, where I fail to convert the angles in radians
>
> there is math.sind, cosd, etc. for computing sin for angle in degrees. The 
> implementation is l-math.lua is:
>
> local pipi = 2*math.pi/360
>
> function math.sind(d) return sin(d*pipi) end
> function math.cosd(d) return cos(d*pipi) end
> function math.tand(d) return tan(d*pipi) end
>
> > and fail to display the result in symbolic form.
>
> Context doesn't do symbolic math. You can try checking if one of the symbolic 
> math libraries in lua provides all the features that you want.
>
> > One possible way would be to use Python and the t-filter module, like this
>
> This can work as follows. Take the array of angles, and convert them to the 
> desired format in python and write them to a temp file. Read that temp file 
> in lua and typeset it as you want.
>
> Another option is an old proof of concept by Luigi: 
> https://github.com/bastibe/lunatic-python which allowed two-way communication 
> between python and luatex. Not sure if it still works.
>
> Aditya
>
> ___
> 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] Combining python and lua

2023-10-25 Thread Alexandre Christe
Dear list,

I’d like to know the best approach to make this a bit more usable. I’m trying 
to typeset a table with sin/cos/tan values. I’d like to be able to convert the 
angles in degrees into radians (with math notation) and to compute the 
trigonometric function leading to sin(pi/4) = 1/2, or cos(pi/6) = sqrt(3)/2 and 
display it in math mode.

Here’s my current MWE, where I fail to convert the angles in radians and fail 
to display the result in symbolic form.

\starttext

\startluacode
local angleList = {0, 30, 45, 60, 90, 120, 135, 150, 180, 210, 225, 240, 270, 
300, 315, 330, 360}

context.bTABLE()
 context.bTR()
 context.bTD() context("$x$") context.eTD()
 context.bTD() context("$0$") context.eTD()
 for _, a in ipairs(angleList) do
 context.bTD() context("$\letterpercent.0f$",a) context.eTD()
 end
 context.eTR()
 context.bTR()
 context.bTD() context("$\\cos(x)$") context.eTD()
 for _, a in ipairs(angleList) do
 context.bTD() context("$\letterpercent.3f$",math.cos(math.rad(a))) 
context.eTD()
 end
 context.eTR()
 context.bTR()
 context.bTD() context("$\\sin(x)$") context.eTD()
 for _, a in ipairs(angleList) do
 context.bTD() context("$\letterpercent.3f$",math.sin(math.rad(a))) 
context.eTD()
 end
 context.eTR()
 context.bTR()
 context.bTD() context("$\\tan(x)$") context.eTD()
 for _, a in ipairs(angleList) do
 if a == 90 or a == 270 then
 context.bTD() context("$-$") context.eTD()
 else
 context.bTD() context("$\letterpercent.3f$",math.tan(math.rad(a))) 
context.eTD()
 end
 end
 context.eTR()
context.eTABLE()
\stopluacode

\stoptext

\stoptext

One possible way would be to use Python and the t-filter module, like this

\usemodule[filter]
%It depends on your OS. In mine it's python3
\defineexternalfilter
 [pythontyping]
 [filtercommand={python3 \externalfilterinputfile \space > 
\externalfilteroutputfile},
 output={\externalfilterbasefile.tex},
 cache=yes,
 readcommand=\typefile,
 spacebefore=medium,
 spaceafter=medium]
%We copy settings to save typing
\defineexternalfilter[pythonformula][pythontyping]
%But instead of typing, we input a formula
\setupexternalfilter[pythonformula]
 [readcommand=\samplefile] %\input should also work

\starttext

Convert angle to radians:
$\startpythonformula
 from sympy import *
 print(latex(pi/180*60))
 \stoppythonformula$

Compute trigonometric function:
$\startpythonformula
 from sympy import *
 print(latex(cos(pi/3)))
 \stoppythonformula$

\stoptext

However, I haven’t managed so far to combine things (lua and Python) in an 
automatic way.

How should I proceed?

A. Christe
___
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: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Alexandre Christe
Hi Fabrice,

I have this from former exchanges

% Cancel command for use in equations.
\startuniqueMPgraphic{cross out}
 picture cross;
 cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0););
 draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle
scaled .8pt ;
\stopuniqueMPgraphic

\defineoverlay[canceloverlay][\uniqueMPgraphic{cross out}]

\define[1]\cancel{%
 \ifmmode
 \mframed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
 \else%
 \framed[background=canceloverlay, frame=off, offset=overlay]{{#1}}%
 \fi%
}

Maybe something else is available nowadays.

A. Christe
Le 22 août 2023 à 12:22 +0200, Fabrice Couvreur , 
a écrit :
> Hi,
> In an algebraic expression, it is sometimes interesting to cross out terms. 
> With LaTeX, there is the \cancel command from the package cancel. Is there an 
> equivalent with conTeXt ?
> Thanks
> Fabrice
> ___
> 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-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-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 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] installer

2023-05-07 Thread Alexandre Christe via ntg-context
Hi Otared,

I encountered the same issue the other day. Could it be that you run mtxrun 
from the /bin folder instead of /tex/texmf-YOUR_ARCH/bin/ ? Somehow they seem 
to be different.

Best regards,
Alex
Le 7 mai 2023 à 17:07 +0200, Otared Kavian via ntg-context 
, a écrit :
> Hi Hans,
>
> Updating to current version: 2023.05.07 16:33 and issuing
>
> mtxrun --script install-modules
>
> I get:
>
> mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua’
>
>
> Best regards: Otared
>
> > On 7 May 2023, at 16:59, Hans Hagen via ntg-context  
> > wrote:
> >
> > On 5/7/2023 4:43 PM, Floris van Manen via ntg-context wrote:
> > > $ mtxrun --script install-modules --list
> > > resolvers | globbing | confusing filename, name: 'CHANGELOG', lower: 
> > > 'changelog', already: 'ChangeLog'
> > > mtxrun | unknown script 'install-modules.lua' or 'mtx-install-modules.lua'
> > hm, it should be in the zip, adn therefore installed, so can others confirm 
> > this?
> >
> > Hans
> >
> > -
> > Hans Hagen | PRAGMA ADE
> > Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> > -
> >
> > ___
> > If your question is of interest to others as well, please add an entry to 
> > the Wiki!
> >
> > maillist : ntg-context@ntg.nl / 
> > https://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> > archive : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : https://contextgarden.net
> > ___
>
> Otared Kavian
> e-mail: ota...@gmail.com
> Phone: +33 6 88 26 70 95
>
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
>
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new uplaod

2023-04-17 Thread Alexandre Christe via ntg-context
Dear list,

In case someone else stumbles upon this issue, the following code works.

MWE:

\autofences

\starttext

$\left]-\infty; a\right[$

\stoptext

Best regards,
Alex
Le 22 sept. 2022 à 12:59 +0200, Alexandre Christe , a 
écrit :
> Hi Hans,
>
> Thanks a lot for the example. It works great in most cases, however what I 
> stumbled upon is with the interval notation, in particular the following 
> cases arise:
> - closed interval: easy, since the delimiters are [... ; ... ]
> - open interval: not easy, since the delimiters are ]... ; ... [ (or with a 
> parenthesis as in the US, but there it works)
> - semi open interval: not easy, since the delimiters are either [... ; ... [ 
> or ]... ; ...] (or in the US [...; ...) or (... ; ...])
>
> I guess there is a need for a special definition for these. Maybe they're 
> already in the works...
>
> By the way, if I define in the preamble \autofences, is there a command to 
> disable it locally? Would be very helpful to deal with the above situations.
>
> Best regards,
> Alex
>
> > Le dim. 11 sept. 2022 à 20:42, Hans Hagen via ntg-context 
> >  a écrit :
> > > On 9/10/2022 9:45 AM, Alexandre Christe via ntg-context wrote:
> > > > Hi Hans,
> > > >
> > > > Will |\mvert|and|\midalso be included in the \autofencelogic? It would
> > > > be quite useful.|
> > > we don't have \mvert so i'll add that ... in a next upload you can do
> > > the attached (kind of experimental as Mikael and I need to review this
> > > which we will do next week)
> > >
> > > 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] upload

2023-04-14 Thread Alexandre Christe via ntg-context
Sorry, \setupmathematics[ucgreek=normal] does the job. Nothing to do with the 
last upload.
Le 14 avr. 2023 à 17:16 +0200, Alexandre Christe , a 
écrit :
> Dear Hans,
>
> In the latest upload, I see that uppercase greek letters in the math 
> environment are displayed in italic. Is there a way to force them to appear 
> as upright letters instead?
>
> Thanks in advance,
> Alex
> Le 11 avr. 2023 à 23:08 +0200, Hans Hagen via ntg-context 
> , a écrit :
> > Hi,
> >
> > I just uploaded an update, the areas that were touched:
> >
> > - math (font) improvements (with mikael, roadmap stuff, fixes, compact
> > mode testing)
> > - text (font) improvements (with mikael, side track of math)
> > - experimental stuff wrt project structure (with alan, complex huge
> > files; prelude to possible partial overhaul)
> > - some language details like labels (with tomas & students, ongoing)
> > - little thingies that probably no one will notice unless it's bugged
> >
> > 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] upload

2023-04-14 Thread Alexandre Christe via ntg-context
Dear Hans,

In the latest upload, I see that uppercase greek letters in the math 
environment are displayed in italic. Is there a way to force them to appear as 
upright letters instead?

Thanks in advance,
Alex
Le 11 avr. 2023 à 23:08 +0200, Hans Hagen via ntg-context , 
a écrit :
> Hi,
>
> I just uploaded an update, the areas that were touched:
>
> - math (font) improvements (with mikael, roadmap stuff, fixes, compact
> mode testing)
> - text (font) improvements (with mikael, side track of math)
> - experimental stuff wrt project structure (with alan, complex huge
> files; prelude to possible partial overhaul)
> - some language details like labels (with tomas & students, ongoing)
> - little thingies that probably no one will notice unless it's bugged
>
> 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
___


[NTG-context] Text editors

2023-03-26 Thread Alexandre Christe via ntg-context
Dear ConTeXt users,

I'm wondering what kind of typesetting system / syntax highlighting /
completion you're using.

I've been using myself the simple_Context package for SublimeText which I
scavenged a while ago before it was made unavailable (I wanted to attach
but it's too big for the list). But it's sort of a dead-end.

Open to anything from vim/neovim to emacs or more exotic. Maybe it would be
nice to show the config. (And yes I've seen the Wiki page
https://wiki.contextgarden.net/Text_Editors but I've the feeling some
content is outdated.)

Thanks in advance,
Alex
___
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] Building fomula

2023-03-25 Thread Alexandre Christe via ntg-context
Hi Willi,

A dead simple solution would be

\starttext
\startformula
{\frac{47 \times 62}{44 \times 56}} \times {12} \qquad \rm{or} \qquad
{{\frac{47 \times 62 \times 12}{44 \timess 56}}=14.2 \rm kilo}
\stopformula

\stoptext


Le sam. 25 mars 2023 à 18:09, Willi Egger via ntg-context <
ntg-context@ntg.nl> a écrit :

> Good afternoon everybody,
>
> I should place two faily simple formulae next to each other, they should
> be coupled by ‘or’. What I have now is, that the formulae indeed are next
> to each other and separated by ‘or’, but the result of the second formula
> is moved und this formula to the next line.
> In the setup of  book there would be enough place, if I coud decrease the
> space left and right of the ‘or’.
>
> How can I achieve this?
>
> Cheers
>
> Willi
>
> \starttext
>   \startformulas
> \startformula[align=right]
>   {\frac{47 \times 62}{44 \times 56}} \times {12}
> \stopformula
> \startformula[align=right,width=0.2\textwidth]
>   or
> \stopformula
> \startformula[align=right]
>   {{\frac{47 \times 62 \times 12}{44 \times 56}}=14.2 \rm kilo}
> \stopformula
>
>   \stopformulas
>   \blank[small]
>   rounded 14 kilo.
> \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
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] bug $\vec{}$

2023-01-20 Thread Alexandre Christe via ntg-context
It does! Thanks Mikael.

Le ven. 20 janv. 2023 à 16:52, Mikael Sundqvist via ntg-context <
ntg-context@ntg.nl> a écrit :

> I think there is a change going on, try with
>
> \definemathtopaccent[top:stretch][vec]["20D7]
>
> for the moment. Does it look OK?
>
> /Mikael
>
> On Fri, Jan 20, 2023 at 2:45 PM Alexandre Christe via ntg-context
>  wrote:
> >
> > I confirm the behavior.
> >
> > Also possibly linked is that the spacing around $\overrightarrow{k}$
> seems pretty weird, so atm there is no fallback solution.
> >
> >
> >
> > Le ven. 20 janv. 2023 à 14:37, Alan Braslau via ntg-context <
> ntg-context@ntg.nl> a écrit :
> >>
> >> MWE:
> >>
> >> \starttext
> >>
> >> $\vec{k}$
> >>
> >> \stoptext
> >>
> >> places the arrow *before* the symbol "k", latest download.
> >>
> >> Alan
> >>
> ___
> >> 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
___


Re: [NTG-context] bug $\vec{}$

2023-01-20 Thread Alexandre Christe via ntg-context
I confirm the behavior.

Also possibly linked is that the spacing around $\overrightarrow{k}$ seems
pretty weird, so atm there is no fallback solution.



Le ven. 20 janv. 2023 à 14:37, Alan Braslau via ntg-context <
ntg-context@ntg.nl> a écrit :

> MWE:
>
> \starttext
>
> $\vec{k}$
>
> \stoptext
>
> places the arrow *before* the symbol "k", latest download.
>
> Alan
>
> ___
> 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] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Thank you so much Alan, that was exactly what I was looking for.

Le ven. 20 janv. 2023 à 01:56, Alan Braslau  a
écrit :

> On Thu, 19 Jan 2023 22:40:13 +0100
> Alexandre Christe via ntg-context  wrote:
>
> > def labelT(expr pos)(text t) =
> > ...
> > enddef;
>
> vardef labelT@#(text t) =
> ...
> enddef ;
>
> Then you can pass on the "suffix" @#
>
> Alan
>
___
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] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Dear list,

Is there a way in a Meta(post)/(fun) macro to specify the label position as
an argument?

def labelT(expr pos)(text t) =
...
enddef;

Thanks a lot in advance,
Alex
___
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] MP figure continuation

2023-01-06 Thread Alexandre Christe via ntg-context
Aye, thanks Mikael and Gavin. Hard 2023 re-start...

Le ven. 6 janv. 2023 à 15:58, Gavin  a écrit :

> Hi Alex,
>
> > Is there a way to "continue" an MP figure? Like keeping the axes, etc.
> and just adding code to the figure?
>
> Buffers might be what you want. From the MetaFun manual:
>
> > Buffers can be used to stepwise build graphics. By putting code in
> multiple buffers, you can selectively process this code. [p.124]
>
> http://www.pragma-ade.nl/general/manuals/metafun-p.pdf
>
> Hope that helps.
>
> 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
___


[NTG-context] MP figure continuation

2023-01-06 Thread Alexandre Christe via ntg-context
Dear list,

Is there a way to "continue" an MP figure? Like keeping the axes, etc. and
just adding code to the figure?

Maybe I missed something, otherwise I'd find it super useful.

Thanks in advance and happy new year,
Alex
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Mathematical MetaFun Mania

2022-12-18 Thread Alexandre Christe via ntg-context
Hi Hans,

On osx-64 I'm not getting a single connector printed when compiling
anchor-002.tex. I've attached the log in case. Am I doing something wrong
on my end?

Le ven. 16 déc. 2022 à 17:56, Hans Hagen via ntg-context 
a écrit :

> On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote:
> > Hi Hans,
> >
> > Thanks for the new release and the nice anchoring features.
> >
> > I played a little bit with these, and noticed some issues: in the
> following example, linking the bottom bounds of the integral signs is fine
> (as long as numbers are put there), but for the upper bounds, the \infty
> and \pi/2 are not accepted (nor is any letter or greek symbol), but if one
> replaces \infty and \pi/2 with numbers, then the link between the upper
> bounds is shown. (In this example the links are invading the text, but
> probably this is due to the fact that I just copied the Metapost snippet
> you sent to Gavin).
> you can pick up a binary with a safeguard from
>
> https://build.contextgarden.net/#/waterfall?tags=c.luametatex
>
> (or compile one yourself from work)
>
> 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
>
> ___
>


anchor.log
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
___


[NTG-context] Margin figure in itemize

2022-11-21 Thread Alexandre Christe via ntg-context
Dear list,

With the following MWE I end up with big gaps between margin figures in an
itemized list. Is there a way to remove that space in the text and place
the figures in the margin one below the other the best one can?

\setuppagenumbering
  [alternative=doublesided, location=margin]

\setuplayout
  [header=0pt,
   margin=4cm,
   footerdistance=.5cm,
   topspace=1cm,
   backspace=1cm,
   cutspace=2cm,
   width=fit,
   height=\dimexpr
\paperheight-\topspace+\footerheight+\footerdistance-4cm\relax]

% \showframe

\definefloat
  [marginfigure]
  [figure]

\setupfloat
  [marginfigure]
  [outermargindistance=-\outermargintotal,
  default={outermargin,height,high,low,none}]

\starttext

\startstaticMPfigure{square}
  draw fullsquare scaled 3cm;
\stopstaticMPfigure

\startitemize
  \placemarginfigure{}{\usestaticMPfigure[square]}
  \item bla
  \item bla
  \placemarginfigure{}{\usestaticMPfigure[square]}
  \item bla
\stopitemize

\stoptext

Thanks in advance,
Alex
___
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] Defineenumeration head offset

2022-11-07 Thread Alexandre Christe via ntg-context
Dear list,

Is there a trick to not apply the leftoffset to the header of a
defineenumeration?

MWE:

\definetextbackground
  [textFrameEx]
  [
frame=off,
framecolor=darkgreen,
rulethickness=2ex,
background=,
location=paragraph,
leftoffset=2.25ex,
rightoffset=2.25ex,
after={\hrule}
  ]

\defineenumeration
  [example]
  [
text=Example,
headalign=middle,
headcolor=white,

headcommand={\inframed[background=color,backgroundcolor=darkgreen,width=\textwidth]},
number=no,
before={%
  \starttextbackground[textFrameEx]
},
after={%
  \stoptextbackground%
},
  ]

\starttext

\startexample
Blablabla
\stopexample

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


Re: [NTG-context] Math alignment problem

2022-09-22 Thread Alexandre Christe via ntg-context
Hi Jan-Erik,

One way I came across searching the mailing list is the following:

\starttext

\startitemize [a,columns,joinedup] [n=3,grid=line]
\item $ 56 + 2 \cdot 3 $
\item $ 5-(7) $
\item $ \frac{21}{7} $
\stopitemize

\stoptext

Could be that there is a *better* way.

Le jeu. 22 sept. 2022 à 12:57, Jan-Erik Hägglöf via ntg-context <
ntg-context@ntg.nl> a écrit :

> Dear List!
>
> I do not know how to solve this issue.
>
> I want the formulas appear on same height, as you can se on the attachment
> the formula containing a fraction displaces on another vertical position
> compared to the other equations.
>
> How do I correct this?
>
> Code snippet pasted from garden
>
> \starttext
>
> \startitemize[a,columns,three]
> \item $ 56 + 2 \cdot 3 $
> \item $ 5-(7) $
> \item $ \frac{21}{7} $
> \stopitemize
>
> \stoptext
>
>
> Thanks in advance
>
> Jan-Erik
>
> ___
> 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] new uplaod

2022-09-22 Thread Alexandre Christe via ntg-context
Hi Hans,

Thanks a lot for the example. It works great in most cases, however what I
stumbled upon is with the interval notation, in particular the following
cases arise:
- closed interval: easy, since the delimiters are [... ; ... ]
- open interval: not easy, since the delimiters are ]... ; ... [ (or with a
parenthesis as in the US, but there it works)
- semi open interval: not easy, since the delimiters are either [... ; ...
[ or ]... ; ...] (or in the US [...; ...) or (... ; ...])

I guess there is a need for a special definition for these. Maybe they're
already in the works...

By the way, if I define in the preamble \autofences, is there a command to
disable it locally? Would be very helpful to deal with the above situations.

Best regards,
Alex

Le dim. 11 sept. 2022 à 20:42, Hans Hagen via ntg-context <
ntg-context@ntg.nl> a écrit :

> On 9/10/2022 9:45 AM, Alexandre Christe via ntg-context wrote:
> > Hi Hans,
> >
> > Will |\mvert|and|\midalso be included in the \autofencelogic? It would
> > be quite useful.|
> we don't have \mvert so i'll add that ... in a next upload you can do
> the attached (kind of experimental as Mikael and I need to review this
> which we will do next week)
>
> 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] new uplaod

2022-09-10 Thread Alexandre Christe via ntg-context
Hi Hans,

Will \mvert and \mid also be included in the \autofence logic? It would be
quite useful.

Le jeu. 25 août 2022 à 18:18, Hans Hagen via ntg-context 
a écrit :

> Hi,
>
> I uploaded a new lmtx. Again some updated math of which details will be
> revealed later. Apart from some details we added suport for fourier
> notations. There are no high level definitions yet as we have to invent
> names but this is how it works (private unicode slots might change):
>
> \setupbodyfont[pagella]
>
> \starttext
>
> \setupmathdelimited
>[topoffset=.2\exheight]
>
> \definemathdelimited
>[fourier]
>[rule=no,
> left=\zerocount,
> right="FE944]
>
> \definemathdelimited
>[courier]
>[rule=no,
> left=\zerocount,
> right="FE946]
>
> \definemathdelimited
>[xourier]
>[rule=no,
> left=\zerocount,
> right="FE948]
>
> $ \fourier{(z+1)} $
>
> $ \fourier{(z+1)} + \sqrt[2]{1}$
>
> $ \fourier{(z+1)} + \courier{(z+1)} + \xourier{(z+1)} $
>
> $ \fourier{\left(z+\frac12\right)} + \courier{\left(z+\frac12\right)} +
> \xourier{\left(z+\frac12\right)} $
>
> $ \autofences \fourier{(z+\frac12)} + \courier{(z+\frac12)} +
> \xourier{(z+\frac12)} $
>
> $ \widehat{x^2 + 2x + 2} $
>
> \stoptext
>
> This example also shows a new \autofences feature and widehats
> (widetilde and widecheck also work that way) that overcome limitations
> in fonts, so
>
> \def\CrappyHack#1{\im{#1{a} + #1{a+b} + #1{a+b+c} + #1{a+b+c+d} +
> #1{a+b+c+d+e} + #1{a+b+c+d+e+f}}\par}
> \CrappyHack\widehat
> \CrappyHack\widetilde
> \CrappyHack\wideacute
> \CrappyHack\widecheck
>
> will work. For thise in finance we now have
>
> $ \annuity{x + 1} + \lannuity{x + 1} + \rannuity{x + 1} + \lrannuity{x +
> 1} $
>
> these are basically radicals (like sqrt) with two sided symbols.
>
> 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] Issue with setupMPvariables

2022-09-03 Thread Alexandre Christe via ntg-context
Thanks Hans!

For sake of completeness a MWE is attached, in case someone needs it one
day.

Le sam. 3 sept. 2022 à 20:10, Hans Hagen via ntg-context 
a écrit :

> On 9/3/2022 6:48 PM, Alexandre Christe via ntg-context wrote:
> > Dear all,
> >
> > I'm trying to reuse some MP code for several custom enumeration.
> >
> > However I can't make the overall setup work, needless to say different
> > border colors for each enumeration though setupMPvariables. What am I
> > missing?\startuseMPgraphic{mp:textFrame}
> begingroup;
> path p ;
> for i = 1 upto nofmultipars :
> p := (ulcorner multipars[i]) -- (llcorner multipars[i]) --
> (llcorner
> multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm)
> -- cycle ;
> fill p withcolor boxfillcolor ;
> draw p withcolor boxlinecolor ;
> endfor;
> endgroup;
> \stopuseMPgraphic
>
>
> -
>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
>
> ___
>


testColorParagraphs.tex
Description: TeX document
___
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] Issue with setupMPvariables

2022-09-03 Thread Alexandre Christe via ntg-context
Dear all,

I'm trying to reuse some MP code for several custom enumeration.

However I can't make the overall setup work, needless to say different
border colors for each enumeration though setupMPvariables. What am I
missing?

MWE: see attachment


testColorParagraphs.tex
Description: TeX document
___
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] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
Hmmm it seems the trick lies in adding

\setupfloats
[freeregion=no]
___
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] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
Hi,

I just came across nofmultipars (which is great for splitting frames across
pages, unlike a simple framed). Is there an equivalent for floats?

The MWE would contain

\startuseMPgraphic{mp:textFrame}
begingroup;
path p ;
for i = 1 upto nofmultipars :
p := (ulcorner multipars[i]) -- (llcorner multipars[i]) -- (llcorner
multipars[i] xshifted .25cm) -- (ulcorner multipars[i] xshifted .25cm) --
cycle ;
fill p withcolor "darkgreen" ;
endfor;
endgroup;
\stopuseMPgraphic

together with

\definetextbackground
[exampleFrame]
[
mp=mp:textFrame,
location=paragraph,
]

Assuming I have between \starttextbackground[exampleFrame] and
\starttextbackground[exampleFrame] also a figure in addition to text
paragraphs. Would it be possible to also draw a rule next to it?

Best regards,
Alex
___
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] Nested itemize

2022-09-02 Thread Alexandre Christe via ntg-context
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
___


[NTG-context] New math additional requirement for font definitions

2022-07-13 Thread Alexandre Christe via ntg-context
Dear list,

I've come across that the new math (which by the way looks really nice)
requires some additional properties to be set in the font definition.

If I take the example file provided by Mikael and add the following lines

\usetypescriptfile[alegreya]
\setupbodyfont[alegreya,11pt]

It fails with the following error message:
"tex error on line 16 in file /Users/aleks/Desktop/Test
Context/someformulas.tex: Math error: parameter 'limitbelowbgap' with id 36
in style 0 is not set"

Libertinus works fine by adding the following two lines

\usetypescriptfile[libertinus]
\setupbodyfont[libertinus,11pt]

Could someone enlighten me?

The font definition file is attached.

BR,
Alex


type-imp-alegreya.mkiv
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] Custom type-imp file creating empty lines

2022-05-11 Thread Alexandre Christe via ntg-context
Hi Pablo,

Thank you so much. That was indeed the issue!

Le mer. 11 mai 2022 à 19:14, Pablo Rodriguez via ntg-context <
ntg-context@ntg.nl> a écrit :

> On 5/11/22 18:42, Alexandre Christe via ntg-context wrote:
> > Dear list,
> >
> > I've played a bit with a custom type-imp file (partly inspired from the
> > wiki https://wiki.contextgarden.net/Alegreya_Typescript
> > <https://wiki.contextgarden.net/Alegreya_Typescript>). However, the file
> > I ended up with seems to create some empty lines at the beginning of the
> > document (if I use the default or another font this vanishes, so it
> > really comes from that file). Could anyone enlighten me?
>
> Hi Alex,
>
> you added an extra option group here:
>
>   \definefallbackfamily [alegreya] [math] [Alegreya]
> [superscriptsandsubscripts] [force=yes]
>
> I think this may read:
>
>   \definefallbackfamily [alegreya] [math] [Alegreya]
> [range=superscriptsandsubscripts, force=yes]
>
> 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 /
> http://www.ntg.nl/mailman/listinfo/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] Custom type-imp file creating empty lines

2022-05-11 Thread Alexandre Christe via ntg-context
Dear list,

I've played a bit with a custom type-imp file (partly inspired from the
wiki https://wiki.contextgarden.net/Alegreya_Typescript). However, the file
I ended up with seems to create some empty lines at the beginning of the
document (if I use the default or another font this vanishes, so it really
comes from that file). Could anyone enlighten me?

The file is attached.

BR,
Alex


type-imp-alegreya.mkiv
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 / http://www.ntg.nl/mailman/listinfo/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-09 Thread Alexandre Christe via ntg-context
Sorry for spamming again, but I've underlooked the message from śrīrāma who
mentioned a workaround: use only lowercase letters in the . Then it works.
I think this bib issue could be downgraded to a low priority.

Le lun. 9 mai 2022 à 18:17, Hans Hagen via ntg-context 
a écrit :

> On 5/9/2022 5:54 PM, mf via ntg-context wrote:
> > I'm downloading it and I see a lot of mkii files and even some Ruby
> files.
> >
> > It looks like some old material got into the update. Is everything right?
> hm, i'm on a different laptop now so maybe some program is not yet
> installed, i'll check 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
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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-09 Thread Alexandre Christe via ntg-context
Sadly I have to report the bibliography is still broken. Could someone else
confirm? It's an unfortunate timing since I need to hand in some report
really soon.

Le lun. 9 mai 2022 à 17:56, mf via ntg-context  a
écrit :

> I'm downloading it and I see a lot of mkii files and even some Ruby files.
>
> It looks like some old material got into the update. Is everything right?
>
> Massi
>
> Il 09/05/22 17:41, Hans Hagen via ntg-context ha scritto:
> > 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.
> >
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] new upload

2022-04-21 Thread Alexandre Christe via ntg-context
Hi Hans,

While the typesetting issue in Metafun disappeared, another popped up in
the bibliography.

For an entry with \usebtxdefinitions[apa], it is printing ": [author:
Robert L. Boylestad] [date-added: 2022-04-15 14:43:59 +0200]
[date-modified: 2022-04-15 14:45:15 +0200] [edition: 13e] [publisher:
Pearson] [title: Introductory Circuit Analysis] [year: 2016]" in the
resulting pdf.

I should add that it seems independent from the btx format.

Le mer. 20 avr. 2022 à 10:50, Hans Hagen via ntg-context 
a écrit :

> On 4/20/2022 3:47 AM, śrīrāma wrote:
> > On 4/19/22 11:53 PM Hans Hagen via ntg-context wrote:
> >> I uploaded a new lmtx. Some more adaptive magic ... I'm not sure how
> >> usefull it is but users always find ways to apply such things. I
> >> attached a test file.
> >
> > Hi Hans,
> >
> > Thanks very much for the upload and the tutorial on 'adaptive'. It seems
> very
> > impressive and right away, one application which I could think of in my
> case
> > is its use in denoting prosodic elements in verses (of poems). For this
> > purpose I was using \definebar, \setupbar so far to indicate certain
> types of
> > elements of verses; now I think this being far more advanced might be
> more
> > applicable.
> if you need more control / features it can probably be provided
>
> 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] 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] new upload

2022-01-15 Thread Alexandre Christe via ntg-context
Just came across a weird behavior with the latest upload.

The following doesn't print as it should
\startformula 4^{2x} - 4^x - 25 = 0 \stopformula

I don't think it's normal (I see the spacing to make room for anything that
comes after the first character in the exposant, but it is not printed).

Le sam. 15 janv. 2022 à 13:31, Hans Hagen via ntg-context <
ntg-context@ntg.nl> a écrit :

> On 1/15/2022 12:33 PM, hanneder--- via ntg-context wrote:
> >> - We added indic language patterns ad well as defined the languages
> >> but labels are on the todo as are conversions; kauśika is working on
> >
> > Perhaps the following notes are useful.
> >
> > 1. The simplest way, and what I was talking about, is to write and print
> > Sanskrit in
> > transliteration.
> >
> > ānandaḥ -> ānandaḥ
> >
> > 2. Then we can of course write and print the same word in the usual
> > Indian Script (Devanāgarī)
> >
> > आनन्दः  ->  आनन्दः
> >
> > 3. But for academic use, one wants an input in roman (e-text are usually
> > in roman), and the option
> > to have an output in Devanāgarī)
> >
> > ānandaḥ ->  आनन्दः
> >
> > For this an option with the transliterator would be required, I guess(?)
> >
> > Theoretically one could write Sanskrit in many scripts -- it has been
> > written
> > with many Indian scripts in history --, but I am wondering about the
> > practical value of this.
> > For imitating historic prints it would no doubt be nice, but not urgent.
> >
> > I was not aware of the hyphenation patterns by Yves Codet, if they work,
> > they would cover case 1
> > and 2. And I just heard from a colleague that the latest babel version
> > is incorporating a Sanskrit option
> > that might cover the same ground (I am not sure whether this is useful).
> >
> > Thanks a lot! I just have to learn more about ConTeXt to able to use it:)
>
> does the attached sort of what you want
>
> 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] Status of Asymptote

2021-12-06 Thread Alexandre Christe via ntg-context
Dear all,

I'd like to know what is the status of Asymptote in Context. To my
knowledge, metapost/metafun only support 2D (except with the additional
libraries from Roegel, which would have to be cleaned up a bit).

Otherwise, what shall be used for 3D drawings in Context? TikZ? Something
else?

Thanks in advance.

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
___


[NTG-context] Sum and mathalignment

2021-11-30 Thread Alexandre Christe via ntg-context
Dear list,

[image: image.png]

What I've done is to play with mathalignment and \framed. Here is a MWE:

\starttext
\defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}]

\framed[frame=off,background=midrule,boffset=.65cm]{\startformula

\startmathalignment[n=12,align={middle,middle,middle,middle,middle,middle,middle,middle,middle,middle,middle,middle}]
\NC \NC S_6 \NC= \NC 1 \NC+ \NC 2 \NC+ \NC\dots \NC+ \NC 5 \NC+ \NC 6
\NR
\NC + \NC S_6 \NC= \NC 6 \NC+ \NC 5 \NC+ \NC\dots \NC+ \NC 2\NC+ \NC 1
\NR
\NC\NC 2S_6 \NC= \NC 7 \NC+ \NC 7 \NC+ \NC\dots \NC+ \NC 7 \NC+ \NC 7
\NR
  \stopmathalignment
\stopformula}
\stoptext

Is there a simpler way to typeset something like this?

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 / http://www.ntg.nl/mailman/listinfo/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] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Alexandre Christe via ntg-context
Dear all,

I'm trying something out in LMTX, which is to combine itemize with a table.
Application could be to put a question and the answer in the next column.

A minimal example would be:

\starttext
\startitemize [a] [right=),stopper=]
\bTABLE[frame=off]
  \setupTABLE[column][1] [width=.3\textwidth]
  \setupTABLE[column][2] [width=.6\textwidth]
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\bTR
  \bTD \item Something \eTD
  \bTD Something \eTD
\eTR
\eTABLE
\stopitemize
\stoptext

The numbering unfortunately starts with i) instead of a). Any
recommendation which approach shall be preferred?

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 / http://www.ntg.nl/mailman/listinfo/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 font tips and tricks

2021-11-06 Thread Alexandre Christe via ntg-context
Dear all,

I'd like to know how best to work with font features regarding adaptations
of math fonts.

For example, let's assume I'd like to use Minion Pro also for math
typesetting. I've referred myself to this page of the Wiki
https://wiki.contextgarden.net/Command/definefontfallback. I have tried the
following, but it fails for greek letters in math mode.

\definefallbackfamily
 [mainface] [math] [Minion Pro]

 
[range={math:lowercaseitalic,math:uppercaseitalic,math:lowercasenormal,math:uppercasenormal},force=yes]
\definefallbackfamily
 [mainface] [math] [Minion Pro]

 
[range={math:lowercasegreekitalic,math:uppercasegreekitalic,math:lowercasegreeknormal,math:uppercasegreeknormal},force=yes]
\definefallbackfamily
 [mainface] [math] [Minion Pro]
 [range=math:digitsnormal,features=f:lining,force=yes]
\definefontfamily [mainface] [math] [Libertinus Math]

Thanks in advance for your support.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] undefined command in current latest

2021-10-11 Thread Alexandre Christe via ntg-context
Update: after updating Context again today the issue is gone.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/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] undefined command in current latest

2021-10-11 Thread Alexandre Christe via ntg-context
Indeed I can report similar issues with \getmarking after updating to the 
latest version of Context. Did something change regarding its definition / use 
recently?

context -version
mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkiv/context.mkiv
mtx-context | current version: 2021.10.08 20:18
mtx-context | main context file: 
/Users/aleks/context-osx-64/tex/texmf-context/tex/context/base/mkxl/context.mkxl
mtx-context | current version: 2021.10.08 20:18

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
___