Re: [NTG-context] Modules under LMTX, was Re: Use of lettrine module in LMTX

2021-07-25 Thread Aditya Mahajan
On Sun, 25 Jul 2021, Rik Kabel wrote:

> Perhaps a list of modules known to run correctly with LMTX is called 
> for, and perhaps a classification of modules to indicate which ConTeXt 
> versions each supports, and a way to download a distribution-appropriate 
> subset.

For some of my modules, I *.mkii, *.mkiv, *.mkxl so that the engine-appropriate 
version is selected. Note that if there is LMTX prefers mkxl but will select 
mkiv if mkxl is not available. 

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
___


[NTG-context] Modules under LMTX, was Re: Use of lettrine module in LMTX

2021-07-25 Thread Rik Kabel

On 7/25/2021 16:14, Nicola wrote:

On 2021-07-23, Arthur Rosendahl  wrote:

On Fri, Jul 23, 2021 at 03:10:59PM +0200, Gerben Wierda wrote:

I just made a remark on ConTeXtgarden not mentioning this.

I am guilty and apologize for the bad advice. But I'd like to point out
that not *all* the modules are out of date, so you may still want to
retain the directory. For instance, the one I rely upon is the vim
module for typesetting code, and that one is compatible with LMTX. There
may be others.

Nicola


Indeed, there are modules that appear to work perfectly well with LMTX.

The fancybreak module has no issues in the way I use it.

Perhaps a list of modules known to run correctly with LMTX is called 
for, and perhaps a classification of modules to indicate which ConTeXt 
versions each supports, and a way to download a distribution-appropriate 
subset.


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


Re: [NTG-context] Use of lettrine module in LMTX

2021-07-25 Thread Nicola
On 2021-07-23, Arthur Rosendahl  wrote:
> On Fri, Jul 23, 2021 at 03:10:59PM +0200, Gerben Wierda wrote:
>> I just made a remark on ConTeXtgarden not mentioning this.

I am guilty and apologize for the bad advice. But I'd like to point out
that not *all* the modules are out of date, so you may still want to
retain the directory. For instance, the one I rely upon is the vim
module for typesetting code, and that one is compatible with LMTX. There
may be others.

Nicola

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

2021-07-25 Thread Richard Mahoney
For a good number of years now I've been using P4D and 
P4V from Perforce for version control. As it happens it, one 
is able to control what ends up in the repository and what
is left out, thankfully. Regardless, this should be very helpful
Hans. It'll be great to be able to quickly scan the project files
that matter, knowing that all the clutter is safely kept somewhere
else. So thanks for this.

Perforce, by the way. (Freely available for smaller projects):

P4D

https://www.perforce.com/downloads/helix-core-p4d

P4V

https://www.perforce.com/downloads/helix-visual-client-p4v

And the diff tool is absolutely excellent (the reason I first
went with it):

https://www.perforce.com/downloads/visual-merge-tool


Best, Richard


--
*T* +6433121699  *M* +64210640216  *E* rmaho...@indica-et-buddhica.org
*IM* https://t.me/rmahoney  *W *https://indica-et-buddhica.org/**

*Indica et Buddhica  *Littledene  Bay Road  Oxford  NZ 



- Original message -
From: Hans Hagen 
To: mailing list for ConTeXt users 
Subject: [NTG-context] weekend update
Date: Saturday, 24 July 2021 05:05

Hi,

This time the update has, appart from already mentioned mp fixes and 
additions, another new feature.

% runpath=texruns:whatever

% runpath=e:/temporary/texruns/runtest
% runpath=temp:texruns/runtest
% runpath=home:texruns/runtest

\starttext
 test
\stoptext

In context the first line can be used to control some aspects of the run 
and runpath (also as command line switch) will process the document 
elsewhere. The main reason for this feature is that when you have files 
in for instance a git repository (or export), you don't want the run 
path to be polluted by temporary files because everything can end up in 
the repository when it gets updates (after all these years I don't 
expect this pollution issue to be solved; svn is more explicit in what 
goes in).

So, for instance the manuals are on clean paths (on my machine i (am) 
put(ting) experiments, todo's etc under an ignored /private subpath 
which means that styles can still be found if needed).

