[NTG-context] Re: Fwd: Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
I've found my original file and the image is as Hraban says below. The 
code is the original in the post I quoted  and gives a green background 
with shaded colours in the text.


Best Wishes

Keith

On 07/04/2024 18:42, Henning Hraban Ramm wrote:

Am 07.04.24 um 19:05 schrieb Hans Hagen:

\startMPpage
 picture tt ; tt := lmt_outline [
 kind = "fillup",
 text = "\definedfont[name:texgyrepagellabold*default]foo f o 
o",

 ] xsized 12cm ;

 path bb ; bb := boundingbox tt ;
 path pp ; pp := bb enlarged 2cm ;

 fill pp
 withshademethod "linear"
 withshadedirection down
 withshadecolors (red, blue) ;

 draw tt withcolor green ;
\stopMPpage

no need to loop over tt


But the intention was to get a gradient _within_ the text.

Might there be a problem with the latest changes to gradients?

Hraban

___ 

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


maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net 
(mirror)

archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___ 


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

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


[NTG-context] Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
Not for me either. I used it somewhere so I'll need to look back in my 
files.


Keith

On 07/04/2024 17:41, Henning Hraban Ramm wrote:

Am 07.04.24 um 15:51 schrieb Keith McKay:
Have a look at the posts starting on the 2 March 2021 with the 
subject heading "Shaded Large Letters in LMTX". Hans gave a great 
solution.


Neither for the example in
https://mailman.ntg.nl/archives/list/ntg-context@ntg.nl/message/SNL5YJ3NKZNFYAPG3MCZXA2363GWEJA3/ 


nor for that in
https://wiki.contextgarden.net/Cover_Pages#Empty_or_Transparent_letters
I get any text in the gradient box. The font is loaded.

Does it work for you?

(ConTeXt LMTX 2024.04.01 08:59 with self-compiled binary)
Hraban

___ 

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


maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net 
(mirror)

archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___ 


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

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


[NTG-context] Re: how to apply gradient color to a piece of text?

2024-04-07 Thread Keith McKay
Have a look at the posts starting on the 2 March 2021 with the subject 
heading "Shaded Large Letters in LMTX". Hans gave a great solution.


Best Wishes

Keith

On 07/04/2024 11:48, seyal.zav...@gmail.com wrote:

hi all,

when i look at luametafun manual there are some intresting examples that can 
apply gradient colors to metapost paths.
how i can apply this cool feature to a piece of text?

i tried the code below but it does not produce any result.

\definecolor[Gleft] [h=9f9393]
\definecolor[Gright] [h=ff1aa4]
\startMPpage
picture Mytext;
Mytext := btex hello etex;

draw lmt_shade [
picture="Mytext",
direction = "right",
domain= { 0, 2 },
colors= { "headerGleft", "headerGright" },
] ;
\stopMPpage
___
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: OT: San Seriffe

2024-04-01 Thread Keith McKay

Shurely Shome Mishtake. It should be grauniad_sans!

https://wordhistories.net/2017/06/05/origin-of-grauniad/

Keith

On 01/04/2024 15:45, Henning Hraban Ramm wrote:

Am 01.04.24 um 16:34 schrieb Hans Hagen via ntg-context:

On 4/1/2024 3:56 PM, Henning Hraban Ramm wrote:

in honour of Knuth and the current occasion:
https://realdougwilson.com/writing/san-serriffe

the subject title suggest that you found an open type version


Well, I found one, but it‘s not free:
https://commercialtype.com/catalog/guardian_sans

Hraban

___ 

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


maillist : ntg-context@ntg.nl / 
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net 
(mirror)

archive  : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___ 


___
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: lmt_shade fails

2024-02-20 Thread Keith McKay

Thanks Hans!

Keith

On 19/02/2024 19:35, Hans Hagen wrote:

On 2/19/2024 7:10 PM, Keith McKay wrote:
Thanks for the reply Fabrice. Looks like something changed in the 
recent update. I'm sure Hans will pick it up.
next upload (when mid cycles were introduced we lost an end one in 
some cases)


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
___ 


___
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: lmt_shade fails

2024-02-19 Thread Keith McKay
Thanks for the reply Fabrice. Looks like something changed in the recent
update. I'm sure Hans will pick it up.
Best wishes
Keith McKay


On Mon, 19 Feb 2024, 13:21 Fabrice L,  wrote:

> Dear Keith,
>
> Le 18 févr. 2024 à 11:44, Keith McKay  a écrit :
>
> Hi all
>
> I went to use the lmt_shade function and it fails with two error messages.
> the first one is:
> *metafun > log > error: Not a cycle*
> followed by lots of trace messages, then:
> *metafun > log > That contour should have ended with '.. cycle' or '&
> cycle'. So I'll not change*
> *anything just now.*
> The MWE I used is as follows:
> \starttext
> \startMPpage
> definecolor [ name = "MyColor3", r = uniformdeviate(1), g =
> uniformdeviate(1), b = uniformdeviate(1) ] ;
> definecolor [ name = "MyColor4", r = uniformdeviate(1), g =
> uniformdeviate(1), b = uniformdeviate(1) ] ;
> draw lmt_shade [
> path = fullsquare scaled 5cm,
> direction = "up",
> alternative = "linear",
> colors = { "red", "green" },
> ];
> \stopMPpage
> \stoptext
>
>  I'm using:
>
> *system  > ConTeXt  ver: 2024.02.14 13:38 LMTX  fmt: 2024.2.15
> int: english/english*
>
> on a mac mini M1.
>
> Any thougths?
>
>
> On an Mac running  ConTeXt  ver: 2023.09.26 18:19 LMTX  fmt: 2023.12.11 ,
> this works perfectly.
>
> Best wishes
>
> Keith McKay
>
> Fabrice.
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
> archive  : https://github.com/contextgarden/context
> wiki : https://wiki.contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] lmt_shade fails

2024-02-18 Thread Keith McKay

Hi all

I went to use the lmt_shade function and it fails with two error 
messages. the first one is:


/metafun > log > error: Not a cycle/
followed by lots of trace messages, then:
/metafun > log > That contour should have ended with '.. cycle' or '& 
cycle'. So I'll not change/

/anything just now./
//
The MWE I used is as follows:
\starttext
\startMPpage
definecolor [ name = "MyColor3", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;
definecolor [ name = "MyColor4", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;

draw lmt_shade [
path = fullsquare scaled 5cm,
direction = "up",
alternative = "linear",
colors = { "red", "green" },
];
\stopMPpage
\stoptext

 I'm using:

/system  > ConTeXt  ver: 2024.02.14 13:38 LMTX  fmt: 2024.2.15  
int: english/english/


on a mac mini M1.

Any thougths?

Best wishes

Keith McKay
___
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] ConTeXt Group Subscriptions

2023-11-18 Thread Keith McKay

Hi,

I was wondering if the reminder for the ConTeXt Group Membership 
subscriptions had been sent out? It's been over a year since I took out 
membership and I thought I would have had a reminder by now. I hope I 
haven't missed the email.


Best Wishes

Keith McKay

___
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: Gray gradient with Metapost

2023-10-07 Thread Keith McKay

Hi Fabrice,

You could define you own shades of gray (I believe there are at least 
50) by adjusting the rgb values as I've shown below.


definecolor [ name = "verylightgray", r = 0.995, g = 0.995, b = 0.995 ] ;

definecolor [ name = "lightergray", r = 0.55, g = 0.55, b = 0.55 ] ;

draw lmt_shade [

path = (z0--z4--z5--z1--cycle),

direction = "left",

alternative = "linear",

colors = {"lightergray", "verylightgray"},

] xshifted 5cm;

I added it to your code after the lines:

draw z0--z4--z3--cycle;

draw z1--z5--z2--cycle;

draw rectangle;

Hope this helps.

Best Wishes

Keith

On 07/10/2023 16:54, Fabrice Couvreur wrote:

Hi,
Sorry for the late response. Thanks for the help. So I read the 
documents and managed to get a gradient even if it's not exactly like 
the figure.

Fabrice

draw lmt_shade [
              path = (z0--z4--z5--z1--cycle),
              direction = "left",
              alternative = "linear",
              colors = {"black", "lightgray"},
            ] ;

Le ven. 6 oct. 2023 à 08:27, Henning Hraban Ramm  a 
écrit :


While the luametafun (“Metafun XL”) manual is also (meta)fun, I meant
the general metafun(-s|-p) manual, the big one (>400 p. in the
“print”
    version, >600 p. in the “screen” version). Recommended!

Hraban

Am 06.10.23 um 10:08 schrieb Keith McKay:
> Also look at the LuaMetaFun manual chapter 8. In fact the whole
manual
> is worth a read. I'm sure you find much of use in it.
> Best Wishes
> Keith
>
> On Thu, 5 Oct 2023, 20:52 Henning Hraban Ramm,  <mailto:te...@fiee.net>> wrote:
>
>     Am 05.10.23 um 21:50 schrieb Fabrice Couvreur:
>      > Hi,
>      > I would like to obtain, if possible, a gray gradient like
in the
>     image.
>      > My code uses Metapost but maybe this is possible with
Metafun.
>
>     Have a look into the Metafun manual, chapter 8.1 “shading”.
>
>     Hraban


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

maillist : {listname} /
https://mailman.ntg.nl/mailman3/lists/{list_id}
<https://mailman.ntg.nl/mailman3/lists/%7Blist_id%7D>
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 : {listname} /https://mailman.ntg.nl/mailman3/lists/{list_id}
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 : {listname} / https://mailman.ntg.nl/mailman3/lists/{list_id}
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: Gray gradient with Metapost

2023-10-06 Thread Keith McKay
Also look at the LuaMetaFun manual chapter 8. In fact the whole manual is
worth a read. I'm sure you find much of use in it.
Best Wishes
Keith

On Thu, 5 Oct 2023, 20:52 Henning Hraban Ramm,  wrote:

> Am 05.10.23 um 21:50 schrieb Fabrice Couvreur:
> > Hi,
> > I would like to obtain, if possible, a gray gradient like in the image.
> > My code uses Metapost but maybe this is possible with Metafun.
>
> Have a look into the Metafun manual, chapter 8.1 “shading”.
>
> Hraban
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : {listname} / https://mailman.ntg.nl/mailman3/lists/{list_id}
> 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 : {listname} / https://mailman.ntg.nl/mailman3/lists/{list_id}
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: MAPS nr 53

2023-08-22 Thread Keith McKay
Would it be possible to list the contents to whet our appetites?
Best Wishes
Keith McKay

On Tue, 22 Aug 2023, 18:43 luigi scarso,  wrote:

>
> An unmissable issue of MAPS, totally dedicated to MetaPost by Taco.
> Once free I will put it in the mp repository.
>
> --
> luigi
>
> ___
> 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: zint 2.12.0 barcode generator

2023-08-21 Thread Keith McKay
Apologies. I realised late last night that I had forgotten to update the 
paths zint in my shell and after doing that this morning all now works.


Apologies again.

Thanks for the help.

Keith

On 20/08/2023 22:05, Bruce Horrocks wrote:

On 20 Aug 2023, at 17:28, Keith McKay  wrote:

Hi all,

I've updated the zint barcode generator on my mac mini to 2.12.0 and now no 
barcode is produced. I have this vague recollection that it is only the 2.10.0 
version of zint which works in ConTeXt. If I am correct, is ConTeXt likely to 
be updated so that 2.12.0 works?  I originally installed zint with Homebrew. 
There is a very complicated thread on stackoverflow on how to downgrade to 
previous versions of a formula in homebrew, but it is far too complicated for 
my wee brain.

zint 2.12.0 works for me on an x64 Mac mini using ConTeXt ver: 2023.08.10 02:59

Following the instructions here <https://wiki.contextgarden.net/Barcodes>

1) I had to create the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint
2) I symbolic linked directly to the homebrew created libzint library

$ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint
$ ln -s /usr/local/Cellar/zint/2.12.0/lib/libzint.dylib libzint.so

3) Then
$ cd ~
$ mtxrun --generate

4) and the sample file

\usemodule[zint]
\starttext
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\stoptext

produced a barcode.

—
Bruce Horrocks
Hampshire, UK

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

maillist : ntg-context@ntg.nl / https://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: zint 2.12.0 barcode generator

2023-08-20 Thread Keith McKay
Thanks Michal!
I'll give this a try over the next few days and report back.
Best wishes
Keith

On Sun, 20 Aug 2023, 18:38 Michal Vlasák,  wrote:

> On Sun Aug 20, 2023 at 6:28 PM CEST, Keith McKay wrote:
> > Hi all,
> >
> > I've updated the zint barcode generator on my mac mini to 2.12.0 and now
> > no barcode is produced. I have this vague recollection that it is only
> > the 2.10.0 version of zint which works in ConTeXt. If I am correct, is
> > ConTeXt likely to be updated so that 2.12.0 works?  I originally
> > installed zint with Homebrew. There is a very complicated thread on
> > stackoverflow on how to downgrade to previous versions of a formula in
> > homebrew, but it is far too complicated for my wee brain.
>
> Hans updated ConTeXt to account for 2.12.0 already in April, so it
> should work, but maybe there is some subtle error (like there was when
> we upgraded to 2.11).
>
> Unfortunately I am unable to take a closer look until the end of the
> month. In the meantime can you please try to compile the library
> yourself? Here are the instructions:
>
> https://github.com/contextgarden/luametatex-optional-libraries
>
> I.e. on Linux (please adjust for macOS):
>
> git clone --recursive
> https://github.com/contextgarden/luametatex-optional-libraries.git
> cd luametatex-optional-libraries
> cmake -S . -B build -DCMAKE_BUILD_TYPE=Release
> cmake --build build -j4
> cp build/libzint.so
> /path/to/context/tex/texmf-linux-64/bin/lib/luametatex/libs/libzint.so
>
> The repository is still based on zint 2.11, I will update it to 2.12
> after I confirm that it works.
>
> Michal
>
> ___
> 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] zint 2.12.0 barcode generator

2023-08-20 Thread Keith McKay

Hi all,

I've updated the zint barcode generator on my mac mini to 2.12.0 and now 
no barcode is produced. I have this vague recollection that it is only 
the 2.10.0 version of zint which works in ConTeXt. If I am correct, is 
ConTeXt likely to be updated so that 2.12.0 works?  I originally 
installed zint with Homebrew. There is a very complicated thread on 
stackoverflow on how to downgrade to previous versions of a formula in 
homebrew, but it is far too complicated for my wee brain.


Thanks

Keith McKay

___
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: your opinion about list structures

2023-08-10 Thread Keith McKay

Hi Hraban

Here are my thoughts on your ConTeXt Book.

[TOC] Definitely only show Chapters and Appendices. A list of sections 
could go under the Chapter Title, it would more useful there. I don't 
think there is also a need include sub-sections, (if you have them) it 
could make the list inordinately long.


[Registers] My own preference would be a command and a topic index if 
only for convenience sake.


[Glossary] I don't think an index of abbreviations is necessary if they 
are already in the index.


[Other Lists] I don't think a list of colours is necessary, you could 
just point them to the wiki.


Just my thoughts, and I look forward to read the English version of your 
book. (smiling)


Best Wishes

Keith McKay

p.s. It's been so long since I worked with technical books that I would 
have to blow the dust off them.


On 10/08/2023 14:21, Henning Hraban Ramm wrote:

Hi, this is about my ConTeXt book again…

[ToC]

At the moment, my table of contents has chapters and sections and is 8 
pages long. I would probably hardly use it.


Maybe it would be better to show only chapters (29 content + 12 
appendix = 2 pages) and include a list of sections after the chapter 
title (or not at all).


[Registers]

I split between command and topic index (9 pages each), because I find 
it annoying to have the commands between the topics.
I also include the topics that are mentioned in titles in the index, 
because I hate it if I must look in two places.

(Otherwise I wouldn’t think about omitting the sections from the ToC.)

At the moment there‘s also an index of todo items, but that will 
disappear before print.


[Glossary]

There’s a short dictionary of technical terms in the appendix (8.5 
p.). Each lemma is also included in the index.


Should I add a list of abbreviations? (TDS, TEI, OCG, RAL, PDF, SVG…?)
They’re in the index and explained where they matter – I don’t think 
the meaning of many abbreviations like file types is important.


[Other lists]

Should I include a list of colors, like the output of 
\showcolor[crayola]? (I think it would only bloat the book, and 
everyone can create the list themselves.)


I have lists of supported languages (should get checked), fonts in the 
distribution and all math fonts, because these are not easily 
reproducible (AFAIK).



So, what do you think, and how do you like to work with technical books?
What kind of information (about ConTeXt or documents/printing in 
general) do you find hard to find?


Hraban
___ 

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


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

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

___
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: Tracker for hyphens at the end of lines

2023-08-01 Thread Keith McKay

Thanks Hans!

I'm never disappointed, always amazed with ConTeXt!

This is just what I was looking for.

Best Wishes

Keith McKay

On 01/08/2023 18:10, Hans Hagen via ntg-context wrote:

On 8/1/2023 4:54 PM, Keith McKay wrote:

Hi colleagues,

Is there a tracker for highlighting hyphens at the end of lines 
similar the way underfull and overfull boxes can be displayed with a 
coloured bar at the end of the offending line?


I have looked at the wiki page "Reviewing hyphenation" and it has a 
solution for mkii from 2009 which, I would think, won't be suitable  
for present day ConTeXt. I have tried searching for hyphens using 
Skim and Adobe Acrobate viewers but although they find hyphenation in 
line they don't recognise hyphens at the edge of lines.


Any help would be appreciated.

I suppose you would be disappointed it there was no tracker ...

\enabletrackers[hyphenation.applied.console]
\enabletrackers[hyphenation.applied.visualize]

you even get a file with the hyphenated words

You can see all of them with

\disabledirectives[backend.cleanup.flatten]
\bitwiseflip \normalizelinemode -\flattendiscretionariesnormalizecode
\showmakeup[discretionary]

weren't it that i had to provide the directive for this to work well 
(disbale flattening) so for that you have to wait till we update


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] Tracker for hyphens at the end of lines

2023-08-01 Thread Keith McKay

Hi colleagues,

Is there a tracker for highlighting hyphens at the end of lines similar 
the way underfull and overfull boxes can be displayed with a coloured 
bar at the end of the offending line?


I have looked at the wiki page "Reviewing hyphenation" and it has a 
solution for mkii from 2009 which, I would think, won't be suitable  for 
present day ConTeXt. I have tried searching for hyphens using Skim and 
Adobe Acrobate viewers but although they find hyphenation in line they 
don't recognise hyphens at the edge of lines.


Any help would be appreciated.

Keith McKay

___
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: Par Builder Tests

2023-07-30 Thread Keith McKay
Hraban's suggestion works really well. I setup hyphenation rules for the 
underfull boxes of Russian names and reduced the \tolerance to 600.  I'm 
now down to about 20 underfull boxes which to my eyes look fine.


Thanks again Hraban

Best Wishes

Keith

On 28/07/2023 19:20, Keith McKay wrote:


Thanks Hraban, didn't think of that so will give it a try.
Best Wishes
Keith


On Fri, 28 Jul 2023, 17:28 Henning Hraban Ramm,  wrote:

Am 28.07.23 um 17:04 schrieb Keith McKay:
> I played around with the setups for the align:pass:test4 code
below, as
> Hans suggested, and it was changing the \tolerance value which
made the
> difference. Increasing the \tolerance value to 1000 eliminated all
> overfull hboxes but still left 79 underfull hboxes. I continued to
> increase the \tolerance value up to 6600 and was left with two
overfull
> hboxes. One with a badness of 6641 (warAndPeace1.png) and one
with a
> badness of 1097 (warAndPeace2.png). Above the \tolerance of 6600
only
> warAndPeace2.png was left with a badness of 1097. Both of these
> underfull hboxes were at the beginning of a paragraph - "To his
Honor"
> in the first png and "Well, you see," in the second png. I not
sure a
> reader would spot the second png badness but the first is
noticeable to
> my eyes.

Hi Keith,
since both cases are caused by names with accents, did you try to add
hyphenation exceptions for those? Such cases are probably not
covered by
English hyphentation rules.

Hraban


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

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

___
___
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: Par Builder Tests

2023-07-28 Thread Keith McKay
Thanks Hraban, didn't think of that so will give it a try.
Best Wishes
Keith


On Fri, 28 Jul 2023, 17:28 Henning Hraban Ramm,  wrote:

> Am 28.07.23 um 17:04 schrieb Keith McKay:
> > I played around with the setups for the align:pass:test4 code below, as
> > Hans suggested, and it was changing the \tolerance value which made the
> > difference. Increasing the \tolerance value to 1000 eliminated all
> > overfull hboxes but still left 79 underfull hboxes. I continued to
> > increase the \tolerance value up to 6600 and was left with two overfull
> > hboxes. One with a badness of 6641 (warAndPeace1.png) and one with a
> > badness of 1097 (warAndPeace2.png). Above the \tolerance of 6600 only
> > warAndPeace2.png was left with a badness of 1097. Both of these
> > underfull hboxes were at the beginning of a paragraph - "To his Honor"
> > in the first png and "Well, you see," in the second png. I not sure a
> > reader would spot the second png badness but the first is noticeable to
> > my eyes.
>
> Hi Keith,
> since both cases are caused by names with accents, did you try to add
> hyphenation exceptions for those? Such cases are probably not covered by
> English hyphentation rules.
>
> Hraban
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
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: Par Builder Tests

2023-07-28 Thread Keith McKay

Hi all!

Using the example below I have completed a test using a larger book. 
This time I downloaded War and Peace from the Gutenberg Project and 
extracted the individual xhtml files for Context.


I played around with the setups for the align:pass:test4 code below, as 
Hans suggested, and it was changing the \tolerance value which made the 
difference. Increasing the \tolerance value to 1000 eliminated all 
overfull hboxes but still left 79 underfull hboxes. I continued to 
increase the \tolerance value up to 6600 and was left with two overfull 
hboxes. One with a badness of 6641 (warAndPeace1.png) and one with a 
badness of 1097 (warAndPeace2.png). Above the \tolerance of 6600 only 
warAndPeace2.png was left with a badness of 1097. Both of these 
underfull hboxes were at the beginning of a paragraph - "To his Honor" 
in the first png and "Well, you see," in the second png. I not sure a 
reader would spot the second png badness but the first is noticeable to 
my eyes.


I'm very pleased how the book has turned out, all 1668 pages of it as an 
approximately 13cm by 20cm book. The pdf is 4MB and each run in ConTeXt 
takes about 10 seconds on my M1 mac mini.


