Re: [NTG-context] LMTX install

2021-05-23 Thread jbf
To all who assisted me in thinking the problem through (permission 
errors): Bruce, Luigi, Benny, Hans, Werner. Thank you!


Julian

On 24/5/21 3:42 am, Bruce Horrocks wrote:

I just setup a Mint virtual machine as a test and it all worked as expected so I'm not sure why 
you're having a problem. However you wrote earlier that you are using "Mint 21" but I can 
only find "Mint 20.1 LTS" - I assume that's what you meant?

If so then I suggest that you create a new Linux user and try installing under 
that new user. If it works then it's something in your user account. If it 
fails then ... well, we're no worse off. :-)


On 23 May 2021, at 11:14, jbf  wrote:

Then something is not making sense (to me).

.bashrc clearly shows: export 
PATH=$PATH:/home/me/bin/context/tex/texmf-linux-64/bin, so does that not mean 
that bin can be found via the path? So why does 'context myfile.tex' not work?

If I run a full path (. /home/me/bin/context/tex/texmf-linux-64/bin/mtxrun 
context myfile.tex) I get the message 'cannot execute binary file' and yet 
mtxrun is executable. I checked. Clearly I am making a basic error, but cannot 
work out what.

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

___
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] t-vim module: no highlighting for custom filetypes

2021-05-23 Thread Aditya Mahajan
On Sun, 23 May 2021, Hans Hagen wrote:

> On 5/22/2021 6:15 PM, Aditya Mahajan wrote:
> > On Sat, 22 May 2021, Hans Hagen wrote:
> > 
> > > On 5/21/2021 9:37 PM, Nicola wrote:
> > 
> > > > I have only a minor annoyance: I have just noticed that -- is typeset as
> > > > an en-dash in LMTX (but not in MKIV, as documented). Could you look into
> > > > that?
> > > 
> > > best is that the module uses:
> > > 
> > > \the\everyinitializeverbatim
> > > 
> > > because there we disable all kind of non verbatim stuff
> > 
> > Thanks. It took a few trial and error that \the\everyinitializeverbatim
> > must come after \usealignparameter. However, using \nohypencollapsing after
> > \usealignparameter means that I cannot get hypenated lines (something which
> > had been requested in the past for t-vim). See the attached file.
> > 
> > BTW, shouldn't we have `features=none` in the default mono font setup so
> > that this doesn't happen anyways?
> afaik we already do that
> 
> (i'll add some more control, already added \setuphyphenation[hyphen=no] here)
> 
> I need to find a reasonable way to provide control over all these things ...
> real low level btw is \hyphenationmode\zerocount ... look in lang-ini.mkxl for
> all possible flags)

Thanks. I guess, it is time to freeze the mkiv version of the module and 
introduce a mkxl version.

Aditya
___
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] Luatex format error

2021-05-23 Thread Hans Hagen

On 5/23/2021 9:28 PM, Hans Åberg wrote:

Using TexLive 2021, I got the error below. How to fix it? What input file 
should one give?


% context math_style.tex

resolvers   | formats | executing runner 'run luatex format': /usr/local/texlive/2021/bin/universal-darwin/luatex 
--jobname="math_style" 
--fmt=/Users//Library/texlive/2021/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.fmt
 
--lua=/Users//Library/texlive/2021/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./math_style.tex" --c:input="./math_style.tex" --c:kindofrun=1 
--c:maxnofruns=9 --c:texmfbinpath="/usr/local/texlive/2021/bin/universal-darwin"
This is LuaTeX, Version 1.13.2 (TeX Live 2021)
  system commands enabled.
**
Please type the name of your input file.
**
So this is not lmtx (which also has luatex) but the regular installation 
right?


Does that file have \starttext ... \stoptext ?

There is something missing:

   ..cont-en.lui cont-yes.mkiv --c:currentrun=1

in mkiv the input is loaded indirectly (via cont-yes.mkiv) but in lmtx 
we don't pass that one (not needed as we start up a bit different)


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] Unwanted upright math in MkIV

2021-05-23 Thread Hans Hagen

On 5/23/2021 6:26 PM, Gavin wrote:

Aditya,


On Sun, 23 May 2021, Gavin wrote:


Hello,

I’m using ConTeXt with MacOS. The current version of MkIV produces upright math 
rather than italic. MWE:

\starttext
\m{f = \beta}
\stoptext


Works correctly here. What does context --version say?


My log file has this near the beginning:

...
This is LuaTeX, Version 1.13.0 (TeX Live 2021)
…
system  > ConTeXt  ver: 2021.05.21 15:07 MKIV  fmt: 2021.5.23  int: 
english/english

  ^^

math should work ok in fridays version (there was a hickup earlier that 
week because i moved some plugs to to another lua callback and forgot 
something)



I am putting the entire log file below, since it isn’t terribly long. I hope 
that’s not bad etiquette. (I’m fairly new here.)
no problem, as long as one doesn't end a mail with 'please don't print 
it in order to save trees' and then adds tons of visual attachments 
(logos) that took energy to transport it's fine with me (also some text 
bytes in mail are neglectable to whatever gets sent around or is part of 
web pages)


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

2021-05-23 Thread Hans Hagen

On 5/23/2021 5:33 PM, Jairo A. del Rio wrote:
Thank you a lot for the explanation! It makes more sense now and 
definitively is something very promising to play with. Wrt the module 
itself, is it possible to consider language-dependent labels? I noticed 
"\sin" is "sin" when it should be "sen" once the module is loaded.

local ctx_mfunction = context.mfunctionlabeltext

(btw, some of that mfunction stuff is related to mathml i/o)

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] Luatex format error

2021-05-23 Thread Hans Åberg
Using TexLive 2021, I got the error below. How to fix it? What input file 
should one give?