The texruns: prefix resolves to an environment variable with the same 
name or when not set, to the temp directory. The temp: and home: 
prefixes resolve (as usual) to their counterparts (prefixes are a very 
old mkii mechanism but still useful).

When not present a path will be created, when no chdir is possible the 
run aborts.

There are probably some cases when resources are not found but that will 
be dealt with in due time. I might also update the underlying mechanisms 
at some point.

I already adapted some manuals so that means that when users process 
these themselves they will not see the runfiles fly to the temp path 
unless 'texruns' is configured. So be it.

Hans



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

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

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

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


Re: [NTG-context] Testing for LMTX: \ifmode

2021-07-25 Thread Axel Kielhorn


> Am 25.07.2021 um 12:17 schrieb Hans Hagen :
> 
> On 7/25/2021 9:46 AM, Wolfgang Schuster wrote:
> 
>> There is no mode value for LMTX, only MkIV is set. To check for LMTX
>> you have to use \ifcase\contextlmtxmode but an additional for lmtx
>> would be useful.
> i'll add an lmtx mode

Thanks!

I’m looking forward to the next release.

Greetings
Axel

___
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] Testing for LMTX: \ifmode

2021-07-25 Thread Hans Hagen

On 7/25/2021 9:46 AM, Wolfgang Schuster wrote:


There is no mode value for LMTX, only MkIV is set. To check for LMTX
you have to use \ifcase\contextlmtxmode but an additional for lmtx
would be useful.

i'll add an lmtx mode


-
  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] \setupinitial: style Parameter resets size

2021-07-25 Thread Axel Kielhorn
Hi,

since the lettrine module does not work with LMTX, I’ve looked into 
\setupinitial.
(There is a different thread about this.)

There is a „style“ parameter to change the style, but whenever I change the 
style, the font size is reset.
This is not what I expected.

This was the case in context before LMTX, thus it is not a regression.

% !TEX TS-program = ConTeXt (LuaTeX LMTX2021)
% !TEX encoding = UTF-8 Unicode

\starttext

\setupinitial[color=red]

\start
\setupinitial[n=2,m=1]
\placeinitial\input ward
\stop

\start
\setupinitial[style=\tf,n=2,m=1]
\placeinitial\input ward
\stop

\start
\setupinitial[font=Roman at 32 pt,n=2,m=1]
\placeinitial\input ward
\stop

\start
\setupinitial[style=\it,n=2,m=1]
\placeinitial\input ward
\stop

\start
\setupinitial[font=Italic at 32 pt,n=2,m=1]
\placeinitial\input ward
\stop

\start
\setupinitial[style=\it,font=Italic at 32 pt,n=2,m=1]
\placeinitial\input ward
\stop

\stoptext

Are my expectations wrong?

Greetings
Axel
___
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] Testing for LMTX: \ifmode

2021-07-25 Thread Wolfgang Schuster

Axel Kielhorn schrieb am 25.07.2021 um 09:06:

Hi,

I have a document that doesn’t work with LMTX right now.

While testing LMTX I would like to exclude certain passages and work on them 
later.

When I run the following:

\doifmode{*mkiv}{mkiv}
\doifmode{*contextlmtxmode}{contextlmtx}
\doifmode{*lmtx}{lmtx}

I always get „mkiv“.
I’ve tried

- pre LMTX context
- LMTX --luatex
- LMTX (2021.07.23)

What is the recommended way to detect LMTX?


There is no mode value for LMTX, only MkIV is set. To check for LMTX
you have to use \ifcase\contextlmtxmode but an additional for lmtx
would be useful.

\starttext

\ifcase\contextlmtxmode
\MKIV
\else
\MKIV\ + \LMTX
\fi

\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] Testing for LMTX: \ifmode

2021-07-25 Thread Axel Kielhorn
Hi,

I have a document that doesn’t work with LMTX right now.

While testing LMTX I would like to exclude certain passages and work on them 
later.

When I run the following:

\doifmode{*mkiv}{mkiv}
\doifmode{*contextlmtxmode}{contextlmtx}
\doifmode{*lmtx}{lmtx}

I always get „mkiv“.
I’ve tried

- pre LMTX context
- LMTX --luatex 
- LMTX (2021.07.23)

What is the recommended way to detect LMTX?

Greetings
Axel

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