I'm interested in seeing how \setupalignpass develops and learning more 
of how to use it.


Best Wishes

Keith McKay

On 21/07/2023 17:33, Keith McKay wrote:

Thanks Hans!

I'll have a play and keep an eye on updates

Best Wishes

Keith

On 21/07/2023 17:10, Hans Hagen via ntg-context wrote:

Hi Keith,

Here an example that Mikael made for such a book:

\showframe

% let's very strict

\startsetups [*default]

    \directsetup{*reset}

    \frozen\widowpenalty    1
    \frozen\clubpenalty 1
    \frozen\displaywidowpenalty 1
    \frozen\brokenpenalty   0 % \defaultbrokenpenalty

\stopsetups

% we enable the use of expansion (this feature might become preset
% because we now delay setting the vectors anyway so less overhead)

\definefontfeature
  [default]
  [default]
  [expansion=quality,
   protrusion=quality,
   itlc=yes]

% vertical expansion

\setuplayout
  [vz=2]

% for which we need:

% \setupalign[hanging,depth,stretch,granular]

\setupalign[depth,stretch,granular]

% here are the passes:

\startsetups align:pass:test4
    \pretolerance 100
    \tolerance    200
    \parpasses    4
    classes  \indecentparpassclasses
    threshold    0.025pt
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink    5
    adjustspacingstretch  10
    next
    classes  \indecentparpassclasses
    threshold    0.025pt
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink   10
    adjustspacingstretch  20
    next
    classes  \indecentparpassclasses
    threshold    0.025pt
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink   25
    adjustspacingstretch  50
    next
    classes  \indecentparpassclasses
    threshold    0.025pt
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink   50
    adjustspacingstretch 100
    \relax
\stopsetups

\setupalignpass[test4]

\starttext
    ...
\stoptext

(work in progress so keep an eye on updates)

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] Re: Par Builder Tests

2023-07-21 Thread Keith McKay

Thanks Hans!

I'll have a play and keep an eye on updates

Best Wishes

Keith

On 21/07/2023 17:10, Hans Hagen via ntg-context wrote:

Hi Keith,

Here an example that Mikael made for such a book:

\showframe

% let's very strict

\startsetups [*default]

    \directsetup{*reset}

    \frozen\widowpenalty    1
    \frozen\clubpenalty 1
    \frozen\displaywidowpenalty 1
    \frozen\brokenpenalty   0 % \defaultbrokenpenalty

\stopsetups

% we enable the use of expansion (this feature might become preset
% because we now delay setting the vectors anyway so less overhead)

\definefontfeature
  [default]
  [default]
  [expansion=quality,
   protrusion=quality,
   itlc=yes]

% vertical expansion

\setuplayout
  [vz=2]

% for which we need:

% \setupalign[hanging,depth,stretch,granular]

\setupalign[depth,stretch,granular]

% here are the passes:

\startsetups align:pass:test4
    \pretolerance 100
    \tolerance    200
    \parpasses    4
    classes  \indecentparpassclasses
    threshold    0.025pt
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink    5
    adjustspacingstretch  10
    next
    classes  \indecentparpassclasses
    threshold    0.025pt
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink   10
    adjustspacingstretch  20
    next
    classes  \indecentparpassclasses
    threshold    0.025pt
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink   25
    adjustspacingstretch  50
    next
    classes  \indecentparpassclasses
    threshold    0.025pt
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink   50
    adjustspacingstretch 100
    \relax
\stopsetups

\setupalignpass[test4]

\starttext
    ...
\stoptext

(work in progress so keep an eye on updates)

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] Par Builder Tests

2023-07-21 Thread Keith McKay

Hi all,

At the end of June, Hans uploaded a new lmtx version which included 
improvements to par building which he and Mikael had been working on in 
math mode. Hans suggested in the online chat that these improvements may 
be useful in typesetting novels. I was keen to try these since I have 
typset novels in the past.


I have ran some tests on two novels which I downloaded from the 
Gutenberg Project site as epubs and extracted them to get the original 
xhtml files which I then typeset in context. I made very little in the 
way of changes to the files so that my setup for xml was very simple.


Here are my setups for the layout of the novels showing some trackers 
that were used as well:


\definepapersize[pagee][width=5.06in,height=7.81in]
\setuppapersize[pagee]
% XML setups here
\startsetups[grid][mypenalties]
\setdefaultpenalties
\setpenalties\widowpenalties{1}{150}
\setpenalties\clubpenalties {1}{150}
\stopsetups
\setuplayout[
width=10cm,
topspace=0.5in,
backspace=2.0cm,
header=7.5mm,
footer=0.25in,
location={middle,middle},
vs=2,
grid=yes,
setups=mypenalties
]
%\enabletrackers[makeup]
%\enabletrackers[builders.hpack.quality]
\enabletrackers[builders.hpack.overflow]
%\enabletrackers[layout.vz]
%\enabletrackers[paragraphs.passes]
\enabletrackers[paragraphs.passes=summary]
%\enabletrackers[paragraphs.passes=details]
\setupalign[granular]
%\setupalign[nothyphenated,hz,verytolerant]
%\setupalign[vertical,height]
%\setupalignpass[decent]
%\setupalignpass[quality]
%\setupalignpass[test1]
\setupalignpass[test2]
%\setupalignpass[test3]
%\setupalignpass[test4]
%\setupalignpass[test5]
%\setupalignpass[optional1]
%\setupalignpass[test2b]
\starttext
\setuppagenumbering[location={footer,middle},alternative=doublesided,state=start]
\setcounter[userpage][1]
%\showmakeup[vbox]
%\showlayout
\dostepwiserecurse{0}{30}{1}{
\xmlprocessfile{mysetups}{/path to xhtml 
files/4439720318703948998_84-h-\recurselevel.htm.xhtml}{}

}
\stoptext

Below are the result showing the number of overfull boxes for these 
novels using the setups in the file spac-imp-tests.mkxl . See the manual 
Low Level - Lines


Test    Novel1   Novel2
Test1    70    35
Test2    30    8
Test3    62    23
Test4    89    40
Test5    28    9
Optional1 55    19
Quality  74    32
Decent  39    11

From these initial tests one can see that Test2 gave the lowest number 
of overfull boxes. So I edited test two, ran it, and the results are below.


Test    Novel1   Novel2

Test2b  11    0

My setup for test 2b is as follows:
\startsetups align:pass:test2b
    \pretolerance 100
    \tolerance    200
    \parpasses  3
    classes  \indecentparpassclasses
    threshold    0.025pt
    tolerance    800
    extrahyphenpenalty    50
  next
    threshold    0.025pt
    tolerance    900
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink   10
    adjustspacingstretch  15
    next
    threshold    0.025pt
    tolerance    1000
    adjustspacing  3
    adjustspacingstep  1
    adjustspacingshrink   20
    adjustspacingstretch  40
    emergencystretch .25\bodyfontsize
    \relax
% \linebreakpasses\plusone
\stopsetups
The only difference between test 2 and 2b are that I increased the 
tolerance in each of the three passes.
In novel 2 this was successful in eliminating the overfull boxes but not 
in Novel 1 although I noticed that majority of overfull boxes were above 
1pt with the largest about 12pt in Novel 1.


I am at the stage now where I need some kind of strategy to 
reduce/eliminate overfull boxes, other than changing the tolerance, and 
I'm hoping for some advice from the community. Suggestions for further 
reading particularly on the commands in \setupalignpass and their usage 
would be appreciated and on the best way to tackle overfull boxes.


Best Wishes

Keith McKay
___
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: Fatal error using \enabletrackers[paragraphs.passes=summary]

2023-07-11 Thread Keith McKay

Thanks Hans, that works now.

Best Wishes

Keith

On 11/07/2023 10:37, Hans Hagen wrote:

On 7/11/2023 11:11 AM, Keith McKay wrote:

Hi All

Using\enabletrackers[paragraphs.passes=summary] whilst doing some 
testing causes a fatal error after first run but pdf is produced. 
Here is the error message from the MWE:

in spac-pas.lmt in lines 156 and 158 you can change

classes into t.classes

and remake the format after that

Hans

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


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

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

[NTG-context] Fatal error using \enabletrackers[paragraphs.passes=summary]

2023-07-11 Thread Keith McKay

Hi All

Using\enabletrackers[paragraphs.passes=summary] whilst doing some 
testing causes a fatal error after first run but pdf is produced. Here 
is the error message from the MWE:


lua error:

    run callback [6]: bad argument #2 to 'format' (number expected, 
got nil)

stack traceback:
    [C]: in function 'string.format'
    ?: in field '?'
...m64/tex/texmf-context/tex/context/base/mkxl/luat-log.lmt:184: in 
upvalue 'report'
...m64/tex/texmf-context/tex/context/base/mkxl/luat-log.lmt:397: in 
upvalue 'report'
...m64/tex/texmf-context/tex/context/base/mkxl/spac-pas.lmt:156: in 
field '?'
...m64/tex/texmf-context/tex/context/base/mkxl/luat-log.lmt:747: in 
field 'finalactions'
...m64/tex/texmf-context/tex/context/base/mkxl/luat-run.lmt:60: in 
function <...m64/tex/texmf-context/tex/context/base/mkxl/luat-run.lmt:56>


mtx-context | fatal error: return code: 1



Here is the MWE:

\enabletrackers[paragraphs.passes=summary]

\setupalignpass[optional1]

\starttext

\dorecurse{10}{

\input ward

\input knuth

\input darwin

}

\stoptext

%%%

Using the latest version:

ConTeXt ver: 2023.07.09 19:38 LMTX fmt: 2023.7.10 int: english/english

Best Wishes

Keith


___
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: text width shadow background

2023-07-09 Thread Keith McKay
Well this is fun.  Getting the right patterns could make some 
interesting with fonts.


Thanks for the tip Hans!

Best Wishes

Keith McKay

%

\startMPpage
vardef tst (expr x, y, i, n) =
definecolor [ name = "MyColor1", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;
definecolor [ name = "MyColor2", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;

draw lmt_outline [
text = "\TeX",
kind = "both",
fillcolor = "MyColor1",
drawcolor = "MyColor2",
rulethickness = 1/2,
]ysized (30+5*i/n) shifted (10x,10y) 
rotatedaround(origin,uniformdeviate(360));

enddef ;
picture p ; p := lmt_outline [
text = "\bf TEST",
kind = "path",
] scaled 5cm;
path q ; q := for i within p :
if picture i :
pathpart i &&
fi endfor cycle ;
picture r; r:= lmt_poisson [
width = 20,
height = 20,
distance = 1,
count = 10,
macro = "tst"
arguments = 4,
] xsized 6cm ;
draw q
withpattern
r
withpatternscale (1/10,1/3)
;
\stopMPpage

On 09/07/2023 18:37, Hans Hagen via ntg-context wrote:

On 7/9/2023 5:56 PM, Henning Hraban Ramm wrote:

Am 09.07.23 um 15:49 schrieb Keith McKay:

Hraban (and others),

You got me thinking so I added this code to end of your code as a 
bit of fun. It's code from the luametafun manual to which I added 
two and a half lines.


That’s funny.
I replaced the text by \TeX and published it here: 
https://fosstodon.org/@context/110684919994406565


But is it possible to fill a path (e.g. an lmt_outline) with a 
lmt_poisson pattern?

Here's something to get you and Keith starting:

\startMPpage
picture p ; p := lmt_outline [
    text = "\bf TEST",
    kind = "path",
] ;

path q ; q := for i within p :
    if picture i :
    pathpart i &&
    fi endfor cycle ;

draw q
    withpattern
    textext("\TEX")
    withpatternscale (1/20,1/20)
    ;
\stopMPpage

so the trick is to come up with a pattern that has the right size

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] Re: Fwd: Re: text width shadow background

2023-07-09 Thread Keith McKay

Hraban (and others),

You got me thinking so I added this code to end of your code as a bit of 
fun. It's code from the luametafun manual to which I added two and a 
half lines.


Best Wishes

Keith

%%%

\startMPcode
vardef tst (expr x, y, i, n) =
definecolor [ name = "MyColor1", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;
definecolor [ name = "MyColor2", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;

draw lmt_outline [
text = "Ein",
kind = "both",
fillcolor = "MyColor1",
drawcolor = "MyColor2",
rulethickness = 1/2,
]ysized (30+5*i/n) shifted (10x,10y) 
rotatedaround(origin,uniformdeviate(360));

enddef ;
draw lmt_poisson [
width = 20,
height = 20,
distance = 1,
count = 20,
macro = "tst"
arguments = 4,
] xsized 6cm ;
\stopMPcode

On 08/07/2023 15:28, Henning Hraban Ramm wrote:

Am 08.07.23 um 15:14 schrieb Keith McKay:
I played about with the number of shadow layers and added a wee bit 
randomness which gave a nice effect. See the code below and the 
attached png.


Good idea, makes sense for big text – my captions are only 8pt, there 
10 layers are already a lot, and the randomness doesn’t make a 
difference.


For titles, it would be nice to apply lmt_poisson to arbitrary paths.

I wonder what’s possible if we don’t _draw_ lmt_outline but use it as 
a base for more fun…


Hraban
___ 

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


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

webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki : https://contextgarden.net
__
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] Fwd: Fwd: Re: Fwd: Re: text width shadow background

2023-07-09 Thread Keith McKay

Reduced size as requested.
Moderator please delete original message which was greater than 100k
Thanks
Keith McKay

 Forwarded Message 
Subject:Re: [NTG-context] Re: Fwd: Re: text width shadow background
Date:   Sat, 8 Jul 2023 14:14:38 +0100
From:   Keith McKay 
To: 	mailing list for ConTeXt users , Henning Hraban 
Ramm 




I played about with the number of shadow layers and added a wee bit 
randomness which gave a nice effect. See the code below and the attached 
png.


Best Wishes

Keith

%%%

\startMPcode
steps := 30 ; % number of shadow layers
rulesize := BodyFontSize/steps/3;
for step = 1 upto steps:
draw lmt_outline [
text = "\bf\strut #1",
kind = "fillup",
fillcolor = "tshade",
rulethickness = (step*rulesize),
]randomized 3;
endfor;
draw lmt_outline [
text = "\bf\strut #1",
kind = "fillup",
fillcolor = "white",
rulethickness = 0,
];% yshifted (BodyFontSize*2/3); % TODO
\stopMPcode


On 08/07/2023 12:07, Henning Hraban Ramm wrote:

Am 08.07.23 um 11:39 schrieb Hans Hagen via ntg-context:

On 7/8/2023 8:55 AM, Henning Hraban Ramm wrote:
Please, can you explain why the result of lmt_outline is shifted to 
the right, if I use it in a macro?


no time now but you can do this instead of the lmt_text:

 draw lmt_outline [
 text = "\bf\strut #1",
 kind = "fillup",
 fillcolor = "white",
 rulethickness = rulesize,
 ];

(maybe spaces creep in due to loading font files / setups or so)


Thank you!
Yes, this works, and with rulethickness=0 it even looks like I wanted 
it to.


Hraban

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

maillist :ntg-context@ntg.nl  /https://www.ntg.nl/mailman/listinfo/ntg-context
webpage  :https://www.pragma-ade.nl  /http://context.aanhet.net
archive  :https://bitbucket.org/phg/context-mirror/commits/
wiki :https://contextgarden.net
__
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] Fwd: Can't get on to the Wiki

2023-07-04 Thread Keith McKay
I sent this yesterday but it didn't appear on the list.
Best Wishes
Keith

On Sat, 1 Jul 2023, 15:40 Keith McKay,  wrote:

> Hi All,
>
> I've been trying to get on to the wiki for the last few day without
> success. Is it just me or have other users experienced the same issue.
>
> *I have tried pinging and get:*
>
> --- PING server-nl.contextgarden.net (5.39.185.232) 56(84) bytes of data.
> ---
>
>
> --- server-nl.contextgarden.net ping statistics ---
> packets transmitted  9
> received  0
> packet loss  100 %
> time  8306 ms
>
> *And tracerroute gives:*
> traceroute to wiki.contextgarden.net (5.39.185.232), 30 hops max, 60 byte
> packets
> 1   *** *** ***
> 2 core24.fsn1.hetzner.com 213.239.245.241 de 0.534 ms
>
> core23.fsn1.hetzner.com 213.239.245.237 de 0.518 ms
>
> core24.fsn1.hetzner.com 213.239.245.241 de 0.534 ms
> 3 core5.fra.hetzner.com 213.239.224.94 de 4.822 ms 4.812 ms 4.795 ms
> 4   *** *** ***
> 5   *** *** ***
> 6   *** *** ***
> 7   *** *** ***
> 8   *** *** ***
> No reply for 5 hops. Assuming we reached firewall.
> Best Wishes
> Keith McKay
>
>
___
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] Can't get on to the Wiki

2023-07-04 Thread Keith McKay

Hi All,

I've been trying to get on to the wiki for the last few day without 
success. Is it just me or have other users experienced the same issue.


*I have tried pinging and get:*

--- PING server-nl.contextgarden.net (5.39.185.232) 56(84) bytes of 
data. ---



--- server-nl.contextgarden.net ping statistics ---

packets transmitted 9
received0
packet loss 100%
time8306ms

*And tracerroute gives:*

traceroute to wiki.contextgarden.net (5.39.185.232), 30 hops max, 60 
byte packets

1   *** *** ***

2   core24.fsn1.hetzner.com 213.239.245.241 de  0.534ms 


core23.fsn1.hetzner.com 213.239.245.237 de  0.518ms 


core24.fsn1.hetzner.com 213.239.245.241 de  0.534ms

3   core5.fra.hetzner.com   213.239.224.94  de  4.822ms 4.812ms 
4.795ms

4   *** *** ***

5   *** *** ***

6   *** *** ***

7   *** *** ***

8   *** *** ***

No reply for 5 hops. Assuming we reached firewall.
Best Wishes
Keith McKay
___
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] Wiki Down?

2023-06-16 Thread Keith McKay via ntg-context

All good now Taco.

Thanks for the advice.

Keith McKay

On 16/06/2023 12:33, Taco Hoekwater wrote:

Hi Keith,


On 16 Jun 2023, at 13:04, Keith McKay via ntg-context  
wrote:

I am getting "safari can't find server"  for the wiki so I checked on 
isitdownrightnow.com and it confirms it is down.

Must have been some transport issue. The server is up and has not been down 
today at all. If it keeps appearing to be down, try a traceroute tool to see 
where the problem is, e.g. https://ping.eu/traceroute/

Best wishes,
Taco

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



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

maillist : ntg-context@ntg.nl / 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] Wiki Down?

2023-06-16 Thread Keith McKay via ntg-context
I am getting "safari can't find server"  for the wiki so I checked on 
isitdownrightnow.com and it confirms it is down.


Best Wishes

Keith McKay

___
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] Help with typesetting footnotes in an HTML document

2023-04-12 Thread Keith McKay via ntg-context

Hi Denis,

Thanks for the code, I shall give this a try.

To get the html file I convert a docx file using a wordpress multisite 
app called Pressbooks, a book content management system for book 
publishing in various formats such as the web, pdf, epub and various xml 
flavours (see pressbooks.com). My interest was that docx files could be 
imported into pressbooks, edited and then exported as html which I then 
used in ConTeXt to produce pdf. Pressbooks has an open source option and 
they give instructions on how to self-host on a local web server, which 
is what I have done (see pressbooks.org). It is, I suppose, like using a 
sledgehammer to crack a nut, and the html files produced are quite 
complicated. I'm still in the experimental stage with it.


Before trying out Pressbooks, I had previously produced two 
books(novels) by converting docx files to epub using an epub extension 
to Libre Office, then edit/clean-up the epub using Sigil epub editor. 
Finally I extract the individual xhtml files and input into ConTeXt. 
That was much easier and the files much less complicated, however those 
books did not have footnotes so I shall have to check that out in Sigil. 
I'm still experimenting to get a simple workflow for the conversion of 
docx files to simple (x)html files.


Thanks again for the code.

Best Wishes

Keith

On 12/04/2023 09:05, denis.ma...@unibe.ch wrote:

Hey Keith,

the code below should get you started. Obviously, the links in the footnotes don't 
appear as there are no setups for the  elements yet.

By the way, where is the HTML coming from? The dual structure for footnotes 
looks a bit odd and a bit too complicated for me.

==
\startxmlsetups xml:initialize
\xmlsetsetup{\xmldocument}{*}{-}
\xmlsetsetup{\xmldocument}{html|body|p|}{xml:*}