% context math_style.tex

resolvers   | formats | executing runner 'run luatex format': 
/usr/local/texlive/2021/bin/universal-darwin/luatex --jobname="math_style" 
--fmt=/Users//Library/texlive/2021/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.fmt
 
--lua=/Users//Library/texlive/2021/texmf-var/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex/cont-en.lui
  --c:currentrun=1 --c:fulljobname="./math_style.tex" 
--c:input="./math_style.tex" --c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/usr/local/texlive/2021/bin/universal-darwin"
This is LuaTeX, Version 1.13.2 (TeX Live 2021) 
 system commands enabled.
**
Please type the name of your input file.
**


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

2021-05-23 Thread Bruce Horrocks
I just setup a Mint virtual machine as a test and it all worked as expected so 
I'm not sure why you're having a problem. However you wrote earlier that you 
are using "Mint 21" but I can only find "Mint 20.1 LTS" - I assume that's what 
you meant?

If so then I suggest that you create a new Linux user and try installing under 
that new user. If it works then it's something in your user account. If it 
fails then ... well, we're no worse off. :-)

> On 23 May 2021, at 11:14, jbf  wrote:
> 
> Then something is not making sense (to me).
> 
> .bashrc clearly shows: export 
> PATH=$PATH:/home/me/bin/context/tex/texmf-linux-64/bin, so does that not mean 
> that bin can be found via the path? So why does 'context myfile.tex' not work?
> 
> If I run a full path (. /home/me/bin/context/tex/texmf-linux-64/bin/mtxrun 
> context myfile.tex) I get the message 'cannot execute binary file' and yet 
> mtxrun is executable. I checked. Clearly I am making a basic error, but 
> cannot work out what.

—
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] Unwanted upright math in MkIV

2021-05-23 Thread Gavin
Aditya,

> On Sun, 23 May 2021, Gavin wrote:
> 
>> Hello,
>> 
>> I’m using ConTeXt with MacOS. The current version of MkIV produces upright 
>> math rather than italic. MWE:
>> 
>> \starttext
>>\m{f = \beta}
>> \stoptext
> 
> Works correctly here. What does context --version say?

My log file has this near the beginning:

...
This is LuaTeX, Version 1.13.0 (TeX Live 2021) 
…
system  > ConTeXt  ver: 2021.05.21 15:07 MKIV  fmt: 2021.5.23  int: 
english/english
…

I am putting the entire log file below, since it isn’t terribly long. I hope 
that’s not bad etiquette. (I’m fairly new here.)

Thanks!
Gavin


> mtx-context | redirect luametatex -> luatex: luatex --luaonly 
> "/Users/Gavin/context-osx-64/tex/texmf-osx-64/bin/mtxrun.lua" --script 
> mtx-context --luatex --autopdf GlyphExp.tex --redirected
> 
> resolvers   | formats | executing runner 'run luatex format': 
> /Users/Gavin/context-osx-64/tex/texmf-osx-64/bin/luatex --jobname="GlyphExp" 
> --fmt=/Users/Gavin/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.fmt
>  
> --lua=/Users/Gavin/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui
>  cont-yes.mkiv --c:autopdf --c:currentrun=1 --c:engine="luatex" 
> --c:fulljobname="./GlyphExp.tex" --c:input="./GlyphExp.tex" --c:kindofrun=1 
> --c:luatex --c:maxnofruns=9 --c:redirected 
> --c:texmfbinpath="/Users/Gavin/context-osx-64/tex/texmf-osx-64/bin"
> This is LuaTeX, Version 1.13.0 (TeX Live 2021) 
>  system commands enabled.
> open source > level 1, order 1, name 
> '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> system  > 
> system  > ConTeXt  ver: 2021.05.21 15:07 MKIV  fmt: 2021.5.23  int: 
> english/english
> system  > 
> system  > 'cont-new.mkiv' loaded
> open source > level 2, order 2, name 
> '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system  > beware: some patches loaded from cont-new.mkiv
> close source> level 2, order 2, name 
> '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-new.mkiv'
> system  > files > jobname 'GlyphExp', input './GlyphExp', result 
> 'GlyphExp'
> fonts   > latin modern fonts are not preloaded
> languages   > language 'en' is active
> open source > level 2, order 3, name 
> '/Users/Gavin/Desktop/GlyphExp/GlyphExp.tex'
> fonts   > preloading latin modern fonts (second stage)
> fonts   > 'fallback modern-designsize rm 12pt' is loaded
> backend > xmp > using file 
> '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/lpdf-pdx.xml'
> pages   > flushing realpage 1, userpage 1, subpage 1
> close source> level 2, order 3, name 
> '/Users/Gavin/Desktop/GlyphExp/GlyphExp.tex'
> close source> level 1, order 3, name 
> '/Users/Gavin/context-osx-64/tex/texmf-context/tex/context/base/mkiv/cont-yes.mkiv'
> 
> mkiv lua stats  > used config file: selfautoparent:/texmf/web2c/texmfcnf.lua
> mkiv lua stats  > used cache path: 
> /Users/Gavin/context-osx-64/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e
> mkiv lua stats  > resource resolver: loadtime 0.006 seconds, 0 scans with 
> scantime 0.000 seconds, 0 shared scans, 11 found files, scanned paths: 
> mkiv lua stats  > stored bytecode data: 457 modules (0.242 sec), 96 tables 
> (0.015 sec), 553 chunks (0.257 sec)
> mkiv lua stats  > traced context: maxstack: 1424, freed: 0, unreachable: 1424
> mkiv lua stats  > cleaned up reserved nodes: 57 nodes, 9 lists of 442
> mkiv lua stats  > node memory usage: 11 attribute, 4 attribute_list, 1 glue, 
> 51 glue_spec, 3 kern, 2 penalty, 2 temp, 2 user_defined
> mkiv lua stats  > node list callback tasks: 8 unique task lists, 7 instances 
> (re)created, 38 calls
> mkiv lua stats  > used backend: pdf (backend for directly generating pdf 
> output)
> mkiv lua stats  > jobdata time: 0.001 seconds saving, 0.000 seconds loading
> mkiv lua stats  > callbacks: internal: 132, file: 64, direct: 2, late: 0, 
> function 507, total: 705 (705 per page)
> mkiv lua stats  > randomizer: resumed with value 0.58778292965144
> mkiv lua stats  > result saved in file: GlyphExp.pdf, compresslevel 3, 
> objectcompresslevel 1
> mkiv lua stats  > loaded patterns: en::1, load time: 0.000
> mkiv lua stats  > loaded fonts: 2 files: latinmodern-math.otf, 
> lmroman12-regular.otf
> mkiv lua stats  > font engine: otf 3.116, afm 1.513, tfm 1.000, 7 instances, 
> 3 shared in backend, 3 common vectors, 0 common hashes, load time 0.200 
> seconds 
> mkiv lua stats  > used platform: osx-64, type: unix, binary subtree: 
> texmf-osx-64
> mkiv lua stats  > used engine: luatex version: 1.13, functionality level: 
> 7420, banner: this is luatex, version 1.13.0 (tex live 2021)
> mkiv lua stats  > used hash slots: 46714 of 65536 + 25
> mkiv lua stats  

