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

2021-02-23 Thread Bruce Horrocks
On 23 Feb 2021, at 19:20, Hans Hagen  wrote:
> 
> On 2/23/2021 8:10 PM, Keith McKay wrote:
>> 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.
> it would mean opening up your machien to mojca, adding it to the compile farm 
> etc etc .. not a good idea, keeping it running 24/7 because we cannot afforc 
> to miss a binary ... so we just wait till these arm machines make in into our 
> homes .. no hurry i guess

Are the source files and test cases in a Git / Mercurial / Fossil / whatever 
repository somewhere? It would be easy enough to set up an automated daily 
check to see if there had been a change and then trigger a fresh build.

It doesn't even need to be that integrated - just a check on the latest intel 
binary and if that has been touched then trigger a download and local compile.

If Keith's scripting skills aren't up to it then I could do it and then 
developer sign and upload the resulting binary to OneDrive or similar.

Regards,
—
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
___


Re: [NTG-context] Arbitrary equation tags... again

2021-02-23 Thread Jairo A. del Rio
I found a workaround for anyone interested:


\setupinteraction[state=start,focus=standard]

\starttext

\startplaceformula[title=$\alpha$,reference=alpha]

\startformula

1 + 1 = 2

\stopformula

\stopplaceformula

\dorecurse{20}{\samplefile{knuth}}

I'm in \in{$\alpha$}[alpha] %so the reference is now visible

\stoptext

However, one has to manually write a label and a title independently, so
I'm not sure that's a clean solution...

Best regards,

Jairo

El lun, 22 de feb. de 2021 a la(s) 23:28, Jairo A. del Rio (
jairoadelr...@gmail.com) escribió:

> Hi again. The following doesn't work (the tag is missing):
>
> \startTEXpage[offset=2bp]
> \startplaceformula[title=A,reference=alpha]
>  \startformula
>  1 + 1 = 2
>  \stopformula
> \stopplaceformula
> I'm in \in[alpha]
> \stopTEXpage
>
> Jairo
>
> El lun, 22 de feb. de 2021 a la(s) 09:00, Jairo A. del Rio (
> jairoadelr...@gmail.com) escribió:
>
>> Oh, dumb me, sorry for the noise and thank you very much. Not every day
>> is a good one, sorry again.
>>
>> Jairo.
>>
>> El lun, 22 de feb. de 2021 a la(s) 08:51, Hans Hagen (j.ha...@xs4all.nl)
>> escribió:
>>
>>> On 2/22/2021 2:05 PM, Jairo A. del Rio wrote:
>>> > Hi. list.
>>> > Is it possible to assign an arbitrary equation tag in ConTeXt? I've
>>> seen
>>> > solutions here;
>>> >
>>> >
>>> https://tex.stackexchange.com/questions/400257/tag-equation-in-context-with-arbitrary-text
>>> > <
>>> https://tex.stackexchange.com/questions/400257/tag-equation-in-context-with-arbitrary-text
>>> >
>>> >
>>> > but none of them works as expected (either the formula counter is
>>> still
>>> > incrementing with arbitrary conversions or cross-references don't
>>> work).
>>>
>>> Define 'expected' ... \eqno is something low level (a primitive) and we
>>> have that nilled at the user level and only use it deep down. It was
>>> never meant as user command.
>>>
>>> > I imagine some things have changed in 2021 and I hope a better
>>> solution
>>> > is feasible nowadays.
>>>
>>> \startTEXpage[offset=2bp]
>>> \startplaceformula[title=A]
>>>  \startformula
>>>  1 + 1 = 2
>>>  \stopformula
>>> \stopplaceformula
>>> \stopTEXpage
>>>
>>> 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] Possible problem with context using the ARM 64bit download for Apple Silicon M1

2021-02-23 Thread Hans Hagen

On 2/23/2021 8:10 PM, Keith McKay wrote:

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.
it would mean opening up your machien to mojca, adding it to the compile 
farm etc etc .. not a good idea, keeping it running 24/7 because we 
cannot afforc to miss a binary ... so we just wait till these arm 
machines make in into our homes .. no hurry i guess


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


Re: [NTG-context] [LMTX] fonts problem (again)

2021-02-23 Thread Pablo Rodriguez
On 2/23/21 6:45 PM, Hans Hagen wrote:
> On 2/23/2021 6:15 PM, kaddour kardio wrote:
>> Thank you Hans and Pablo, symlinking the font directories to luametatex
>> font directory worked as expected. I guess i have to follow the same
>> steps after every update..
> no, because texmf-fonts is never touched by an update