%\xmlsetsetup{#1}{span[@class="data-fnref"]}{xml:footnote} % data-fnref is not a 
class; also -> the element won't be seen if the parent span is not treated in some way.
\xmlsetsetup{#1}{span[@class="footnote"]}{xml:footnote-wrapper}
\xmlsetsetup{#1}{span[@class="footnote-indirect"]}{xml:footnote}
\xmlsetsetup{#1}{div[@class="footnotes"]}{xml:nothing}

\stopxmlsetups
\xmlregistersetup{xml:initialize}

\startxmlsetups xml:html
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:body
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:p
\xmlflush{#1}\par
\stopxmlsetups

\startxmlsetups xml:footnote-wrapper
\xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:footnote
\footnote
% {\xmlfirst{test}{div[@class="footnotes"]/div/div[@id="\xmlatt{#1}{id}"]}} -> 
test is not the document name nor the name of the node to be processed>; div/div nesting was wrong; 
for some reason I can't get it to work with xmlfirst. But \xmlfilter works
{\xmlfilter{\xmldocument}{div[@id='\xmlrefatt{#1}{data-fnref}']/command(xml:test)}}
\stopxmlsetups

\startxmlsetups xml:test
\xmlflush{#1}
\stopxmlsetups


\starttext

\xmlprocessfile{initialise}{footnoteTest.html}{}

\stoptext
=====


-Ursprüngliche Nachricht-
Von: Keith McKay 
Gesendet: Dienstag, 11. April 2023 17:53
An: Maier, Denis Christian (UB) ; ntg-
cont...@ntg.nl
Betreff: Re: AW: [NTG-context] Help with typesetting footnotes in an HTML
document

Fair comment Denis.

I decided to try the lookup based approach on pages 85 - 86 of the xml
manual and my setups are based on those pages. I have to admit that I find
the xml manual a wee bit difficult in places since xml is outside my expertise.
I attach my tex and html files which should save some copy and pasting.

Thanks

Keith McKay

On 11/04/2023 14:51, denis.ma...@unibe.ch wrote:

Hard to tell, if you don't show us what you've tried so far.
In one of my setups I use the lua based approach described on page 86/87.

But again, we'll probably need more information to figure it out.

-----Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Keith
McKay via ntg-context
Gesendet: Montag, 10. April 2023 17:30
An: mailing list for ConTeXt users 
Cc: Keith McKay 
Betreff: [NTG-context] Help with typesetting footnotes in an HTML
document

Hi,

I have been puzzling over how to typeset footnotes in a HTML
document, most elements have been relatively easy to typeset but I'm
stumped with footnotes.  I have been studying the the xml manual in
particular Chapter  7.4 Cross Referencing, but I'm still struggling
to get xmlsetups which come anywhere near working. Any hints  to a
solution would be greatly appreciated.

Best Wishes

Keith McKay

%%%

Here is a snippet of the HTML document with footnotes

 http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;>
http://www.w3.org/1999/xhtml; xml:lang="en"> 
     


     ‘What is a weed? A plant whose virtues
have not been discovered,’ wrote Ralph Waldo Emerson. Those delicate crucifers with their
manifold faces of four pink or lilac petals striated w

Re: [NTG-context] Help with typesetting footnotes in an HTML document

2023-04-11 Thread Keith McKay via ntg-context

Fair comment Denis.

I decided to try the lookup based approach on pages 85 - 86 of the xml 
manual and my setups are based on those pages. I have to admit that I 
find the xml manual a wee bit difficult in places since xml is outside 
my expertise. I attach my tex and html files which should save some copy 
and pasting.


Thanks

Keith McKay

On 11/04/2023 14:51, denis.ma...@unibe.ch wrote:

Hard to tell, if you don't show us what you've tried so far.
In one of my setups I use the lua based approach described on page 86/87. But 
again, we'll probably need more information to figure it out.


-Ursprüngliche Nachricht-
Von: ntg-context  Im Auftrag von Keith
McKay via ntg-context
Gesendet: Montag, 10. April 2023 17:30
An: mailing list for ConTeXt users 
Cc: Keith McKay 
Betreff: [NTG-context] Help with typesetting footnotes in an HTML
document

Hi,

I have been puzzling over how to typeset footnotes in a HTML document,
most elements have been relatively easy to typeset but I'm stumped with
footnotes.  I have been studying the the xml manual in particular Chapter  7.4
Cross Referencing, but I'm still struggling to get xmlsetups which come
anywhere near working. Any hints  to a solution would be greatly
appreciated.

Best Wishes

Keith McKay

%%%

Here is a snippet of the HTML document with footnotes


http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;>
http://www.w3.org/1999/xhtml; xml:lang="en"> 
    


    ‘What is a weed? A plant whose virtues have
not been discovered,’ wrote Ralph Waldo Emerson. Those delicate crucifers with their
manifold faces of four pink or lilac petals striated with veins of deeper
lavender are the perfect introduction to flowers for children. So delicate and
yet hardy.
    I spend some of April abroad, travelling by road
from an unseasonably snowy Austria (‘dieses Wetter ist verrückt!’ as an elderly lady exclaimed to me) to
northern France, and when I come home, it’s to a landscape responding to
substantially increased light levels and temperatures.
    This was the early sixties. Like many thousands,
we were rehoused from Maryhill in the heart of urban Glasgow to this
peripheral housing scheme which completely changed the character of what
had been a village. Within a decade those glasshouses were abandoned,
glass broken in the frames, and a row of shops that included a chippy and a
betting shop soon replaced them, betting ‘off’ licensed race-tracks having
become legal in 1961.
    
      
      
    Emerson, R.W. (1878) Fortune of the Republic, p.3 quoted in
Oxford Dictionary of Quotations, Rev Fourth Edition (1996).
      
      
    ‘Crazy weather!’
      
      
    http://www.independent.co.uk/sport/racing/our-national-love-affair-
a-history-of-the-betting-shop-804966.html"
data-url="http://www.independent.co.uk/sport/racing/our-national-love-
affair-a-history-of-the-betting-shop-804966.html">http://www.independent.co.uk/sport/racing/our-
national-love-affair-a-history-of-the-betting-shop-804966.html
[accessed 11 Dec 2017]
      
    



%%

__
_
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
__
_

FootnoteTest.tex
Description: TeX document







  ‘What is a weed? A plant whose virtues have not been discovered,’ wrote Ralph Waldo Emerson. Those delicate crucifers with their manifold faces of four pink or lilac petals striated with veins of deeper lavender are the perfect introduction to flowers for children. So delicate and yet hardy.
  I spend some of April abroad, travelling by road from an unseasonably snowy Austria (‘dieses Wetter ist verrückt!’ as an elderly lady exclaimed to me) to northern France, and when I come home, it’s to a landscape responding to substantially increased light levels and temperatures.
  This was the early sixties. Like many thousands, we were rehoused from Maryhill in the heart of urban Glasgow to this peripheral housing scheme which completely changed the character of what had been a village. Within a decade those glasshouses were abandoned, glass broken in the frames, and a row of shops that included a chippy and a betting shop soon replaced them, betting ‘off’ licensed race-tracks having become legal in 1961.
  


  Emerson, R.W. (1878) Fortune of the Republic, p.3 quoted in Oxford Dictionary of Quotations, Rev Fourth Edition (1996).


  ‘Crazy weather!’


  http://www.independent.co.uk/sport/racing/our-national-love-affair-a-history-of-the-betting-shop

[NTG-context] Help with typesetting footnotes in an HTML document

2023-04-10 Thread Keith McKay via ntg-context

Hi,

I have been puzzling over how to typeset footnotes in a HTML document, 
most elements have been relatively easy to typeset but I'm stumped with 
footnotes.  I have been studying the the xml manual in particular 
Chapter  7.4 Cross Referencing, but I'm still struggling to get 
xmlsetups which come anywhere near working. Any hints  to a solution 
would be greatly appreciated.


Best Wishes

Keith McKay

%%%

Here is a snippet of the HTML document with footnotes


http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd;>
http://www.w3.org/1999/xhtml; xml:lang="en">

  


  ‘What is a weed? A plant whose virtues have 
not been discovered,’ wrote Ralph Waldo Emersonclass="footnote">data-fnref="53-1">. Those delicate crucifers with their 
manifold faces of four pink or lilac petals striated with veins of 
deeper lavender are the perfect introduction to flowers for children. So 
delicate and yet hardy.
  I spend some of April abroad, travelling by 
road from an unseasonably snowy Austria (‘dieses Wetter ist 
verrückt!’data-fnref="53-2"> as an elderly lady exclaimed to me) to 
northern France, and when I come home, it’s to a landscape responding to 
substantially increased light levels and temperatures.
  This was the early sixties. Like many 
thousands, we were rehoused from Maryhill in the heart of urban Glasgow 
to this peripheral housing scheme which completely changed the character 
of what had been a village. Within a decade those glasshouses were 
abandoned, glass broken in the frames, and a row of shops that included 
a chippy and a betting shop soon replaced them, betting ‘off’ licensed 
race-tracks having become legal in 1961.class="footnote-indirect" data-fnref="75-1">

  
    
    
  Emerson, R.W. (1878) Fortune of the Republic, p.3 quoted 
in Oxford Dictionary of Quotations, Rev Fourth Edition (1996).

    
    
  ‘Crazy weather!’
    
    
  href="http://www.independent.co.uk/sport/racing/our-national-love-affair-a-history-of-the-betting-shop-804966.html; 
data-url="http://www.independent.co.uk/sport/racing/our-national-love-affair-a-history-of-the-betting-shop-804966.html;>class="import-Hyperlink">http://www.independent.co.uk/sport/racing/our-national-love-affair-a-history-of-the-betting-shop-804966.html 
[accessed 11 Dec 2017]

    
  



%%

___
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] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context
Thanks for your reply Pablo. I didn't see it till just now because for 
some reason it ended up in my junk folder, along with a number of other 
ConTeXt messages. You will probably have seen my reply to the list with 
the three solutions, now we have four!


Yep, I know that A4 is the default page size and I always start with 
that but sometimes I play about with page sizes when typesetting and so 
can just change when coding.


In the document I'm working on, some pages will only contain images 
and/or combination of images so I went down the Layers route since this 
also allows me to absolutely position these images on the page.


Thanks again for your help!

Best Wishes

Keith McKay

On 16/03/2023 17:58, Pablo Rodriguez via ntg-context wrote:

On 3/16/23 17:59, Keith McKay via ntg-context wrote:

Hi,

I would like to position a combination of images where the centre of the
combination coincides with the centre of the text area of a page.

Hi Keith,

I think the following sample might achieve what you want:

   \showframe
   \setupexternalfigures[location={default}]
   \setuplayout
 [backspace=2.5cm,
 topspace=1cm,
 height=28cm,
 width=17cm,
 header=0cm,
 footer=0.75cm,
 ]
   \definelayer[test3]
   %[x=.5\paperwidth, y=.5\paperheight]
   [x=.5\textwidth, y=.5\textheight]
   %\setupbackgrounds[page]
   \setupbackgrounds[text]
   [background=test3]
   \starttext
   \setlayer[test3][location={middle}]
  \framed[offset=overlay]{{\startcombination[nx=3,ny=1,distance=15mm]
 {\externalfigure[cow][width=15mm]}{}
 \rotate[rotation=90]{\externalfigure[cow][width=15mm]}{}
 {\externalfigure[cow][width=15mm]}{}
  \stopcombination}}
   \null
   \stoptext

BTW, A4 portrait is the default page size.

\setupbackgrounds is the standard way to place layers.

Page and text centering would require different positions (I have
commented out the option for page centering).

I hope it helps (since I’m not sure I’m getting your point here),

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

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

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

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


Re: [NTG-context] Absolute positioning of \startcombination... \stopcombination

2023-03-17 Thread Keith McKay via ntg-context

Hi,

I've experimented this morning with the solutions suggested by Wolfgang 
and Alan in reply to my post.


The solution is really quite simple as suggested by Wolfgang i.e. 
\centerbox{..}.  I have applied this to the code and I now have three 
different solutions to my initial problem. The Joy of ConTeXt!


Thanks again Wolfgang and Alan.

Best Wishes

Keith McKay

Here is the code showing the three solutions which others may find useful.

\setuppapersize[A4,portrait]%[A4,portrait]

\setuplayout

[backspace=2.5cm,

topspace=1cm,

height=28cm,

width=17cm,

header=0cm,

footer=0.75cm,

]

\setuppagenumbering[state=start,alternative=doublesided,location=margin]

\useMPlibrary [dum]

\starttext

%%% Me %%%

\showframe [text] [text]

\definelayer[test3]

\setlayer[test3][]

\centerbox{

{\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]

{\externalfigure[dummy]}{}

\rotate[rotation=90]{\externalfigure[dummy]}{}

{\externalfigure[dummy][]}{}

\stopcombination}

}

\flushlayer[test3]

\page

%%% Wolfgang %%%

\centerbox

{\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]

\bTR

\bTD

\externalfigure[dummy]

\eTD

\bTD

\rotate[rotation=90]{\externalfigure[dummy]}

\eTD

\bTD

\externalfigure[dummy]

\eTD

\eTR

\eTABLE}

\page

%%% Alan %%%

\centerbox{

\startparagraph [align=middle]

\startframed [frame=off,offset=\zeropoint]

\startcombination [nx=3,ny=1,distance=15mm,after=,location=middle]

{\externalfigure[dummy]}{}

\rotate[rotation=90]{\externalfigure[dummy]}{}

{\externalfigure[dummy][]}{}

\stopcombination

\stopframed

\stopparagraph

}

\stoptext

On 16/03/2023 19:50, Keith McKay wrote:

Thanks Wolfgang and Alan! I will experiment with them tomorrow.
Best Wishes
Keith McKay

___
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] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context
Thanks Wolfgang and Alan! I will experiment with them tomorrow.
Best Wishes
Keith McKay


On Thu, 16 Mar 2023, 18:07 Alan Braslau,  wrote:

> On Thu, 16 Mar 2023 18:27:53 +0100
> Wolfgang Schuster via ntg-context  wrote:
>
> > Keith McKay via ntg-context schrieb am 16.03.2023 um 17:59:
> > >
> > > Hi,
> > >
> > > I would like to position a combination of images where the centre
> > > of the combination coincides with the centre of the text area of a
> > > page. In the example below I have made the combination into a layer
> > > thinking that this would be the easiest way to position it where I
> > > wanted. However to position in the centre of the page I would need
> > > to know the size of the combination and use this to calculate the x
> > > and y values for positioning of the layer. I have looked at the
> > > Wiki page on image size of combinations but still cant figure out
> > > how to do it. Any suggestions on how to go about this or is their a
> > > better way?
> > >
> > > Wiki Page reference:
> > > https://wiki.contextgarden.net/Combinations#Image_Width
> > >
> > > Thanks
> > >
> > > Keith McKay
> > >
> > > %%% example %%%
> > >
> > > \setuppapersize[A4,portrait]%[A4,portrait]
> > >
> > > \setuplayout
> > >
> > > [backspace=2.5cm,
> > >
> > > topspace=1cm,
> > >
> > > height=28cm,
> > >
> > > width=17cm,
> > >
> > > header=0cm,
> > >
> > > footer=0.75cm,
> > >
> > > ]
> > >
> > > \useMPlibrary [dum]
> > >
> > > \starttext
> > >
> > > \definelayer[test3]
> > >
> > > \setlayer[test3][x=2cm,y=15cm]
> > >
> > > {\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]
> > >
> > > {\externalfigure[dummy]}{}
> > >
> > > \rotate[rotation=90]{\externalfigure[dummy]}{}
> > >
> > > {\externalfigure[dummy][]}{}
> > >
> > > \stopcombination}
> > >
> > > \flushlayer[test3]
> > >
> > > \stoptext
> > >
> >
> > \useMPlibrary [dum]
> >
> > \showframe [text] [text]
> >
> > \setuplayout [tight]
> >
> > \starttext
> >
> > \centerbox
> > {\bTABLE[frame=off,offset=7.5mm,align={middle,lohi}]
> >  \bTR
> >  \bTD
> >  \externalfigure[dummy]
> >  \eTD
> >  \bTD
> >  \rotate[rotation=90]{\externalfigure[dummy]}
> >  \eTD
> >  \bTD
> >  \externalfigure[dummy]
> >  \eTD
> >  \eTR
> >  \eTABLE}
> >
> > \stoptext
> >
> > Wolfgang
>
> Or you could put the combination in a frame:
>
> \startparagraph [align=middle]
>   \startframed [frame=off,offset=\zeropoint]
> \startcombination [nx=3,ny=1]
>   {first} {}
>   {second}{}
>   {third} {}
> \stopcombination
>   \stopframed
> \stopparagraph
>
> 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] Absolute positioning of \startcombination... \stopcombination

2023-03-16 Thread Keith McKay via ntg-context

Hi,

I would like to position a combination of images where the centre of the 
combination coincides with the centre of the text area of a page. In the 
example below I have made the combination into a layer thinking that 
this would be the easiest way to position it where I wanted. However to 
position in the centre of the page I would need to know the size of the 
combination and use this to calculate the x and y values for positioning 
of the layer. I have looked at the Wiki page on image size of 
combinations but still cant figure out how to do it. Any suggestions on 
how to go about this or is their a better way?


Wiki Page reference: https://wiki.contextgarden.net/Combinations#Image_Width

Thanks

Keith McKay

%%% example %%%

\setuppapersize[A4,portrait]%[A4,portrait]

\setuplayout

[backspace=2.5cm,

topspace=1cm,

height=28cm,

width=17cm,

header=0cm,

footer=0.75cm,

]

\useMPlibrary [dum]

\starttext

\definelayer[test3]

\setlayer[test3][x=2cm,y=15cm]

{\startcombination[nx=3,ny=1,distance=15mm,after=,location=middle]

{\externalfigure[dummy]}{}

\rotate[rotation=90]{\externalfigure[dummy]}{}

{\externalfigure[dummy][]}{}

\stopcombination}

\flushlayer[test3]

\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] Printing problem

2023-03-16 Thread Keith McKay via ntg-context
Sent from my phone to a HP Color LaserJet MFP M283 printer. Perfect print.
Keith McKay

On Thu, 16 Mar 2023, 11:51 Mikael Sundqvist via ntg-context, <
ntg-context@ntg.nl> wrote:

> Hi all,
>
> I have had some printing problems lately, and it is not perfectly
> clear to me (or to Hans, we have discussed this a bit) whether it is
> the printer that has a lack of memory or if the pdf files are somehow
> corrupted. It might have to do with type3 fonts.
>
> I attach a pdf file that does not print on our printer at work. Or
> well, it prints almost all of the page, but stops at the word
> "negativa" (or was it "egenvärden", I do not have the printout here
> right now). Then the printer also prints an error report about some
> "offending command".
>
> So, a request: If you have an easy access to a printer, can you print
> this page and report back if all of it comes out, or what is
> happening?
>
> Thanks
>
> /Mikael
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
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] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Keith McKay via ntg-context
Many thanks Wolfgang. Useful tips indeed.
Best Wishes
Keith McKay

On Sun, 5 Mar 2023, 17:24 Wolfgang Schuster, <
wolfgang.schuster.li...@gmail.com> wrote:

> Keith McKay schrieb am 05.03.2023 um 18:10:
> >
> > Thank you so much Wolfgang! I should have realised that. It's what I
> > get for trying to write readable code.
> >
> You can use the = to align keys and values, e.g.
>
> \setuplayout
>[backspace=2.5cm,
>margin=0.5cm,
> width=16cm,
>header=1cm,
>footer=1cm]
>
> Another useful method is to put large settings into a setups-blocks and
> pass the block to a setup-command.
>
> \startsetups [apage]
> \startMPcode
> StartPage;
> ...
> StopPage;
> \stopMPcode
> \stopsetups
>
> \defineoverlay[apage][\directsetup{apage}]
>
> Wolfgang
>
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Keith McKay via ntg-context
Thank you so much Wolfgang! I should have realised that. It's what I get 
for trying to write readable code.


Best Wishes

Keith McKay

On 05/03/2023 16:58, Wolfgang Schuster wrote:

Keith McKay via ntg-context schrieb am 05.03.2023 um 17:54:


Hi

I'm having a strange problem with the \setuplayout command with the 
parameters being ignored. In the code below the only parameter which 
does get setup is the backspace parameter, the header, footer, width, 
and margin parameters are setup differently according to the log. I'm 
probably missing something fairly obvious so hints would be helpful. 
The document I'm trying to setup will probably be a maximum of 50 
pages and I would like to reduce the space at the top and bottom of 
the page.


Best Wishes

Keith McKay

% Code so far %%%

\setuppapersize[A4]

\setuplayout[

backspace = 2.5cm,

margin = 0.5cm,

width = 16cm,

header = 1cm,

footer = 1cm,

]

Remove the spaces before and after = in the settings. While LaTeX 
ignores spaces around = ConTeXt doesn't.


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

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


[NTG-context] Problem with \setuplayout parameters being ignored

2023-03-05 Thread Keith McKay via ntg-context

Hi

I'm having a strange problem with the \setuplayout command with the 
parameters being ignored. In the code below the only parameter which 
does get setup is the backspace parameter, the header, footer, width, 
and margin parameters are setup differently according to the log. I'm 
probably missing something fairly obvious so hints would be helpful. The 
document I'm trying to setup will probably be a maximum of 50 pages and 
I would like to reduce the space at the top and bottom of the page.


Best Wishes

Keith McKay

% Code so far %%%

\setuppapersize[A4]

\setuplayout[

backspace = 2.5cm,

margin = 0.5cm,

width = 16cm,

header = 1cm,

footer = 1cm,

]

\setupbackgrounds[state=repeat]

\defineoverlay[apage][

{\startMPcode

StartPage;

definecolor[ name = "MyColor1", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;


definecolor[ name = "MyColor2", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;


draw lmt_shade [

path = Page,

direction = "down",

alternative = "linear",

colors = { "MyColor2", "MyColor1" },

] ;

draw lmt_shade [

path = Field[Text][Text],

direction = "down",

alternative = "linear",

colors = { "MyColor1", "MyColor2" },

] ;

StopPage;

\stopMPcode}

]

\showframe

\setupbackgrounds[page][background=apage]

\setupbackgrounds[footer][text] [background=color, backgroundcolor=blue]

\setupbackgrounds[header][text] [background=color, backgroundcolor=red]

\setuppagenumbering[state=start,alternative=doublesided,location=footer]

\showlayout

\starttext

\showsetups

\dorecurse{10}{

Page \recurselevel

\page

}

\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] Lettrine module not working?!

2023-02-20 Thread Keith McKay via ntg-context

Would state=start within \setupinitial[...] help?

Best Wishes

Keith McKay

On 20/02/2023 09:39, G.C.H.M. Verhaag via ntg-context wrote:


Hi,

Thanks for your suggestion Alan! I've been using lettrine all the 
time, without knowing it was actually obsolete, sorry!


I'm now trying the \placeinitial command but coloring like:

*\definecolor[MyColor] [r=.76,g=.72,b=.48]**
**\setupinitial[color=\MyColor,font=Bold sa 4,distance=0pt,n=3]*

doesn't seem to work! Is this as expected behaviour or a possible issue?

Regards,

Gerard Verhaag


___
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] How to buy a copy of NTG MAPS 52 (2022.1)

2023-01-06 Thread Keith McKay via ntg-context

Colleagues

Can someone point me as to where I can purchase a copy of MAPS 52 
(2022.1) published by the Nederlandstalige TeX Gebruikersgroep last 
year? I am not a member of the NTG and it is too early for it to be 
freely available for viewing on their site, but I would like to read the 
article by Fabrice Larribe "MetaFun for generative art (English)" within 
that volume. The article was also mentioned in Chapter 7 of the manual 
"On Target".


Best Wishes

Keith McKay

___
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] Help test a LMTX bug fix: tweaks in PDF generation

2022-10-10 Thread Keith McKay via ntg-context

Hi,

I printed the file from my Apple mac mini M1 wirelessly to my HP Color 
LaserJet MFP M283fdw from Thunderbird, Adobe Acrobat DC, Skim and 
Texshop. The latter three were essentially identical and clear but that 
from Thunderbird was fuzzy and not as sharp as the others.


Best Wishes

Keith McKay

On 09/10/2022 16:33, Leah Neukirchen via ntg-context wrote:

Hi,

last week we had a long thread about non-printing PDF on this list and
together with Hans I tracked down the issue and we found a fix.
Since it changes some details of how PDFs are generated by LMTX, we'd
like to test this change first on a wide range of software and
printers.

So please: Try to preview and then try to print the attached PDF;
and report back if either preview or printout does not look like
the attached reference PNG image (i.e. something is missing,
the fonts look different, or have wrong relative size.)