Re: [NTG-context] mathfun

2021-05-23 Thread Jairo A. del Rio
Thank you a lot for the explanation! It makes more sense now and
definitively is something very promising to play with. Wrt the module
itself, is it possible to consider language-dependent labels? I noticed
"\sin" is "sin" when it should be "sen" once the module is loaded.

Jairo

El dom, 23 de may. de 2021 a la(s) 09:35, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 5/23/2021 3:45 PM, Jairo A. del Rio wrote:
> > El dom, 23 de may. de 2021 a la(s) 04:51, Hans Hagen (j.ha...@xs4all.nl
> > ) escribió:
> >
> > On 5/22/2021 11:34 PM, Jairo A. del Rio wrote:
> >  > Hi. Is \thewithproperty documented elsewhere? Is this a new
> > primitive?
> >  > It looks interesting.
> > In the case of the \sin trick particular case \let\computer\the would
> > also work; i added the \thewithproperty feature just because
> i
> > expect that users can come up with variants (like \drawme\sin ...)
> > which
> > then would adapt behaviour (via \dowithproperty2).
> >
> >
> > Having flags for computing and drawing would be awesome. I think it
> > would nicely extend ConTeXt's drawing features...
> >
> > So, indeed it's a new primitive but (for now) only used with these
> lua
> > hacks. Actually it's no big deal to reimplement \thewithoutunit
> as
> >
> >
> > So, is this Lua-specific?
>
> it relates to teh way tex sees things ... thihnk of
>
>\dimen0=10pt
>
> where \dimen expects a number, optional equal and value
>
> while
>
>\the\dimen0
>
> the '\the' expects all kind of things, with '\dimen' being one of then
> in which case its value is serialized
>
> in order to implement 'new primitives' using lua (like some that need to
> be implemented for compatibility reasons due to the backend differences)
> we need to be able to distinguish between setting and getting a value
>
> so in that sense it's indeed lua specific: a specific class of lua
> functions knows if it's triggered by serialization
>
> and that is what we 'kind of' abuse here and also why i did add this
> additional 'pseudo prefix' so that we ca ndo more clever things if we
> want to
>
> > \thewithoutunit{\dowithproperty1\the}
> >
> > and then
> >
> > \thewithcmunit{\dowithproperty2\the}
> >
> > to serialize the dimension in cm but normally i need to "wonder for a
> > while if it makes sense".
> >
> > Btw, adding primitives (related to the token related bits and pieces
> of
> > the engine) only makes sense if the gain is in
> >
> > -- avoiding clumsy code: although that can hurt someones pride and
> joy
> > over a nice and complex macro doing the same ... don't worry, i threw
> > away plenty of code by now
> >
> > -- significant performance gain: which is seldom the case (there
> really
> > is not much to gain, at least not in context which is rather
> optimized
> > already)
> >
> > -- giving way less noise in tracing: which for me is a good reason
> > (tracing changed a bit anyway)
> >
> > -- not adding much code to the engine or the need to refactor:
> although
> > for some luametatex extensions some internals had to change
> > fundamentally
> >
> > a good example is the extended macro argument handling: less clumsy
> tex
> > code, a bit of performance gain and easier full expansion, way less
> > tracing, but it violates the last argument because it did lead to
> some
> > refactoring (i also had to make sure the extra overhead didn't slow
> > down
> > macro definitions and expansion)
>
> > I did the following and I have two questions:
> >
> > 1. What if I want to have more than one property? Say \plusone for
> > computation and \plustwo for drawing.
>
> you can do that but keep in mind that \compute is then an 'official'
> context one (bound to 1) and any other number can conflict with other
> context numbers in the future, so best start at 1000 or so for private
> ones
>
> > 2. What does 'usage="value"' mean in the implement function (looks new,
> > but I'm prolly wrong)?
>
> indeed, it is already there for a while and it lets the function
> definition follow a different route ... basically one that can follow
> \the; I suppose that I can also make 'property' a valid usage (alias)
>
> (btw often features like this are described in articles or wrapups inm
> documents in the distribution or even mentioned here but as usual with
> tex these things only make sense trigger usage when one really needs it)
>
> > \permanent\protected\def\drawme{\thewithproperty\plussix} %better than
> 666
>
> or 31415 to fit in the tex numbering
>
> > \startluacode
> > local interfaces = interfaces
> > local implement = interfaces.implement
> > local context = context
> > local drawme_code = 6
> > local drawing = [==[
> > draw fullcircle scaled 10mm;
> > draw fullcircle shifted up scaled 5mm;
> > draw fulltriangle shifted (up+1/2right) scaled 5mm;
> > ]==]
> >
> >
> > local function chicken(value)
> > if value == 

Re: [NTG-context] mathfun

2021-05-23 Thread Hans Hagen

On 5/23/2021 3:45 PM, Jairo A. del Rio wrote:


\permanent\protected\def\drawme{\thewithproperty\plussix} %better than 666


As you're in protection ...

\immutable\integerdef\MyChickenDraw 1006

\permanent\protected\def\drawme{\thewithproperty\MyChickenDraw}

and yes, \integerdef is also a primitive (doesn't waste a register)

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

2021-05-23 Thread Hans Hagen

On 5/23/2021 3:45 PM, Jairo A. del Rio wrote:
El dom, 23 de may. de 2021 a la(s) 04:51, Hans Hagen (j.ha...@xs4all.nl 
) escribió:


On 5/22/2021 11:34 PM, Jairo A. del Rio wrote:
 > Hi. Is \thewithproperty documented elsewhere? Is this a new
primitive?
 > It looks interesting.
In the case of the \sin trick particular case \let\computer\the would
also work; i added the \thewithproperty feature just because i
expect that users can come up with variants (like \drawme\sin ...)
which
then would adapt behaviour (via \dowithproperty2).


Having flags for computing and drawing would be awesome. I think it 
would nicely extend ConTeXt's drawing features...


So, indeed it's a new primitive but (for now) only used with these lua
hacks. Actually it's no big deal to reimplement \thewithoutunit as


So, is this Lua-specific?


it relates to teh way tex sees things ... thihnk of

  \dimen0=10pt

where \dimen expects a number, optional equal and value

while

  \the\dimen0

the '\the' expects all kind of things, with '\dimen' being one of then 
in which case its value is serialized


in order to implement 'new primitives' using lua (like some that need to 
be implemented for compatibility reasons due to the backend differences) 
we need to be able to distinguish between setting and getting a value


so in that sense it's indeed lua specific: a specific class of lua 
functions knows if it's triggered by serialization


and that is what we 'kind of' abuse here and also why i did add this 
additional 'pseudo prefix' so that we ca ndo more clever things if we 
want to



    \thewithoutunit{\dowithproperty1\the}

and then

    \thewithcmunit{\dowithproperty2\the}

to serialize the dimension in cm but normally i need to "wonder for a
while if it makes sense".

Btw, adding primitives (related to the token related bits and pieces of
the engine) only makes sense if the gain is in

-- avoiding clumsy code: although that can hurt someones pride and joy
over a nice and complex macro doing the same ... don't worry, i threw
away plenty of code by now

-- significant performance gain: which is seldom the case (there really
is not much to gain, at least not in context which is rather optimized
already)

-- giving way less noise in tracing: which for me is a good reason
(tracing changed a bit anyway)

-- not adding much code to the engine or the need to refactor: although
for some luametatex extensions some internals had to change
fundamentally

a good example is the extended macro argument handling: less clumsy tex
code, a bit of performance gain and easier full expansion, way less
tracing, but it violates the last argument because it did lead to some
refactoring (i also had to make sure the extra overhead didn't slow
down
macro definitions and expansion)



I did the following and I have two questions:

1. What if I want to have more than one property? Say \plusone for 
computation and \plustwo for drawing.


you can do that but keep in mind that \compute is then an 'official' 
context one (bound to 1) and any other number can conflict with other 
context numbers in the future, so best start at 1000 or so for private 
ones


2. What does 'usage="value"' mean in the implement function (looks new, 
but I'm prolly wrong)?


indeed, it is already there for a while and it lets the function 
definition follow a different route ... basically one that can follow 
\the; I suppose that I can also make 'property' a valid usage (alias)


(btw often features like this are described in articles or wrapups inm 
documents in the distribution or even mentioned here but as usual with 
tex these things only make sense trigger usage when one really needs it)



\permanent\protected\def\drawme{\thewithproperty\plussix} %better than 666


or 31415 to fit in the tex numbering


\startluacode
local interfaces = interfaces
local implement = interfaces.implement
local context = context
local drawme_code = 6
local drawing = [==[
draw fullcircle scaled 10mm;
draw fullcircle shifted up scaled 5mm;
draw fulltriangle shifted (up+1/2right) scaled 5mm;
]==]


local function chicken(value)
if value == "value" or value == drawme_code then


no need to check for "value" unless you also want:

\the\chicken


context.metafun.start()
context.metafun(drawing);
context.metafun.stop()
--elseif then ...
else
context("Chicken!")
end
end

implement{
name = "chicken",
public = true,
usage = "value", --What does it do?
overload = true,
actions = chicken
}

\stopluacode

\starttext\chicken\ and \drawme\chicken\stoptext
indeed an example of usage, and as with the mathfun, it saves a ton of 
macros like \drawchicken and so


so now you next challenge is to pass arguments so here a next phase

\permanent\protected\def\drawme{\thewithproperty1006 }

\startluacode

local interfaces = interfaces
local implement = 

Re: [NTG-context] Unwanted upright math in MkIV

2021-05-23 Thread Aditya Mahajan
On Sun, 23 May 2021, Gavin wrote:

> Hello,
> 
> I’m using ConTeXt with MacOS. The current version of MkIV produces upright 
> math rather than italic. MWE:
> 
> \starttext
> \m{f = \beta}
> \stoptext

Works correctly here. What does context --version say?

Aditya___
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] mathfun

2021-05-23 Thread Jairo A. del Rio
El dom, 23 de may. de 2021 a la(s) 04:51, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 5/22/2021 11:34 PM, Jairo A. del Rio wrote:
> > Hi. Is \thewithproperty documented elsewhere? Is this a new primitive?
> > It looks interesting.
> In the case of the \sin trick particular case \let\computer\the would
> also work; i added the \thewithproperty feature just because i
> expect that users can come up with variants (like \drawme\sin ...) which
> then would adapt behaviour (via \dowithproperty2).
>

Having flags for computing and drawing would be awesome. I think it would
nicely extend ConTeXt's drawing features...

So, indeed it's a new primitive but (for now) only used with these lua
> hacks. Actually it's no big deal to reimplement \thewithoutunit as
>

So, is this Lua-specific?

   \thewithoutunit{\dowithproperty1\the}
>
> and then
>
>\thewithcmunit{\dowithproperty2\the}
>
> to serialize the dimension in cm but normally i need to "wonder for a
> while if it makes sense".
>
> Btw, adding primitives (related to the token related bits and pieces of
> the engine) only makes sense if the gain is in
>
> -- avoiding clumsy code: although that can hurt someones pride and joy
> over a nice and complex macro doing the same ... don't worry, i threw
> away plenty of code by now
>
> -- significant performance gain: which is seldom the case (there really
> is not much to gain, at least not in context which is rather optimized
> already)
>
> -- giving way less noise in tracing: which for me is a good reason
> (tracing changed a bit anyway)
>
> -- not adding much code to the engine or the need to refactor: although
> for some luametatex extensions some internals had to change fundamentally
>
> a good example is the extended macro argument handling: less clumsy tex
> code, a bit of performance gain and easier full expansion, way less
> tracing, but it violates the last argument because it did lead to some
> refactoring (i also had to make sure the extra overhead didn't slow down
> macro definitions and expansion)
>
> 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
> -
>

I did the following and I have two questions:

1. What if I want to have more than one property? Say \plusone for
computation and \plustwo for drawing.

2. What does 'usage="value"' mean in the implement function (looks new, but
I'm prolly wrong)?

\permanent\protected\def\drawme{\thewithproperty\plussix} %better than 666

\startluacode

local interfaces = interfaces

local implement = interfaces.implement

local context = context


local drawme_code = 6


local drawing = [==[

draw fullcircle scaled 10mm;

draw fullcircle shifted up scaled 5mm;

draw fulltriangle shifted (up+1/2right) scaled 5mm;

]==]


local function chicken(value)

if value == "value" or value == drawme_code then

context.metafun.start()

context.metafun(drawing);

context.metafun.stop()

--elseif then ...

else

context("Chicken!")

end

end


implement{

name = "chicken",

public = true,

usage = "value", --What does it do?

overload = true,

actions = chicken

}

\stopluacode

\starttext\chicken\ and \drawme\chicken\stoptext

Thank you in advance.

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
___


Re: [NTG-context] One chapter with different heading settings

2021-05-23 Thread Rik Kabel

On 5/23/2021 07:43, Jeroen wrote:
In the preamble I have the following setup for the chapter header 
setup. There is one chapter I want to have a different heading setup 
with some less spacing, what would be the easiest way to achieve this?


\setuphead
[section]
[style=bold,
before={\vskip4mm},
after={\vskip1.5mm}]

What I do for a chapter that has different requirements is to define a 
new heading based on my normal chapter. Be sure to include it in the 
contents list as well if you show a table of contents, and similarly 
include it in the pdf bookmarks.


There may be other, perhaps better ways to do it, but this works well.

   %% RVchapter can start on recto or verso, chapter on recto only

   \definehead [RVchapter][chapter]
   \setuphead  [RVchapter][
    page=yes,
    before=
   ]
   \setuphead  [chapter]  [
    style=\tfc\HeadFont,
    page={yes,right},
    ...,
       ]
   \setuphead  [section]  [
        style=\tfb\HeadFont,
    ...,
       ]
   \setupcombinedlist [content]
                       [list={chapter,RVchapter}]
   \placebookmarks [chapter,RVchapter,section,subsection,subsubsection]
           [chapter]
           [force=yes,number=no]

--
Rik

___
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] Unwanted upright math in MkIV

2021-05-23 Thread Gavin
Hello,

I’m using ConTeXt with MacOS. The current version of MkIV produces upright math 
rather than italic. MWE:

\starttext
\m{f = \beta}
\stoptext

The above example produces italic math TeXLive 2021 ConTeXt and in the current, 
LMTX. Looks like a bug to me, but maybe I am doing something wrong. I am 
running ConTeXt from TexShop using this engine:

#!/bin/zsh
export PATH=/Users/Gavin/context-osx-64/tex/texmf-osx-64/bin:$PATH
~/context-osx-64/tex/texmf-osx-64/bin/context --luatex --autopdf "$1”

Thanks!
Gavin
___
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 install

2021-05-23 Thread Werner Hennrich

Julian, is the luametatex file in that directory executable?
both context and mtxrun are links to it:

lrwxrwxrwx 1 xxx xxx  10  context -> luametatex
-rw-r--r-- 1 xxx xxx    1315  context.lua
-rwxr-xr-x 1 xxx xxx 2957368  luametatex
-rwxr-xr-x 1 xxx xxx 7150016  luatex
lrwxrwxrwx 1 xxx xxx  10  mtxrun -> luametatex
-rw-r--r-- 1 xxx xxx  689635  mtxrun.lua

all the best!
Werner

Am 23.05.21 um 12:14 schrieb jbf:

Then something is not making sense (to me).

.bashrc clearly shows: export
PATH=$PATH:/home/me/bin/context/tex/texmf-linux-64/bin, so does that
not mean that bin can be found via the path? So why does 'context
myfile.tex' not work?

If I run a full path (.
/home/me/bin/context/tex/texmf-linux-64/bin/mtxrun context myfile.tex)
I get the message 'cannot execute binary file' and yet mtxrun is
executable. I checked. Clearly I am making a basic error, but cannot
work out what.

Julian



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

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


[NTG-context] One chapter with different heading settings

2021-05-23 Thread Jeroen
In the preamble I have the following setup for the chapter header setup.
There is one chapter I want to have a different heading setup with some
less spacing, what would be the easiest way to achieve this?

\setuphead

  [section]

  [style=bold,

   before={\vskip 4mm},

   after={\vskip 1.5mm}]
___
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] Special layouts don't recognise placeinitial

2021-05-23 Thread Hans Hagen

On 5/23/2021 2:41 AM, Eduardo Bohoyo wrote:
My question will be very simple: Is there a trick to make \placeinitial 
command work within makeup pages?


One of my pages inside the /frontmater/ is a quote page within an 
special layout. Before using LMTX, when I could use the Lettrine module, 
that quote started with a capital letter. But now that I use 
\placeinitial, the first letter no longer changes: it remains a simple 
initial capital letter.
On the other hand, when I use \placeinitial for each first paragraph in 
the chapters of my book, the result is as expected. That is, the command 
works fine as long as it stays within the general layout.

This is the code I'm referring to:

\startmakeup[standard][doublesided=yes]

\setuplayout[backspace=176pt,width=194pt]
\setupinterlinespace[line=22pt]
\style[tfa]

\startalignment[hanging,flushleft,nothyphenated]
\placeinitial Ahora, vosotros que amáis, dejadme que os formule una 
pregunta: ¿quién sufre más por  ello,  Arcite  o  Palamón? ¿El  que  ve  
a  su  dama  diariamente,  pero  está  encerrado para  siempre,  o  el  
que  es  libre  de  ir  donde  le  plazca, pero  no  verá  nunca  más  
a  su  dama?  Aquellos  de  vosotros que  podáis,  elegid  entre  las  
dos  situaciones  a  voluntad; yo,  por  mi  parte, continuaré como he 
empezado.

\stopalignment

\startalignment[hanging,flushright,nothyphenated]
\blank[0.8cm,force]{\tfa\sc  Geofrey Chaucer,\hspace[big]}
\blank[0.1cm,force]{\tfa\em The Canterbury Tales \hspace[big]}
\stopalignment

\stopmakeup

You can add this to cont-new.mkxl (assuming lmtx)

\unprotect

\permanent\tolerant\protected\def\flushinitial
  {\typo_initial_handle}

\protect

and then

\placeinitial  \flushinitial Ahora, ...

will work. More clever automated solutions are likely to interfere and 
have side effects for embedded cases so this is the best I can come up 
with now.


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 install

2021-05-23 Thread luigi scarso
Il Dom 23 Mag 2021, 12:14 jbf  ha scritto:

> Then something is not making sense (to me).
>
> .bashrc clearly shows: export
> PATH=$PATH:/home/me/bin/context/tex/texmf-linux-64/bin, so does that not
> mean that bin can be found via the path? So why does 'context
> myfile.tex' not work?
>
> If I run a full path (.
> /home/me/bin/context/tex/texmf-linux-64/bin/mtxrun context myfile.tex) I
> get the message 'cannot execute binary file' and yet mtxrun is
> executable. I checked. Clearly I am making a basic error, but cannot
> work out what.
>
> Julian


In general I always set
export PATH=:$PATH

>
--
luigi
___
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 install

2021-05-23 Thread jbf

Then something is not making sense (to me).

.bashrc clearly shows: export 
PATH=$PATH:/home/me/bin/context/tex/texmf-linux-64/bin, so does that not 
mean that bin can be found via the path? So why does 'context 
myfile.tex' not work?


If I run a full path (. 
/home/me/bin/context/tex/texmf-linux-64/bin/mtxrun context myfile.tex) I 
get the message 'cannot execute binary file' and yet mtxrun is 
executable. I checked. Clearly I am making a basic error, but cannot 
work out what.


Julian

On 23/5/21 7:54 pm, Hans Hagen wrote:

On 5/23/2021 9:52 AM, Benny Schurig wrote:

Hi Julian,

afaik with lmtx a setup is not necessary. With mk iv it established 
the tex tree. With lmtx the tree is somehow self-contained.


I use lmtx and point the compile command of my editor of choice 
(Geany, Kile, Texmaker, Emacs whatever) directly to 
.../context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script 
context [file]
Even mkiv doesn't need it .. just make sure the bin can be found (via 
the path) or call it fully quallified. Once started th ebinary can 
figure out where it sits in the tree.