You have only to add (if you want to recreate everything after each update):

  mtxrun --script cache --erase &&  mtxrun --generate

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-23 Thread Hans Hagen

On 2/23/2021 6:23 PM, Thomas A. Schmitz wrote:


On 2/23/21 6:14 PM, Hans Hagen wrote:
I have no clue because it just works here. I uploaded a new version 
(no real changed in that area) so who knows ...



Are you sure? You have to compile with the --arrange switch. I just 
tested with 2021.02.23 17:47, still same error.

hm, the run option wasn't part of the mwe -)

Hans

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

maillist : ntg-context@ntg.nl / 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] [LMTX] fonts problem (again)

2021-02-23 Thread Hans Hagen

On 2/23/2021 6:15 PM, kaddour kardio wrote:
Thank you Hans and Pablo, symlinking the font directories to luametatex 
font directory worked as expected. I guess i have to follow the same 
steps after every update..

no, because texmf-fonts is never touched by an 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 / 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] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-23 Thread Thomas A. Schmitz


On 2/23/21 6:14 PM, Hans Hagen wrote:
I have no clue because it just works here. I uploaded a new version (no 
real changed in that area) so who knows ...



Are you sure? You have to compile with the --arrange switch. I just 
tested with 2021.02.23 17:47, still same error.


Thomas
___
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 Hans Hagen

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
___


Re: [NTG-context] [LMTX] fonts problem (again)

2021-02-23 Thread kaddour kardio
Thank you Hans and Pablo, symlinking the font directories to luametatex
font directory worked as expected. I guess i have to follow the same steps
after every update..

Le dim. 21 févr. 2021 à 18:42, Pablo Rodriguez  a écrit :

> On 2/21/21 5:05 PM, Hans Hagen wrote:
> > On 2/21/2021 4:45 PM, kaddour kardio wrote:
> >>
> >> Hi! Once again i'm unable to load my system's font which is working well
> >> with MKIV.
> >> [...]
> >> export
> >>
> OSFONTDIR=~/.local/share/fonts:/usr/share/fonts:/usr/share/texmf/fonts/opentype/
> >> [...]
> >> This problem occurred  to me since december 2020, i update LMTX weekly
> >> from the archlinux user repo (aur) binary.
> >> Any suggestions?
> > [...]
> > (making a copy - or link - in /texmf-fonts/data/... could
> > also work)
> Hi Kaddour,
>
> I use LMTX in Linux too and I have symlynks in /texmf-fonts
> that work perfectly fine (as Hans suggests).
>
> I would create symlinks for your font directories, such as in:
>
>   ln -s ~/.local/share/fonts /texmf-fonts/local-fonts
>   ln -s /usr/share/fonts /texmf-fonts/system-fonts
>   ln -s /usr/share/texmf/fonts/ /texmf-fonts/texlive-fonts
>
> After that, I think it would be helpful (this is what I do after each
> LMTX update):
>
>   mtxrun --script cache --erase
>   mtxrun --generate
>
> And compile your documents. The first run will make the format file.
>
> I hope it helps,
>
> Pablo
> --
> http://www.ousia.tk
>
> ___
> 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
>
> ___
>


-- 
Dr YAHYAOUI Mohamed Kaddour, cardiologue  .
___
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] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-23 Thread Hans Hagen

On 2/23/2021 11:55 AM, Thomas A. Schmitz wrote:

On 20.02.21 17:12, Hans Hagen wrote:
hm, but it still makes sense to know if something fails .. keep en eye 
on it


I just stumbled upon the same error. Arranging is broken in lmtx. MWE:

\setuppapersize[A6][A4]

\setuparranging[2*4]

\starttext

\dorecurse{8}{Test: \recurselevel \page}

\stoptext

Works in mkiv. With lmtx, I get

tex error   > tex error on line 7 in file ./test.tex: You can't use 
'integer 340' in internal vertical mode
I have no clue because it just works here. I uploaded a new version (no 
real changed in that area) so who knows ...


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] \blackrule and margin

2021-02-23 Thread Otared Kavian
Sorry, I didn't send the correct example…

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
 leftmargindistance=0.2cm,
 backspace=2.9cm,
 width=4cm]
\showframe
\starttext
\margintext{\hairline}\dontleavehmode\hairline