If you use other PDF tools in your workflow, please also check they
continue to work as before (and just as well as with MKIV-generated PDFs).


Thank you very much,

___
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] setupexternalfigures and resoĺution

2022-09-02 Thread Keith McKay via ntg-context
Thanks for this code Hraban. I tried this last night and it worked really
well. I did have one stumbling block when I noticed that those image files
with a space in their names were not found, however renaming  without a
space solved the problem. Is this a bug or a feature?
Thanks
Keith McKay

On Thu, 1 Sep 2022, 09:52 Henning Hraban Ramm via ntg-context, <
ntg-context@ntg.nl> wrote:

> Am 01.09.22 um 10:44 schrieb juh+ntg-context--- via ntg-context:
> >
> > Hi,
> >
> > what is resolution meant to do?
> >
> > Whatever I insert as resolution, I get no change.
> >
> > \setupexternalfigure[location={default,local},resolution=30]
> > \starttext
> > \externalfigure[hacker]
> > \stoptext
> >
> > What am I missing?
>
> The resolution parameter is still not used by default ConTeXt, sorry.
>
> But you can use it with the attached lua file like:
>
>
> \loadluafile[grph-downsample]
> \doifmodeelse{print}{%
> \def\Resolution{300}
> }{%
> \def\Resolution{96}
> }%
>
> \setupexternalfigures[
>%directory={./Logos,img},
>conversion=lowres.jpg,
>resolution=\Resolution,
> ]
>
>
> Hraban
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
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] Graded Transparency in MetaFun

2022-06-30 Thread Keith McKay via ntg-context

Hi all

 I'm trying to create graded transparency over an area similar to the 
effect produced using lmt_shade, where one colour goes to another colour 
over a continuum, but with graded transparency we would go from say 0 to 
1 transparency, for a single colour. See the MWE below.


I have tried this by creating a loop which draws a linear path, yshifted 
the thickness of the pen, with transparency calculated for each step   
over the a predetermined height on the page. I have also tried a similar 
way for a circular path but in this case the path is repeatedly drawn 
scaled in a loop. The MWE below works OK but when I zoom into the graded 
transparency areas lines begin to appear which would suggest that their 
is a better way to do what I want. This is borne out if you zoom into a 
lmt-shade area, one colour smoothly becomes another colour. I've put 
examples of this in the MWE. I'm guessing the way lmt_shade areas are 
drawn is the way to go. Is this likely to be easy to code for what I 
want to do?


Best Wishes

Keith McKay

%%%MWE%%

\setuppapersize[A4,portrait]

\usecolors[crayola]

\starttext

\startMPpage %page 1

StartPage;

numeric maxTransp;% Must be between 0 and 1

numeric opHeight; % Opaque area height on page

path t;

string p[]; p[5] = "RadicalRed"; p[10] = "LemonYellow"; p[15] = 
"MiddleGreen"; p[20] = "CadetBlue"; p[25] = "white";


maxTransp := 1;

opHeight := 2.5; %cm

for k= 5, 10, 15, 20, 25:

    draw lmt_text [

    text = "opaque",

    color = "black",

    style = "bold",

anchor = "lft",

position = (-1mm,2mm),

    ] xsized .95TextWidth ysized 7cm shifted(22cm,(k - 2)*cm);

    t := (1cm, k*cm) -- (20cm, k*cm); %Square opaque area

    draw t withpen pensquare scaled .25pt withcolor p[k] 
withtransparency("normal",maxTransp);


    for i = 0 step 0.25until (opHeight*72/2.54):

        r := (i/(opHeight*72/2.54))*maxTransp; %calculate transparency

draw t yshifted (-i-.25)*pt withpen pensquare scaled .25pt withcolor 
p[k] withtransparency("normal",(maxTransp-r));


draw t yshifted (i+.25)*pt withpen pensquare scaled .25pt withcolor p[k] 
withtransparency("normal",(maxTransp-r));


endfor;

endfor;

draw lmt_shade [

    path = fullsquare xyscaled(19cm,2cm),

direction = "up",

alternative = "linear",

colors = { "red", "blue" },

    ] shifted(10.5cm,1.5cm);

StopPage;

\stopMPpage

\page

\startMPpage %page 2

StartPage;

numeric maxTransp;% Must be between 0 and 1

numeric opHeight; % Opaque area height

path t, u;

string p[]; p[5] = "RadicalRed"; p[10] = "LemonYellow"; p[15] = 
"MiddleGreen"; p[20] = "CadetBlue"; p[25] = "white";


maxTransp := 1;

opHeight := 2.5; %centimeters

opHeightpt := (opHeight /2.54)*72.27;

draw lmt_text [

    text = "\rotate{opaque}",

    color = "black",

    style = "bold",

anchor = "lft",

position = (-1mm,2mm),

    ] xsized .25TextHeight shifted(12cm,10cm);

for k= 5, 10, 15, 20, 25:

    t := (1cm, k*cm)--(20cm, k*cm) ; %Square opaque area

    draw t withpen pensquare scaled .25pt withcolor p[k] 
withtransparency("normal",maxTransp);


    for i = 0 step 0.25 until opHeightpt:

        r := (i/(opHeight*72.27/2.54))*maxTransp;

draw t yshifted (i+0.25)*pt withpen pensquare scaled 0.25pt withcolor 
p[k] withtransparency("normal",(maxTransp-r));


draw t yshifted (-i-0.25)*pt withpen pensquare scaled .25pt withcolor 
p[k] withtransparency("normal",(maxTransp-r));


endfor;

endfor;

draw lmt_shade [

    path = fullsquare xyscaled(19cm,2cm),

direction = "up",

alternative = "linear",

colors = { "red", "blue" },

    ] shifted(10.5cm,1.5cm) ;

StopPage;

\stopMPpage

\page

\startMPpage %page 3

StartPage;

draw lmt_text [

    text = "opaque",

    color = "black",

    style = "bold",

anchor = "lft",

position = (-1mm,2mm),

    ] xsized .95TextWidth ysized 7cm shifted(22cm,13cm);

draw lmt_text [

    text = "opaque",

    color = "black",

    style = "bold",

anchor = "lft",

position = (-1mm,2mm),

    ] xsized .95TextWidth ysized 7cm shifted(22cm,3cm);

path t, u;

t := (11cm, 15cm) -- (20cm, 15cm); %Square opaque area

u := fullcircle scaled 5cm shifted (5cm,16cm); %Circular opaque area

for j = (5*72.27/2.54) step -0.25 until 1:

    r := (j/(5*72.27/2.54)) *0.5;

    s := -r + 0.5;

    draw fullcircle scaled (j*pt) shifted (5cm,16cm) withpen pencircle 
scaled 0.25pt withcolor ("RadicalRed") withtransparency ("normal",s);


endfor;

fill fullcircle scaled .25pt shifted (5cm,16cm) withpen pencircle scaled 
0.25pt withcolor ("RadicalRed") withtransparency ("normal",s);


for i = 0.0001 step

Re: [NTG-context] arm osx

2022-05-29 Thread Keith McKay via ntg-context

Hi Steffen

I have TeXshop setup on my mac mini M1 but I rarely use it. I've just 
ran it on a file I have been working on and it runs OK. Here is my engine:


%%

#!/bin/bash export 
PATH=$PATH:/Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin 
/Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun 
--autogenerate --script context --directives="system.error" --autopdf "$1"




The only difference I can see is --directives="system.error" . Don't 
know if this helps.


I'm running:

system > ConTeXt ver: 2022.05.09 17:24 LMTX fmt: 2022.5.11 int: 
english/english


Best Wishes

Keith McKay

On 29/05/2022 19:35, Steffen Wolfrum via ntg-context wrote:

Hi,

the first, clean install of MacOS ARM64bits I downloaded 
fromhttps://wiki.contextgarden.net/Installation

Next I followed the thread below (exchanging texmf-osx-64/bin to 
texmf-osx-arm64/bin) and everything works like a charm (ConTeXt ver: 2022.01.21 
20:13 LMTX) !

Today I wanted to update, using
sh install.sh

After that, running the same TeXShop engine as before gives an error:

Users/steffen/Library/TeXShop/Engines/ConTeXt LMTX_ARM.engine: line 3: 19971 Killed: 9
   /Users/steffen/context-osx-arm64/tex/texmf-osx-arm64/bin/mtxrun --autogenerate 
--script context --autopdf "$1"

What did I do wrong?

Steffen





Am 25.04.2021 um 18:52 schrieb Keith McKay:

Great! I'm glad it worked OK!
Best Wishes
Keith

On Sun, 25 Apr 2021, 09:59 Charles Doherty,  wrote:
Dear Keith and Mojca,

I followed the information provided buy Keith below and everything is working 
just fine. Mojca I directed my request to Keith in the first instance since I 
felt it was most likely my lack of knowledge of how to get things going that 
was the problem (as usual). So thank you for your quick response and offer to 
test. And thank you Keith for your example below it did the trick.

Very best wishes,
Charlie


On 23 Apr 2021, at 15:53, Keith McKay  wrote:

Sorry. I put a typo in the engine file in my reply. It should be

#!/bin/bash

export 
PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin

/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script 
context --autopdf "$1"

Best Wishes

Keith


***
CHARLES DOHERTY
13 BANCROFT ROAD
TALLAGHT
DUBLIN
D24 YH2V
home: +353 1 2447483
Mobile: +353 863868629
charles.dohe...@icloud.com





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

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

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

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

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

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


Re: [NTG-context] Mark IV or LuaMetaTeX?

2022-05-26 Thread Keith McKay via ntg-context
Tomaso
I think there is a problem with synctex in TeXworks, which is probably why
I never use it.
Best Wishes
Keith McKay


On Thu, 26 May 2022, 18:03 Tommaso Gordini via ntg-context, <
ntg-context@ntg.nl> wrote:

> Thank you, Keith!
>
> Everything works fine, except Synctex.
>
> So, between MkIV and LMTX you recommend LMTX. Perfect.
>
> Tommaso
>
> Il gio 26 mag 2022, 17:55 Keith McKay via ntg-context 
> ha scritto:
>
>> Hi Tommaso
>>
>>  I use TeXworks with ConText stand alone LMTX. To set it up to run
>> context do the following.
>>
>> Open TexWorks and then click on TexWorks in the menu bar then
>> Preferences. The TexWorks Preference window will open up.
>>
>> Click on the Typesetting tab and you will see two panes. One marked
>> "Paths for TeX and related Programs" and another marked "Processing Tools".
>>
>> Next to Processing Tools is a + button. Click on this and a "Tool
>> Configuration" window appears. This is where you enter the details for
>> processing by ConTeXt and this is how I have set this up on my mac mini M1.
>>
>> Name: LMTX
>>
>> % Here you need to use the Browse button to get to the mtxrun. On my mac
>> it is the path to the directory tex  which contains the file mtxrun as
>> shown below. Yours may be different. Since mtxrun is an alias for
>> luametatex it substitutes luametatex. I edited this to, mtxrun.
>>
>> Program:
>> /Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun
>>
>> % Next enter the arguments as follows using the + button.
>>
>> Arguments: --autogenerate
>>
>> --script
>>
>> context
>>
>> --autopdf
>>
>> $fullname
>>
>> Click OK. This takes you back to the TeXworks Prefences window (which has
>> stayed open anyway). You may have to enter some more paths to the Paths
>> pane. I added
>> /Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin just to
>> be on the safe side but it may not be needed.
>>
>> If I have made any mistakes I'm sure the great and the good in the
>> ConTeXt community will correct me.
>>
>> I also use TeXshop but prefer TeXworks but to be honest with with you
>> there is not much of a difference between the two in my ConTeXt use. I'm
>> experimenting with atom but that is a wee bit more complicated since I have
>> to use the console to run context.
>>
>> Hope this helps
>>
>> Best Wishes
>>
>> Keith McKay
>>
>> On 26/05/2022 13:53, Tommaso Gordini via ntg-context wrote:
>>
>> Hello list,
>> forgive me if my question is too general and trivial and without a
>> minimum code.
>>
>> In the current state of ConTeXt development, which engine do you
>> recommend to use *definitively*? ConTeXt MkIV or LMTX?
>>
>> I use macOS 10.15.7, on which I have MacTeX-2022, ConTeXt Standalone and
>> ConTeXt LMTX. My editor is TeXShop 4.72 (the last one), even if Synctex
>> doesn't work too well: source to PDF is almost OK, but PDF to source is
>> still very inaccurate, not to mention that to activate the direct and
>> reverse search you have to write such a thing as
>>
>> %! TEX TS-program = ConTeXt2021
>> %! TEX useAlternatePath
>> %! TEX useConTeXtSyncParser
>>
>> \setupsynctex [state=start, method=min]
>>
>> \starttext
>> ...
>> \stoptext
>>
>> I also have the latest TeXworks on board, but I don't understand how to
>> set it up. If you think that for ConTeXt is better than TeXShop and you
>> want to teach me how to set it up, thank you.
>>
>> Tommaso
>>
>> ___
>> 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/listin

Re: [NTG-context] Mark IV or LuaMetaTeX?

2022-05-26 Thread Keith McKay via ntg-context

Hi Tommaso

 I use TeXworks with ConText stand alone LMTX. To set it up to run 
context do the following.


Open TexWorks and then click on TexWorks in the menu bar then 
Preferences. The TexWorks Preference window will open up.


Click on the Typesetting tab and you will see two panes. One marked 
"Paths for TeX and related Programs" and another marked "Processing Tools".


Next to Processing Tools is a + button. Click on this and a "Tool 
Configuration" window appears. This is where you enter the details for 
processing by ConTeXt and this is how I have set this up on my mac mini M1.


Name: LMTX

% Here you need to use the Browse button to get to the mtxrun. On my mac 
it is the path to the directory tex  which contains the file mtxrun as 
shown below. Yours may be different. Since mtxrun is an alias for 
luametatex it substitutes luametatex. I edited this to, mtxrun.


Program: 
/Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun


% Next enter the arguments as follows using the + button.

Arguments: --autogenerate

                    --script

                    context

                    --autopdf

                    $fullname

Click OK. This takes you back to the TeXworks Prefences window (which 
has stayed open anyway). You may have to enter some more paths to the 
Paths pane. I added 
/Users/HomeDirectory/data/contextmacosarm64/tex/texmf-osx-arm64/bin just 
to be on the safe side but it may not be needed.


If I have made any mistakes I'm sure the great and the good in the 
ConTeXt community will correct me.


I also use TeXshop but prefer TeXworks but to be honest with with you 
there is not much of a difference between the two in my ConTeXt use. I'm 
experimenting with atom but that is a wee bit more complicated since I 
have to use the console to run context.


Hope this helps

Best Wishes

Keith McKay

On 26/05/2022 13:53, Tommaso Gordini via ntg-context wrote:


Hello list,
forgive me if my question is too general and trivial and without a 
minimum code.


In the current state of ConTeXt development, which engine do you 
recommend to use /definitively/? ConTeXt MkIV or LMTX?


I use macOS 10.15.7, on which I have MacTeX-2022, ConTeXt Standalone 
and ConTeXt LMTX. My editor is TeXShop 4.72 (the last one), even if 
Synctex doesn't work too well: source to PDF is almost OK, but PDF to 
source is still very inaccurate, not to mention that to activate the 
direct and reverse search you have to write such a thing as


%! TEX TS-program = ConTeXt2021
%! TEX useAlternatePath
%! TEX useConTeXtSyncParser

\setupsynctex [state=start, method=min]

\starttext
...
\stoptext

I also have the latest TeXworks on board, but I don't understand how 
to set it up. If you think that for ConTeXt is better than TeXShop and 
you want to teach me how to set it up, thank you.


Tommaso

___
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] Problem with a defined colour in MetaFun

2022-04-29 Thread Keith McKay via ntg-context

Hi Wolfgang,

Thank you for your reply. I did as you suggested but it still never 
worked. However it did make me delve further into the Metafun, 
LuaMetaFun and the Colouring ConTeXt manuals where I found examples of 
the *resolvedcolor* helper which I used as follows:


definecolor [name = "myColor", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1)];


for loop..

fill unitsquare xscaled 5cm yscaled .5cm shifted (7cm,i*cm) 
withcolor(r[resolvedcolor("myColor"), white]);


endfor;

I also found the *namedcolor* helper and I could use it as follows:

fill unitsquare xscaled 5cm yscaled .5cm shifted (1cm,(2*i)*cm) 
withcolor namedcolor("myColor2") ;


However, for some reason it did not work in:

fill unitsquare xscaled 5cm yscaled .5cm shifted (7cm,i*cm) 
withcolor(r[namedcolor("myColor"), white]);


//

Thanks again for your suggestion//

Best Wishes

Keith//

On 28/04/2022 16:04, Wolfgang Schuster wrote:

Keith McKay via ntg-context schrieb am 28.04.2022 um 12:05:


Hi,

In the MWE below I define an rgb colour, myColor1, using random 
numbers for the r, g and b components. I then use it to fill a 
unitsquare the size of the page, which works as expected. In the loop 
that follows I then use the defined colour, myColor1, along with 
white and the variable r to create shades of myColor1 as in the MWE 
below. However, myColor1 is not recognised in the loop and seems to 
be replaced by black, although if I use a predefined colour, in this 
case BurntSienna from the crayola collection, it works as expected.  
I have tried a number of ways to get this to work as shown in the 
code but without success. I would be grateful for any suggestions.


Best Wishes

Keith McKay

MWE%

\setuppapersize[A4,portrait]

\usecolors[crayola]

\starttext

\dorecurse{10}{

\startMPpage

StartPage;

\definecolor[name="myColor1", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;




Remove the backslash in front of the definecolor command.

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

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


Re: [NTG-context] Problem with a defined colour in MetaFun

2022-04-29 Thread Keith McKay via ntg-context

Hi Fabrice

Thank you for your reply. It works the way I wanted. Wolfgang also 
replied and this has lead me to an alternative method. See my reply to 
him in this mailing list.


Best Wishes

Keith

On 28/04/2022 13:45, Fabrice L wrote:

Sorry, I was a little too enthusiastic, here here is the code :


Le 28 avr. 2022 à 08:41, Fabrice L  a écrit :

Hi Keith,

Le 28 avr. 2022 à 06:05, Keith McKay via ntg-context 
 a écrit :


Hi,

In the MWE below I define an rgb colour, myColor1, using random 
numbers for the r, g and b components. I then use it to fill a 
unitsquare the size of the page, which works as expected. In the 
loop that follows I then use the defined colour, myColor1, along 
with white and the variable r to create shades of myColor1 as in the 
MWE below. However, myColor1 is not recognised in the loop and seems 
to be replaced by black, although if I use a predefined colour, in 
this case BurntSienna from the crayola collection, it works as 
expected.  I have tried a number of ways to get this to work as 
shown in the code but without success. I would be grateful for any 
suggestions.


Best Wishes

Keith McKay

MWE%
\setuppapersize[A4,portrait]
\usecolors[crayola]
\starttext
\dorecurse{10}{
\startMPpage
StartPage;
\definecolor[name="myColor1", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;
fill unitsquare xscaled PaperWidth yscaled PaperHeight withcolor 
"myColor1";

for i =2 step 2 until 10:
r := i/10;
fill unitsquare xscaled 5cm yscaled .5cm shifted (1cm,i*cm) 
withcolor(r[\MPcolor{BurntSienna},white]);
fill unitsquare xscaled 5cm yscaled .5cm shifted (7cm,i*cm) 
withcolor(r[\MPcolor{myColor1}, white]);
fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) 
withcolor(r[\MPcolor{"myColor1"}, white]);
%fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) 
withcolor(r[myColor1 , white]); This line causes an error.

endfor;
StopPage;
\stopMPpage
}

\stoptext
%%%end MWE%%%


Here is a solution, with works here, defining in another way the 
color «  myColor »:


\setuppapersize[A4,portrait]
\usecolors[crayola]
\starttext
\dorecurse{2}{
\startMPpage
StartPage;
color myColor ;
myColor := (uniformdeviate(1),uniformdeviate(1),uniformdeviate(1));
fill unitsquare xscaled PaperWidth yscaled PaperHeight withcolor myColor;
for i =2 step 2 until 10:
r := i/10;
fill unitsquare xscaled 5cm yscaled .5cm shifted (1cm,i*cm) 
withcolor(r[\MPcolor{BurntSienna},white]);
fill unitsquare xscaled 5cm yscaled .5cm shifted (7cm,i*cm) 
withcolor(r[\MPcolor{myColor1}, white]);
fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) 
withcolor(r[\MPcolor{"myColor1"}, white]);
%fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) 
withcolor(r[myColor1 ,  white]); This line causes an error.

endfor;
StopPage;
\stopMPpage
}

\stoptext


I forgot to remove « myColor1 » from the others parts of the code.
\setuppapersize[A4,portrait]
\usecolors[crayola]
\starttext
\dorecurse{10}{
\startMPpage
StartPage;
color myColor ;
myColor := (uniformdeviate(1),uniformdeviate(1),uniformdeviate(1));
fill unitsquare xscaled PaperWidth yscaled PaperHeight withcolor myColor;
for i =2 step 2 until 10:
r := i/10;
fill unitsquare xscaled 5cm yscaled .5cm shifted (1cm,i*cm) 
withcolor(r[\MPcolor{BurntSienna},white]);
fill unitsquare xscaled 5cm yscaled .5cm shifted (7cm,i*cm) 
withcolor(r[myColor, white]);
fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) 
withcolor(r[myColor, white]);
%fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) 
withcolor(r[myColor1 ,  white]); This line causes an error.

endfor;
StopPage;
\stopMPpage
}

\stoptext




Fabrice.

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


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

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

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


[NTG-context] Problem with a defined colour in MetaFun

2022-04-28 Thread Keith McKay via ntg-context

Hi,

In the MWE below I define an rgb colour, myColor1, using random numbers 
for the r, g and b components. I then use it to fill a unitsquare the 
size of the page, which works as expected. In the loop that follows I 
then use the defined colour, myColor1, along with white and the variable 
r to create shades of myColor1 as in the MWE below. However, myColor1 is 
not recognised in the loop and seems to be replaced by black, although 
if I use a predefined colour, in this case BurntSienna from the crayola 
collection, it works as expected.  I have tried a number of ways to get 
this to work as shown in the code but without success. I would be 
grateful for any suggestions.


Best Wishes

Keith McKay

MWE%

\setuppapersize[A4,portrait]

\usecolors[crayola]

\starttext