The setup script(s) also (at least in the beginning) made sure that 
when for some reason an other tex installation had set some variables 
related to the "TDS" they were nilled, but when a context user just 
install context that doesn't happen


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] t-vim module: no highlighting for custom filetypes

2021-05-23 Thread Hans Hagen

On 5/22/2021 6:15 PM, Aditya Mahajan wrote:

On Sat, 22 May 2021, Hans Hagen wrote:


On 5/21/2021 9:37 PM, Nicola wrote:



I have only a minor annoyance: I have just noticed that -- is typeset as
an en-dash in LMTX (but not in MKIV, as documented). Could you look into
that?


best is that the module uses:

\the\everyinitializeverbatim

because there we disable all kind of non verbatim stuff


Thanks. It took a few trial and error that \the\everyinitializeverbatim  must 
come after \usealignparameter. However, using \nohypencollapsing after 
\usealignparameter means that I cannot get hypenated lines (something which had 
been requested in the past for t-vim). See the attached file.

BTW, shouldn't we have `features=none` in the default mono font setup so that 
this doesn't happen anyways?

afaik we already do that

(i'll add some more control, already added \setuphyphenation[hyphen=no] 
here)


I need to find a reasonable way to provide control over all these things 
... real low level btw is \hyphenationmode\zerocount ... look in 
lang-ini.mkxl for all possible flags)


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] Define new symbol by stitching two symbols together

