[NTG-context] Re: Question to a formular

2024-01-05 Thread Ursula Hermann
Dear Aditya,


Many thanks for your help.


Uschi


Von: Aditya Mahajan 
Gesendet: Freitag, 5. Jänner 2024 15:20:46
An: mailing list for ConTeXt users
Betreff: [NTG-context] Re: Question to a formular

On Fri, 5 Jan 2024, Ursula Hermann wrote:

> Dear list,
>
>
> I have this formular, but no idea , how to write it in Context. This is a 
> formular  with  factorial.
>
>
> 0! := 1
> (n + 1)! := (n + 1) n!
>
> Can someone help me please?

\starttext
\startformula \startalign
  \NC 0! \NC \colonequals 1 \NR
  \NC (n+1)! \NC \colonequals (n+1) n! \NR
\stopalign \stopformula
\stoptext

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] Re: Question to a formular

2024-01-05 Thread Taco Hoekwater


> On 05/01/2024 14:27, Ursula Hermann wrote:
> 
>> Can someone help me please?
> 
> 
> \starttyping
> 0! := 1
> (n + 1)! := (n + 1) n!
> \stoptyping

Or:

\startformula 
\startalign[n=1,align={1:left}]
\NC 0! := 1\NR
\NC (n + 1)! := (n + 1) n!\NR
\stopalign
\stopformula

https://wiki.contextgarden.net/Multiline_equations


___
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: Question to a formular

2024-01-05 Thread Aditya Mahajan
On Fri, 5 Jan 2024, Ursula Hermann wrote:

> Dear list,
> 
> 
> I have this formular, but no idea , how to write it in Context. This is a 
> formular  with  factorial.
> 
> 
> 0! := 1
> (n + 1)! := (n + 1) n!
> 
> Can someone help me please?

\starttext
\startformula \startalign
  \NC 0! \NC \colonequals 1 \NR
  \NC (n+1)! \NC \colonequals (n+1) n! \NR
\stopalign \stopformula
\stoptext

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
___


[NTG-context] Re: Question to a formular

2024-01-05 Thread vm via ntg-context



On 05/01/2024 14:27, Ursula Hermann wrote:



This is a formular  with  factorial.


0! := 1
(n + 1)! := (n + 1) n!


this looks more like a code example than a math formula




Can someone help me please?



\starttyping
0! := 1
(n + 1)! := (n + 1) n!
\stoptyping
___
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] Question to a formular

2024-01-05 Thread Ursula Hermann
Dear list,


I have this formular, but no idea , how to write it in Context. This is a 
formular  with  factorial.


0! := 1
(n + 1)! := (n + 1) n!

Can someone help me please?

Many thanks

Uschi

PS: Wishing  you all a happy new Year.

___
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: Metapost: draw only subpath; changing thickness of line

2024-01-05 Thread Taco Hoekwater
Hi,

Here is 'a' way to draw the subpath, at least. I do not have time to come up 
with a nice “thicker in the middle” solution.

Best wishes,
Taco


\startMPcode
numeric u; u=1cm;
%equiangular spiral
numeric a, k ;
a = 2.3; %scaling factor
k = 8.61722335;
path S;
S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor;
draw S;

z1 = 8 dir -14;
path A; A = origin -- z1 scaled 0.7u ;%  draw A;
pair AEndPoint; AEndPoint = point 1 of A;
pair gong[], times; numeric n; n = 0;
numeric gongtimes[]; % new
for i = 1 upto length(A):
 for j = 1 upto length(S):
   times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S;
   if xpart times > -1:
 gong[incr n] = 1[point xpart times of subpath (i-1,i) of A,
 point ypart times of subpath (j-1,j) of S];
 gongtimes[n] = j-1 + ypart times;  % new
  fi
 endfor
endfor

% new
path H; H = subpath(gongtimes[6],gongtimes[7]) of S;
lH = length(H);
for i = 1 upto 100:
draw (subpath((i-1)/100*lH, i/100* lH) of H) withcolor red  withpen 
(pencircle scaled(abs(abs(i-50)-50)/10)) ;
endfor;