\dorecurse{10}{

\startMPpage

StartPage;

\definecolor[name="myColor1", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;


fill unitsquare xscaled PaperWidth yscaled PaperHeight withcolor "myColor1";

for i =2 step 2 until 10:

r := i/10;

fill unitsquare xscaled 5cm yscaled .5cm shifted (1cm,i*cm) 
withcolor(r[\MPcolor{BurntSienna},white]);


fill unitsquare xscaled 5cm yscaled .5cm shifted (7cm,i*cm) 
withcolor(r[\MPcolor{myColor1}, white]);


fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) 
withcolor(r[\MPcolor{"myColor1"}, white]);


%fill unitsquare xscaled 5cm yscaled .5cm shifted (13cm,i*cm) 
withcolor(r[myColor1 , white]); This line causes an error.


endfor;

StopPage;

\stopMPpage

}

\stoptext

%%%end MWE%%%

I am running:

system >

system > ConTeXt ver: 2022.04.20 19:18 LMTX fmt: 2022.4.26 int: 
english/english


system >

system > 'cont-new.mkxl' loaded
___
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] Setting up zint on a mac with macOS Montery Version 12.3.1

2022-04-12 Thread Keith McKay via ntg-context

Hi All

I created the symbolic link as suggested by Bruce and Luis and still got the 
error message

optional> unable to locate library 'libzint'

in my text editor. I use TeXworks. However, I thought I would try running from 
the Terminal app and it worked. It found libzint and output the pdf with both 
barcodes and the qrcode. I have no idea why it works in the Terminal and not 
TexWorks, I'm guessing I have a path issue which I need to investigate.

Notes
1) My machine is a mac-mini-M1 with macos Monterey and I'm running the latest 
ConTeXt version
2) Bruce noted that my Homebrew was installed in a non-standard location so I 
checked on the Hombrew website and it is installed in opt/homebrew for Apple 
Silicon i.e the M1 chip. Maybe Bruce's homebrew was installed on an earlier 
version.

Thanks to Luis and Bruce for their suggestions.
Best Wishes
Keith McKay

On 10/04/2022 22:26, Bruce Horrocks wrote:

Hi Keith,


On 10 Apr 2022, at 14:49, Keith McKay via ntg-context  
wrote:

Hi All

I have been struggling today trying to setup and use the Barcode module zint in 
ConTeXt and failed. I have followed the instructions on the wiki 
(https://wiki.contextgarden.net/Barcodes  ) but with some changes as follows. 
Which maybe why I failed.

1) I downloaded Zint using Homebrew since I'm using macOS, and installed it 
according to the instructions.


2) Since I'm using LMTX I looked for the file libzint.dylib and found it in 
/opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path given on 
the wiki. The directory contained three files, two of which were aliases,  
libzint.2.10.dylib and libzint.dylib, and an exe file libzint.2.10.0.0.dylib

You have Hombrew installed in a non-standard location. Mine is in 
/usr/local/Cellar with the executables linked into /usr/local/bin.

But, assuming other Homebrew commands work when run from Terminal then you 
might still be okay.


3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint and 
copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as suggested on 
the wiki instructions. So I basically added  lib/luametatex/zint to 
texmf-osx-64/bin .

"Yes" to creating the path but "no" to copying. Create a symbolic link instead.

So, in Terminal:

   $ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint

   # In my case I used the following:
   $ ln -s /usr/local/Cellar/zint/2.10.0/lib/libzint.dylib libzint.so

   # For you with Homebrew in a different location, try:
   $ ln -s /opt/homebrew/Cellar/zint/2.10.0/lib/libzint.dylib libzint.so

Then steps 4 and 5 as below. I ran the MWE below: the ISBN worked, the ISBNX 
didn't, the QR code did. This is on Monterey.


4) I ran mtxrun --generate to update the database.

5) I ran the MWE below but no barcode appeared. The console output shows:
  


modules > using user prefixed file 'libs-imp-zint'
modules > 'zint' is loaded

  however further down the output it gives:


optional> unable to locate library 'libzint'

I have tried renaming libzint2.10.0.0.so to libzint.so, but still no barcode. 
Is their something I am missing? Tips or hints appreciated.
Best Wishes
Keith McKay

%% MWE 
\usemodule[zint]
\starttext
\barcode[alternative=isbn,text=9783865419026,width=4cm]
\barcode[alternative=isbnx, text=9783865419026, width=4cm]
\barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm]
\stoptext

—
Bruce Horrocks
Hampshire, UK
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / 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] Setting up zint on a mac with macOS Montery Version 12.3.1

2022-04-10 Thread Keith McKay via ntg-context

Hi All

I have been struggling today trying to setup and use the Barcode module 
zint in ConTeXt and failed. I have followed the instructions on the wiki 
( https://wiki.contextgarden.net/Barcodes ) but with some changes as 
follows. Which maybe why I failed.


1) I downloaded Zint using Homebrew since I'm using macOS, and installed 
it according to the instructions.


2) Since I'm using LMTX I looked for the file libzint.dylib and found it 
in /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the 
path given on the wiki. The directory contained three files, two of 
which were aliases,  libzint.2.10.dylib and libzint.dylib, and an exe 
file libzint.2.10.0.0.dylib


3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint 
and copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as 
suggested on the wiki instructions. So I basically added 
lib/luametatex/zint to texmf-osx-64/bin .


4) I ran mtxrun --generate to update the database.

5) I ran the MWE below but no barcode appeared. The console output shows:

/modules > using user prefixed file 'libs-imp-zint'/

//

/modules > 'zint' is loaded/

however further down the output it gives:

/optional > unable to locate library 'libzint'/

//

I have tried renaming libzint2.10.0.0.so to libzint.so, but still no 
barcode. Is their something I am missing? Tips or hints appreciated.


Best Wishes

Keith McKay

%% MWE 

\usemodule[zint]

\starttext

\barcode[alternative=isbn,text=9783865419026,width=4cm]

\barcode[alternative=isbnx, text=9783865419026, width=4cm]

\barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, 
width=3cm]


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

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


Re: [NTG-context] What’s wrong with installation?

2022-03-08 Thread Keith McKay via ntg-context

Hi,

I had the same issue on an old laptop running Ubuntu 21.04, but after 
the server reboot the update was successful.


Running context -version now gives:

mtx-context | ConTeXt Process Management 1.04
mtx-context |
mtx-context | main context file: 
/myPath/context-linux-64/tex/texmf-context/tex/context/base/mkiv/context.mkiv 


mtx-context | current version: 2022.01.21 20:13
mtx-context | main context file: 
/myPath/context-linux-64/tex/texmf-context/tex/context/base/mkxl/context.mkxl 


mtx-context | current version: 2022.01.21 20:13

Best Wishes

Keith McKay



On 08/03/2022 13:03, Hans Hagen via ntg-context wrote:

On 3/8/2022 12:55 PM, Stephen Gaito via ntg-context wrote:

Hans,

I am having the same problem on an XUbuntu 21.10 :

hm, maybe the server has some issue ... i rebooted the machine

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] Radius attribute and scaling in lmt_shade[ ]

2022-01-12 Thread Keith McKay via ntg-context
Thanks Hans. Something else I've learned.
Best Wishes
Keith


On Sun, 9 Jan 2022, 22:26 Hans Hagen,  wrote:

> On 1/9/2022 4:53 PM, Keith McKay via ntg-context wrote:
> > Since "a picture paints a thousand words", I attach a pdf showing the
> > results of the execution of the code.
> >
> > Are these bugs or... ?
> more interplay between parameters ...
>
>  draw lmt_shade [
>  trace   = true,
>  path= r shifted - center r,
>  direction   = "up",
>  alternative = "circular",
>  radius  = k*cm,
>  colors  = { "MyColor1", "MyColor2" },
>  ] scaled 4 shifted((k *12)*cm,12*cm);
>
>
>
> -
>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] Radius attribute and scaling in lmt_shade[ ]

2022-01-09 Thread Keith McKay via ntg-context
Since "a picture paints a thousand words", I attach a pdf showing the 
results of the execution of the code.


Are these bugs or... ?

Best Wishes

Keith

On 06/01/2022 15:57, Keith McKay wrote:


Hi

In the code below you will see that I have created a closed path and 
performed scaling, and shading on the path with lmt_shade [ ]. I have 
noticed a few features which may or may not be bugs depending on 
whether scaled is applied to the path within the square brackets or 
outside.


1) Applying scaled to the path within the square brackets and 
incrementing the radius key I can see the shaded areas changing, 
however the first two shapes show incorrect scaling and have ragged edges.


2) When scaled is applied outside the square brackets all shapes are 
the same size and no ragged edges, however the shading is not showing 
correctly with increasing radius.


Am I missing something?

Best Wishes

Keith McKay

***MWE*

\setuppapersize[A4, landscape]

\starttext

\dorecurse{10}{

\startMPpage

StartPage;

width := 27; height := 18;

path r;

r := (0.25cm,0cm)--(0cm,1.5cm)..(0.25cm,1.75cm)..(0.5cm,1.5cm) -- cycle;

definecolor [ name = "MyColor1", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;


definecolor [ name = "MyColor2", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;


    for k = 0.5 step 0.25 until 2:

        draw lmt_shade [

            path = r ,

            direction = "up",

            alternative = "circular",

            radius = k*cm,

            colors = { "MyColor1", "MyColor2" },

            ] scaled 4.5 shifted((k *12)*cm,12*cm);

        draw lmt_shade [

            path = r scaled 4.5,

            direction = "up",

            alternative = "circular",

            radius = k*cm,

            colors = { "MyColor1", "MyColor2" },

            ] shifted((k *12)*cm,1cm);

endfor;

StopPage;

\stopMPpage

}

\stoptext


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

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


[NTG-context] Radius attribute and scaling in lmt_shade[ ]

2022-01-06 Thread Keith McKay via ntg-context

Hi

In the code below you will see that I have created a closed path and 
performed scaling, and shading on the path with lmt_shade [ ]. I have 
noticed a few features which may or may not be bugs depending on whether 
scaled is applied to the path within the square brackets or outside.


1) Applying scaled to the path within the square brackets and 
incrementing the radius key I can see the shaded areas changing, however 
the first two shapes show incorrect scaling and have ragged edges.


2) When scaled is applied outside the square brackets all shapes are the 
same size and no ragged edges, however the shading is not showing 
correctly with increasing radius.


Am I missing something?

Best Wishes

Keith McKay

***MWE*

\setuppapersize[A4, landscape]

\starttext

\dorecurse{10}{

\startMPpage

StartPage;

width := 27; height := 18;

path r;

r := (0.25cm,0cm)--(0cm,1.5cm)..(0.25cm,1.75cm)..(0.5cm,1.5cm) -- cycle;

definecolor [ name = "MyColor1", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;


definecolor [ name = "MyColor2", r = uniformdeviate(1), g = 
uniformdeviate(1), b = uniformdeviate(1) ] ;


    for k = 0.5 step 0.25 until 2:

        draw lmt_shade [

            path = r ,

            direction = "up",

            alternative = "circular",

            radius = k*cm,

            colors = { "MyColor1", "MyColor2" },

            ] scaled 4.5 shifted((k *12)*cm,12*cm);

        draw lmt_shade [

            path = r scaled 4.5,

            direction = "up",

            alternative = "circular",

            radius = k*cm,

            colors = { "MyColor1", "MyColor2" },

            ] shifted((k *12)*cm,1cm);

endfor;

StopPage;

\stopMPpage

}

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

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


[NTG-context] A Bug in lmt_shade

2021-05-06 Thread Keith McKay

Hi all,

I think a bug has appeared in lmt_shade in the latest upload. MWE below.

Thanks

Keith McKay

%%

\setuppapersize[A4,landscape][A4,landscape]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ;

definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ;

draw lmt_shade [

path = unitsquare xscaled width yscaled height,

direction = "up",

alternative = "linear",

colors = { "MyColor1", "MyColor3" },

] ;

StopPage;

\stopMPpage

\stoptext

%%%

%%% Console Output %%%

system >

system > ConTeXt ver: 2021.05.05 19:29 LMTX fmt: 2021.5.6 int: 
english/english


system >

< snip >

metapost > initializing instance 'metafun:1' using format 'metafun' and 
method 'default'


metapost > loading 'metafun' as 'metafun.mpxl' using method 'default'

metapost > initializing number mode 'scaled'

metafun > log >

metafun > log > error: An expression can't begin with 'right delimiter'

metafun > log >

metapost > log > 

metapost > log > 0

metapost > log > 

metapost > log > )

metapost > log >  
...enter_b,alternative,s;string.color_a,color_b,alternative,s;pair.center_a,center_b;alternative:=getparameter"alternative";mfun_with_shade_method_analyze(getparameter"path")


metapost > log > ;domain_min:...

metapost > log > 
image->begingroup.save.currentpicture;picture.currentpicture;currentpicture:=nullpicture;(TEXT3)


metapost > log > 
;currentpicture.if.str(SUFFIX2)<>"":shifted(mfun_labxf(SUFFIX2)*lrcorner.p+mfun_labyf(SUFFIX2)*ulcorn...


metapost > log > 
lmt_do_shade->...ve="circular":draw.fullcircle.scaled(radius_a)shifted.center_a.dashed.evenly;draw.fullcircle.scaled(factor*radius_b)shifted-center_b.dashed.evenly;fi.fi.popparameters;)


metapost > log > endgroup

metapost > log >  lmt_do_shade

metapost > log >

metapost > log > <*> ...3", r = 1, g = 1, b = 0.7983 ] ; draw lmt_shade 
[ path = unitsquare xscaled width yscaled height, direction = "up", 
alternative = "linear", colors = { "MyColor1", "MyColor3" }, ]


metafun > log >

metafun > log > I'm afraid I need some sort of value in order to 
continue, so I've tentatively


inserted '0'.

metafun > log >

metapost > log > ; StopPage; ;

metapost > log >

___
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] arm osx

2021-04-25 Thread Keith McKay
Great! I'm glad it worked OK!
Best Wishes
Keith

On Sun, 25 Apr 2021, 09:59 Charles Doherty, 
wrote:

> Dear Keith and Mojca,
>
> I followed the information provided buy Keith below and everything is
> working just fine. Mojca I directed my request to Keith in the first
> instance since I felt it was most likely my lack of knowledge of how to get
> things going that was the problem (as usual). So thank you for your quick
> response and offer to test. And thank you Keith for your example below it
> did the trick.
>
> Very best wishes,
> Charlie
>
> On 23 Apr 2021, at 15:53, Keith McKay  wrote:
>
> Sorry. I put a typo in the engine file in my reply. It should be
>
> #!/bin/bash
>
> export
> PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin
>
> /Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun
> --autogenerate --script context --autopdf "$1"
>
> Best Wishes
>
> Keith
>
>
> ***
> CHARLES DOHERTY
> 13 BANCROFT ROAD
> TALLAGHT
> DUBLIN
> D24 YH2V
> home: +353 1 2447483
> Mobile: +353 863868629
> charles.dohe...@icloud.com
>
>
>
>
>
>
> ___
> 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] arm osx

2021-04-23 Thread Keith McKay

Sorry. I put a typo in the engine file in my reply. It should be

#!/bin/bash

export 
PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin


/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun 
--autogenerate --script context --autopdf "$1"


Best Wishes

Keith

On 23/04/2021 15:45, Keith McKay wrote:


Hi Charles

Firstly. I can take no credit for getting Context running on the new 
M1 Mac OS ARM. Hans and his team are the real heroes here. I just 
downloaded the zip file and off I went.


I don't normally use TexShop, I use Texworks, but I have it set up on 
my machine. I cant remember how I setup the engine but I checked it 
out and it runs as expected. Here is the engine I use:


%

#!/bin/bash

export 
PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/context/tex/texmf-osx-64/bin


/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun 
--autogenerate --script context --autopdf "$1"


%

I did exactly as you did only I unzipped into /data/contextarm64. I 
did this because I have another directory into which I unzipped the 
intel version. It means I have two ConText options, intel and arm. The 
only other differences are my engine is a bash file and I don't 
remember making it executable.


Hope this helps. I'm happy to help off list if you want.

Best Wishes

Keith

On 23/04/2021 12:11, Charles Doherty wrote:
Hi all (especially Keith who successfully got Context running on the 
new M1 Mac OS ARM)


Again thanks to Mojca for providing the Mac OS ARM download. I 
recently replace my old Mac with the new ARM one.


I am having difficulty getting ConTeXt to work.  This is what I have 
done and the information from the console.


I downloaded:

context-osx-arm64.zip

In terminal:  cd /Users/charlesdoherty/context-osx-arm64

Ran sh install.sh

and all seems ok (following Keith’s advice on privacy).

I made an engine for TeXShop based on what worked before:

#!/bin/Zsh
export 
PATH=$PATH:~/context-osx-arm64/bin:~/context-osx-arm64/tex/texmf-osx-64/bin
~/context-osx-arm64/tex/texmf-osx-64/bin/mtxrun --autogenerate 
--script context --directives="system.showerror" --autopdf "$1" 
--purgeall


I made it executable.

When I typeset a file in TeXShop using this engine I get:

/Users/charlesdoherty/Library/TeXShop/Engines/ARM.engine:3: bad CPU 
type in executable: 
/Users/charlesdoherty/context-osx-arm64/tex/texmf-osx-64/bin/mtxrun


I have tried various options to no avail but I would really 
appreciate some help on this (longhand rather than cryptic would be 
really helpful).


Thanks,
Charlie



On 11 Apr 2021, at 19:27, Keith McKay <mailto:mckaymeis...@gmail.com>> wrote:


An alternative way is to go to Preferences>>Security and 
Privacy>>General. And then click on Open anyway and that's it sorted.

Best Wishes
Keith



On Sun, 11 Apr 2021, 18:47 Otared Kavian, <mailto:ota...@gmail.com>> wrote:


Hi,

Thank you Mojca and Hans for the new binary for MacOS ARM:
yesterday I installed it on my new MacBook Pro ARM and
everything works like a charm.

Just for the persons who run into difficulties when running
sh install.sh
and see that MacOS 11 prevents mtxrun to run properly, in the
Finder you should find the file

context-osx-arm64/bin/mtxrun

and then you press Control while clicking on it. You’ll see a
pop up window, and you choose Open, and when the Finder tells
you whether you really want to open that file, you say YES…
After this, the install script does what it has to do and you
don’t need anymore to authorize mtxrun to run.

Best regards: Otared



***
CHARLES DOHERTY
13 BANCROFT ROAD
TALLAGHT
DUBLIN
D24 YH2V
home: +353 1 2447483
Mobile: +353 863868629
charles.dohe...@icloud.com <mailto:charles.dohe...@icloud.com>






___
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] arm osx

2021-04-23 Thread Keith McKay

Hi Charles

Firstly. I can take no credit for getting Context running on the new M1 
Mac OS ARM. Hans and his team are the real heroes here. I just 
downloaded the zip file and off I went.


I don't normally use TexShop, I use Texworks, but I have it set up on my 
machine. I cant remember how I setup the engine but I checked it out and 
it runs as expected. Here is the engine I use:


%

#!/bin/bash

export 
PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/context/tex/texmf-osx-64/bin


/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun 
--autogenerate --script context --autopdf "$1"


%

I did exactly as you did only I unzipped into /data/contextarm64. I did 
this because I have another directory into which I unzipped the intel 
version. It means I have two ConText options, intel and arm. The only 
other differences are my engine is a bash file and I don't remember 
making it executable.


Hope this helps. I'm happy to help off list if you want.

Best Wishes

Keith

On 23/04/2021 12:11, Charles Doherty wrote:
Hi all (especially Keith who successfully got Context running on the 
new M1 Mac OS ARM)


Again thanks to Mojca for providing the Mac OS ARM download. I 
recently replace my old Mac with the new ARM one.


I am having difficulty getting ConTeXt to work.  This is what I have 
done and the information from the console.


I downloaded:

context-osx-arm64.zip

In terminal:  cd /Users/charlesdoherty/context-osx-arm64

Ran sh install.sh

and all seems ok (following Keith’s advice on privacy).

I made an engine for TeXShop based on what worked before:

#!/bin/Zsh
export 
PATH=$PATH:~/context-osx-arm64/bin:~/context-osx-arm64/tex/texmf-osx-64/bin
~/context-osx-arm64/tex/texmf-osx-64/bin/mtxrun --autogenerate 
--script context --directives="system.showerror" --autopdf "$1" --purgeall


I made it executable.

When I typeset a file in TeXShop using this engine I get:

/Users/charlesdoherty/Library/TeXShop/Engines/ARM.engine:3: bad CPU 
type in executable: 
/Users/charlesdoherty/context-osx-arm64/tex/texmf-osx-64/bin/mtxrun


I have tried various options to no avail but I would really appreciate 
some help on this (longhand rather than cryptic would be really helpful).


Thanks,
Charlie



On 11 Apr 2021, at 19:27, Keith McKay <mailto:mckaymeis...@gmail.com>> wrote:


An alternative way is to go to Preferences>>Security and 
Privacy>>General. And then click on Open anyway and that's it sorted.

Best Wishes
Keith



On Sun, 11 Apr 2021, 18:47 Otared Kavian, <mailto:ota...@gmail.com>> wrote:


Hi,

Thank you Mojca and Hans for the new binary for MacOS ARM:
yesterday I installed it on my new MacBook Pro ARM and everything
works like a charm.

Just for the persons who run into difficulties when running
sh install.sh
and see that MacOS 11 prevents mtxrun to run properly, in the
Finder you should find the file

context-osx-arm64/bin/mtxrun

and then you press Control while clicking on it. You’ll see a pop
up window, and you choose Open, and when the Finder tells you
whether you really want to open that file, you say YES…
After this, the install script does what it has to do and you
don’t need anymore to authorize mtxrun to run.

Best regards: Otared



***
CHARLES DOHERTY
13 BANCROFT ROAD
TALLAGHT
DUBLIN
D24 YH2V
home: +353 1 2447483
Mobile: +353 863868629
charles.dohe...@icloud.com <mailto:charles.dohe...@icloud.com>






___
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] arm osx

2021-04-11 Thread Keith McKay
An alternative way is to go to Preferences>>Security and Privacy>>General.
And then click on Open anyway and that's it sorted.
Best Wishes
Keith



On Sun, 11 Apr 2021, 18:47 Otared Kavian,  wrote:

> Hi,
>
> Thank you Mojca and Hans for the new binary for MacOS ARM: yesterday I
> installed it on my new MacBook Pro ARM and everything works like a charm.
>
> Just for the persons who run into difficulties when running
> sh install.sh
> and see that MacOS 11 prevents mtxrun to run properly, in the Finder you
> should find the file
>
> context-osx-arm64/bin/mtxrun
>
> and then you press Control while clicking on it. You’ll see a pop up
> window, and you choose Open, and when the Finder tells you whether you
> really want to open that file, you say YES…
> After this, the install script does what it has to do and you don’t need
> anymore to authorize mtxrun to run.
>
> Best regards: Otared
>
> > On 10 Apr 2021, at 17:21, Hans Hagen  wrote:
> >
> > Hi,
> >
> > Thanks to Mojca's persistent efforts we now generate arm osx binaries on
> the build infrastructure, so lmtx now ships native arm bins for apples.
> There are also intel solaris builds now but no installers for those
> platforms (yet).
> >
> > Hans
> >
> >
> > -
> >  Hans Hagen | PRAGMA ADE
> >  Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> >   tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> > -
> >
> ___
> > If your question is of interest to others as well, please add an entry
> to the Wiki!
> >
> > maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> > webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> > archive  : https://bitbucket.org/phg/context-mirror/commits/
> > wiki : http://contextgarden.net
> >
> ___
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] arm osx

2021-04-11 Thread Keith McKay

Great news on the Apple front! Thanks to Mojca and ConTeXt.

Best Wishes

Keith McKay

On 10/04/2021 16:21, Hans Hagen wrote:

Hi,

Thanks to Mojca's persistent efforts we now generate arm osx binaries 
on the build infrastructure, so lmtx now ships native arm bins for 
apples. There are also intel solaris builds now but no installers for 
those platforms (yet).


Hans


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

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


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

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


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

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


[NTG-context] Bug in lmt_shade[...=...,...=...]

2021-03-16 Thread Keith McKay

Hi All

 I think a bug has appeared quite recently in the command, lmt_shade. A 
MWE below followed by the error output.


Best Wishes

Keith McKay

\setuppapersize[A4,landscape][A4,landscape]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ;

definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ;

draw lmt_shade [

path = unitsquare xscaled width yscaled height,

direction = "up",

alternative = "linear",

colors = { "MyColor1", "MyColor3" },

] ;

StopPage;

\stopMPpage

\stoptext

%%%Error Log%%%

system >

system > ConTeXt ver: 2021.03.13 11:22 LMTX fmt: 2021.3.16 int: 
english/english


system >

system > 'cont-new.mkxl' loaded 

metapost > initializing instance 'metafun:1' using format 'metafun' and 
method 'default'


metapost > loading 'metafun' as 'metafun.mpxl' using method 'default'

metapost > initializing number mode 'scaled'

metafun > log >

metafun > log > error: Not a cycle

metafun > log >

metapost > log > 

metapost > log > withprescript

metapost > log >  
...asparameter"vector":center_a:=point(getparameter"vector"1)of.mfun_shade_path;center_b:=point(getparameter"vector"2)of.mfun_shade_path;fi.fill.mfun_shade_path.withprescript


metapost > log > "sh_domain="...

metapost > log > 
image->begingroup.save.currentpicture;picture.currentpicture;currentpicture:=nullpicture;(TEXT3)


metapost > log > 
;currentpicture.if.str(SUFFIX2)<>"":shifted(mfun_labxf(SUFFIX2)*lrcorner.p+mfun_labyf(SUFFIX2)*ulcorn...


metapost > log > 
lmt_do_shade->...ve="circular":draw.fullcircle.scaled(radius_a)shifted.center_a.dashed.evenly;draw.fullcircle.scaled(factor*radius_b)shifted-center_b.dashed.evenly;fi.fi.popparameters;)


metapost > log > endgroup

metapost > log >  lmt_do_shade

metapost > log >

metapost > log > <*> ...3", r = 1, g = 1, b = 0.7983 ] ; draw lmt_shade 
[ path = unitsquare xscaled width yscaled height, direction = "up", 
alternative = "linear", colors = { "MyColor1", "MyColor3" }, ]


metafun > log >

metafun > log > That contour should have ended with '.. cycle' or '& 
cycle'. So I'll not change


anything just now.

metafun > log >

metapost > log > ; StopPage; ;

metapost > log >

___
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] Shaded large letters in LMTX

2021-03-02 Thread Keith McKay

Wow! Just what I envisaged. Thank you so much!

Best Wishes

Keith

On 02/03/2021 17:47, Hans Hagen wrote:

On 3/2/2021 5:51 PM, Keith McKay wrote:

Hi All,

Is it possible to get the fill colour in lmt_outline[] to be shaded 
between two colours like in the lmt_shade[] command? It would be a 
nice effect for large letters or words.

Sometimes the impossible is possible (see effects-001 in test suite)

% see discussion on this list with/by Garulfo

\startMPpage
    picture tt ; tt := lmt_outline [
    kind = "fillup",
    text = "\definedfont[name:texgyrepagellabold*default]foo f o o",
    ] xsized 12cm ;

    path bb ; bb := boundingbox tt ;

    path pp ; pp := bb enlarged 2cm ;

    fill pp
   withshademethod "linear"
   withshadedirection down
   withshadecolors (red, blue) ;

    for i within tt :
    nofill pathpart i;
    endfor ;

    eofill bb withcolor "darkgreen" ; % you need to specify your 
background

    clip currentpicture to bb ;
\stopMPpage

I think I should add that to the metafun manual.

Hans


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

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

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


[NTG-context] Shaded large letters in LMTX

2021-03-02 Thread Keith McKay

Hi All,

Is it possible to get the fill colour in lmt_outline[] to be shaded 
between two colours like in the lmt_shade[] command? It would be a nice 
effect for large letters or words.


Best Wishes

Keith McKay

Hamilton, Scotland

___
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] Possible problem with context using the ARM 64bit download for Apple Silicon M1

2021-02-23 Thread Keith McKay

Thanks for your reply Hans.

I half suspected that the ARM version was experimental but thought I 
should report it anyway.


Much as I would love to donate an ARM mini to the farm the best I can do 
is offer to compile on my mac mini Silicon M1, however, I would have to 
add the caveat that this is something I have never done so would need a 
lot of hand holding.


Best Wishes

Keith

On 23/02/2021 17:21, Hans Hagen wrote:

On 2/23/2021 5:51 PM, Keith McKay wrote:

I have been using ConTeXt (X86 64bits) on my mac mini Apple Silicon 
M1 and it works well using Rosetta translation for the M1. I recently 
installed the ARM 64bits version (separately from the X86 64bits 
version) which I assume does not require translation using Rosetta. 
However I had a error with the lmt_shade command in the ARM 64bits 
ConTeXt verson but not in with the X86 64bits version of ConTeXt. The 
MWE is shown below. This is actually taken from the LuaMetaFun 
manual. I also noticed that some figures are missing in the manual 
(Chapter 7, Shade) which is part of the ARM 64bit tree but not in the 
manual in the X86 64bits tree.
That arm version was an experiment so it's definitely not in sync with 
the latest luametatex/lmtx combination. It was crosscompiled on an 
intel mac which took ages so it stuck as experiment. Because th eintel 
bin runs on the arm mac it has a low priority (unless someone donates 
an arm mini to the farm). So, forget about the arm apple bins for now.


We do generate windows arm but that's because it's easy to do, boit 
that we have a machine to test if it actually works.


Btw, in the latest upload the metafun manual should compile ok (Otared 
tested till we had all working in lmtx which does some things 
differnetly deep down; there were also some resources missing).


Hans

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

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

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


[NTG-context] Possible problem with context using the ARM 64bit download for Apple Silicon M1

2021-02-23 Thread Keith McKay

Hi all

I have been using ConTeXt (X86 64bits) on my mac mini Apple Silicon M1 
and it works well using Rosetta translation for the M1. I recently 
installed the ARM 64bits version (separately from the X86 64bits 
version) which I assume does not require translation using Rosetta. 
However I had a error with the lmt_shade command in the ARM 64bits 
ConTeXt verson but not in with the X86 64bits version of ConTeXt. The 
MWE is shown below. This is actually taken from the LuaMetaFun manual. I 
also noticed that some figures are missing in the manual (Chapter 7, 
Shade) which is part of the ARM 64bit tree but not in the manual in the 
X86 64bits tree.


Best Wishes

Keith McKay

Hamilton, Scotland.

%

\setuppapersize [A4, portrait]

\usecolors[crayola]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

definecolor [ name = "MyColor3", r = 0.22, g = 0.44, b = 0.66 ] ;

definecolor [ name = "MyColor4", r = 0.66, g = 0.44, b = 0.22 ] ;

draw lmt_shade [

path = fullcircle scaled 4cm,

direction = "right",

domain = { 0, 2 },

colors = { "MyColor3", "MyColor4" },

] ;

StopPage;

\stopMPpage

\stoptext



Here is the error taken from the log



system >

system > ConTeXt ver: 2021.02.20 16:50 LMTX fmt: 2021.2.21 int: 
english/english


system >

system > 'cont-new.mkxl' loaded 

metapost > initializing number mode 'scaled'

metafun > log >

metafun > log > error: Not a cycle

metafun > log >

metapost > log > 

metapost > log > withprescript

metapost > log >  
...asparameter"vector":center_a:=point(getparameter"vector"1)of.mfun_shade_path;center_b:=point(getparameter"vector"2)of.mfun_shade_path;fi.fill.mfun_shade_path.withprescript


metapost > log > "sh_domain="...

metapost > log > 
image->begingroup.save.currentpicture;picture.currentpicture;currentpicture:=nullpicture;(TEXT3)


metapost > log > 
;currentpicture.if.str(SUFFIX2)<>"":shifted(mfun_labxf(SUFFIX2)*lrcorner.p+mfun_labyf(SUFFIX2)*ulcorn...


metapost > log > 
lmt_do_shade->...ve="circular":draw.fullcircle.scaled(radius_a)shifted.center_a.dashed.evenly;draw.fullcircle.scaled(factor*radius_b)shifted-center_b.dashed.evenly;fi.fi.popparameters;)


metapost > log > endgroup

metapost > log >  lmt_do_shade

metapost > log >

metapost > log > <*> ... name = "MyColor4", r = 0.66, g = 0.44, b = 0.22 
] ; draw lmt_shade [ path = fullcircle scaled 4cm, direction = "right", 
domain = { 0, 2 }, colors = { "MyColor3", "MyColor4" }, ]


metafun > log >

metafun > log > That contour should have ended with '.. cycle' or '& 
cycle'. So I'll not change


anything just now.

metafun > log >

metapost > log > ; StopPage; ;

metapost > log >

___
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] Problem with show command in MetaFun

2021-01-07 Thread Keith McKay

Thanks Hans!

I had forgotten about \enabletrackers[metapost.tracingall].

Best Wishes

Keith

On 07/01/2021 15:35, Hans Hagen wrote:

On 1/7/2021 4:11 PM, Keith McKay wrote:
In the MWE below I would expect the "show" command to print the value 
of p in the console output (I use Texworks), however this does not 
seem to be happening. I haven't used "show" in MetaFun for a while, 
am I implementing it correctly?


Best Wishes

Keith McKay

 MWE %

\setuppapersize[A4, portrait]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

numeric p;

p := 0;

for q = 0 step 1 until 10:

show p;

p := p + 1;

fill fullcircle xyscaled(3cm,4cm) shifted ((p +2)*cm, (p + 2)*cm) 
withcolor red ;


endfor;

StopPage;

\stopMPpage

\stoptext


\enabletrackers[metapost.tracingall]


but best use:

message(p);

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

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

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


[NTG-context] Problem with show command in MetaFun

2021-01-07 Thread Keith McKay
In the MWE below I would expect the "show" command to print the value of 
p in the console output (I use Texworks), however this does not seem to 
be happening. I haven't used "show" in MetaFun for a while, am I 
implementing it correctly?


Best Wishes

Keith McKay

 MWE %

\setuppapersize[A4, portrait]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

numeric p;

p := 0;

for q = 0 step 1 until 10:

show p;

p := p + 1;

fill fullcircle xyscaled(3cm,4cm) shifted ((p +2)*cm, (p + 2)*cm) 
withcolor red ;


endfor;

StopPage;

\stopMPpage

\stoptext

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

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


Re: [NTG-context] Context install for Apple Silicon M1 mac mini

2020-12-01 Thread Keith McKay

Hi Otared,

Thank you for your kind offer but Hans has modified the install script 
such that it downloads the intel binaries which work under Rosetta on my 
mac mini. I've ran context  through the Terminal app and it went like a 
dream. Just to setup TeXShop and or TeXWorks and that is me sorted.


Thanks again and Best Wishes

Keith McKay

Scotland, UK

On 01/12/2020 17:17, Otared Kavian wrote:

Hi Keith,

You may try to copy to your new machine the whole folder where you have 
installed LMTX on your old machine, and then run
context --make
there. Indeed if this works for your current LMTX folder you'll need someone to 
prepare a whole working folder of updated LMTX. As long as I have a PowerBook 
with the old chip (and running MacOS 14), I may do this for you and then put a 
zip file on Dropbox. However I may be too pushed to get a new M1 PowerBook in 
the future.

Best regards: Otared K.


On 1 Dec 2020, at 13:01, Keith McKay  wrote:

Hi,

I have recently retired my 2012 mac mini in favour of a new Apple silicon M1 mac mini on 
which I would like to install ConTeXt. I know that their are no ARM binaries yet for 
ConTeXt but Apple say that intel binaries can be run on an ARM using the Rosetta 
emmulation software. I tried to download the intel binaries using the install.sh that 
comes with the context-osx-64.zip file but of course it does not recognise the ARM chip 
and suggests contacting the mailing list. In some previous emails to the list, in which I 
was a participent, (see the post "new upload" of 26/11/2020) their was some 
discussion on how Context could be set up to work on these machines by building binaries 
using Xcode. I am afraid this is well above my skillset so I was wondering how I could 
get the Intel binaries and then set up ConTeXt running with the Rosetta emulation 
software. I should be able to do that. If this is possible, I would be very happy to do 
some testing and report back my experiences to the list.

Best Wishes

Keith McKay

Scotland, UK

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

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

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

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


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

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


[NTG-context] Context install for Apple Silicon M1 mac mini

2020-12-01 Thread Keith McKay

Hi,

I have recently retired my 2012 mac mini in favour of a new Apple 
silicon M1 mac mini on which I would like to install ConTeXt. I know 
that their are no ARM binaries yet for ConTeXt but Apple say that intel 
binaries can be run on an ARM using the Rosetta emmulation software. I 
tried to download the intel binaries using the install.sh that comes 
with the context-osx-64.zip file but of course it does not recognise the 
ARM chip and suggests contacting the mailing list. In some previous 
emails to the list, in which I was a participent, (see the post "new 
upload" of 26/11/2020) their was some discussion on how Context could be 
set up to work on these machines by building binaries using Xcode. I am 
afraid this is well above my skillset so I was wondering how I could get 
the Intel binaries and then set up ConTeXt running with the Rosetta 
emulation software. I should be able to do that. If this is possible, I 
would be very happy to do some testing and report back my experiences to 
the list.


Best Wishes

Keith McKay

Scotland, UK

___
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] Units of xpart and ypart of a pair in MetaFun

2020-11-27 Thread Keith McKay
Thanks Taco!
I understand much better now. I think it's best to leave the units out
until the drawing stage as you suggest.
Thanks again
Keith McKay

On Fri, 27 Nov 2020, 08:30 Taco Hoekwater,  wrote:

>
>
> > On 26 Nov 2020, at 16:09, Keith McKay  wrote:
> >
> > Hi,
> >
> > I have been using xpart and ypart to extract these values from pairs of
> points in a path but I wasn't getting the correct result. I was expecting:
> >
> > pair (2cm, 11cm) to give xpart 2 and ypart 11
>
> As explained by various people, Metapost does not have dimensions. All
> lengths are implicit Postscript big points
> (72/inch). Variables like “cm” just add a multiplication factor to your
> expressions, at no point is a dimension stored inside Metapost.
>
> Your equation:
>
>   a0 = (2cm,11cm)
>
> first expands into
>
>   a0 = (2*28.34645,11*28.34645)
>
> because “cm” is a variable with a value (Its definition in plain.mp is
> "cm = 28.34645”)
>
> Then, the two expressions in the a0 equation are resolved before the
> assignment, so what you actually wrote at the statement level is
>
>   a0 = (56.6929, 311.8096);
>
> At no point is there a “cm”-sized dimension.
>
> ===
>
> Perhaps another option would be for you to do all your work without units,
> e.g.
>
>   a0 = (2,11) % assume scaling will happen later
>
> and then in the end do the drawing on a scaled path:
>
>   draw (pp scaled cm) …
>
> as that may be less confusing? If the precision is an issue, you could
> counter the loss of precision you could use implied millimeters instead of
> centimeters.
>
> Best wishes,
> Taco
>
>
>
>
>
>
> ___
> 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] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
/First « //uniformdeviate(1) - 0.5// » could be modified to « 
//uniformdeviate(0.5)//»./

/
/
/To add noise, you can use the randomized function of Metafun. For 
exemple, you can write:/

/
/
/draw pp randomized 1cm ;/
/
/
That's true Fabrice but in this use case I wanted a random number 
between -0.5 and +0.5, and I wasn't sure I would get that with randomized.

Thanks again
Keith McKay/
/
On 26/11/2020 17:20, Fabrice L wrote:

Keith,

Le 26 nov. 2020 à 12:12, Keith McKay <mailto:mckaymeis...@gmail.com>> a écrit :


Thanks Fabrice and Hans.

I now see I can simplify some lines of the code:

pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm); now becomes pp:= a[i];

and

pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm); now 
becomes pp := pp --- a[i +1] ;


However I still have the problem in the calculation of xcoord and 
ycoord which are used in the creation of path pp:

for squig = 1 step 1 until 15:
xcoord := uniformdeviate(1) - 0.5 + (xpart a[i]/cf);
ycoord := uniformdeviate(1) - 0.5+ (ypart a[i]/cf);
pp := pp .. {curl 100}(xcoord*cm, ycoord*cm);
endfor;
I'm adding a small random amount to the x and ypart of the pair a[i] 
to produce a path that is like a squiggle (gribouiller in French, 
according to Google). I have to use cf to convert to the x and yparts 
to centimeters since they seem to loose the centimeter units on 
separation. I can't see anyway round this, or am I missing something?

Thanks
Keith McKay


First « uniformdeviate(1) - 0.5 » could be modified to « 
uniformdeviate(0.5)».


To add noise, you can use the randomized function of Metafun. For 
exemple, you can write:


draw pp randomized 1cm ;

Fabrice.




On 26/11/2020 15:19, Fabrice L wrote:

Hi keith,

Le 26 nov. 2020 à 10:09, Keith McKay <mailto:mckaymeis...@gmail.com>> a écrit :


Hi,

I have been using xpart and ypart to extract these values from 
pairs of points in a path but I wasn't getting the correct result. 
I was expecting:


pair (2cm, 11cm) to give xpart 2 and ypart 11

However I was getting:

pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096

After much head scratching and reading the MetaPost and MetaFun 
manuals, I realised that the units of xpart or ypart are in 
Postcript points or Big Points (bp), and 1 bp is 1/72 of an inch, 
and thus to get the values of xpart or ypart in cm I would have to 
use a correction factor. I had made the assumption that since the x 
and ypart in the pair was in cm that the result would be in cm, but 
I see now that this is not the case. Will I have to continue doing 
this or is there some magic within MetaFun which takes account of 
the units in a pair and outputs the result of x and ypart in the 
same units?


The MWE belows shows what I have been doing.

Thanks

Keith McKay

%%% MWE %%%
\setuppapersize [A5, landscape][A4, portrait]
\usecolors[crayola]
\starttext
\startMPpage
StartPage;
width := PaperWidth ; height := PaperHeight ; unit := cm ;
numeric squig;
pair a[]; a0 = (2cm,11cm); a1 = (4cm,10cm); a2 = (6cm,9cm); a3 = 
(8cm,8cm);
show xpart a[0], ypart a[0]; %Example of result from x and ypart 
before applying correction factor (cf) %

cf := 72/2.54; %Converts points/in to points/cm%
path pp;
for i = 0 step 1 until 3:
pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm);
for squig = 1 step 1 until 15:
xcoord := uniformdeviate(1) - 0.5 + (xpart a[i]/cf);
ycoord := uniformdeviate(1) - 0.5+ (ypart a[i]/cf);
pp := pp .. {curl 100}(xcoord*cm, ycoord*cm);
endfor;
pp := pp --- cycle;
if i < 3 :
pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm);
fi;
f :=((1.4 - 0.6) * uniformdeviate(1)) + 0.8; % Factor to 
lighten/darken colour %
draw pp withpen pencircle xscaled 0.5mm yscaled .1mm rotated 45 
withcolor (f[white,\MPcolor{BurntSienna}]);

endfor;
StopPage;
\stopMPpage
\stoptext
%%



MetaPost (MetaFun) is taking care of everything regarding units. As 
you ave discovered, everything is translated to a unique internal 
dimension. So you can write:


 a := (1cm,2in) ;

with no problem. The « cm » and « in » parts of the expression will 
become numbers to translate this number on the right unit.

Fabrice.


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




___
If your qu

Re: [NTG-context] new upload

2020-11-26 Thread Keith McKay
Thanks for your interesting and very helpful reply Mojca. It's given me 
lots to think about.


Best wishes

Keith McKay

On 26/11/2020 18:43, Mojca Miklavec wrote:

On Thu, 26 Nov 2020 at 16:26, Keith McKay wrote:

I was planning on getting the new entry level MAC min M1 with 8GB
unified memory but I see that there will be no ConTeXt binaries for
these new M1 chip Macs.

It's not that there will not be, it's just that none of us has
purchased a piece of hardware yet.

A few months back it was possible to purchase one, but:
- it was just a one year rental fee rather than the ability to purchase it
- definitely not available in my country
- one had to enrol to the payed developer program
- and then do a bunch of other bureaucracy (get some special business
number etc.)
- and it wasn't even guaranteed that you would get a device at the end

I was contemplating what to do this time around since 8 GB of memory
is not even sufficient to run a web browser, and the TeX Live hardly
fits on their drive :), but it should do the job purely as a build
machine. (Not that they have "none in stock", but I could smuggle one
from elsewhere as long as the postal services keep running ...)


Would it be possible for a ConTeXt user like
myself to build the binaries on my proposed new Mac? I'm not a computer
professional.

There are three options:
- the existing Intel binaries should work just fine
- yes, you should be able to compile the binaries yourself
- we should eventually get hold of one device for our build farm, or
in the meantime just ask someone for the initial build which should
keep you covered for a while

Discussing when TeX Live will be available for arm is "out of
context". We should get those binaries working before TL 2021.