2021-05-23 Thread Hans Hagen

On 5/22/2021 8:23 PM, Nicola wrote:

I would like to define new symbols by stitching together existing
glyphs. This is what I have come up so far:

 \define[1]\Transition{-\!\![#1]\!\!\rightarrow}
 \starttext
 \m{L\Transition{A}R}
 \stoptext

This should render as -[ ]->, ideally with no space between the dash or
the arrow and the brackets, i.e., -[ should appear like a single glyph;
ditto for ]-->. With the definition above, however, the space is
variable, and in some circumstances the gliphs overlap.

How can I improve the above definition?

don't use these funny \! skips ... use some font related metric:

\define[1]\Transition{-\kern-1ex[#1]\kern-1.1ex\rightarrow}
\starttext
\m{L\Transition{A}R}
\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
___


Re: [NTG-context] LMTX install

2021-05-23 Thread Hans Hagen

On 5/23/2021 9:52 AM, Benny Schurig wrote:

Hi Julian,

afaik with lmtx a setup is not necessary. With mk iv it established the 
tex tree. With lmtx the tree is somehow self-contained.


I use lmtx and point the compile command of my editor of choice (Geany, 
Kile, Texmaker, Emacs whatever) directly to 
.../context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script 
context [file]
Even mkiv doesn't need it .. just make sure the bin can be found (via 
the path) or call it fully quallified. Once started th ebinary can 
figure out where it sits in the tree.


The setup script(s) also (at least in the beginning) made sure that when 
for some reason an other tex installation had set some variables related 
to the "TDS" they were nilled, but when a context user just install 
context that doesn't happen


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

2021-05-23 Thread Hans Hagen

On 5/22/2021 11:34 PM, Jairo A. del Rio wrote:
Hi. Is \thewithproperty documented elsewhere? Is this a new primitive? 
It looks interesting.
In the case of the \sin trick particular case \let\computer\the would 
also work; i added the \thewithproperty feature just because i 
expect that users can come up with variants (like \drawme\sin ...) which 
then would adapt behaviour (via \dowithproperty2).


So, indeed it's a new primitive but (for now) only used with these lua 
hacks. Actually it's no big deal to reimplement \thewithoutunit as


  \thewithoutunit{\dowithproperty1\the}

and then

  \thewithcmunit{\dowithproperty2\the}

to serialize the dimension in cm but normally i need to "wonder for a 
while if it makes sense".


Btw, adding primitives (related to the token related bits and pieces of 
the engine) only makes sense if the gain is in


-- avoiding clumsy code: although that can hurt someones pride and joy 
over a nice and complex macro doing the same ... don't worry, i threw 
away plenty of code by now


-- significant performance gain: which is seldom the case (there really 
is not much to gain, at least not in context which is rather optimized 
already)


-- giving way less noise in tracing: which for me is a good reason 
(tracing changed a bit anyway)


-- not adding much code to the engine or the need to refactor: although 
for some luametatex extensions some internals had to change fundamentally


a good example is the extended macro argument handling: less clumsy tex 
code, a bit of performance gain and easier full expansion, way less 
tracing, but it violates the last argument because it did lead to some 
refactoring (i also had to make sure the extra overhead didn't slow down 
macro definitions and expansion)


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 install

2021-05-23 Thread jbf
Linux Mint 21 and yes, followed precisely the instructions on the wiki 
page. mtxrun is executable. Not sure why this has to be so difficult but 
it is not working.


Julian

On 23/5/21 5:53 pm, Bruce Horrocks wrote:

On 23 May 2021, at 07:52, jbf  wrote:

Someone will quickly clarify what I am doing wrong here. Have used mkiv until 
now but decided to download and install LMTX in /home/me/bin/context.

I then ran  export PATH=/home/me/bin/context/tex/texmf-linux-64/bin:$PATH as 
the install script indicated at the end.

When running mk iv, I always first ran a setup line (in my case it was . 
/home/me/Documents/Freedom/Context/tex/setuptex). Do I need to run a setup also 
for LMTX installed as above? And what one, because there is no 'setuptex' as 
far as I can see. If I just run context myfile.tex I get the mtxrun  | 
unknown script 'context.lua' or 'mtx-context.lua' message. Does this mean my 
'path' command didn't work (and why not? It should have) or do I still need to 
run a setup before I try to compile?

You don't say which Linux you are using so I would first check to see that
  /home/me/bin/context/tex/texmf-linux-64/bin/mtxrun
is executable.

I assume that you followed the instructions on the wiki page here?


(Sorry to be so pedantic but it helps us to know exactly what you have done.)

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

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

2021-05-23 Thread Julian Fox
Not pedantic, just correct. I should have said Linux Mint 21! I'll check
the status of mtxrun but I thought all that would be automatic

On Sun, 23 May 2021, 5:54 pm Bruce Horrocks,  wrote:

> On 23 May 2021, at 07:52, jbf  wrote:
> >
> > Someone will quickly clarify what I am doing wrong here. Have used mkiv
> until now but decided to download and install LMTX in /home/me/bin/context.
> >
> > I then ran  export
> PATH=/home/me/bin/context/tex/texmf-linux-64/bin:$PATH as the install
> script indicated at the end.
> >
> > When running mk iv, I always first ran a setup line (in my case it was .
> /home/me/Documents/Freedom/Context/tex/setuptex). Do I need to run a setup
> also for LMTX installed as above? And what one, because there is no
> 'setuptex' as far as I can see. If I just run context myfile.tex I get the
> mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
> message. Does this mean my 'path' command didn't work (and why not? It
> should have) or do I still need to run a setup before I try to compile?
>
> You don't say which Linux you are using so I would first check to see that
>  /home/me/bin/context/tex/texmf-linux-64/bin/mtxrun
> is executable.
>
> I assume that you followed the instructions on the wiki page here?
> 
>
> (Sorry to be so pedantic but it helps us to know exactly what you have
> done.)
>
> —
> 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
>
> ___
>
___
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] LMTX install

2021-05-23 Thread Benny Schurig

Hi Julian,

afaik with lmtx a setup is not necessary. With mk iv it established the 
tex tree. With lmtx the tree is somehow self-contained.


I use lmtx and point the compile command of my editor of choice (Geany, 
Kile, Texmaker, Emacs whatever) directly to 
.../context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script 
context [file]


Best, Benny

PS: First answer with phone, html message, weird stuff

 Ursprüngliche Nachricht 
Von: jbf 
Datum: So., 23. Mai 2021, 08:52
An: mailing list for ConTeXt users 
Betreff: [NTG-context] LMTX install

Someone will quickly clarify what I am doing wrong here. Have used mkiv
until now but decided to download and install LMTX in
/home/me/bin/context.

I then ran  export
PATH=/home/me/bin/context/tex/texmf-linux-64/bin:$PATH as the install
script indicated at the end.

When running mk iv, I always first ran a setup line (in my case it
was .
/home/me/Documents/Freedom/Context/tex/setuptex). Do I need to run a
setup also for LMTX installed as above? And what one, because there is
no 'setuptex' as far as I can see. If I just run context myfile.tex I
get the mtxrun  | unknown script 'context.lua' or
'mtx-context.lua' message. Does this mean my 'path' command didn't work
(and why not? It should have) or do I still need to run a setup
before I
try to compile?

Julian


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

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

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

2021-05-23 Thread Bruce Horrocks
On 23 May 2021, at 07:52, jbf  wrote:
> 
> Someone will quickly clarify what I am doing wrong here. Have used mkiv until 
> now but decided to download and install LMTX in /home/me/bin/context.
> 
> I then ran  export PATH=/home/me/bin/context/tex/texmf-linux-64/bin:$PATH as 
> the install script indicated at the end.
> 
> When running mk iv, I always first ran a setup line (in my case it was . 
> /home/me/Documents/Freedom/Context/tex/setuptex). Do I need to run a setup 
> also for LMTX installed as above? And what one, because there is no 
> 'setuptex' as far as I can see. If I just run context myfile.tex I get the 
> mtxrun  | unknown script 'context.lua' or 'mtx-context.lua' message. 
> Does this mean my 'path' command didn't work (and why not? It should have) or 
> do I still need to run a setup before I try to compile?

You don't say which Linux you are using so I would first check to see that 
 /home/me/bin/context/tex/texmf-linux-64/bin/mtxrun
is executable.

I assume that you followed the instructions on the wiki page here?


(Sorry to be so pedantic but it helps us to know exactly what you have done.)

—
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] LMTX install