\startformula
\margintext{Me}
a^n + b^n = c^n.
\stopformula
\stoptext

> On 23 Feb 2021, at 11:28, Ursula Hermann  wrote:
> 
> Dear Pablo!
> 
> I have done some changes. How can I get both hairlines in the same height: 
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \margintext{\hairline\\{Me}}
> \hairline
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> Thank you
> Uschi 
> 
> 
> 
> Von: ntg-context  im Auftrag von Pablo Rodriguez 
> 
> Gesendet: Freitag, 19. Februar 2021 16:41
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] \blackrule and margin
>  
> On 2/19/21 4:02 PM, Ursula Hermann wrote:
> > Dear List, 
> > i have the little following example: 
> >
> > \setuppapersize[A8,landscape]
> > \setuplayout[leftmargin=2.5cm,
> >  leftmargindistance=0.2cm,
> >  backspace=2.9cm,
> >  width=4cm]
> > \showframe
> > \starttext
> > \blackrule
> > \margintext{Me}
> > \blackrule[color=black, height=0.5ex, width=1cm]
> > \stoptext
> > \startformula
> > a^n + b^n = c^n.
> > \stopformula
> > \stoptext 
> > What i want is a\blackrule over the margintext, but i do not get what I
> > wantend. 
> 
> Hi Uschi,
> 
> I don’t know whether this is similar to whay you might intend:
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \blackrule
> \margintext{\blackrule[color=black, height=0.5ex, width=1cm]\\Me}
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> BTW, it isn’t also clear to me whether the formula is part of your
> document or not.
> 
> Just in case it helps,
> 
> Pablo
> --
> http://www.ousia.tk
> ___
> 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] \blackrule and margin

2021-02-23 Thread Otared Kavian
Hi Uschi,

You may add \dontleavehmode at the right place as in the following:

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
 leftmargindistance=0.2cm,
 backspace=2.9cm,
 width=4cm]
\showframe
\starttext
\margintext{\hairline\\{Me}}\dontleavehmode\hairline
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext

Best regards: Otared

> On 23 Feb 2021, at 11:28, Ursula Hermann  wrote:
> 
> Dear Pablo!
> 
> I have done some changes. How can I get both hairlines in the same height: 
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \margintext{\hairline\\{Me}}
> \hairline
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> Thank you
> Uschi 
> 
> 
> 
> Von: ntg-context  im Auftrag von Pablo Rodriguez 
> 
> Gesendet: Freitag, 19. Februar 2021 16:41
> An: ntg-context@ntg.nl
> Betreff: Re: [NTG-context] \blackrule and margin
>  
> On 2/19/21 4:02 PM, Ursula Hermann wrote:
> > Dear List, 
> > i have the little following example: 
> >
> > \setuppapersize[A8,landscape]
> > \setuplayout[leftmargin=2.5cm,
> >  leftmargindistance=0.2cm,
> >  backspace=2.9cm,
> >  width=4cm]
> > \showframe
> > \starttext
> > \blackrule
> > \margintext{Me}
> > \blackrule[color=black, height=0.5ex, width=1cm]
> > \stoptext
> > \startformula
> > a^n + b^n = c^n.
> > \stopformula
> > \stoptext 
> > What i want is a\blackrule over the margintext, but i do not get what I
> > wantend. 
> 
> Hi Uschi,
> 
> I don’t know whether this is similar to whay you might intend:
> 
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \blackrule
> \margintext{\blackrule[color=black, height=0.5ex, width=1cm]\\Me}
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> 
> BTW, it isn’t also clear to me whether the formula is part of your
> document or not.
> 
> Just in case it helps,
> 
> Pablo
> --
> http://www.ousia.tk
> ___
> 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] Questions for eTABLE

2021-02-23 Thread Alain Delmotte

  
  
Hi!
Thanks for your rapid answer.
  
Thanks Wolfgang, in the example you
did send me I overlooked the difference between the title line
and the rest.
Thanks also for the explanation about
right and left.
--
Alain

Le 22/02/2021 à 20:09, Wolfgang
  Schuster a écrit :


  
  Alain Delmotte schrieb am 22.02.2021 um 19:58:
  

Hi!
I have the following program:


\definecolor
  [tableheader] [x=00ADEF]
 
\setupbodyfont[dejavu,10pt,ss]
 
%
  setups and example thanks to Wolfgang Schuster 
\startsetups[tablesettings]

  \setupTABLE[start][framecolor=gray,loffset=.5ex,roffset=.5ex]