Mojca
___
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] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay
Thanks again Hans and Fabrice, for the time you have both taken with my 
question and thanks for the code snippet Hans. Just one last 
confirmation from the snippet. Hans uses the correction factor cf on the 
x and yparts of a[i]. I taking this as meaning that this has to be done 
because the x and yparts of a[i] are returned as postscript points units 
and not as centimeters as in the pair. I maybe didn't make this clear in 
my original query.


Thanks for your patience.

Keith McKay

On 26/11/2020 17:25, Hans Hagen wrote:

On 11/26/2020 6:12 PM, Keith McKay wrote:

Thanks Fabrice and Hans.

I now see I can simplify some lines of the code:

pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm); now becomes pp:= a[i];

and

pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm); now 
becomes pp := pp --- a[i +1] ;


However I still have the problem in the calculation of xcoord and 
ycoord which are used in the creation of path pp:


for squig = 1 step 1 until 15:
xcoord := uniformdeviate(1) - 0.5 + (xpart a[i]/cf);
ycoord := uniformdeviate(1) - 0.5+ (ypart a[i]/cf);
pp := pp .. {curl 100}(xcoord*cm, ycoord*cm);
endfor;
I'm adding a small random amount to the x and ypart of the pair a[i] 
to produce a path that is like a squiggle (gribouiller in French, 
according to Google). I have to use cf to convert to the x and yparts 
to centimeters since they seem to loose the centimeter units on 
separation. I can't see anyway round this, or am I missing something?



for squig = 1 step 1 until 15:
    xcoord := (xpart a[i]/cf);
    ycoord := (ypart a[i]/cf);
    xcoord := xcoord randomized (xcoord/50);
    ycoord := ycoord randomized (ycoord/50);
    pp := pp  .. { curl 100 } (xcoord*cm, ycoord*cm);
endfor;



Thanks
Keith McKay

On 26/11/2020 15:19, Fabrice L wrote:

Hi keith,

Le 26 nov. 2020 à 10:09, Keith McKay <mailto:mckaymeis...@gmail.com>> a écrit :


Hi,

I have been using xpart and ypart to extract these values from 
pairs of points in a path but I wasn't getting the correct result. 
I was expecting:


pair (2cm, 11cm) to give xpart 2 and ypart 11

However I was getting:

pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096

After much head scratching and reading the MetaPost and MetaFun 
manuals, I realised that the units of xpart or ypart are in 
Postcript points or Big Points (bp), and 1 bp is 1/72 of an inch, 
and thus to get the values of xpart or ypart in cm I would have to 
use a correction factor. I had made the assumption that since the x 
and ypart in the pair was in cm that the result would be in cm, but 
I see now that this is not the case. Will I have to continue doing 
this or is there some magic within MetaFun which takes account of 
the units in a pair and outputs the result of x and ypart in the 
same units?


The MWE belows shows what I have been doing.

Thanks

Keith McKay

%%% MWE %%%
\setuppapersize [A5, landscape][A4, portrait]
\usecolors[crayola]
\starttext
\startMPpage
StartPage;
width := PaperWidth ; height := PaperHeight ; unit := cm ;
numeric squig;
pair a[]; a0 = (2cm,11cm); a1 = (4cm,10cm); a2 = (6cm,9cm); a3 = 
(8cm,8cm);
show xpart a[0], ypart a[0]; %Example of result from x and ypart 
before applying correction factor (cf) %

cf := 72/2.54; %Converts points/in to points/cm%
path pp;
for i = 0 step 1 until 3:
pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm);
for squig = 1 step 1 until 15:
xcoord := uniformdeviate(1) - 0.5 + (xpart a[i]/cf);
ycoord := uniformdeviate(1) - 0.5+ (ypart a[i]/cf);
pp := pp .. {curl 100}(xcoord*cm, ycoord*cm);
endfor;
pp := pp --- cycle;
if i < 3 :
pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm);
fi;
f :=((1.4 - 0.6) * uniformdeviate(1)) + 0.8; % Factor to 
lighten/darken colour %
draw pp withpen pencircle xscaled 0.5mm yscaled .1mm rotated 45 
withcolor (f[white,\MPcolor{BurntSienna}]);

endfor;
StopPage;
\stopMPpage
\stoptext
%%



MetaPost (MetaFun) is taking care of everything regarding units. As 
you ave discovered, everything is translated to a unique internal 
dimension. So you can write:


 a := (1cm,2in) ;

with no problem. The « cm » and « in » parts of the expression will 
become numbers to translate this number on the right unit.

Fabrice.


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

Re: [NTG-context] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay

Thanks Fabrice and Hans.

I now see I can simplify some lines of the code:

pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm); now becomes pp:= a[i];

and

pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm); now becomes 
pp := pp --- a[i +1] ;


However I still have the problem in the calculation of xcoord and ycoord 
which are used in the creation of path pp:


for squig = 1 step 1 until 15:
xcoord := uniformdeviate(1) - 0.5 + (xpart a[i]/cf);
ycoord := uniformdeviate(1) - 0.5+ (ypart a[i]/cf);
pp := pp .. {curl 100}(xcoord*cm, ycoord*cm);
endfor;
I'm adding a small random amount to the x and ypart of the pair a[i] to 
produce a path that is like a squiggle (gribouiller in French, according 
to Google). I have to use cf to convert to the x and yparts to 
centimeters since they seem to loose the centimeter units on separation. 
I can't see anyway round this, or am I missing something?

Thanks
Keith McKay

On 26/11/2020 15:19, Fabrice L wrote:

Hi keith,

Le 26 nov. 2020 à 10:09, Keith McKay <mailto:mckaymeis...@gmail.com>> a écrit :


Hi,

I have been using xpart and ypart to extract these values from pairs 
of points in a path but I wasn't getting the correct result. I was 
expecting:


pair (2cm, 11cm) to give xpart 2 and ypart 11

However I was getting:

pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096

After much head scratching and reading the MetaPost and MetaFun 
manuals, I realised that the units of xpart or ypart are in Postcript 
points or Big Points (bp), and 1 bp is 1/72 of an inch, and thus to 
get the values of xpart or ypart in cm I would have to use a 
correction factor. I had made the assumption that since the x and 
ypart in the pair was in cm that the result would be in cm, but I see 
now that this is not the case. Will I have to continue doing this or 
is there some magic within MetaFun which takes account of the units 
in a pair and outputs the result of x and ypart in the same units?


The MWE belows shows what I have been doing.

Thanks

Keith McKay

%%% MWE %%%
\setuppapersize [A5, landscape][A4, portrait]
\usecolors[crayola]
\starttext
\startMPpage
StartPage;
width := PaperWidth ; height := PaperHeight ; unit := cm ;
numeric squig;
pair a[]; a0 = (2cm,11cm); a1 = (4cm,10cm); a2 = (6cm,9cm); a3 = 
(8cm,8cm);
show xpart a[0], ypart a[0]; %Example of result from x and ypart 
before applying correction factor (cf) %

cf := 72/2.54; %Converts points/in to points/cm%
path pp;
for i = 0 step 1 until 3:
pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm);
for squig = 1 step 1 until 15:
xcoord := uniformdeviate(1) - 0.5 + (xpart a[i]/cf);
ycoord := uniformdeviate(1) - 0.5+ (ypart a[i]/cf);
pp := pp .. {curl 100}(xcoord*cm, ycoord*cm);
endfor;
pp := pp --- cycle;
if i < 3 :
pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm);
fi;
f :=((1.4 - 0.6) * uniformdeviate(1)) + 0.8; % Factor to 
lighten/darken colour %
draw pp withpen pencircle xscaled 0.5mm yscaled .1mm rotated 45 
withcolor (f[white,\MPcolor{BurntSienna}]);

endfor;
StopPage;
\stopMPpage
\stoptext
%%



MetaPost (MetaFun) is taking care of everything regarding units. As 
you ave discovered, everything is translated to a unique internal 
dimension. So you can write:


 a := (1cm,2in) ;

with no problem. The « cm » and « in » parts of the expression will 
become numbers to translate this number on the right unit.

Fabrice.


___ 
If your question is of interest to others as well, please add an 
entry to the Wiki! maillist :ntg-context@ntg.nl 
<mailto:ntg-context@ntg.nl>/http://www.ntg.nl/mailman/listinfo/ntg-context 
<http://www.ntg.nl/mailman/listinfo/ntg-context> webpage 
 :http://www.pragma-ade.nl 
<http://www.pragma-ade.nl/>/http://context.aanhet.net 
<http://context.aanhet.net/> archive 
 :https://bitbucket.org/phg/context-mirror/commits/ 
<https://bitbucket.org/phg/context-mirror/commits/> wiki 
:http://contextgarden.net <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

2020-11-26 Thread Keith McKay

Hi,

I'm planning in the next few weeks to retire my 2012 16GB Mac mini which 
has served me well with ConTeXt (and other software) over these past few 
years. I was planning on getting the new entry level MAC min M1 with 8GB 
unified memory but I see that there will be no ConTeXt binaries for 
these new M1 chip Macs. Would it be possible for a ConTeXt user like 
myself to build the binaries on my proposed new Mac? I'm not a computer 
professional.


Best Wishes

Keith McKay

On 24/11/2020 19:07, Hans Hagen wrote:

Hi,

A new upload. Mojca upgraded the build manager and we also updated 
some machines so all binaries (platforms) should be in sync now. (No 
binaries for apples M1 and microsofts SQ2 as we don't have these 
machines, so just good old intel and arm it is.)


On my rusty laptop the luametatex manual takes between 10 and 10.5 sec 
(depending on load). On the raspberry pi 64 bit it takes 32.5 sec 
(ubuntu, ssd on usb 3). The Windows Linux Subsystem (version 1) takes 
some 11.5 seconds and the domotica fitlet with a low power AMD A10 
needs 27.5 sec.) The ratios match measurements of a while ago. In the 
meantime the format file got smaller, memory more dynamic and the mem 
footprint also smaller. I expect a modern intel laptop cpu to need 
some 5 seconds and a decent desktop less but who knows. It's not easy 
to squeeze out more (the bottleneck is in the lua code as the 
(con)tex(t) code is pretty efficient so we pay a price for flexibility).


(In the process I saw that I bugged the xetex logo but that has to 
wait for a next upload. Hardly critital I suspect.)


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] Units of xpart and ypart of a pair in MetaFun

2020-11-26 Thread Keith McKay

Hi,

I have been using xpart and ypart to extract these values from pairs of 
points in a path but I wasn't getting the correct result. I was expecting:


pair (2cm, 11cm) to give xpart 2 and ypart 11

However I was getting:

pair (2cm, 11cm) -> xpart 56.6929 and ypart 311.8096

After much head scratching and reading the MetaPost and MetaFun manuals, 
I realised that the units of xpart or ypart are in Postcript points or 
Big Points (bp), and 1 bp is 1/72 of an inch, and thus to get the values 
of xpart or ypart in cm I would have to use a correction factor. I had 
made the assumption that since the x and ypart in the pair was in cm 
that the result would be in cm, but I see now that this is not the case. 
Will I have to continue doing this or is there some magic within MetaFun 
which takes account of the units in a pair and outputs the result of x 
and ypart in the same units?


The MWE belows shows what I have been doing.

Thanks

Keith McKay

%%% MWE %%%

\setuppapersize [A5, landscape][A4, portrait]

\usecolors[crayola]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

numeric squig;

pair a[]; a0 = (2cm,11cm); a1 = (4cm,10cm); a2 = (6cm,9cm); a3 = (8cm,8cm);

show xpart a[0], ypart a[0]; %Example of result from x and ypart before 
applying correction factor (cf) %


cf := 72/2.54; %Converts points/in to points/cm%

path pp;

for i = 0 step 1 until 3:

pp := ((xpart a[i])/cf*cm, (ypart a[i])/cf*cm);

for squig = 1 step 1 until 15:

xcoord := uniformdeviate(1) - 0.5 + (xpart a[i]/cf);

ycoord := uniformdeviate(1) - 0.5+ (ypart a[i]/cf);

pp := pp .. {curl 100}(xcoord*cm, ycoord*cm);

endfor;

pp := pp --- cycle;

if i < 3 :

pp := pp --- ((xpart a[i+1]/cf)*cm, (ypart a[i+1])/cf*cm);

fi;

f :=((1.4 - 0.6) * uniformdeviate(1)) + 0.8; % Factor to lighten/darken 
colour %


draw pp withpen pencircle xscaled 0.5mm yscaled .1mm rotated 45 
withcolor (f[white,\MPcolor{BurntSienna}]);


endfor;

StopPage;

\stopMPpage

\stoptext

%%

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

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


Re: [NTG-context] A dumb question about MetaFun

2020-08-16 Thread Keith McKay

Jairo

Try

draw unitsquare scaled 1cm shifted (xcm, ycm);

Page 11 of the manual metafun-p.pdf is your friend here. My recent 
conversation with Taco on this list will be usefull as well.


Best Wishes

Keith


On 16/08/2020 18:06, Jairo A. del Rio wrote:

Hi list! A simple question: is there an equivalent of thetextext for a 
normal picture (an "image(draw ... ;)")? I want to move the center of 
a picture to an specific point, like this:


\startMPpage

draw thetextext("\tttf hello", origin) ;
draw unitsquare scaled 1cm;

\stopMPpage

The "hello" is centered at the origin. I want to achieve the same 
result for pictures. I've seen such a command some time ago, but I've 
forgotten and I cannot find it again in documentation. Thanks and 
sorry for any inconvenience.


Regards,

Jairo :)

___
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] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-16 Thread Keith McKay

Thanks Taco!

I have been playing about with an example from this site

https://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html

which was originally for a square and I obviously didn't get my angles 
right. Thanks for spotting it. I'm beginning to appreciate where the Fun 
in MetaFun comes from.


Best Wishes

Keith

On 15/08/2020 18:35, Taco Hoekwater wrote:

Hi Keith,

It took me a while before I saw it, but I think you wanted to type in

   z0 = (60,60);
   z1 = z0 rotated 120;
   z2 = z0 rotated 240;

instead of

   z0 = (60,60);
   z1 = z0 rotated 120;
   z2 = z1 rotated 240;

because the latter puts z2 at z0, resulting in a path that is a straight line. The 
fact that AR displays anything at all is probably some form of correction like 
"fill of empty path == single pixel line”.

Best wishes,
Taco


On 15 Aug 2020, at 17:39, Keith McKay  wrote:

Dear List

I have come across a problem which I don't think is due to ConTeXt but I'm 
hopping the great and the good of this list may be able to explain what is 
going on.

The code below produces an MPpage with a shaded background and two graphics 
along with a line of outlined text. When I view in Adobe (or the output from 
TeXworks) I see everything as it should be. However, I wanted to convert the 
MPpage to a jpeg file and when I opened the pdf in either Apple MAC Preview or 
Gimp 2.10 the two graphics are missing, and I have no idea why.

Could someone explain a way round this?  Here is the code.

Thanks

Keith

%%
system  >

system  > ConTeXt  ver: 2020.07.29 18:36 LMTX  fmt: 2020.7.29  int: 
english/english
system  >

%%%


\setuppapersize [A5, portrait]
\usecolors[crayola]
\starttext
\startMPpage
StartPage;
width := PaperWidth ; height := PaperHeight ; unit := cm ;
definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ;
definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ;
draw lmt_shade [
path = unitsquare xscaled 14.8cm yscaled 21cm,
direction = "up",
alternative = "linear",
colors = { "MyColor1", "MyColor3" },
] ;
z0 = (60,60);
   z1 = z0 rotated 120;
   z2 = z1 rotated 240;
   path carre;
   carre = z0--z1--z2--cycle;
   picture pic;
   pic := image(
  numeric d; d := 0.0005;
  for i=1 step -d until d:
fill carre scaled i shifted (3.9cm,17cm) withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;
fill carre rotated (45) scaled i shifted (3.9cm,17cm)  withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;
fill carre rotated (90) scaled i shifted (3.9cm,17cm)  withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;
fill carre rotated (135) scaled i shifted (3.9cm,17cm)  withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;
fill carre rotated (180) scaled i shifted (3.9cm,17cm)  withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;
fill carre rotated (225) scaled i shifted (3.9cm,17cm)  withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;
endfor;);
draw pic rotatedaround(center pic, 270);
draw pic rotatedaround(center pic, 90) shifted (7cm,-13cm) ;
draw lmt_outline [
text = "Page 18"
kind = "draw",
drawcolor = "VividTangerine",
] xsized TextWidth shifted (1cm,7.67cm);
StopPage;
\stopMPpage
\stoptext
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Taco Hoekwater
Elvenkind BV




___
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] Missing graphic in MPpage when viewing in Apple MAC Preview or GIMP 2.10 but not Adobe

2020-08-15 Thread Keith McKay

Dear List

I have come across a problem which I don't think is due to ConTeXt but 
I'm hopping the great and the good of this list may be able to explain 
what is going on.


The code below produces an MPpage with a shaded background and two 
graphics along with a line of outlined text. When I view in Adobe (or 
the output from TeXworks) I see everything as it should be. However, I 
wanted to convert the MPpage to a jpeg file and when I opened the pdf in 
either Apple MAC Preview or Gimp 2.10 the two graphics are missing, and 
I have no idea why.


Could someone explain a way round this?  Here is the code.

Thanks

Keith

%% system >

system > ConTeXt ver: 2020.07.29 18:36 LMTX fmt: 2020.7.29 int: 
english/english


system >

%%%

\setuppapersize [A5, portrait]

\usecolors[crayola]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ;

definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ;

draw lmt_shade [

path = unitsquare xscaled 14.8cm yscaled 21cm,

direction = "up",

alternative = "linear",

colors = { "MyColor1", "MyColor3" },

] ;

z0 = (60,60);

z1 = z0 rotated 120;

z2 = z1 rotated 240;

path carre;

carre = z0--z1--z2--cycle;

picture pic;

pic := image(

numeric d; d := 0.0005;

for i=1 step -d until d:

fill carre scaled i shifted (3.9cm,17cm) withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;


fill carre rotated (45) scaled i shifted (3.9cm,17cm) withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;


fill carre rotated (90) scaled i shifted (3.9cm,17cm) withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;


fill carre rotated (135) scaled i shifted (3.9cm,17cm) withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;


fill carre rotated (180) scaled i shifted (3.9cm,17cm) withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;


fill carre rotated (225) scaled i shifted (3.9cm,17cm) withcolor((1 + 
i)*(\MPcolor{VividTangerine})) ;


endfor;);

draw pic rotatedaround(center pic, 270);

draw pic rotatedaround(center pic, 90) shifted (7cm,-13cm) ;

draw lmt_outline [

text = "Page 18"

kind = "draw",

drawcolor = "VividTangerine",

] xsized TextWidth shifted (1cm,7.67cm);

StopPage;

\stopMPpage

\stoptext

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

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


Re: [NTG-context] Is there a bug in lmt_shade[...=...,...=...]

2020-07-29 Thread Keith McKay

Thanks again Hans, lmt_shade now works as before.

Keith

On 29/07/2020 16:13, Keith McKay wrote:

Thanks Hans! Much appreciated.

Keith

On 29/07/2020 16:04, Hans Hagen wrote:

On 7/29/2020 3:43 PM, Keith McKay wrote:


Has a bug appeared in the command lmt_shade[ ]?
Looks that way. I'll fix it (upload later today). We now have some 
better (potentially more efficient) ways to feed back results into mp 
so that's where the cycle property seems to get lost.


Hans

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

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

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


Re: [NTG-context] Is there a bug in lmt_shade[...=...,...=...]

2020-07-29 Thread Keith McKay

Thanks Hans! Much appreciated.

Keith

On 29/07/2020 16:04, Hans Hagen wrote:

On 7/29/2020 3:43 PM, Keith McKay wrote:


Has a bug appeared in the command lmt_shade[ ]?
Looks that way. I'll fix it (upload later today). We now have some 
better (potentially more efficient) ways to feed back results into mp 
so that's where the cycle property seems to get lost.


Hans

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

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

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


[NTG-context] Is there a bug in lmt_shade[...=...,...=...]

2020-07-29 Thread Keith McKay

Hi

Has a bug appeared in the command lmt_shade[ ]?

This used to work before I upgraded.

\setuppapersize [A5, portrait][A4, landscape]

\setuparranging[2UP]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ;

definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ;

draw lmt_shade [

path = unitsquare xscaled width yscaled height,

direction = "up",

alternative = "linear",

colors = { "MyColor1", "MyColor3" },

] ;

StopPage;

\stopMPpage

\stoptext

The console output gives this:

system >

system > ConTeXt ver: 2020.07.29 14:08 LMTX fmt: 2020.7.29 int: 
english/english


system >

metapost > log >

metapost > log > loading metafun, including plain.mp version 1.004 for 
metafun iv and xl


metapost > log >

metapost > log > ! Not a cycle.

metapost > log > 

metapost > log > withprescript

metapost > log >  ...i.fill.mfun_shade_path.withprescript

metapost > log > "sh_domain="

metapost > log >

metapost > log > image->...ture;currentpicture:=nullpicture;(TEXT3)

metapost > log > ;currentpicture.if.str(SUF...

metapost > log >

metapost > log > lmt_do_shade->...shed.evenly;fi.fi.popparameters;)

metapost > log > endgroup

metapost > log >  lmt_do_shade

metapost > log >

metapost > log > <*> ...ar", colors = { "MyColor1", "MyColor3" }, ]

metapost > log > ; StopPage; ;

metapost > log >

system > print height forced to paper height

system > print width forced to paper width

Thanks

Keith

___
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] CMYK workflow. How to set and should I worry about

2020-06-23 Thread Keith McKay
Thanks for your reply, Hraban
Best Wishes
Keith

On Tue, 23 Jun 2020, 22:06 Henning Hraban Ramm,  wrote:

>
>
> > Am 23.06.2020 um 22:28 schrieb Keith McKay :
> >
> > Colleagues
> >
> > I'm getting ready to send  a book to the  printers and in their blurb
> they state "Ensure that you are using a CMYK workflow and export to
> PDF/X-1a:2001" . I can set the pdf format using \setupbackend but I'm
> unsure as to what to do about CMYK workflow. The book has no colour pages
> so I'm not sure if I really need to worry about CMYK workflow. Could
> someone advise?
>
> \setupcolors[rgb=no] to avoid rgb colors, or
> \setupcolors[state=stop] to force black and white.
>
> You must ensure yourself that your images are just black and white /
> greyscale (not in RGB mode).
>
> ConTeXt does some automatical checks and conversions depending on the
> PDF/X standard, but I’m not sure how far that goes (e.g. PDF/X-1 prohibits
> transparencies, and ConTeXt cares for that).
>
> Best, Hraban
>
>
> ___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : http://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : http://contextgarden.net
>
> ___
>
___
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] CMYK workflow. How to set and should I worry about