\stopMPcode


> On 5 Jan 2024, at 09:56, Emanuel Han via ntg-context  
> wrote:
> 
> Hi all, 
> 
> I have this MWE. Now I want to draw only the subpath of S between gong6 and 
> gong7 with a red line which is narrower at the two ends and thicker in the 
> middle part. How to achieve this?
> 
> Thanks!
> Emanuel
> 
> \setuppapersize[A4,landscape]
> 
> \starttext
> 
> \startMPcode
> numeric u; u=1cm;
> %equiangular spiral
> numeric a, k ; 
> a = 2.3; %scaling factor
> k = 8.61722335; 
> path S; 
> S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor;
> draw S;
> 
> z1 = 8 dir -14;
> path A; A = origin -- z1 scaled 0.7u ; draw A;
> pair AEndPoint; AEndPoint = point 1 of A;
> pair gong[], times; numeric n; n = 0;
> for i = 1 upto length(A):
>  for j = 1 upto length(S):
>times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S;
>if xpart times > -1:
>  gong[incr n] = 1/2[point xpart times of subpath (i-1,i) of A,
>  point ypart times of subpath (j-1,j) of S];
>   fi 
>  endfor
> endfor
> 
> dotlabel.rt ("$gong6$", gong6);
> dotlabel.rt ("$gong7$", gong7);
> 
> %Now I want to draw only the subpath of S between gong6 and gong7 with a red 
> line which is narrower at the two ends and thicker in the middle part
> 
> \stopMPcode
> 
> \stoptext
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
> ___

— 
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 / 
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] Metapost: draw only subpath; changing thickness of line

2024-01-05 Thread Emanuel Han via ntg-context
Hi all,

I have this MWE. Now I want to draw only the subpath of S between gong6 and 
gong7 with a red line which is narrower at the two ends and thicker in the 
middle part. How to achieve this?
Thanks!
Emanuel

\setuppapersize[A4,landscape]
\starttext
\startMPcode
numeric u; u=1cm;
%equiangular spiral
numeric a, k ;
a = 2.3; %scaling factor
k = 8.61722335;
path S;
S = right for t=1 upto 360: .. a ** (t/50.2) * dir (-k*t) endfor;
draw S;

z1 = 8 dir -14;
path A; A = origin -- z1 scaled 0.7u ; draw A;
pair AEndPoint; AEndPoint = point 1 of A;
pair gong[], times; numeric n; n = 0;
for i = 1 upto length(A):
for j = 1 upto length(S):
times := subpath (i-1,i) of A intersectiontimes subpath (j-1,j) of S;
if xpart times > -1:
gong[incr n] = 1/2[point xpart times of subpath (i-1,i) of A,
point ypart times of subpath (j-1,j) of S];
fi
endfor
endfor

dotlabel.rt ("$gong6$", gong6);
dotlabel.rt ("$gong7$", gong7);

%Now I want to draw only the subpath of S between gong6 and gong7 with a red 
line which is narrower at the two ends and thicker in the middle part
\stopMPcode
\stoptext___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.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: Solaris 11 SPARC Support [SEC=OFFICIAL]

2024-01-05 Thread Hans Hagen via ntg-context

On 1/5/2024 12:54 AM, Michael Wigston via ntg-context wrote:

Hi,

Would you consider supporting Solaris 11 on SPARC?

Alternatively if you could provide documentation how to build Context on 
"SunOS sun4v" hardware would also be beneficial.


I have compiled luametatex, but getting below error when trying to 
create cache and not sure if this is a compatibility issue.


bin/custom# ./mtxrun --generate

startup error : no format file given, quitting

You can create a tex tree with:

  http://lmtx.pragma-ade.nl/install-lmtx/installation.pdf
  http://lmtx.pragma-ade.nl/install-lmtx/texmf.zip
  http://lmtx.pragma-ade.nl/install-lmtx/texmf-context.zip

and then populate

  /tex/texmf-solaris/bin

and proceed as described in the manual. Or you can install on another 
machine and replace the bins there by yours.


Basically 'support' means a tree where the binary resorts,

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
___