\setupTABLE[row][first][background="">

  \setupTABLE[first][first][corner=08]

  \setupTABLE[last][first][corner=05]

  \setupTABLE[first][last][corner=07]

  \setupTABLE[last][last][corner=06]
\stopsetups
 
\starttext
 
{\bf
  Singular}

  \setupTABLE[c][1,2,3][width=5cm]
\placetable[none][]{}{
\bTABLE[setups=tablesettings]
\bTR
  \bTH Pronoun \eTH \bTH Particle \eTH \bTH Noun \eTH \eTR
\bTR
  \bTH Mimi/Wewe/Yeye \eTH \bTH ni \eTH \bTH Mtanzania/Mmarekani
  /Mkenya \eTH \eTR
\bTR
  \bTH {\sl I/You/He or She} \eTH \bTH {\sl am/are/is} \eTH \bTH
  {\sl (a/an) Tanzanian/American/Kenyan} \eTH \eTR
\bTR
  \bTH Mimi/Wewe/Yeye \eTH \bTH si\eTH \bTH Mtanzania/Mmarekani
  /Mkenya \eTH \eTR
\bTR
  \bTH {\sl I/You/He or She} \eTH \bTH {\sl am/are/is not} \eTH
  \bTH {\sl (a/an) Tanzanian/American /Kenyan} \eTH \eTR
\eTABLE
}
\input
  zapf
 
\stoptext


 
I do not understand why
  the lines in Swahilli are in bold?
  
  
  Use \bTD ... \eTD for the cells. The \bTH ... \eTH pair is for
  header lines and changes the style to bold.
  
  If
for the table I use \setupTABLE[c]1,2,3][width= 5cm, align=left]
the texts are aligned to the right, if I say align=right they
are to the left. OK to have left alignment the align instruction
is not necessary, but for right?
  
  
  https://wiki.contextgarden.net/Right_and_left
  
  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] lmtx error: You can't use 'integer 340' in internal vertical mode

2021-02-23 Thread Thomas A. Schmitz

On 20.02.21 17:12, Hans Hagen wrote:
hm, but it still makes sense to know if something fails .. keep en eye 
on it


I just stumbled upon the same error. Arranging is broken in lmtx. MWE:

\setuppapersize[A6][A4]

\setuparranging[2*4]

\starttext

\dorecurse{8}{Test: \recurselevel \page}

\stoptext

Works in mkiv. With lmtx, I get

tex error   > tex error on line 7 in file ./test.tex: You can't use 
'integer 340' in internal vertical mode


All best

Thomas
___
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] \blackrule and margin

2021-02-23 Thread Ursula Hermann
Dear Pablo!


I have done some changes. How can I get both hairlines in the same height:


\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
 leftmargindistance=0.2cm,
 backspace=2.9cm,
 width=4cm]
\showframe
\starttext
\margintext{\hairline\\{Me}}
\hairline
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext


Thank you

Uschi




Von: ntg-context  im Auftrag von Pablo Rodriguez 

Gesendet: Freitag, 19. Februar 2021 16:41
An: ntg-context@ntg.nl
Betreff: Re: [NTG-context] \blackrule and margin

On 2/19/21 4:02 PM, Ursula Hermann wrote:
> Dear List,
> i have the little following example:
>
> \setuppapersize[A8,landscape]
> \setuplayout[leftmargin=2.5cm,
>  leftmargindistance=0.2cm,
>  backspace=2.9cm,
>  width=4cm]
> \showframe
> \starttext
> \blackrule
> \margintext{Me}
> \blackrule[color=black, height=0.5ex, width=1cm]
> \stoptext
> \startformula
> a^n + b^n = c^n.
> \stopformula
> \stoptext
> What i want is a\blackrule over the margintext, but i do not get what I
> wantend.

Hi Uschi,

I don’t know whether this is similar to whay you might intend:

\setuppapersize[A8,landscape]
\setuplayout[leftmargin=2.5cm,
 leftmargindistance=0.2cm,
 backspace=2.9cm,
 width=4cm]
\showframe
\starttext
\blackrule
\margintext{\blackrule[color=black, height=0.5ex, width=1cm]\\Me}
\startformula
a^n + b^n = c^n.
\stopformula
\stoptext

BTW, it isn’t also clear to me whether the formula is part of your
document or not.

Just in case it helps,

Pablo
--
http://www.ousia.tk
___
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
___