2021-05-23 Thread ‪‪Benny Schurig‬
Hi Julian, afaik with lmtx a setup is not necessary. With mk iv it established the tex tree. With lmtx the tree is somehow self-contained. I use lmtx and point the compile command of my editor of choice (Geany, Kile, Texmaker, Emacs whatever) directly to .../context/tex/texmf-linux-64/bin/mtxrun --autogenerate --script context  [file] Best, Benny Ursprüngliche Nachricht Von: jbf Datum: So., 23. Mai 2021, 08:52An: mailing list for ConTeXt users Betreff: [NTG-context] LMTX installSomeone will quickly clarify what I am doing wrong here. Have used mkiv until now but decided to download and install LMTX in /home/me/bin/context.I then ran  export PATH=/home/me/bin/context/tex/texmf-linux-64/bin:$PATH as the install script indicated at the end.When running mk iv, I always first ran a setup line (in my case it was . /home/me/Documents/Freedom/Context/tex/setuptex). Do I need to run a setup also for LMTX installed as above? And what one, because there is no 'setuptex' as far as I can see. If I just run context myfile.tex I get the mtxrun  | unknown script 'context.lua' or 'mtx-context.lua' message. Does this mean my 'path' command didn't work (and why not? It should have) or do I still need to run a setup before I try to compile?Julian___If your question is of interest to others as well, please add an entry to the Wiki!maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-contextwebpage  : http://www.pragma-ade.nl / http://context.aanhet.netarchive  : 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] LMTX install

2021-05-23 Thread jbf
Someone will quickly clarify what I am doing wrong here. Have used mkiv 
until now but decided to download and install LMTX in /home/me/bin/context.


I then ran  export 
PATH=/home/me/bin/context/tex/texmf-linux-64/bin:$PATH as the install 
script indicated at the end.


When running mk iv, I always first ran a setup line (in my case it was . 
/home/me/Documents/Freedom/Context/tex/setuptex). Do I need to run a 
setup also for LMTX installed as above? And what one, because there is 
no 'setuptex' as far as I can see. If I just run context myfile.tex I 
get the mtxrun  | unknown script 'context.lua' or 
'mtx-context.lua' message. Does this mean my 'path' command didn't work 
(and why not? It should have) or do I still need to run a setup before I 
try to compile?


Julian

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

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