2020-06-23 Thread Keith McKay

Colleagues

I'm getting ready to send  a book to the  printers and in their blurb 
they state "/Ensure that you are using a CMYK workflow and export to 
PDF/X-1a:2001" . /I can set the pdf format using \setupbackend but I'm 
unsure as to what to do about CMYK workflow. The book has no colour 
pages so I'm not sure if I really need to worry about CMYK workflow. 
Could someone advise?


Thanks and Best Wishes

Keith McKay
//

___
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] 'debug' version of METAPOST draw?

2020-05-28 Thread Keith McKay
Would Chapter 11, section 11.1 Showing Paths of the MetaPost manual, be 
any help here?


Below is a MWE of a random path of curves and straight lines. The points 
are shown using drawpoints. The arrow path and control lines are also 
shown and are better described in the Metapost manual.


MWE%%%

\setuppapersize [A4,landscape]

\starttext

\startMPpage[instance=doublefun]

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

path p ;

path pat;

pat := (5cm,5cm);

for a = 1 step 1 until 10:

x:= uniformdeviate(10) +10;

y:= uniformdeviate(10) +10;

if odd a:

pat := pat .. (x*cm,y*cm);

else:

pat := pat -- (x*cm,y*cm);

fi;

draw pat withpen pencircle scaled 5mm withcolor .5green;

endfor;

drawarrowpath pat;

drawpoints pat;

drawcontrollines pat withcolor .625red ;

StopPage;

\stopMPpage

\stoptext

%%% end MWE %

A better coder than me may be able to incorporate it into what you require.

Best Wishes

Keith McKay

On 28/05/2020 12:33, Gerben Wierda wrote:

I would like to be able (during development) to draw paths where the points of 
the path (and maybe thing slike directions) are visualised. E.g. a path where 
each pair in teh path is also drawn as a dot and maybe teh directions drawn as 
small arrows.

Does someone have such a beast lying around?

G
___
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] Arithmetic Overflow error in MetaFun

2020-05-17 Thread Keith McKay
Thanks for your help Hans and the pointer to the extended math library.
Lots more to explore now.
Best Wishes
Keith

On Sat, 16 May 2020, 20:46 Hans Hagen,  wrote:

> On 5/16/2020 4:48 PM, Keith McKay wrote:
> > Answering my own problem here.
> >
> > I've just searched through the mailing list archives and it seems that
> > if I add [instance=doublefun] I do not get the Arithmetic Overflow
> > error. Joy!
> fwiw, we have also instance=decimalfun
>
> concerning arithmic:
>
> in metapost we have
>
> scaled  : upto 4K bp
> double  : 64 bit floats
> decimal : configurable accuracy
> complex : dual doubles (only in luametafun)
>
> in lmtx lua we have:
>
> integer  : lua tries to be clever but mixing leads to double
> float: lua tries to be clever
> decimal  : userdata arbitrary precision (only in lmtx)
> complex  : userdata dual doubles (only in lmtx)
>
> (in lmtx we have an extended math library and these function are also
> available in luametafun)
>
> Hans
>
> -
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Keith McKay

Answering my own problem here.

I've just searched through the mailing list archives and it seems that 
if I add [instance=doublefun] I do not get the Arithmetic Overflow 
error. Joy!


Thanks

Best Wishes

Keith McKay

On 16/05/2020 15:36, Keith McKay wrote:


Colleagues

I'm having problems with an Arithmetic Overflow error when calculating 
the x and y values for functions of the form:


y = ax^4 + bx^3 + cx^2 + dx + e

to which I then add a bit of randomness and other embellishments. I 
have had a look in the Metafun and Metafont manuals but nothing jumps 
out at me. In the minimum working example below, this Arithmetic 
Overflow occurs when xord =13.5 but I can get the calculation to work 
if I separate out the equation and then add together, since it seems 
to be failing on the pow(xord,4) instruction. Is there a switch in 
MetaFont that should be set or a better way of getting round this 
Arithmetic Overflow error?


Thanks

Best Wishes

Keith McKay

%MWE%%%

\setuppapersize [A4,landscape]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

path p;

p := unitsquare scaled .1cm ;

path pat;

pat := (0.0*cm,19.935*cm);

for xord = 0 step 0.1 until 25:

show xord;

fails at xord = 13.5%

yord := ((-0.000268117) * pow(xord,4)) +(0.0136949 * pow(xord, 3)) + 
((-0.16608) * sqr(xord)) + ((-0.771743) * xord) + 19.935;


%comment out above and uncomment below and it works

% yord1 := (-0.000268117) * sqr(xord);

% yord1a := yord1 * sqr(xord);

% yord2 := (0.0136949 * pow(xord, 3));

% yord3 := ((-0.16608) * sqr(xord));

% yord4 := ((-0.771743) * xord);

% yord := yord1 + yord1a + yord2 + yord3 + yord4 + 19.935;

xrand := (uniformdeviate(1) - 0.5)*2;

yrand := uniformdeviate(1) - 0.5;

xcoord := xord + xrand;

ycoord := yord + yrand;

if odd xord:

pat := pat ... (xcoord*cm, ycoord*cm);

else:

pat := pat --- (xcoord*cm, ycoord*cm);

fill p shifted (xcoord*cm, ycoord*cm) withcolor 
(uniformdeviate(1),uniformdeviate(1),uniformdeviate(1)) ;


fi;

draw pat withpen pencircle scaled (uniformdeviate(0.75)*mm) withcolor 
(uniformdeviate(1),uniformdeviate(1),uniformdeviate(1)); 
%withtransparency (1, .5);


drawdot (xcoord*cm, ycoord*cm) withpen pencircle scaled 
(uniformdeviate(2.5)*mm) withcolor 
(uniformdeviate(1),uniformdeviate(1),uniformdeviate(1));


endfor;

StopPage;

\stopMPpage

\stoptext

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

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


[NTG-context] Arithmetic Overflow error in MetaFun

2020-05-16 Thread Keith McKay

Colleagues

I'm having problems with an Arithmetic Overflow error when calculating 
the x and y values for functions of the form:


y = ax^4 + bx^3 + cx^2 + dx + e

to which I then add a bit of randomness and other embellishments. I have 
had a look in the Metafun and Metafont manuals but nothing jumps out at 
me. In the minimum working example below, this Arithmetic Overflow 
occurs when xord =13.5 but I can get the calculation to work if I 
separate out the equation and then add together, since it seems to be 
failing on the pow(xord,4) instruction. Is there a switch in MetaFont 
that should be set or a better way of getting round this Arithmetic 
Overflow error?


Thanks

Best Wishes

Keith McKay

%MWE%%%

\setuppapersize [A4,landscape]

\starttext

\startMPpage

StartPage;

width := PaperWidth ; height := PaperHeight ; unit := cm ;

path p;

p := unitsquare scaled .1cm ;

path pat;

pat := (0.0*cm,19.935*cm);

for xord = 0 step 0.1 until 25:

show xord;

fails at xord = 13.5%

yord := ((-0.000268117) * pow(xord,4)) +(0.0136949 * pow(xord, 3)) + 
((-0.16608) * sqr(xord)) + ((-0.771743) * xord) + 19.935;


%comment out above and uncomment below and it works

% yord1 := (-0.000268117) * sqr(xord);

% yord1a := yord1 * sqr(xord);

% yord2 := (0.0136949 * pow(xord, 3));

% yord3 := ((-0.16608) * sqr(xord));

% yord4 := ((-0.771743) * xord);

% yord := yord1 + yord1a + yord2 + yord3 + yord4 + 19.935;

xrand := (uniformdeviate(1) - 0.5)*2;

yrand := uniformdeviate(1) - 0.5;

xcoord := xord + xrand;

ycoord := yord + yrand;

if odd xord:

pat := pat ... (xcoord*cm, ycoord*cm);

else:

pat := pat --- (xcoord*cm, ycoord*cm);

fill p shifted (xcoord*cm, ycoord*cm) withcolor 
(uniformdeviate(1),uniformdeviate(1),uniformdeviate(1)) ;


fi;

draw pat withpen pencircle scaled (uniformdeviate(0.75)*mm) withcolor 
(uniformdeviate(1),uniformdeviate(1),uniformdeviate(1)); 
%withtransparency (1, .5);


drawdot (xcoord*cm, ycoord*cm) withpen pencircle scaled 
(uniformdeviate(2.5)*mm) withcolor 
(uniformdeviate(1),uniformdeviate(1),uniformdeviate(1));


endfor;

StopPage;

\stopMPpage

\stoptext

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

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


Re: [NTG-context] Unexpected result when using PaperHeight and MetaFUun

2020-04-19 Thread Keith McKay

Thank you Wolfgang!

I thought it must be simple! And if I had stayed the course and got to 
the end of the MetaFun manual I would have found it.


Thanks for your help.

Keith

On 19/04/2020 13:04, Wolfgang Schuster wrote:

Keith McKay schrieb am 19.04.2020 um 13:15:

Dear All

I have problem understanding what is happening in the MWE below which 
is different from what I expected.


I have created a shaded background using MetaFun with dimensions 
PaperWidth by PaperHeight which mimics \setuppapersize[A4,landscape} 
as expected.  I then within \starttext \startMPpage... \stopMPpage 
\stoptext created a stripe of the shaded background, xscaled 2cm y 
scaled PaperHeight, but reversed, expecting it to cover the 
background top to bottom. However the top of the stripe seems to 
start at 10.5cm which is suspiciously half the height of A4, 
Landscape i.e. 21cm. I confirmed this by changing the shifted command 
to, shifted (19cm,10.5cm), and the stripe is positioned as expected.


Am I missing something obvious in how MetaFun handles coordinates? I 
have asumed that in MetaFun, (0,0) is the bottom left corner. Or is 
it how I applied the shifted command?


1. When you need page backgrounds you can use a overlay and don't have 
to create a layer for it.


2. Use unitsquare for your bars which has the origin in the lower left 
corner because fullsquare has the origin in the center (look at page 
383 in the metafun manual).


\setuppapersize [A4,landscape]

\startuniqueMPgraphic{blueShade}
draw lmt_shade [
    path    = fullsquare xyscaled (OverlayWidth,OverlayHeight) ,
    direction   = "up",
    alternative = "linear",
    colors  = { "red", "blue" },
] ;
\stopuniqueMPgraphic

\defineoverlay [mybg] [\uniqueMPgraphic{blueShade}]

\setupbackgrounds [page] [background=mybg]

\starttext

\startMPpage
StartPage ;
    % Result Left
    draw lmt_shade [
    path    = unitsquare xscaled 2cm yscaled PaperHeight,
    direction   = "down",
    alternative = "linear",
    colors  = { "red", "blue" },
    ] shifted (12cm,0) ;
    % Result Right
    draw lmt_shade [
    path    = unitsquare xscaled 2cm yscaled PaperHeight,
    direction   = "down",
    alternative = "linear",
    colors  = { "red", "blue" },
    ] shifted (19cm,0cm) ;
StopPage ;
\stopMPpage

\stoptext

Wolfgang

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

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


[NTG-context] Unexpected result when using PaperHeight and MetaFUun

2020-04-19 Thread Keith McKay

Dear All

I have problem understanding what is happening in the MWE below which is 
different from what I expected.


I have created a shaded background using MetaFun with dimensions 
PaperWidth by PaperHeight which mimics \setuppapersize[A4,landscape} as 
expected.  I then within \starttext \startMPpage... \stopMPpage 
\stoptext created a stripe of the shaded background, xscaled 2cm y 
scaled PaperHeight, but reversed, expecting it to cover the background 
top to bottom. However the top of the stripe seems to start at 10.5cm 
which is suspiciously half the height of A4, Landscape i.e. 21cm. I 
confirmed this by changing the shifted command to, shifted 
(19cm,10.5cm), and the stripe is positioned as expected.


Am I missing something obvious in how MetaFun handles coordinates? I 
have asumed that in MetaFun, (0,0) is the bottom left corner. Or is it 
how I applied the shifted command?


I'm using LuaMetaTex Version 2.05.01 ConTeXt ver: 2020.04.03 10:31 MKIV 
beta fmt: 2020.4.6 int: english/english


Thanks and stay safe.

Best Wishes

Keith McKay

%%% MWE %%% \setuppapersize[A4,landscape]

\definelayer[mybg]

[x=0mm, y=0mm,

width=\paperwidth, height=\paperheight] % let the layer cover the full paper

\startuniqueMPgraphic{blueShade}

draw lmt_shade [

path = fullsquare xyscaled(PaperWidth,PaperHeight),

direction = "up",

alternative = "linear",

colors = { "red", "blue" },

];

\stopuniqueMPgraphic

\setlayer[mybg]{\uniqueMPgraphic{blueShade}}

\setupbackgrounds[page][background={mybg}]

\starttext

\startMPpage

StartPage ;

%Result Left

draw lmt_shade [

path = fullsquare xscaled 2cm yscaled PaperHeight,

direction = "down",

alternative = "linear",

colors = { "red", "blue" },

]shifted (12cm,0cm);

%Result Right

draw lmt_shade [

path = fullsquare xscaled 2cm yscaled PaperHeight,

direction = "down",

alternative = "linear",

colors = { "red", "blue" },

] shifted (19cm,10.5cm);

StopPage ;

\stopMPpage

\stoptext

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

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


Re: [NTG-context] What was that 'rounding paths' metafun(?) function again?

2020-04-05 Thread Keith McKay

Would sections 1.3, 1.18, 2.5 and 2.6 in the Metafun manual help?

Keith

On 05/04/2020 11:31, Gerben Wierda wrote:

I think I saw a function in MetaFun somehwre that you could give a ‘hard’ path, 
i.e. (0,0) -- (0,1) — (1,1) and it would become a path with nicely rounded 
(part of a circle) corners (still straight lines), but I can’t find it anymore. 
I wrote my own, but it is giving me headaches so I’d like to find something 
that is better than what I produce.

G
___
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] developer not verified error

2019-11-17 Thread Keith McKay
This is the standard way to install "apps" on a mac, which have an 
unknown developer, to Apple anyway. It is a bit annoying when it happens 
especially when one has forgotten that you have to go through the 
Preferences dialog to get it to run. In my case it's an age thing.


Best Wishes

Keith McKay

On 16/11/2019 22:27, Glen Helman wrote:
There seems to be a way around this built into Catalina, however 
awkward it may be.


I tried to install lmtx on a computer running Catalina that didn’t 
have an installation and received a similar error. (There seems to be 
a quarantine applying to the text of the script and not merely the 
file because I tried creating a new document with the same text and 
received the same response, and that response referred to the download 
of the original file.)


I did find that the “general” tab under “security & privacy” in the 
system preferences had, in addition to the usual two choices, a 
reference to the downloaded script with a button reading “allow 
anyway” (or something to that effect). When I tried to run the script 
again after clicking that button, the “developer cannot  be verified” 
dialogue included “open” as a choice; and, when I clicked that, the 
script ran successfully and the installation was usable.


I then tried the install script on another computer running Cataline 
where I had installed lmtx last spring. I ran into the “developer 
cannot be verified” response again, but the same workaround allowed 
the script to run, and the installation was updated.


Glen Helman

On Nov 15, 2019, at 4:36 PM, Alan Bowen <mailto:bowenala...@gmail.com>> wrote:


Though I was able to download the latest ConTeXt beta without any 
problems, my attempt to update my ConText-LMTX installation was 
blocked. The error message was


*“mtxrun” cannot be opened because the developer cannot be verified*
macOS cannot verify that this app is free from malware.
Safari downloaded this file on April 29, 2019.

I am not sure why this is happening and wonder if it would OK to copy 
mxtrun from my ConTeXt installation and replace the version in my 
ConTeXt-LMTX installation with it.


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


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

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



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

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

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


[NTG-context] Text on curves

2019-04-23 Thread Keith McKay
I have been trying to typeset text onto curves and have been successful 
with the help of the MetaFun manual, and the followtext command which I 
saw in some correspondence between dr Hans van der Meer and Hans Hagen 
on the mailing list in January this year ( the subject was Double Follow 
Tokens).


The followtext command seems to used for a simple line of text and if I 
increase the number of words in the line the font size is reduced to 
make it fit to the length of the curve (see MWE below). I would like to 
typeset complete paragraphs on the curve(s) and the only way I see of 
doing this without the font size changing is to manually create each 
line separately.


Is their a way where this can be done by MetaFun automatically rather 
than manually? It would be really nice if I could create a number of 
curves and then MetaFun typsets a paragraph of text on to them. Also, 
can other options be used with followtext e.g. \input file?


I'm a complete novice with MetaFun so any advice appreciated.

Best Wishes

Keith McKay

Minimum Working Example

\starttext

Two different lengths of text on the same curve showing font size being 
reduced.


\blank

\startMPcode

path q; q := function (1, "x", "sin(2x)" , 1, 10, .01) scaled 1.5cm ;

draw followtext(q, "some text but not that long. But here and there and 
everywhere the text can become longer");


draw followtext (q shifted (0cm,-2cm), "some text but not that long. But 
here and there and everywhere the text can become longer and longer and 
longer finally ending here.");


\stopMPcode

Some other examples of text on a curve

\blank

\startMPcode

path p; p := reverse halfcircle xyscaled 55mm ;

draw followtext(p, "some text but not that long");

\stopMPcode

nice spiral shape with text

\startMPcode

z0 = (0,0); z1 = (60,40);

z2 = (40,90); z3 = (10,70);

z4 = (30,50);

path p; p = (z0..z1..z2..z3..z4) ;

draw followtext(p scaled 1mm, "some text but not that long. But here and 
there and everywhere the text can become longer");


\stopMPcode

\stoptext

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

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


Re: [NTG-context] First example in xml-mkiv.pdf

2018-06-06 Thread Keith McKay
Aah yes, how silly of me to forget to add \starttext... \stoptext! 
Thanks for your help.


Best Wishes

Keith


On 06/06/2018 14:32, Hans Hagen wrote:

On 6/5/2018 10:03 PM, Keith McKay wrote:

Dear List,

In my continuing effort to improve my ConTeXt skills I thought I 
would have a look at XML and ConTeXt. Note: I have no XML skills but, 
"in for a penny, in for a pound", as they say over here. I started by 
looking at the very first example on page 5 of "Dealing with XML in 
ConTeXt mkiv" and straight away hit a problem.  There is a typo in 
the first line of the XML file which I corrected:




should be



However when I ran the file using the tex file it only produced a 3 
page pdf with a contents page and 2 title pages and no other text.


Here is the XML file which is the similar to the one on page 5 but 
with two sections rather than one:








Some title



a paragraph of text

another paragraph of text







Another title



a paragraph of text

another paragraph of text







The TeX file is cut and pasted from pages 5 and 6 of xml-mkiv.pdf:

\startxmlsetups xml:demo:base

\xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*}

\stopxmlsetups

\xmlregisterdocumentsetup{demo}{xml:demo:base}

\startxmlsetups xml:demo:document

\starttitle[title={Contents}]

\placelist[chapter]

\stoptitle

\xmlflush{#1}

\stopxmlsetups

\startxmlsetups xml:demo:section

\startchapter[title=\xmlfirst{#1}{/title}]

\xmlfirst{#1}{/content}

\stopchapter

\stopxmlsetups

\startxmlsetups xml:demo:p

\xmlflush{#1}\endgraf

\stopxmlsetups

\xmlprocessfile{demo}{demo.xml}{}

This seemed such a simple example and I'm a bit perplexed as to why 
it did not work. Can somebody explain why no paragraphs are showing 
up? I'm using:


ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.2 int: 
english/english


LuaTeX, Version 1.07.0 (TeX Live 2018)

Thanks and Best Wishes

you need to add \starttext ... \stoptext

\startbuffer[demo]



    
    Some title
    
    a paragraph of text
    another paragraph of text
    
    
    
    Another title
    
    a paragraph of text
    another paragraph of text
    
    

\stopbuffer

\startxmlsetups xml:demo:base
    \xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*}
\stopxmlsetups

\xmlregisterdocumentsetup{demo}{xml:demo:base}

\startxmlsetups xml:demo:document
    \starttitle[title={Contents}]
    \placelist[chapter]
    \stoptitle
    \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:demo:section
    \startchapter[title=\xmlfirst{#1}{/title}]
    \xmlfirst{#1}{/content}
    \stopchapter
\stopxmlsetups

\startxmlsetups xml:demo:p
    \xmlflush{#1}\endgraf
\stopxmlsetups

\starttext
    \xmlprocessbuffer{demo}{demo}{}
\stoptext


-
  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] First example in xml-mkiv.pdf

2018-06-05 Thread Keith McKay

Dear List,

In my continuing effort to improve my ConTeXt skills I thought I would 
have a look at XML and ConTeXt. Note: I have no XML skills but, "in for 
a penny, in for a pound", as they say over here. I started by looking at 
the very first example on page 5 of "Dealing with XML in ConTeXt mkiv" 
and straight away hit a problem.  There is a typo in the first line of 
the XML file which I corrected:




should be



However when I ran the file using the tex file it only produced a 3 page 
pdf with a contents page and 2 title pages and no other text.


Here is the XML file which is the similar to the one on page 5 but with 
two sections rather than one:








Some title



a paragraph of text

another paragraph of text







Another title



a paragraph of text

another paragraph of text







The TeX file is cut and pasted from pages 5 and 6 of xml-mkiv.pdf:

\startxmlsetups xml:demo:base

\xmlsetsetup{#1}{document|section|p|itemize|item}{xml:demo:*}

\stopxmlsetups

\xmlregisterdocumentsetup{demo}{xml:demo:base}

\startxmlsetups xml:demo:document

\starttitle[title={Contents}]

\placelist[chapter]

\stoptitle

\xmlflush{#1}

\stopxmlsetups

\startxmlsetups xml:demo:section

\startchapter[title=\xmlfirst{#1}{/title}]

\xmlfirst{#1}{/content}

\stopchapter

\stopxmlsetups

\startxmlsetups xml:demo:p

\xmlflush{#1}\endgraf

\stopxmlsetups

\xmlprocessfile{demo}{demo.xml}{}

This seemed such a simple example and I'm a bit perplexed as to why it 
did not work. Can somebody explain why no paragraphs are showing up? I'm 
using:


ConTeXt ver: 2018.04.04 00:51 MKIV beta fmt: 2018.6.2 int: english/english

LuaTeX, Version 1.07.0 (TeX Live 2018)

Thanks and Best Wishes

Keith McKay

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

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

  1   2   >