[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 
<https://indica-et-buddhica.org/>


- 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] Use of lettrine module in LMTX

2021-07-23 Thread Gerben Wierda

Gerben Wierda (LinkedIn <https://www.linkedin.com/in/gerbenwierda>)
R Enterprise Architecture <https://ea.rna.nl/> (main site)
Book: Chess and the Art of Enterprise Architecture <https://ea.rna.nl/the-book/>
Book: Mastering ArchiMate <https://ea.rna.nl/the-book-edition-iii/>

> On 23 Jul 2021, at 13:04, Wolfgang Schuster 
>  wrote:
> 
> Gerben Wierda schrieb am 22.07.2021 um 08:43:
>> So, basically, the page on ConTeXt garden about using older modules in LMTX 
>> is incomplete: not all modules actually work.
> 
> Many of the modules on the garden are 10 years and older and predate 
> MkIV/LuaTeX.
> 
> A lot has changed since then and LMTX added many new commands which replaced
> older mechanism. There is no way all modules can work after these changes
> (especially modules which add font support in MkII).

It is OK and understandable that those modules wil be or become out of date.

I just made a remark on ConTeXtgarden not mentioning this. I have now 
downloaded those modules because of the suggestion there, but I should remove 
them again as they are no longer maintained for LMTX and may not work or stop 
working at any moment.

G

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

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


[NTG-context] date formatting

2021-07-18 Thread Hans van der Meer

From Wikipedia:

In English-language  
outside North America (mostly in Anglophone Europe and some countries in 
Australasia), full dates are written as 7 December 1941 (or 7th December 1941) 
and spoken as "the seventh of December, nineteen forty-one" (exceedingly common 
usage of "the" and "of"), with the occasional [my emphasis] usage of December 
7, 1941 ("December the seventh, nineteen forty-one"). In common with most 
continental European usage, however, all-numeric dates are invariably ordered 
dd/mm/.

From this I infer that \language[en] or \language[en-gb] should format dates 
normally in day-month-year order, reserving mont-day-year for \language[us] 
i.e. language[en-us].

But in ConTeXt both \language[en] and \language[en-gb] produce the us ordering 
for \currentdate. I would be pleased if ConTeXt could be changed to the above 
mentioned normal behaviour for english. That is [en] and [en-gb] produce the 
day-month-year order and that [us] and [en-us] month-day-year.

dr. Hans van der Meer


___
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] mp-geo Metapost package with ConTeXt

2021-07-15 Thread Hans Hagen

On 7/14/2021 4:43 PM, Gavin wrote:

Hello ConTeXters,

I’d like to use the mp-geo Metapost package with ConTeXt to draw simple globes 
viewed from various directions. The package is here:

https://melusine.eu.org/syracuse/poulecl/mp-geo/

It looks like the last update was 2008 and I don’t read French, so I though my 
chances of getting anything to work were pretty small. However, I was 
pleasantly surprised that this MWE found the mp-geo package, the necessary 
Metapost files in the ConTeXt installation, and the data files.

\starttext
\startMPcode
input mp-geo;
figure(-10u,-10u,10u,10u);
Mercator(3,48,30);
fin;
end
\stopMPcode
\stoptext

While all of the files were found, it did not produce a globe. Instead I got an 
error complaining about an invalid character in the data files. This error is 
repeated for about 20 files (a small fraction of the total). I put the first 
error and its data file below. All the others are identical with different .dat 
files.

Maybe it’s just an encoding mismatch or a hidden character I can easily delete 
or replace. On the other hand, maybe I shouldn't even be attempting this? 2008 
is a long time ago in ConTeXt time. Feel free to tell me this project is crazy, 
but if you have an idea how I can make this work, I’d really appreciate it! It 
looks like a fun package.
Looks interesting (I didn't know about it, also the surface stuff). 
Anyway, the message relates to scantokens not liking what gets read from 
a file, quite probably a missing file (I'll make it return a different 
message but still one needs to be aware of the fact that fiel reading in 
mp is kind of weird so it really expects a file).


That said, there are some issues that you need to sort out: no btex/etex 
and no TEX command but textext instead. You could ask the authors.


There are indeed funny characters in the files but nothing your 
bilingual local context user group member Alan couldn't help you with (a 
good reason to visit him. My french is too rusty (even with some french 
music running in the background right now.)


If you can get that code running it makes a nice article.

Hans

PS. 2008 is not that old, many context commands date from the 90's


-
  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] Missing symb-imp-was.mkiv ?

2021-07-10 Thread Hans Hagen

On 7/10/2021 8:24 AM, Ramkumar KB wrote:

Hello,

I am trying to follow the steps described here for using \usesymbols 
<https://wiki.contextgarden.net/Command/usesymbols>[was] and details 
described here -
https://wiki.contextgarden.net/Symbols/was 
<https://wiki.contextgarden.net/Symbols/was>


Looks like the file `symb-imp-was.mkiv` is missing from the path -

\tex\texmf-context\tex\context\base\mkiv

Thank you for any tips or pointers.
The wiki page actually mentiones jmn symbols but these are by (the late) 
Januz so that should be corrected.


Anyway, the wasy font symbol setup was never converted to mkiv so 
attached is a draft.


Up to you to complete it. From CTAN, download the type one package and 
put the afm and pfb files under (e.g.) texmf-fonts/fonts/data/wasy (no 
need for subdirs) and run "mtxrun --generate" to update the file database.


You can look in the afm files to see what names are provided.

It looks like the files were updated in 2020 (taco is mentiones). Rhaban 
made the mkii file so you can consult him. I advice to stick to the 
regular symbols not the weirdly composed ones.


You can patch the file and send me the result. You can 'run the file' in 
order to get the overview. You should see at least most symbols.


So ... work to do ...

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
-
%D \module
%D   [   file=symb-was,
%Dversion=2005.10.15,
%D  title=\CONTEXT\ Symbol Libraries,
%D   subtitle=Roland Waldi's Symbols (wasy-2),
%D author=Henning Hraban Ramm,
%D   date=\currentdate,
%D  copyright={Public Domain}]
%C
%C This module is in the public domain.

%D Converted to \MKIV\ by Hans but not yet complete.

\unprotect

\definefontsynonym [WaldiSymbol] [wasy10]
\definefontsynonym [WaldiSymbolBold] [wasyb10]

% \def\wasy@over#1#2{{\setbox0\hbox{$#2$}\hbox to 
\wd0{\hss$#1$\hss}\kern-\wd0\box0}}

\def\WaldiSymbol  {\getnamedglyphdirect{WaldiSymbol}} % #1
\def\WaldiSymbol#1{\getglyph{WaldiSymbol}{\fontchar{#1}}}

% general symbols

\startsymbolset [wasy general]
\definesymbol [male][\WaldiSymbol{male}]
\definesymbol [female]  [\WaldiSymbol{female}]
\definesymbol [currency][\WaldiSymbol{currency}]
\definesymbol [cent][\WaldiSymbol{cent}]
\definesymbol [lozenge] [\WaldiSymbol{lozenge}]
\definesymbol [kreuz]   [\WaldiSymbol{kreuz}]
\definesymbol [smiley]  [\WaldiSymbol{smiley}]
\definesymbol [blacksmiley] [\WaldiSymbol{blacksmil}]
\definesymbol [frownie] [\WaldiSymbol{frownie}]
\definesymbol [sun] [\WaldiSymbol{sun}]
\definesymbol [checked] [\WaldiSymbol{checked}]
\definesymbol [brokenvert]  [\WaldiSymbol{brokenver}]
\definesymbol [diameter][\WaldiSymbol{diameter}]
\definesymbol [invdiameter] [\WaldiSymbol{invdiamet}]
\definesymbol [phone]   [\WaldiSymbol{phone}]
\definesymbol [recorder][\WaldiSymbol{recorder}]
\definesymbol [clock]   [\WaldiSymbol{clock}]
\definesymbol [permil]  [\WaldiSymbol{permil}]
\definesymbol [bell][\WaldiSymbol{bell}]
\definesymbol [ataribox][\WaldiSymbol{ataribox}]
\definesymbol [pointer] [\WaldiSymbol{pointer}]
\definesymbol [lightning]   [\WaldiSymbol{lightning}]
\definesymbol [agemO]   [\WaldiSymbol{agemO}]
\stopsymbolset

\startsymbolset [wasy music]
\definesymbol [eighthnote]  [\WaldiSymbol{eighthnote}]
\definesymbol [quarternote] [\WaldiSymbol{quarternote}]
\definesymbol [halfnote][\WaldiSymbol{halfnote}]
\definesymbol [fullnote][\WaldiSymbol{fullnote}]
\definesymbol [twonotes][\WaldiSymbol{twonotes}]
\stopsymbolset

\startsymbolset [wasy astronomy]
\definesymbol [ascnode] [\WaldiSymbol{ascnode}]
\definesymbol [descnode][\WaldiSymbol{descnode}]
\definesymbol [astrosun][\WaldiSymbol{astrosun}]
\definesymbol [sun] [\WaldiSymbol{sun}]
\definesymbol [newmoon] [\WaldiSymbol{newmoon}]
\definesymbol [fullmoon][\WaldiSymbol{fullmoon}]
\definesymbol [rightmoon]   [\WaldiSymbol{rightmoon}]
\definesymbol [leftmoon][\WaldiSymbol{leftmoon}]
\definesymbol [vernal]  [\WaldiSymbol{vernal}]
\definesymbol [mercury] [\WaldiSymbol{mercury}]
\definesymbol [mars][\WaldiSymbol{mars}]
\definesymbol [saturn]  [\WaldiSymbol{saturn}]
\definesymbol [neptune] [\WaldiSymbol{neptune}]
\definesymbol [earth]   [\WaldiSymbol{earth}]
\definesymbol [venus]   [\WaldiSymbol{venus}]
\definesymbol [jupiter] [\WaldiSymbol{jupiter}]
\definesymbol [uranus]  [\WaldiSymbol{uranus}]
  

Re: [NTG-context] [OT] TeXShop v4.66 adds support for new ConTeXt's syncing method

2021-07-08 Thread Nicola
On 2021-07-08, Nicola  wrote:
> I have brought TeXShop's page in the wiki up to date (I haven't touched
> what are currently §1.4 and §1.5)

Typo, sorry: I meant §1.5 and §1.6.

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
___


[NTG-context] [OT] TeXShop v4.66 adds support for new ConTeXt's syncing method

2021-07-08 Thread Nicola
For those who are interested, the latest TeXShop release provides
support for ConTeXt's own syncing method (by invoking mtxrun --script
synctex). This supersedes the old syncing method based on Laurens'
SyncTeX, which should not be used any more.

I have brought TeXShop's page in the wiki up to date (I haven't touched
what are currently §1.4 and §1.5), with instructions to get
synchronisation to work:

https://wiki.contextgarden.net/TeXShop

Make sure to read it carefully!

I have tested the feature for some time now, and I'd say that it works
pretty well (with some caveats, which I have annotated in the wiki).

I take the opportunity to thank Hans for being so responsive with the
changes in mtxrun necessary to provide this feature, and for patiently
bear with my sometimes unclear requests or feedback.

Kudos also to Richard Koch (TeXShop's author) for his relentless support
of the macOS TeX community and, in this case, of the ConTeXt community!

Happy ConTeXt'ing!
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
___


[NTG-context] Math cases and text in math mode

2021-07-06 Thread Jack Hill

Hi,

I have two separate issues here. First, I'm struggling to get math cases 
to work. The wiki suggests that the following code


\starttext
\startformula
 f(x) = \startmathcases
   \NC x, \NC if $0 \le x \le \frac12$ \NR
   \NC 1-x ,\NC if $\frac12 \le x \le 1$ \NR
\stopmathcases
\stopformula
\stoptext

should typeset everything after the \NC in text mode, but when I compile 
it's still in math mode. Is this a bug or is the wiki out of date?



Secondly, how can I enter text mode whilst in a formula, whilst also 
only using the roman font? For example, I would like it so that even if 
the whole text is wrapped in {\em ...}, the text in the formulae are in 
roman font. I've tried the following:


\starttext
{\em
\startformula \startalign[align=left]
\NC {\rm multiple words of text} \NR % Does not provide spacing

\NC \mathrm{multiple words of text} \NR % Does not provide spacing

\NC \text{multiple words of text} \NR % Still italicised

% \NC \text{\rm multiple words of text} \NR % Error

% \NC {\rm \text{multiple words of text}} \NR % Error
\stopalign \stopformula
}
\stoptext

Thanks,
Jack
___
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] using variable font

2021-07-01 Thread Hans Hagen

On 7/1/2021 9:19 AM, Herbert Voss wrote:

Hello all,

this worked years ago with another variable font. But it
fails with FiraCode. I get always the same weight:

\definefontfeature[w300][default][axis={weight:300}]
\definefontfeature[w400][default][axis={weight:400}]
\definefontfeature[w500][default][axis={weight:500}]
\definefontfeature[w600][default][axis={weight:600}]
\definefontfeature[w700][default][axis={weight:700}]

\definefont [FiraCode@300] [file:FiraCode-VariableFont_wght.ttf*w300]
\definefont [FiraCode@400] [file:FiraCode-VariableFont_wght.ttf*w400]
\definefont [FiraCode@500] [file:FiraCode-VariableFont_wght.ttf*w500]
\definefont [FiraCode@600] [file:FiraCode-VariableFont_wght.ttf*w600]
\definefont [FiraCode@700] [file:FiraCode-VariableFont_wght.ttf*w700]

\starttext

\csname FiraCode@300\endcsname  FiraCode, weight=300\par
\csname FiraCode@400\endcsname  FiraCode, weight=400\par
\csname FiraCode@500\endcsname  FiraCode, weight=500\par
\csname FiraCode@600\endcsname  FiraCode, weight=600\par
\csname FiraCode@700\endcsname  FiraCode, weight=700\par

\stoptext


the font is availabel at Google:
https://fonts.google.com/specimen/Fira+Code

It also fails with another variable font.

up-to-date lmtx on macOS.


looks like a cache issue but there is also somethign else (with these 
variable fonts one needs to run into an instance that actually uses one 
of these fuzzy features)


i'll fix 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
___


[NTG-context] using variable font

2021-07-01 Thread Herbert Voss

Hello all,

this worked years ago with another variable font. But it
fails with FiraCode. I get always the same weight:

\definefontfeature[w300][default][axis={weight:300}]
\definefontfeature[w400][default][axis={weight:400}]
\definefontfeature[w500][default][axis={weight:500}]
\definefontfeature[w600][default][axis={weight:600}]
\definefontfeature[w700][default][axis={weight:700}]

\definefont [FiraCode@300] [file:FiraCode-VariableFont_wght.ttf*w300]
\definefont [FiraCode@400] [file:FiraCode-VariableFont_wght.ttf*w400]
\definefont [FiraCode@500] [file:FiraCode-VariableFont_wght.ttf*w500]
\definefont [FiraCode@600] [file:FiraCode-VariableFont_wght.ttf*w600]
\definefont [FiraCode@700] [file:FiraCode-VariableFont_wght.ttf*w700]

\starttext

\csname FiraCode@300\endcsname  FiraCode, weight=300\par
\csname FiraCode@400\endcsname  FiraCode, weight=400\par
\csname FiraCode@500\endcsname  FiraCode, weight=500\par
\csname FiraCode@600\endcsname  FiraCode, weight=600\par
\csname FiraCode@700\endcsname  FiraCode, weight=700\par

\stoptext


the font is availabel at Google:
https://fonts.google.com/specimen/Fira+Code

It also fails with another variable font.

up-to-date lmtx on macOS.

thanks
Herbert
___
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] Fwd: log: use \thinspace instead of \,

2021-06-30 Thread Hans Hagen




 Forwarded Message 
Subject: Re: [NTG-context] log: use \thinspace instead of \,
Date: Thu, 1 Jul 2021 00:08:39 +0200
From: Hans Hagen 
To: Wolfgang Schuster 

On 6/30/2021 10:57 PM, Wolfgang Schuster wrote:

Alan Braslau schrieb am 29.06.2021 um 17:40:

On Tue, 29 Jun 2021 14:06:02 +0200
Henning Hraban Ramm  wrote:


Maybe, but in running text I use \, all the time e.\,g. in
abbreviations or for numbers (10\,000). At least in German typography
these “spatiums” are necessary.

In French typography as well.

Indeed,
American: 10,000.00
French:   10\,000,00
(and other languages).

This is quite readable, and much preferred to the use of any kind of
macro that might format numbers according to language.

I find that students often need such helpers when deciphering many
digits.


Let's not forget all of these spaces commands are used in math mode.
Sure, and thet adaot to math mode. They will nto dissppear, it's just 
that in macros I like more verbose names.


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] ntg-context Digest, Vol 204, Issue 76

2021-06-26 Thread Kirkham, Robin (Mineral Resources, Clayton)


> On 25 Jun 2021, at 21:15, ntg-context-requ...@ntg.nl wrote:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> Today's Topics:
> 
>   1. Re: Align in setup header/footer (Jan U. Hasecke)
>   2. First line of larger font paragraph on grid (denis.ma...@unibe.ch)
>   3. Re: Align in setup header/footer (denis.ma...@unibe.ch)
>   4. Re: Align in setup header/footer (denis.ma...@unibe.ch)
>   5. Re: Align in setup header/footer (Jan U. Hasecke)
> 
> From: "Jan U. Hasecke" 
> Subject: Re: [NTG-context] Align in setup header/footer
> Date: 25 June 2021 at 20:23:24 AEST
> To: 
> 
> 
> 
> Hi Denis,
> 
> Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch:
>> Or, for more complex footers/headers you can use:
>> \setupfootertexts
>> [left on odd page] % out
>> [right on odd page] % in
>> [right on even page] % in
>> [left on even page] % out
> 
> In fact it is something like this
> 
> \setupfootertexts
>  [margin]
>  []
>  [\pagenumber]
>  [\pagenumber]
>  []
> 
> I want to align the number inside of this area to the right or the left 
> respectively.
> 
> I only found setuplayouttext to style the area, except that there is no key 
> "align".
> 
> juh
> 
> 
> 
> 
> From: 
> Subject: [NTG-context] First line of larger font paragraph on grid
> Date: 25 June 2021 at 20:30:29 AEST
> To: 
> 
> 
> Hi, 
>  
> I have some text in a larger font where the first line should be on the grid. 
> Therefore, I’ve tried to adapt the solution from the wiki: 
> https://wiki.contextgarden.net/Grid_typesetting#Placing_titles_on_the_grid
>  
> The interesting thing is that the section command indeed places the first 
> line on the grid, but using \framed directly does not give the desired 
> results.
>  
> I must be missing something obvious. Does anyone know a solution ?
>  
> Thanks for your help,
> Denis
>  
> ===
> \setuplayout[grid=yes]
> \showgrid
>  
> \definefont  [BigFont]  [Bold at 20pt] [24pt]
>  
> \unprotect
> \unexpanded\def\section_command#1#2{%
>   \framed [
>width=\textwidth,
>frame=off,
>rulethickness=0pt,
>offset=0pt,
>loffset=-0pt,
>before=,
>location=top,
>align=flushleft,]{#2}%
> }
>  
>  
> \setuphead [section] [
> style={\BigFont},
> after=,
>before={\blank[1*line]},
>   command=\section_command,
> ]
> \protect
>  
> \defineframed[myframed][
>width=\textwidth,
>frame=off,
>rulethickness=0pt,
>offset=0pt,
>loffset=-0pt,
>before=,
>location=top,
>align=flushleft,]]
>
> \starttext
>  
> \blank[force,3*line,depth]
>  
> \begingroup
> \BigFont
> \myframed{Lorem ipsum dolor sit amet consectetur adipisicing elit Lorem ipsum 
> dolor sit amet consectetur adipisicing elit}
> \endgroup
>
> asdfasdf
>  
> \page
> \blank[force,3*line,depth]
>  
> \startsection [title=Lorem ipsum dolor sit amet consectetur adipisicing elit 
> Lorem ipsum dolor sit amet consectetur adipisicing elit]
>   asdf
> \stopsection
>  
> \stoptext
> =
>  
>  
>  
> 
> 
> 
> From: 
> Subject: Re: [NTG-context] Align in setup header/footer
> Date: 25 June 2021 at 20:31:00 AEST
> To: 
> 
> 
> You can use \hfill
> 
>> -Ursprüngliche Nachricht-
>> Von: ntg-context  Im Auftrag von Jan U. Hasecke
>> Gesendet: Freitag, 25. Juni 2021 12:23
>> An: ntg-context@ntg.nl
>> Betreff: Re: [NTG-context] Align in setup header/footer
>> 
>> 
>> Hi Denis,
>> 
>> Am 25.06.21 um 09:50 schrieb denis.ma...@unibe.ch:
>>> Or, for more complex footers/headers you can use:
>>> \setupfootertexts
>>> [left on odd page] % out
>>> [right on odd page] % in
>>> [right on even page] % in
>>> [left on even page] % out
>> 
&g

Re: [NTG-context] Incorrect sorting in \completelistofabbreviations for numbers

2021-06-10 Thread Markus Brandt
yes, seems like they are sorted by tag. But that’s not useful, since you cannot 
use numbers in a tag. This tag is just the workaround for abbreviations that 
include numbers.

 

From: ntg-context  on behalf of luigi scarso 

Reply-To: mailing list for ConTeXt users 
Date: Thursday, June 10, 2021 at 11:35
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] Incorrect sorting in completelistofabbreviations for 
numbers

 

 

 

On Thu, Jun 10, 2021 at 11:08 AM Markus Brandt 
 wrote:

Hi everyone,

I think I've found a sorting bug in \completelistofabbreviations in the 
latest LMTX (and probably also MKIV). When using this minimal example

\abbreviation[OTT]{123}{One, Two, and Three}
\abbreviation{ABC}{A, B, and C}
\abbreviation{ZYX}{Z, Y, and X}

\starttext
\completelistofabbreviations[criterium=all]
\stoptext

I get

ABCA, B, and C
123One, Two, and Three
ZYXZ, Y, and X

Numbers should go before letters. Do you know any workaround/fix for 
that?

 

aren't they sorted by the tag ?

By default the synonim is the tag; only the first one has an explicit tag (OTT) 
 

so the order  is ABC, OTT,  ZXY, which looks ok.

 

-- 

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 
___
 

___
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] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-28 Thread Rik Kabel
APA guide does not require a publisher if a URL is 
provided, and ConTeXt handles this properly. As with the use of DOIs for 
journal articles, this is consistent with the concept of a reference 
list, in which entries give only the information necessary to locate the 
document cited by the writer (with the usual caveats about the 
volatility and durability of electronic media and URLs).


With either reference lists or bibliographies I can imagine 
circumstances where it might be desirable to suppress one or more of the 
publisher, the date, the author, and the title. Consider a reference 
list of works by one author -- there is no need to state the author name 
in each entry. Similarly a list of works published in a given year, or 
by a specific publisher, or editions of one title. I do not mean to 
suggest that ConTeXt should support these, but simply suggest that even 
so-called 'required' fields may not always be required if they are implicit.


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

2021-05-21 Thread Aditya Mahajan
On Fri, 21 May 2021, Nicola wrote:

> On 2021-05-21, Nicola  wrote:
> > For some reason, the vim module has stopped highlighting code associated
> > to custom filetypes (it still works for built-in filetypes).
> 
> I think I have found the culprit. In t-vim.tex, lines 63-88, Vim is
> called with --clean. That option appears *after* -u, effectively
> overriding it. Moving --clean as the first option (or, better, removing
> it) solves my issue.
> 
> Some remarks. The module has this comment:
> 
>--clean % dont load scada [sic] file (nvim)
> 
> If the purpose of the option is to avoid loading a shada file, `-i NONE`
> (which is already there) should be enough.

Thanks for finding the bug. 

> In Vim, --clean is not strictly necessary, because it is effectively
> a shorthard for `-N -i NONE --noplugin`. > In Neovim, the meaning might be
> slightly different. Which brings me to the next paragraph.

Indeed, the vim manpage says:

   --clean Do not use any personal configuration (vimrc, plugins,  
etc.).
   Useful to see if a problem reproduces with a clean Vim setup.

while nvim manpage says:

 --clean Skip loading plugins and shada (viminfo) file.

So, in vim, the --clean option also skips vimrc while in nvim it does not.

Looking at my git log, I see that I added --clean option for nvim:

commit b907543d9f6b2185185f3674035987f47bf91381
Author: Aditya Mahajan 
Date:   Wed Apr 29 17:48:24 2020 -0400

Add --clean option

to not load viminfo files in `nvim`. Somehow `nvim` does not honor

```
-i NONE
```

option.

Looking at the man page of nvim I see 

 -i shadaUse shada instead of the default
 ~/.local/share/nvim/shada/main.shada.  If shada is NONE, do not
 read or write a ShaDa file.  :help shada

So, -i NONE should have worked. I'll test this again, and if -i NONE now works 
in nvim, I'll simply remove that line.

> My recommendation would be not to care about Neovim. It is *not*
> a drop-in replacement for Vim and not meant to be compatible with Vim
> (it has already diverged from Vim in significant ways). Supporting both
> is likely going to become more and more difficult as time goes by.

nvim was 8-10% faster than vim in my tests:

https://adityam.github.io/context-blog/post/vim-vs-neovim/

> Anyway, if you do want to support both, I'd suggest at least to
> segregate the two commands, even if currently they may be (almost)
> identical.

That's a good suggestion. For now, I'll play around with the order of options 
to seei if that fixes the problem. I agree that at some stage it might be 
better to simply split off the module into a `t-nvim.tex` which configures the 
settings for nvim separately.

I actually want t-vim (or rather t-filter) to support more editors/syntax 
highlighters. At some stage I had added rudimentary support for other syntax 
highlighters most of them required scaffolding to wrap around the latex output:

https://adityam.github.io/context-blog/post/clean-tex-output/


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] Hand Style Sketching in Metapost

2021-05-20 Thread Aditya Mahajan
On Thu, 20 May 2021, Jeroen wrote:

> I have the following working example with hatching. This works fine, but
> when I uncomment the sketching commands, no figure is rendered. Is the
> mp-sketch macro still working?

Seems to be working here with LMTX ver. 2021.04.29. See attached.

Aditya

hatch.pdf
Description: Adobe PDF document


hatch.tex
Description: TeX document
%D \module
%D   [   file=mp-sketch.mp
%Dversion=2021.05.13
%D  title=\CONTEXT\ \METAPOST\ graphics,
%D   subtitle=Sketch drawing,
%D author=Aditya Mahajan,
%D   date=\currentdate,
%D  copyright={Aditya Mahajan}]

%D This metapost module is inspired by a TeX.SE question:
%D http://tex.stackexchange.com/q/39296/323
%D
%D I thought that it would be fun to implement a similar feature in MetaPost.
%D
%D To use this package in MetaPost:
%D
%D \starttyping
%Dinput mp-sketch;
%D
%Dbeginfig(1)
%D  sketchypaths; % Make draw and fill sketchy
%D  ...
%D  naturalizepaths; % Restore the value of draw and fill
%D  ...
%Dendfig
%D \stoptyping
%D
%D The code is heavily inspired by Hans Hagen's Metafun macros.
%D
%D The macro \type{sketchypaths} is modeled after \type{visualizepaths} from
%D \filename{mp-tool}.

def sketchypaths =
let draw = sketchdraw ;
let fill = sketchfill ;
enddef ;

%D Check if \filename{mp-tool} is loaded
if not known context_tool :
  let normaldraw = draw;
  let normalfill = fill;

  def naturalizepaths =
  let fill = normalfill ;
  let draw = normaldraw ;
  enddef ;
fi

%D The variable \type{sketch_amount} determines the amount of randomness in the
%D drawing
numeric sketch_amount; sketch_amount := 0.75bp;

%D The variable \type{sketch_passes} determines the number of times the path
%D is drawn
numeric sketch_passes; sketch_passes := 1;

%D Based on \type{randomized}. Assumes p is path:
numeric sketch_segments; sketch_segments := 20;

primarydef p sketchrandomized s = (
if path p :
for t = 0 step 1/sketch_segments until 1-1/sketch_segments : 
((point   (t*arclength(p)) on p) 
randomshifted s) .. controls
((postcontrol (t*arclength(p)) on p) 
randomshifted s) and
((precontrol  ((t+1/sketch_segments)*arclength(p)) on p) 
randomshifted s) ..
endfor
if cycle p :
cycle
else :
((point arclength(p) on p) randomshifted s)
fi
else :
p
fi
) enddef ;


%D The macro \type{sketchdraw} draws the randomized path. The 
%D \type{expr} ... \type{text} trick is copied from the definition of 
%D \type{drawarrow}
def sketchdraw expr p =
   do_sketchdraw(p)
enddef;

def do_sketchdraw(expr p) text t =
  if (path p) :
  for i = 1 upto max(1,sketch_passes) :
normaldraw p 
   sketchrandomized sketch_amount 
   withtransparency ("multiply", 1/max(1,sketch_passes))
   t ;
  endfor;
  else :
  normaldraw p t;
  fi
enddef;

%D The macro \type{sketchfill} randomizes the path before filling it.
def sketchfill expr p =
  do_sketchfill(p)
enddef ;

def do_sketchfill(expr p) text t =
  if (path p) :
  for i = 1 upto max(1,sketch_passes) :
normalfill p 
   randomized sketch_amount 
   withtransparency ("multiply", 1/max(1,sketch_passes))
   t ;
  endfor;
  else :
  normalfill p t;
  fi
enddef;

endinput;

% Modified example from
% http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html

beginfig(1)
  pair A,B,C,O;
  A=(0,0); B=(3cm,0); C=(1cm,2cm);

  O - 1/2[B,C] = whatever * (B-C) rotated 90;
  O - 1/2[A,B] = whatever * (A-B) rotated 90;

  sketchypaths;
  sketch_amount := 5bp;
  draw A--B--C--cycle;

  draw O withpen pencircle scaled 4bp;

  sketch_amount := 2bp;
  draw fullcircle scaled 2abs(O-A) shifted O;
endfig
___
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] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
On Thu, 13 May 2021, Henning Hraban Ramm wrote:

> 
> > Am 13.05.2021 um 18:36 schrieb Aditya Mahajan :
> > 
> >> Now I want to draw that path several times.
> >> 
> >> If I understand it right, I can’t put that into "sketchdraw" because that 
> >> leaves the end open for path additions like "withcolor".
> > 
> > A slightly different approach is needed. See attached. I also added a bit a 
> > error protection in case someone sets sketch_passes to be negative by 
> > mistake. 
> 
> Thank you so much!

Here is a different effect ... more of a trembling hand drawing than a sketch. 
You can play around with sketch_amount to see some variation. 

In this, rather than using the default randomized path (which randomizes the 
points of a path), I split the path into 20 segments, and randomize each 
segment. 

Aditya%D \module
%D   [   file=mp-sketch.mp
%Dversion=2021.05.13
%D  title=\CONTEXT\ \METAPOST\ graphics,
%D   subtitle=Sketch drawing,
%D author=Aditya Mahajan,
%D   date=\currentdate,
%D  copyright={Aditya Mahajan}]

%D This metapost module is inspired by a TeX.SE question:
%D http://tex.stackexchange.com/q/39296/323
%D
%D I thought that it would be fun to implement a similar feature in MetaPost.
%D
%D To use this package in MetaPost:
%D
%D \starttyping
%Dinput mp-sketch;
%D
%Dbeginfig(1)
%D  sketchypaths; % Make draw and fill sketchy
%D  ...
%D  naturalizepaths; % Restore the value of draw and fill
%D  ...
%Dendfig
%D \stoptyping
%D
%D The code is heavily inspired by Hans Hagen's Metafun macros.
%D
%D The macro \type{sketchypaths} is modeled after \type{visualizepaths} from
%D \filename{mp-tool}.

def sketchypaths =
let draw = sketchdraw ;
let fill = sketchfill ;
enddef ;

%D Check if \filename{mp-tool} is loaded
if not known context_tool :
  let normaldraw = draw;
  let normalfill = fill;

  def naturalizepaths =
  let fill = normalfill ;
  let draw = normaldraw ;
  enddef ;
fi

%D The variable \type{sketch_amount} determines the amount of randomness in the
%D drawing
numeric sketch_amount; sketch_amount := 0.75bp;

%D The variable \type{sketch_passes} determines the number of times the path
%D is drawn
numeric sketch_passes; sketch_passes := 1;

%D Based on \type{randomized}. Assumes p is path:
numeric sketch_segments; sketch_segments := 20;

primarydef p sketchrandomized s = (
if path p :
for t = 0 step 1/sketch_segments until 1-1/sketch_segments : 
((point   (t*arclength(p)) on p) 
randomshifted s) .. controls
((postcontrol (t*arclength(p)) on p) 
randomshifted s) and
((precontrol  ((t+1/sketch_segments)*arclength(p)) on p) 
randomshifted s) ..
endfor
if cycle p :
cycle
else :
((point arclength(p) on p) randomshifted s)
fi
else :
p
fi
) enddef ;


%D The macro \type{sketchdraw} draws the randomized path. The 
%D \type{expr} ... \type{text} trick is copied from the definition of 
%D \type{drawarrow}
def sketchdraw expr p =
   do_sketchdraw(p)
enddef;

def do_sketchdraw(expr p) text t =
  if (path p) :
  for i = 1 upto max(1,sketch_passes) :
normaldraw p 
   sketchrandomized sketch_amount 
   withtransparency ("multiply", 1/max(1,sketch_passes))
   t ;
  endfor;
  else :
  normaldraw p t;
  fi
enddef;

%D The macro \type{sketchfill} randomizes the path before filling it.
def sketchfill expr p =
  do_sketchfill(p)
enddef ;

def do_sketchfill(expr p) text t =
  if (path p) :
  for i = 1 upto max(1,sketch_passes) :
normalfill p 
   randomized sketch_amount 
   withtransparency ("multiply", 1/max(1,sketch_passes))
   t ;
  endfor;
  else :
  normalfill p t;
  fi
enddef;

endinput;

% Modified example from
% http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html

beginfig(1)
  pair A,B,C,O;
  A=(0,0); B=(3cm,0); C=(1cm,2cm);

  O - 1/2[B,C] = whatever * (B-C) rotated 90;
  O - 1/2[A,B] = whatever * (A-B) rotated 90;

  sketchypaths;
  sketch_amount := 5bp;
  draw A--B--C--cycle;

  draw O withpen pencircle scaled 4bp;

  sketch_amount := 2bp;
  draw fullcircle scaled 2abs(O-A) shifted O;
endfig


test.tex
Description: TeX document


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

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


Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
On Thu, 13 May 2021, Henning Hraban Ramm wrote:

> 
> > Am 11.05.2021 um 18:02 schrieb Aditya Mahajan :
> > 
> > Look at this old code on how hide such code behind a macro to have a clean 
> > interface:
> > 
> > https://github.com/adityam/mp-sketch/blob/master/mp-sketch.mp
> 
> Hi Aditya,
> I’m trying to include my additions into your code, but it doesn’t work.
> 
> 
> numeric sketch_amount; sketch_amount := 3bp;
> numeric sketch_passes; sketch_passes := 5;
> 
> def sketchdraw expr p =
>   do_sketchdraw(p if (path p): randomized sketch_amount fi)
> enddef;
> 
> def do_sketchdraw(expr p) text t =
> normaldraw p t ;
> enddef;
> 
> 
> Now I want to draw that path several times.
> 
> If I understand it right, I can’t put that into "sketchdraw" because that 
> leaves the end open for path additions like "withcolor".
> 
> But it also doesn’t work in "do_sketchdraw"; I thought it might like this:

A slightly different approach is needed. See attached. I also added a bit a 
error protection in case someone sets sketch_passes to be negative by mistake. 

It may be interesting to rewrite these macros using the new key-value interface 
for metapost, so that something like this works:

\sketchdraw[amount=3bp, passes=5, transparency=yes] fullsquare scaled 1cm 
withcolor red;

test.pdf
Description: Adobe PDF document


test.tex
Description: TeX document
%D \module
%D   [   file=mp-sketch.mp
%Dversion=2021.05.13
%D  title=\CONTEXT\ \METAPOST\ graphics,
%D   subtitle=Sketch drawing,
%D author=Aditya Mahajan,
%D   date=\currentdate,
%D  copyright={Aditya Mahajan}]

%D This metapost module is inspired by a TeX.SE question:
%D http://tex.stackexchange.com/q/39296/323
%D
%D I thought that it would be fun to implement a similar feature in MetaPost.
%D
%D To use this package in MetaPost:
%D
%D \starttyping
%Dinput mp-sketch;
%D
%Dbeginfig(1)
%D  sketchypaths; % Make draw and fill sketchy
%D  ...
%D  naturalizepaths; % Restore the value of draw and fill
%D  ...
%Dendfig
%D \stoptyping
%D
%D The code is heavily inspired by Hans Hagen's Metafun macros.
%D
%D The macro \type{sketchypaths} is modeled after \type{visualizepaths} from
%D \filename{mp-tool}.

def sketchypaths =
let draw = sketchdraw ;
let fill = sketchfill ;
enddef ;

%D Check if \filename{mp-tool} is loaded
if not known context_tool :
  let normaldraw = draw;
  let normalfill = fill;

  def naturalizepaths =
  let fill = normalfill ;
  let draw = normaldraw ;
  enddef ;
fi

%D The variable \type{sketch_amount} determines the amount of randomness in the
%D drawing
numeric sketch_amount; sketch_amount := 3bp;

%D The variable \type{sketch_passes} determines the number of times the path
%D is drawn
numeric sketch_passes; sketch_passes := 1;

%D The macro \type{sketchdraw} draws the randomized path. The 
%D \type{expr} ... \type{text} trick is copied from the definition of 
%D \type{drawarrow}
def sketchdraw expr p =
   do_sketchdraw(p)
enddef;

def do_sketchdraw(expr p) text t =
  if (path p) :
  for i = 1 upto max(1,sketch_passes) :
normaldraw p 
   randomized sketch_amount 
   withtransparency ("multiply", 1/max(1,sketch_passes))
   t ;
  endfor;
  else :
  normaldraw p t;
  fi
enddef;

%D The macro \type{sketchfill} randomizes the path before filling it.
def sketchfill expr p =
  do_sketchfill(p)
enddef ;

def do_sketchfill(expr p) text t =
  if (path p) :
  for i = 1 upto max(1,sketch_passes) :
normalfill p 
   randomized sketch_amount 
   withtransparency ("multiply", 1/max(1,sketch_passes))
   t ;
  endfor;
  else :
  normalfill p t;
  fi
enddef;

endinput;

% Modified example from
% http://tex.loria.fr/prod-graph/zoonekynd/metapost/metapost.html

beginfig(1)
  pair A,B,C,O;
  A=(0,0); B=(3cm,0); C=(1cm,2cm);

  O - 1/2[B,C] = whatever * (B-C) rotated 90;
  O - 1/2[A,B] = whatever * (A-B) rotated 90;

  sketchypaths;
  sketch_amount := 5bp;
  draw A--B--C--cycle;

  draw O withpen pencircle scaled 4bp;

  sketch_amount := 2bp;
  draw fullcircle scaled 2abs(O-A) shifted O;
endfig
___
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] Fwd: Fuzzy lines

2021-05-12 Thread Jairo A. del Rio
-- Forwarded message -
De: Jairo A. del Rio 
Date: mié, 12 de may. de 2021 a la(s) 14:08
Subject: Re: [NTG-context] Fuzzy lines
To: mailing list for ConTeXt users 




El mié, 12 de may. de 2021 a la(s) 13:03, Henning Hraban Ramm (
te...@fiee.net) escribió:

> Hi Jairo,
>
> thank you for the suggestion.
>
> > Am 11.05.2021 um 14:56 schrieb Jairo A. del Rio  >:
> >
> > For simple pens, you may define your own (section 9.7 of MetaPost
> manual).
>
> Unfortunately, pens don’t work as patterns but only as outlines.
>
> > For complicated strokes, something along these lines could be useful as
> a starting point (I'm not taking cyclic paths in consideration, btw). I did
> something similar with duck footprints some weeks ago:
> >
> > %Sorry for the ugly code...
> > \starttext
> > \startMPpage
> > %Unit size
> > numeric u; u := 1mm;
> >
> > %In a picture you are able to include everything, kinda
> > picture Pluma;
> > Pluma := image(
> >   for i = 1 upto 5:
> >   for j = 1 upto 5:
> >   draw (i,j) randomized 1;
> >   endfor
> >   endfor
> > );
>
> Unfortunately, that’s the same pattern over and over.
> The randomization is only applied once.
> Good for footprints, bad for fuzzy patterns.
>

You only need to move "randomized" at the drawing stage:

\starttext

\startMPpage

numeric u; u := 1mm;

picture Pluma;

Pluma := image(

for i = 1 upto 5:

for j = 1 upto 5:

draw (i,j);

endfor

endfor

);

path Camino;

Camino := origin for i = 1 upto 30: .. (u*i, u*sind (12i mod 360)) endfor;

for i = 0 step 1/2 until length Camino:

draw Pluma randomized 1 rotated (90 + angle direction i of Camino)

shifted point i of Camino;

endfor

\stopMPpage

\stoptext

But "randomized" will deform paths. Maybe you want something like this?

\starttext

\startMPpage[align=]

begingroup;

save Rnd; let Rnd = uniformdeviate;


numeric u; u := 3mm;

picture Pluma;

Pluma := image(

for i = 1 upto 5:

for j = 1 upto 5:

fill fullcircle shifted (i,j); %try fulltriangle or another shape

endfor

endfor

);

path Camino;

Camino := origin for i = 1 upto 30: .. u*i*left endfor;

for i = 0 step 1/2 until length Camino:

draw image(

for x within Pluma:

fill pathpart x %Assuming our image only contains cyclic paths

scaled (1+Rnd 1)

shifted (1/2dir Rnd 360)

withcolor hsvtorgb(6round(Rnd 60),9/10,1); %Colors just because they look
cute

endfor

) rotated (90 + angle direction i of Camino)

shifted point i of Camino;

endfor

endgroup;

\stopMPpage

\stoptext

> %Simple curve
> > path Camino;
> > Camino := origin for i = 1 upto 30: .. (u*i, u*sind (12i mod 360))
> endfor;
> >
> > %Strokes
> > for i = 0 step 1/2 until length Camino:
> >   draw Pluma rotated (90 + angle direction i of Camino)
> >   shifted point i of Camino;
> > endfor
>
> Since I have more or less straight lines but of different length, the "one
> pattern per 1/n path segment" doesn’t work for me. I could try to construct
> my paths differently.
>

You only need to use fractions, i.e., "for 0 step 1/n until 1: ... endfor"
if you work with straight lines defined using only two points. In the
example above I made one from more than two points just for ease of
manipulation. With examples and feedback from the mailing list, you might
define your own function using the new Metafun interface for LMTX.


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

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] simpleslides gives 'input stack overflow'

2021-05-09 Thread Adam Reviczky
Hi,

Looks like it is a problem with "StartPage" and "StopPage" in metapost.

I get the same error with any MP graphic using those commands.

More minimal example (without simpleslides) as per the wiki:
https://wiki.contextgarden.net/Cover_Pages

colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
fonts   > preloading latin modern fonts (second stage)
fonts   > 'fallback modern-designsize rm 12pt' is loaded
metapost> initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost> loading 'metafun' as
'/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method
'default'
metapost> initializing number mode 'scaled'
input stack overflow
mtx-context | fatal error: return code: 256

Commenting out "StartPage" and "StopPage" compiles.

mtx-context | current version: 2021.05.09 17:14
This is LuaTeX, Version 1.14.0
Development id: 7438

Adam

On Sun, May 9, 2021 at 9:57 PM Adam Reviczky  wrote:

> Hi,
>
> With the latest luatex change from
> https://github.com/TeX-Live/luatex/commit/1566b63b338abbe38ed839fac9f2022ebbfa7d59
> (and MKIV 2021-05-09 17:14:00) I get an input stack overflow:
>
> simpleslides> loading style Boxed
> system  > command '\NormalHeight' is already defined
> system  > command '\NormalWidth' is already defined
> system  > command '\PictureFrameHeight' is already defined
> system  > command '\PictureFrameWidth' is already defined
> close source> level 4, order 8, name
> '/usr/share/texmf/tex/context/third/simpleslides/s-simpleslides-Boxed.tex'
> close source> level 3, order 8, name
> '/usr/share/texmf/tex/context/third/simpleslides/t-simpleslides.mkiv'
> fonts   > bodyfont '24.0414pt' is defined (can better be done
> global)
> metapost> initializing instance 'metafun:1' using format 'metafun'
> and method 'default'
> metapost> loading 'metafun' as
> '/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method
> 'default'
> metapost> initializing number mode 'scaled'
> input stack overflow
> mtx-context | fatal error: return code: 256
>
> MWE from the documentation:
> \usemodule[simpleslides][style=Boxed]
> \setupTitle[title={Title of the presentation},author={Name of
> authors},date={Date of presentation}]
> \starttext
> \placeTitle
> \SlideTitle{The first slide}
> Write whatever you want.
> \SlideTitle{The second slide}
> Continue writing.
> \stoptext
>
> Does that mean the simpleslides module has some recursion problems?
> I have tried a couple of themes but getting the same error.
>
> Adam
>
>
___
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] simpleslides gives 'input stack overflow'

2021-05-09 Thread Adam Reviczky
Hi,

With the latest luatex change from
https://github.com/TeX-Live/luatex/commit/1566b63b338abbe38ed839fac9f2022ebbfa7d59
(and MKIV 2021-05-09 17:14:00) I get an input stack overflow:

simpleslides> loading style Boxed
system  > command '\NormalHeight' is already defined
system  > command '\NormalWidth' is already defined
system  > command '\PictureFrameHeight' is already defined
system  > command '\PictureFrameWidth' is already defined
close source> level 4, order 8, name
'/usr/share/texmf/tex/context/third/simpleslides/s-simpleslides-Boxed.tex'
close source> level 3, order 8, name
'/usr/share/texmf/tex/context/third/simpleslides/t-simpleslides.mkiv'
fonts   > bodyfont '24.0414pt' is defined (can better be done
global)
metapost> initializing instance 'metafun:1' using format 'metafun'
and method 'default'
metapost> loading 'metafun' as
'/usr/share/texmf/metapost/context/base/mpiv/metafun.mpiv' using method
'default'
metapost> initializing number mode 'scaled'
input stack overflow
mtx-context | fatal error: return code: 256

MWE from the documentation:
\usemodule[simpleslides][style=Boxed]
\setupTitle[title={Title of the presentation},author={Name of
authors},date={Date of presentation}]
\starttext
\placeTitle
\SlideTitle{The first slide}
Write whatever you want.
\SlideTitle{The second slide}
Continue writing.
\stoptext

Does that mean the simpleslides module has some recursion problems?
I have tried a couple of themes but getting the same error.

Adam
___
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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-03 Thread Nicola
On 2021-05-02, Bruce Horrocks  wrote:
>
>
>> On 1 May 2021, at 21:35, Nicola  wrote:
>>
>> On 2021-05-01, Bruce Horrocks  wrote:
>>>> On 30 Apr 2021, at 19:53, Nicola  wrote:
>>>>
>>>> I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
>>>> iPad with the iSH app). I am currently testing it with Docker. This is
>>>> what I have done:
>>>>
>>>>  docker pull econcz/x86-alpine-glibc:ish-import
>>>
>>> Why is your first line not
>>>
>>>  $ docker pull alpine
>>
>> I was following the documentation of iSH, which is where I want to use
>> the container eventually. But I may probably use the alpine image as
>> well, which is more up to date and allows me to install TeX Live 2020.
>>
>>> I would start with that then test each new step at the interactive
>>> shell before adding to the compose file and moving onto the next step.
>>
>> Unfortunately, even with the image above I get the same errors.
>
> Sorry for the late reply - I missed this in the thread.
>
> You're not going to be able to get the Docker container to run on the
> iPad if that's what you were ultimately hoping.

Sorry, my explanation of what I am trying to achieve was a bit too
terse.

There is a little wonderful app on the App Store, called iSH
(https://github.com/ish-app/ish), which essentially allows you to run
a 32-bit x86 Alpine Linux distribution on the iPad. One feature of the
app is that it can import and mount several "file systems". One way to
create such a file system is to export a Docker container.

So, what one can do is create a Docker container in some other device (I
use my laptop), configure it as desired, then export it into a .tar
archive, copy it into the iPad, and import it into iSH. This is better
than installing/building packages directly inside the app, because (a)
compiling on the iPad is extremely slow, and (b) some packages may raise
errors if one tries to install them inside the app (TeX Live being one
of them: this link explains the issue and the Docker workaround:
https://github.com/ish-app/ish/issues/1123).

iSH emulates x86_32 and uses Musl. AFAICS, ConTeXt LMTX currently only
provides a 64-bit download for Linux Musl. So, the next best alternative
is to use ConTeXt from TeX Live.

So, this is where I am at: I am trying to make ConTeXt work inside an
x86 Alpine Linux Musl container, using the official Alpine package.

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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-02 Thread Bruce Horrocks


> On 1 May 2021, at 21:35, Nicola  wrote:
> 
> On 2021-05-01, Bruce Horrocks  wrote:
>>> On 30 Apr 2021, at 19:53, Nicola  wrote:
>>> 
>>> I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
>>> iPad with the iSH app). I am currently testing it with Docker. This is
>>> what I have done:
>>> 
>>>  docker pull econcz/x86-alpine-glibc:ish-import
>> 
>> Why is your first line not
>> 
>>  $ docker pull alpine
> 
> I was following the documentation of iSH, which is where I want to use
> the container eventually. But I may probably use the alpine image as
> well, which is more up to date and allows me to install TeX Live 2020.
> 
>> I would start with that then test each new step at the interactive
>> shell before adding to the compose file and moving onto the next step.
> 
> Unfortunately, even with the image above I get the same errors.

Sorry for the late reply - I missed this in the thread.

You're not going to be able to get the Docker container to run on the iPad if 
that's what you were ultimately hoping. This is because of the different 
processor types used by most PCs versus the iPad. As far as I know there is no 
way to get Docker installed on a PC to cross-compile for the ARM architecture 
of an iPad; and even if you could, the resulting image would have to be 
cryptographically signed by a registered Apple developer and then signed by 
Apple or it won't run. The iSH documentation that I briefly looked at used a 
'side-load' technique i.e. relied on what's called a 'jailbroken' iPad. This 
invalidates your warranty yadda yadda and you don't really want to go there 
except perhaps for the intellectual exercise.

The next best alternative would be to run TeX Live plus LMTX on a PC and 
connect to it remotely using the iPad. This could be via a text-only terminal 
app or a remote desktop app.

The remote PC that you connect to could be yours at home (cheap but carries a 
security risk unless you know what you're doing) or in the cloud (requires a 
subscription but the security is less of an issue since you build the machine 
to be disposable on the assumption that hackers will get to it).

Either way, I don't think Docker is the first choice solution (unless, perhaps, 
you have a home NAS that supports Docker - yet another option).

If you still want to build a Docker container then please say so - as I'm sure 
it could be 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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
On 2021-05-01, Mojca Miklavec  wrote:
> On Fri, 30 Apr 2021 at 20:53, Nicola wrote:
>> Then, I run `mtxrun --generate`, which exits instantly with the output
>> reported below. However, that is apparently not enough. I still get:
>>
>> $ context Hello-world.tex
>> mtxrun  | unknown script 'context.lua' or 'mtx-context.lua'
>
> This sounds like a missing or misconfigured texmfcnf.lua (which should
> be next to texmf.cnf).
> This would need to be handled by the distribution (Alpine Linux devs).
>
> Can you try to locate both files and share the contents? (There may
> also be multiple copies of them.)

I report below the content of the two files, as they are in TeX Live
2020 (I have switched to `docker pull alpine`, as suggested in another
post, in which I can install Tex Live 2020).

Nicola


~ # find / -name texmfcnf.lua
/usr/share/texmf-dist/web2c/texmfcnf.lua
~ # cat /usr/share/texmf-dist/web2c/texmfcnf.lua
-- public domain

-- ConTeXt needs a properly expanded TEXMFLOCAL, so here is a
-- bit of lua code to make that happen

local texmflocal = resolvers.prefixes.selfautoparent();
texmflocal = string.gsub(texmflocal, "20%d%d$", "texmf-local");

return {

type= "configuration",
version = "1.1.0",
date= "2012-05-24",
time= "12:12:12",
comment = "ConTeXt MkIV configuration file",
author  = "Hans Hagen, PRAGMA-ADE, Hasselt NL",

content = {

-- Originally there was support for engines and progname but I don't 
expect
-- other engines to use this file, so first engines were removed. After 
that
-- if made sense also to get rid of progname. At some point specific 
formats
-- will be supported but then as a subtable with fallbacks, which 
sounds more
-- natural. Also, at some point the paths will become tables. For the 
moment
-- I don't care too much about it as extending is easy.

variables = {

-- The following variable is predefined (but can be overloaded) and 
in
-- most cases you can leve this one untouched. The built-in 
definition
-- permits relocation of the tree.
--
-- TEXMFCNF = 
"{selfautodir:,selfautoparent:}{,{/share,}/texmf{-local,}/web2c}"
--
-- more readable than "selfautoparent:{/texmf{-local,}{,/web2c},}}" 
is:
--
-- TEXMFCNF = {
-- "selfautoparent:/texmf-local",
-- "selfautoparent:/texmf-local/web2c",
-- "selfautoparent:/texmf-dist",
-- "selfautoparent:/texmf/web2c",
-- "selfautoparent:",
-- }

-- only used for FONTCONFIG_PATH & TEXMFCACHE in TeX Live

TEXMFSYSVAR = "selfautoparent:texmf-var",
TEXMFVAR= "home:.texlive2020/texmf-var",

-- We have only one cache path but there can be more. The first 
writable one
-- will be chosen but there can be more readable paths.

TEXMFCACHE  = "$TEXMFSYSVAR;$TEXMFVAR",
TEXMFCONFIG = "home:.texlive2020/texmf-config",

-- I don't like this texmf under home and texmf-home would make more
-- sense. One never knows what installers put under texmf anywhere 
and
-- sorting out problems will be a pain. But on the other hand ... 
home
-- mess is normally under the users own responsibility.
--
-- By using prefixes we don't get expanded paths in the cache 
__path__
-- entry. This makes the tex root relocatable.

TEXMFOS = "selfautodir:",
TEXMFDIST   = "selfautoparent:texmf-dist",

TEXMFLOCAL  = texmflocal,
TEXMFSYSCONFIG  = "selfautoparent:texmf-config",
TEXMFFONTS  = "selfautoparent:texmf-fonts",
TEXMFPROJECT= "selfautoparent:texmf-project",

TEXMFHOME   = "home:texmf",
 -- TEXMFHOME   = os.name == "macosx" and "home:Library/texmf" or 
"home:texmf",

-- We need texmfos for a few rare files but as I have a few more 
bin trees
-- a hack is needed. Maybe other users also have texmf-platform-new 
trees.

TEXMF   = 
"{$TEXMFCONFIG,$TEXMFHOME,!!$TEXMFSYSCONFIG,!!$TEXMFSYSVAR,!!$TEXMFPROJECT,!!$TEXMFFONTS,!!$TEXMFLOCAL,!!$TEXMFDIST}",

TEXFONTMAPS = 
".;$TEXMF/fonts/data//;$TEXMF/fonts/map/{pdftex,dvips}//",
ENCFONTS= 
".;$TEXMF/fonts/data//;

Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12

2021-05-01 Thread Nicola
On 2021-05-01, Bruce Horrocks  wrote:
>> On 30 Apr 2021, at 19:53, Nicola  wrote:
>>
>> I'd like to run ConTeXt on Alpine Linux (ultimately, to run it on an
>> iPad with the iSH app). I am currently testing it with Docker. This is
>> what I have done:
>>
>>docker pull econcz/x86-alpine-glibc:ish-import
>
> Why is your first line not
>
>$ docker pull alpine

I was following the documentation of iSH, which is where I want to use
the container eventually. But I may probably use the alpine image as
well, which is more up to date and allows me to install TeX Live 2020.

> I would start with that then test each new step at the interactive
> shell before adding to the compose file and moving onto the next step.

Unfortunately, even with the image above I get the same errors.

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
___


[NTG-context] Fwd: Corrupt PDF files with LMTX?

2021-04-24 Thread Jairo A. del Rio
-- Forwarded message -
De: Jairo A. del Rio 
Date: sáb, 24 de abr. de 2021 a la(s) 08:05
Subject: Re: [NTG-context] Corrupt PDF files with LMTX?
To: Hans Hagen 


The following:


\starttext

\startMPpage

fill fullcircle scaled 1cm withcolor red

\stopMPpage

\stoptext

gives

    Error: stream Length incorrect.
   Output may be incorrect.
    Error: stream Length incorrect.
   Output may be incorrect.

However, an image is generated. However, when it includes text, the message
above appears. As Thomas says, it happens even with simple documents.

Jairo

El sáb, 24 de abr. de 2021 a la(s) 01:36, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 4/24/2021 8:03 AM, Jairo A. del Rio wrote:
> > Hi, list!
> > When I try to convert a PDF generated by ConTeXt LMTX to PNG using
> > ImageMagick's convert the following happens:
> hard to handle when there is no 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] No space between \cite and next word.

2021-04-18 Thread Mikael Sundqvist
Hi,

thanks! That seems like a fair list of commands.

To the mailing list: The commands listed in the previous mail all have
more than one argument (in square brackets [ ]). We had a discussion
off list, and commands such as \in will as I understood it also keep
spaces, but it has only one argument (in square brackets [ ], there
are two optional arguments in addition, but they come in braces { }).

I assume that I should wikify this, but I do not currently see where
it would be good to put it.

/Mikael

On Sun, Apr 18, 2021 at 1:40 PM Hans Hagen  wrote:
>
> On 4/16/2021 12:00 PM, Mikael Sundqvist wrote:
> > Hi,
> >
> > I think there has been some change recently. Is it on purpose that
> > there is no space after the \cite. Look how the parenthesis that ends
> > the citation and the word "text" are set without space inbetween.
> >
> > /Mikael
> >
> > \startbuffer[mybib]
> > @article{a,
> >author = {An Author},
> >title = {A title},
> >year = {2021},
> > }
> > \stopbuffer
> >
> > \usebtxdefinitions[apa]
> >   \usebtxdataset[mybib.buffer]
> >
> > \starttext
> >
> > Text \cite[a] text.
> >
> > \placelistofpublications
> >
> > \stoptext
> Wolfgang and I agreed upon the following commands keeping spaces
>
> \cite (and variants)
> \citation (and variants)
> \date
> \figuresymbol
> \note
> \notesymbol
> \symbol
> \typeinlinebuffer
> \externalfigure
>
> 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] No space between \cite and next word.

2021-04-18 Thread Hans Hagen

On 4/16/2021 12:00 PM, Mikael Sundqvist wrote:

Hi,

I think there has been some change recently. Is it on purpose that
there is no space after the \cite. Look how the parenthesis that ends
the citation and the word "text" are set without space inbetween.

/Mikael

\startbuffer[mybib]
@article{a,
   author = {An Author},
   title = {A title},
   year = {2021},
}
\stopbuffer

\usebtxdefinitions[apa]
  \usebtxdataset[mybib.buffer]

\starttext

Text \cite[a] text.

\placelistofpublications

\stoptext

Wolfgang and I agreed upon the following commands keeping spaces

\cite (and variants)
\citation (and variants)
\date
\figuresymbol
\note
\notesymbol
\symbol
\typeinlinebuffer
\externalfigure

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] Ligature suppression word list

2021-04-12 Thread denis.maier
Hi,

a small update on this one :
I’ve built a small python script that uses the patterns from the selnolig 
package to extract words with suspicious ligatures from the word list provided 
by the Uni Leipzig corpus project. Running the script over a corpus of over 1 
million words produces the attached word list. The resulting list of words is 
not huge. That corpus gives us a list of about 790 words. I’ll need to check 
whether they already are in the goodies file or if I need to add them.

Anyway, I was thinking about making such a script more generic. Think of 
something along the lines of:
pdftotext book.pdf | showIncorrectLigatures.py > incorrect-ligatures.txt

Denis


Von: ntg-context  Im Auftrag von rh...@t-online.de
Gesendet: Mittwoch, 7. April 2021 20:20
An: ntg-context@ntg.nl
Betreff: Re: [NTG-context] Ligature suppression word list



Message: 2
Date: Tue, 6 Apr 2021 15:03:54 +
From: mailto:denis.ma...@ub.unibe.ch>>
To: mailto:j.ha...@xs4all.nl>>, 
mailto:ntg-context@ntg.nl>>
Subject: Re: [NTG-context] Ligature suppression word list
Message-ID: 
<41e6530172b54bffb7a82febff0a6...@ub.unibe.ch<mailto:41e6530172b54bffb7a82febff0a6...@ub.unibe.ch>>
Content-Type: text/plain; charset="iso-8859-1"


-Ursprüngliche Nachricht-
Von: Hans Hagen mailto:j.ha...@xs4all.nl>>
Gesendet: Samstag, 3. April 2021 17:58
An: mailing list for ConTeXt users 
mailto:ntg-context@ntg.nl>>; Maier, Denis
Christian (UB) mailto:denis.ma...@ub.unibe.ch>>
Betreff: Re: [NTG-context] Ligature suppression word list

[…]




2. A bigger solution might be to use selnoligs patterns in a script
   that can be run over a large corpus, such as the DWDS (Digitales
   Wörterbuch der deutschen Sprache). That should produce us a more
   complete list of words where ligatures must be suppressed.

where is that DWDS ... i can write some code to deal with it (i'd rather start
from the source than from some interpretation; who know what more there
is to uncover)

As it turn out, the linguists that helped with the selnolig package did use 
another corpus: Stuttgart "Deutsch" Web as Corpus
They describe their approach in that paper: 
https://raw.githubusercontent.com/SHildebrandt/selnolig-check/master/selnolig-check-documentation.pdf

A lot of  corpora can be found here: https://wortschatz.uni-leipzig.de/de
especially here: https://wortschatz.uni-leipzig.de/de/download/German

There are corpora of many other languages, too, such as English, French, Dutch, 
Spanish, Russian, Japanese, Latin, …

HTH

Ralf

Auftrag
Auftritt
Auftakt
Auflage
Auflösung
Aufträge
fünften
Auftraggeber
Auflagen
Auffassung
fünfte
Aufführung
Auftragseingang
auftreten
Auftritte
Fünftel
Straftaten
Auftragsbestand
Aufforderung
Auftreten
Auflistung
Auftrieb
Aufführungen
Straftat
auffällig
Auftragsvolumen
Auftragsbücher
Auffällig
Auftragseingänge
Schieflage
Auftragslage
auflösen
Auftragsbestätigung
Aufträgen
Cheftrainer
Fünfte
Auffinden
Kopftuch
auffallend
auffällige
elften
Auffassungen
Auflaufform
Auftraggebers
Auftritten
auffangen
offline
Auffahrt
Auftragswert
Fünfter
Auftaktveranstaltung
Auftragserteilung
Straftatbestand
auffüllen
Auflauf
Auftragnehmer
Dorffest
Kaufinteresse
Straftäter
auftauchen
elfte
Auffallend
fünften Mal
fünfter
Auffälligkeiten
Auftragsvergabe
Kaufinteressenten
auffindbar
auftretenden
Auffahrunfall
Prüfling
aufladen
auflaufen
Auftrages
Auftrags
Dampflokomotiven
auffälliges
fünftägigen
Auflösungen
Auftragen
Hofladen
Schlaflosigkeit
auftretende
Aufladen
Aufladung
Auflockerung
Auftaktspiel
Auftragsbüchern
Auftritts
Briefträger
Prüflinge
Schlaflabor
Schlaftabletten
kampflos
Auftaktquartal
Auftauchen
Auftragsabwicklung
Auftragseingängen
Dampflok
Hoffest
Tiefflug
auffallen
auffrischen
auffälliger
auffälligsten
schlaflose
Auffrischung
Auffällige
Auflehnung
Auflieger
Auftraggebern
Auftragssumme
Brieftasche
Elfter
Straftätern
auffälligste
fünftes
schlaflose Nächte
tarifliche
Auffahrunfälle
Auflagenhöhe
Auflassung
Auftaktsieg
Auftragsbearbeitung
Auftragseingangs
Auftragsmord
Auftragsrückgang
Auftretens
Kopfteil
Kopftuchverbot
Scheffler
Tariflohn
Tieflader
auffälligen
auftragsbezogen
Auffanglager
Aufführungspraxis
Auflockerungen
Auflösungsvertrag
Auftanken
Auftragnehmers
Auftragsbestände
Auftragsbuch
Auftragseinbruch
Auftragsplus
Auftrittsmöglichkeiten
Brieffreund
Golffahrer
Kopftücher
Offline
Tiefladern
auffallende
auffordern
aufführen
auflegen
auftauen
auftragen
auftreiben
fünftägige
schlaflosen
Auffahrten
Auffahrunfällen
Auffanggesellschaft
Aufforderungscharakter
Aufforstung
Auffälligstes
Auffüllen
Auflagefläche
Auflaufen
Auflösungserscheinungen
Auftauen
Auftragsannahme
Auftragsarbeiten
Auftragskomposition
Auftragsminus
Auftragsmorde
Auftrittsort
Brieffreundin
Brieffreundschaft
Brieftaschen
Brieftauben
Cheftrainer Andreas Hirsch
Fünften
Fünftes
Kampffeld
Kaufinteressent
Kopfleiste
Surftipps
Surftips
Tiefland
aufleben
auflockern
auftanken
auftrumpfen
stoffliche
tiefliegenden
A

Re: [NTG-context] Ligature suppression word list

2021-04-07 Thread rha17

> Message: 2
> Date: Tue, 6 Apr 2021 15:03:54 +
> From: mailto:denis.ma...@ub.unibe.ch>>
> To: mailto:j.ha...@xs4all.nl>>,  <mailto:ntg-context@ntg.nl>>
> Subject: Re: [NTG-context] Ligature suppression word list
> Message-ID: <41e6530172b54bffb7a82febff0a6...@ub.unibe.ch 
> <mailto:41e6530172b54bffb7a82febff0a6...@ub.unibe.ch>>
> Content-Type: text/plain; charset="iso-8859-1"
> 
>> -Ursprüngliche Nachricht-
>> Von: Hans Hagen mailto:j.ha...@xs4all.nl>>
>> Gesendet: Samstag, 3. April 2021 17:58
>> An: mailing list for ConTeXt users > <mailto:ntg-context@ntg.nl>>; Maier, Denis
>> Christian (UB) mailto:denis.ma...@ub.unibe.ch>>
>> Betreff: Re: [NTG-context] Ligature suppression word list

[…]

>> 
>>> 2. A bigger solution might be to use selnoligs patterns in a script
>>>that can be run over a large corpus, such as the DWDS (Digitales
>>>Wörterbuch der deutschen Sprache). That should produce us a more
>>>complete list of words where ligatures must be suppressed.
>> 
>> where is that DWDS ... i can write some code to deal with it (i'd rather 
>> start
>> from the source than from some interpretation; who know what more there
>> is to uncover)
> 
> As it turn out, the linguists that helped with the selnolig package did use 
> another corpus: Stuttgart "Deutsch" Web as Corpus
> They describe their approach in that paper: 
> https://raw.githubusercontent.com/SHildebrandt/selnolig-check/master/selnolig-check-documentation.pdf
>  
> <https://raw.githubusercontent.com/SHildebrandt/selnolig-check/master/selnolig-check-documentation.pdf>

A lot of  corpora can be found here: https://wortschatz.uni-leipzig.de/de 
<https://wortschatz.uni-leipzig.de/de>
especially here: https://wortschatz.uni-leipzig.de/de/download/German 
<https://wortschatz.uni-leipzig.de/de/download/German>

There are corpora of many other languages, too, such as English, French, Dutch, 
Spanish, Russian, Japanese, Latin, …

HTH

Ralf

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

2021-03-13 Thread Jeroen
I have the following document, but I want a different
\setuplayout[backspace] for the titlepage and copyright space. What is
the best way to achieve this?





\setupcolors
  [state=start]

\usecolors
  [xwi]

\usetypescriptfile
  [euler]

\definetypeface
  [mainface][rm][serif][pagella][default]

\definetypeface
  [mainface][tt][mono][dejavu][default]

\definetypeface
  [mainface][mm][math][pagellaovereuler][default]

\setupbodyfont
  [mainface,11.5pt]

\setuppapersize
  [A4,
   portrait]

\setuplayout
  [backspace=19mm,
   width=176mm,
   topspace=7mm,
   header=10mm,
   headerdistance=3mm,
   height=middle,
   footerdistance=5mm,
   footer=9mm,
   bottomspace=11mm]

\setuphead
  [chapter]
  [style={\bfb},
   before={\vskip 0mm},
   after={\vskip-\parskip}]

\setuphead
[section]
[style=bold,
   before={\vskip 6mm},
   after={\vskip 2mm}]

\setuppagenumbering
  [alternative=doublesided]

\setupheadertexts
  []

\setupfooter
  [style=\it]

\setupfootertexts
  [{Footer Title} \hfill \pagenumber]

\definemakeup
  [titlepage]
  [align=left]

\definemakeup
  [copyrightpage]

\setupmakeup
  [copyrightpage]
  [align={right,bottom},
   top=\vfill,
   pagestate=stop,
   style=smallbodyfont]

\definealternativestyle
  [authorstyle]
  [\rm\tfb]
  []

\definealternativestyle
  [titlestyle]
  [{\rm\bfd\color[red]}]
  []

\definealternativestyle
  [subtitlestyle]
  [\rm\tfb]
  []

\definealternativestyle
  [publisherstyle]
  [\rm\bfb]
  []


\starttext

\startmakeup[titlepage]
\authorstyle{The Author}
\blank[13*big]
\titlestyle{Title 1}
\blank[5*small]
\titlestyle{Title 2}
\blank[2*big]
\subtitlestyle{Subtitle}
\blank[47*big]
\publisherstyle{Publisher}
\stopmakeup

\startmakeup[copyrightpage]
Title \crlf
Subtitle
\blank
Geprint in Country. \crlf
Document Reference ABC-ABC-001. \crlf
Eerste draft versie, gepubliceerd op \date. \crlf
Dit document is getypset met \CONTEXT\ LMTX op Microsoft Windows 10.
\blank
\startalignment[flushmiddle]
Copyright \copyright\ 2021, Publisher. Alle rechten voorbehouden. \crlf
Niets uit deze uitgave mag worden verveelvoudigd, opgeslagen in een
geautomatiseerd gegevensbestand en/of openbaar gemaakt in enige vorm of op
enige wijze, hetzij elektronisch, mechanisch, door fotokopieën, opnamen of
op enige andere manier zonder voorafgaande schriftelijk bevestigde
toestemming van Publisher.
\stopalignment
\stopmakeup

\startcolumns[2]

\startchapter[title={Bryson and Tufte}]

\dorecurse{5}{
  \startsection[title={Bryson}] \input{bryson} \stopsection
  \startsection[title={Tufte}] \input{tufte} \stopsection}

\stopchapter

\startchapter[title={Zapf and Ward}]

\dorecurse{5}{
  \startsection[title={Zapf}] \input{zapf} \stopsection
  \startsection[title={Ward}] \input{ward} \stopsection}

\stopchapter

\stopcolumns

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

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


[NTG-context] (no subject)

2021-03-13 Thread Jeroen
I have the following document, but I want a different
\setuplayout[backspace] for the titlepage and copyright space. What is
the best way to achieve this?





\setupcolors
  [state=start]

\usecolors
  [xwi]

\usetypescriptfile
  [euler]

\definetypeface
  [mainface][rm][serif][pagella][default]

\definetypeface
  [mainface][tt][mono][dejavu][default]

\definetypeface
  [mainface][mm][math][pagellaovereuler][default]

\setupbodyfont
  [mainface,11.5pt]

\setuppapersize
  [A4,
   portrait]

\setuplayout
  [backspace=19mm,
   width=176mm,
   topspace=7mm,
   header=10mm,
   headerdistance=3mm,
   height=middle,
   footerdistance=5mm,
   footer=9mm,
   bottomspace=11mm]

\setuphead
  [chapter]
  [style={\bfb},
   before={\vskip 0mm},
   after={\vskip-\parskip}]

\setuphead
[section]
[style=bold,
   before={\vskip 6mm},
   after={\vskip 2mm}]

\setuppagenumbering
  [alternative=doublesided]

\setupheadertexts
  []

\setupfooter
  [style=\it]

\setupfootertexts
  [{Footer Title} \hfill \pagenumber]

\definemakeup
  [titlepage]
  [align=left]

\definemakeup
  [copyrightpage]

\setupmakeup
  [copyrightpage]
  [align={right,bottom},
   top=\vfill,
   pagestate=stop,
   style=smallbodyfont]

\definealternativestyle
  [authorstyle]
  [\rm\tfb]
  []

\definealternativestyle
  [titlestyle]
  [{\rm\bfd\color[red]}]
  []

\definealternativestyle
  [subtitlestyle]
  [\rm\tfb]
  []

\definealternativestyle
  [publisherstyle]
  [\rm\bfb]
  []


\starttext

\startmakeup[titlepage]
\authorstyle{The Author}
\blank[13*big]
\titlestyle{Title 1}
\blank[5*small]
\titlestyle{Title 2}
\blank[2*big]
\subtitlestyle{Subtitle}
\blank[47*big]
\publisherstyle{Publisher}
\stopmakeup

\startmakeup[copyrightpage]
Title \crlf
Subtitle
\blank
Geprint in Country. \crlf
Document Reference ABC-ABC-001. \crlf
Eerste draft versie, gepubliceerd op \date. \crlf
Dit document is getypset met \CONTEXT\ LMTX op Microsoft Windows 10.
\blank
\startalignment[flushmiddle]
Copyright \copyright\ 2021, Publisher. Alle rechten voorbehouden. \crlf
Niets uit deze uitgave mag worden verveelvoudigd, opgeslagen in een
geautomatiseerd gegevensbestand en/of openbaar gemaakt in enige vorm of op
enige wijze, hetzij elektronisch, mechanisch, door fotokopieën, opnamen of
op enige andere manier zonder voorafgaande schriftelijk bevestigde
toestemming van Publisher.
\stopalignment
\stopmakeup

\startcolumns[2]

\startchapter[title={Bryson and Tufte}]

\dorecurse{5}{
  \startsection[title={Bryson}] \input{bryson} \stopsection
  \startsection[title={Tufte}] \input{tufte} \stopsection}

\stopchapter

\startchapter[title={Zapf and Ward}]

\dorecurse{5}{
  \startsection[title={Zapf}] \input{zapf} \stopsection
  \startsection[title={Ward}] \input{ward} \stopsection}

\stopchapter

\stopcolumns

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

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


Re: [NTG-context] missing space after \date[] (was: printing the current date)

2021-03-13 Thread Hans Hagen

On 3/13/2021 12:10 AM, Peter Münster wrote:

On Wed, Jan 27 2021, Wolfgang Schuster wrote:


When not all optional arguments are used the space after the last
given argument is gobbled. This was normal behavior for a long time
until you changed the code in MkIV to keep them.


Hi,

What does that mean? Is that going to be changed?
How should \date[] be used now in the text?
For now, I do it like "bla \date[d=3]\ bla".
Is there a nicer way?

TIA for any hints,
The problem with an interface with optional arguments is that it has to 
look ahead. There are actually some macros that use this feature to get 
rid of upcoming spaces (picking up two optional arguments where one is 
needed). So, no matter what solution is chosen: push back a space or 
not, it has some unpredictable character.


This is why I always am explicit, as in \date[d=3]\ bla because no 
matter what happens bvehind the screens, the \ terminates the argument 
check so it will stay. (I admit that i'm mnore often bitten by the 
pushed back one than the gobbled one so i make it a habit to be explicit 
about spaces, like like i use \removeunwantedspaces when i'm not sure

when there can be spaces that crept in).

We can of course in lmtx bring back the 'push back a space' behaviour 
but we then also introduce some fuzzyness. Now we have "we scan upto n 
arguments and gobble spaces when doing so".


Btw, there is also another aspect: when looking for optional arguments 
the next token gets looked at and that one can be in an upcoming macro 
or content.


\startfoo[a][b]
   content
\stopfoo

\startfoo[a]
   [ that starts content
\stopfoo

so sometimes one needs

\startfoo[a]
   \relax [ that starts content
\stopfoo

to abort the scanning.

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] missing space after \date[] (was: printing the current date)

2021-03-12 Thread Peter Münster
On Wed, Jan 27 2021, Wolfgang Schuster wrote:

> When not all optional arguments are used the space after the last
> given argument is gobbled. This was normal behavior for a long time
> until you changed the code in MkIV to keep them.

Hi,

What does that mean? Is that going to be changed?
How should \date[] be used now in the text?
For now, I do it like "bla \date[d=3]\ bla".
Is there a nicer way?

TIA for any hints,
-- 
   Peter
___
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] Fwd: Re: LMTX 2021.03.02 | cross reference to an external file | \pagereference

2021-03-04 Thread Richard Mahoney
Wolfgang [and Hans ],

I'm attaching a minimal(ish) example of a project structure with
a call to \pagereference. One can see from the output of master000.tex
that the cross references to an external file all work, *apart* from
the call to \pagereference. (This is the same issue that I am having
with
my two volume proceedings.)

I'd be grateful for suggestions.


Best, Richard


% testproject.tex -- LMTX 2021.03.02

\startproject testproject

\product testproduct000

\product testproduct001

\stopproject



% master000.tex -- LMTX 2021.03.02

\startproduct testproduct000

\project testproject

\startbodymatter

\component boo.tex

\stopbodymatter

\stopproduct


% master001.tex -- LMTX 2021.03.02

\startproduct testproduct001

\project testproject

\startbodymatter

\component foo.tex

\stopbodymatter

\stopproduct



% boo.tex -- LMTX 2021.03.02

\startcomponent boo

\project testproject

\product testproduct000

\useexternaldocument[m001][master001][Test Product, Vol.~{\sc ii}]

\chapter[oeps]{oeps}

test \from[m001], \in{Ch.~}[m001::one], \at{page}[m001::one] {[}test
page one{]}

test \from[m001], \in{Ch.~}[m001::one], \at{page}[m001::page-
reference] {[}test {\bf pagereference}{]}

test \from[m001], \in{Ch.~}[m001::two], \at{page}[m001::two] {[}test
page two{]}

\stopcomponent




% foo.tex -- LMTX 2021.03.02

\startcomponent foo

\project testproject

\product testproduct001

\chapter[one]{one}

\pagereference[page-reference]foo

\chapter[two]{two}

foo

\stopcomponent







 Forwarded Message 
From: Richard Mahoney 
Reply-To: Richard Mahoney , mailing
list for ConTeXt users 
To: ntg-context@ntg.nl
Subject: Re: [NTG-context] LMTX 2021.03.02 | cross reference to an
external file | \pagereference
Date: Fri, 05 Mar 2021 12:02:54 +1300
Mailer: Evolution 3.36.5 
Organization: Indica et Buddhica
X-Spam-Score: 0.0

Thanks Wolfgang,

Hans kindly sent me a simple minimal. I've adjusted it to include a
call
to \pagereference and it works. I'm currently trying to test my
project
to see why my own calls to \pagereference do not result in any output,
despite the fact that all the calls to the reference ids in chapters
work
as expected. I'm imagining at this point that it has something to do
with
using two master files --one for each volume-- with multiple includes
(\components) for each chapter  -- the \pagereference code appears
in a number of the components.

I'll try to set up a simple example replicating the file structure I'm
using
and then send it through.


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: Wolfgang Schuster 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] LMTX 2021.03.02 | cross reference to an
external file | \pagereference
Date: Thu, 4 Mar 2021 22:35:46 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 PostboxApp/7.0.47
X-Spam-Score: 0.0



Richard Mahoney schrieb am 04.03.2021 
um 09:04:

>   
>   Readers,
>   
> 
>   I'm working on a couple of volumes of papers set up and generated
>   separately (though within the same project). Some of the papers 
> in
>   the second volume make cross references to papers in the first.
>   Now this is working well so long as the reference is to the 
> details
>   associated with, say, a chapter, using \about, \in, and \at. Its 
> doesn't
>   seem to work though with \pagereference: no page number appears
>   in the PDF whatsoever. I have  been following the material here:
>   
> 
>   
> https://wiki.contextgarden.net/References#References_to_an_external_file
>   
> 
>   I'm wondering then ... do cross references to an external file 
> work
>   with \pagereference? 
> 
>   


Hi Richard,



I just tested \pagereference in a simple example and had no problem
to 
get

the page numbers from the other document. Without a minimal example

there is no way to tell what's missing in your document.



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

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

Re: [NTG-context] LMTX 2021.03.02 | cross reference to an external file | \pagereference

2021-03-04 Thread Richard Mahoney
Thanks Wolfgang,

Hans kindly sent me a simple minimal. I've adjusted it to include a
call
to \pagereference and it works. I'm currently trying to test my
project
to see why my own calls to \pagereference do not result in any output,
despite the fact that all the calls to the reference ids in chapters
work
as expected. I'm imagining at this point that it has something to do
with
using two master files --one for each volume-- with multiple includes
(\components) for each chapter  -- the \pagereference code appears
in a number of the components.

I'll try to set up a simple example replicating the file structure I'm
using
and then send it through.


Best, Richard




-Original Message-
From: Wolfgang Schuster 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users 
Subject: Re: [NTG-context] LMTX 2021.03.02 | cross reference to an
external file | \pagereference
Date: Thu, 4 Mar 2021 22:35:46 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101
 PostboxApp/7.0.47
X-Spam-Score: 0.0



Richard Mahoney schrieb am 04.03.2021 
um 09:04:

>   
>   Readers,
>   
> 
>   I'm working on a couple of volumes of papers set up and generated
>   separately (though within the same project). Some of the papers 
> in
>   the second volume make cross references to papers in the first.
>   Now this is working well so long as the reference is to the 
> details
>   associated with, say, a chapter, using \about, \in, and \at. Its 
> doesn't
>   seem to work though with \pagereference: no page number appears
>   in the PDF whatsoever. I have  been following the material here:
>   
> 
>   
> https://wiki.contextgarden.net/References#References_to_an_external_file
>   
> 
>   I'm wondering then ... do cross references to an external file 
> work
>   with \pagereference? 
> 
>   


Hi Richard,



I just tested \pagereference in a simple example and had no problem
to 
get

the page numbers from the other document. Without a minimal example

there is no way to tell what's missing in your document.



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
__
_
-- 
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
___
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] Genealogy and context

2021-03-03 Thread Hans Hagen

On 2/28/2021 7:32 PM, David van Diepen wrote:

Hello,

My son is very much interested in genealogy. He already has collected
information on thousands of people. Now it would be nice to be able to
present this information in the form of a book. There is a possibility
to have this done by a commercial service, however then it's not
possible to adapt the format or to insert custom text. Media can be
added but not in the way we like it.

Genealogical information is stored as structured data. I have added a
fragment of an Gramps XML file below. In such a file there are events,
people, families and other groupings of data and these are linked by
handles.

What we would like to produce is a book with a number of blocks on
every page describing a family: Father, mother, dates of birth and
death, date of marriage, occupations and children. It would also be
good it there are references to the grandparents.

My question is: Where should I get started with a project in which a
document is generated automatically from data? As far as I know context
should be very suitable for this but I don't have any experience with
this. Until now I've used context to make documents without any data
being added automatically, except for the bibliography.

Thank you in advance,

David van Diepen

Example Gramps XML file is below:


http://gramps-project.org/xml/1.7.1/grampsxml.dtd;>
http://gramps-project.org/xml/1.7.1/;>
   
 
 
 
   
   
   
   Birth
   
   
   
 
 
   Death
   
   
   
 
 
   Marriage
   
   
   
 
   
   
   
   F
   
 Catharina
 Geldof
   
   
   
   
 
  
   M
   
 Cornelis
 Geldof
   
   
   
   
   
   
 
 
   F
   
 Maatje
 de Voogd
   
   
   
   
   
   
 
   
   
 
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
   
 
  


\startbuffer[test]

http://gramps-project.org/xml/1.7.1/;>
  



  
  
  id="E1746">

  Birth
  
  
  

id="E1747">

  Death
  
  
  

id="E6977">

  Marriage
  
  
  

  
  
  id="I0987">

  F
  
Catharina
Geldof
  
  
  
  

 id="I0049">

  M
  
Cornelis
Geldof
  
  
  
  
  
  

id="I0050">

  F
  
Maatje
de Voogd
  
  
  
  
  
  

  
  
id="F0016">

  
  
  
  
  

 

\stopbuffer

%  mapping

\startxmlsetups xml:mysetups
\xmlsetsetup{#1}{database|families|family|person|childref}{xml:*}
\stopxmlsetups

\xmlregistersetup{xml:mysetups}

\startxmlsetups xml:database
\xmlfirst{#1}{/families}
\stopxmlsetups

\startxmlsetups xml:families
\xmlall{#1}{/family}
\stopxmlsetups

\startxmlsetups xml:person
\starttabulate[|||]
\BC name\NC \xmlfirst{#1}{name/first/text()} \NC \NR
\BC surname \NC \xmlfirst{#1}{name/surname/text()} \NC \NR
\BC gender  \NC \xmlfirst{#1}{gender} \NC \NR
\stoptabulate
\stopxmlsetups

\startxmlsetups xml:childref
% \startsubsubject[title=Child]

\xmlfirst{main}{/database/people/person[@handle='\xmlatt{#1}{hlink}']}
% \stopsubsubject
\stopxmlsetups

\startxmlsetups xml:family
\xmldoif {#1}{/father} {
\startsubject[title=Father]

\xmlfirst{main}{/database/people/person[@handle='\xmlattribute{#1}{/father}{hlink}']}
\stopsubject
}
\xmldoif {#1}{/mother} {
\startsubject[title=Mother]

\xmlfirst{main}{/database/people/person[@handle='\xmlattribute{#1}{/mother}{hlink}']}
\stopsubject
}
\xmldoif {#1}{/childref} {
\startsubject[title=Children]
\xmlall{#1}{/childref}
\stopsubject
}
\stopxmlsetups

\starttext
% \xmlprocess{main}{somefile.xml}{}
\xmlprocessbuffer{main}{test}{}
\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] Genealogy and context

2021-03-01 Thread Henning Hraban Ramm

> Am 28.02.2021 um 19:32 schrieb David van Diepen :
> 
> Genealogical information is stored as structured data. I have added a
> fragment of an Gramps XML file below. In such a file there are events,
> people, families and other groupings of data and these are linked by
> handles.
> 
> What we would like to produce is a book with a number of blocks on
> every page describing a family: Father, mother, dates of birth and
> death, date of marriage, occupations and children. It would also be
> good it there are references to the grandparents. 

Hi David,

I’m also using Gramps (for my personal family tree and for research for a 
historical novel), and I always wondered if it wouldn’t be possible to create 
nicer family trees and other charts using ConTeXt/MetaPost. But I still can’t 
handle XML in ConTeXt nor MetaPost myself.

I’d suggest to first create a sample layout to have a clear target – how would 
you like to present your data?

Since Gramps XML is not very straightforward (many crossreferences) it _might_ 
make sense to use a preprocessor (XSLT) and convert it to XML or Lua tables 
that you can use with the bibliography module.
I’m quite sure it’s possible to do it completely in ConTeXt/Lua, but if you’d 
like to have configurable output, you’d probably create something similar to 
the bib module.

I’m looking forward to what you will create! (And I think it would be an 
excellent topic for a talk at the ConTeXt meeting and/or an article in the 
ConTeXt journal!)

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

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


Re: [NTG-context] Hyphenation pattern for Esperanto

2021-03-01 Thread Alain Delmotte

  
  
I forgot to write that I am ready to
answer your questions.
(En Esperanto one avoids to write the
dates as numbers, because the users do not all understand the
same way: 3/9/2021 is it third of September or ninth of March?)
  
Alain

Le 22/02/2021 à 17:26, Tomas Hala a
  écrit :


  Hi Alain,

in my email, I used official language codes: be=Belarussian, bg=Bulgarian, sr=Serbian.

The \installlanguage command is very important because it contains
definitions of the most frequently used typographic elements of the 
given language, for details see below.

Looking forward for both lang-txt files. The sooner you will send it, the better.

The best,

Tomáš

Mon, Feb 22, 2021 ve 03:01:41PM +0100 Alain Delmotte napsal(a):
#Hi Tomáš,
# 
#Thanks for your message.
# 
#First which country is "be"? If Belgium, pay attention that there are
#three languages: Dutch (Flemish) French (a little bit different from
#France French) and German (1% of the population).
# 
#Could you explain me the meaning of:
# 
#Le 21/02/2021 à 23:48, Tomas Hala a écrit :
# 
#  And this one is also needed:
# 
#  #  \installlanguage
#  #    [\s!esperanto]
#  #    [\c!spacing=\v!packed,
#  #     %\c!leftsentence=\emdash,
#  #     %\c!rightsentence=\emdash,
#  #     %\c!leftsubsentence=\emdash,
#  #     %\c!rightsubsentence=\emdash,
#  #     %\c!leftquote=\lowerleftdoubleninequote,
#  #     %\c!rightquote=\upperrightdoublesixquote,
#  #     %\c!leftquotation=\lowerleftdoubleninequote,
#  #     %\c!rightquotation=\upperrightdoublesixquote,
#  #         %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
#  #     \s!patterns=eo,
#  #     \s!lefthyphenmin=2,
#  #     \s!righthyphenmin=2]

Values for \installlanguage:

* spacing: packed means no difference between interword and intersentence spaces.
* (left|right)sentence: punctuation marks -- very often dashes -- for included parts in some sentences.
* (left|right)quotation: definition of primary quotation marks. 
* (left|right)quote: definition of secondary (nested) quotation marks.
* (left|right)hyphenmin: number of characters at the end of a line and at the beginning of the next line when the word is hyphenated.
* date: how the date should be typically typeset: order, spacing, or other signs or abbreviation or texts.

Those I do not know for eo, have been marked with a percent sign.

#I have seen that the \lowerleftdoubleninequote,... are sometimes given by
#the character itself “ ”,...
#    For the date, is it the order of the part of the date yyy mm dd?
# 
#I did prepare the file lang-txt.lua and did send it to two friends for
#checking, I wait for their answer (I hope not to long).
# 
#I also have the pattern for hyphenation, the one from TeXLive uses
#fonctions to shorten the length of the file.
# 
#For French, I'll do it and send it to you.
# 
#Thanks for taking care of this.
# 
#  Regards,
# 
#Alain


  


___
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] Genealogy and context

2021-02-28 Thread David van Diepen
Hello,

My son is very much interested in genealogy. He already has collected
information on thousands of people. Now it would be nice to be able to
present this information in the form of a book. There is a possibility
to have this done by a commercial service, however then it's not
possible to adapt the format or to insert custom text. Media can be
added but not in the way we like it.

Genealogical information is stored as structured data. I have added a
fragment of an Gramps XML file below. In such a file there are events,
people, families and other groupings of data and these are linked by
handles.

What we would like to produce is a book with a number of blocks on
every page describing a family: Father, mother, dates of birth and
death, date of marriage, occupations and children. It would also be
good it there are references to the grandparents. 

My question is: Where should I get started with a project in which a
document is generated automatically from data? As far as I know context
should be very suitable for this but I don't have any experience with
this. Until now I've used context to make documents without any data
being added automatically, except for the bibliography.  

Thank you in advance,

David van Diepen

Example Gramps XML file is below:


http://gramps-project.org/xml/1.7.1/grampsxml.dtd;>
http://gramps-project.org/xml/1.7.1/;>
  



  
  
  
  Birth
  
  
  


  Death
  
  
  


  Marriage
  
  
  

  
 
  
  F
  
Catharina
Geldof
  
  
  
  
 
 
  M
  
Cornelis
Geldof
  
  
  
  
  
  


  F
  
Maatje
de Voogd
  
  
  
  
  
  
   
  
  

  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  

 

___
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] Hyphenation pattern for Esperanto

2021-02-22 Thread Tomas Hala
Hi Alain,

in my email, I used official language codes: be=Belarussian, bg=Bulgarian, 
sr=Serbian.

The \installlanguage command is very important because it contains
definitions of the most frequently used typographic elements of the 
given language, for details see below.

Looking forward for both lang-txt files. The sooner you will send it, the 
better.

The best,

Tomáš

Mon, Feb 22, 2021 ve 03:01:41PM +0100 Alain Delmotte napsal(a):
#Hi Tomáš,
# 
#Thanks for your message.
# 
#First which country is "be"? If Belgium, pay attention that there are
#three languages: Dutch (Flemish) French (a little bit different from
#France French) and German (1% of the population).
# 
#Could you explain me the meaning of:
# 
#Le 21/02/2021 à 23:48, Tomas Hala a écrit :
# 
#  And this one is also needed:
# 
#  #  \installlanguage
#  #    [\s!esperanto]
#  #    [\c!spacing=\v!packed,
#  #     %\c!leftsentence=\emdash,
#  #     %\c!rightsentence=\emdash,
#  #     %\c!leftsubsentence=\emdash,
#  #     %\c!rightsubsentence=\emdash,
#  #     %\c!leftquote=\lowerleftdoubleninequote,
#  #     %\c!rightquote=\upperrightdoublesixquote,
#  #     %\c!leftquotation=\lowerleftdoubleninequote,
#  #     %\c!rightquotation=\upperrightdoublesixquote,
#  #         %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
#  #     \s!patterns=eo,
#  #     \s!lefthyphenmin=2,
#  #     \s!righthyphenmin=2]

Values for \installlanguage:

* spacing: packed means no difference between interword and intersentence 
spaces.
* (left|right)sentence: punctuation marks -- very often dashes -- for included 
parts in some sentences.
* (left|right)quotation: definition of primary quotation marks. 
* (left|right)quote: definition of secondary (nested) quotation marks.
* (left|right)hyphenmin: number of characters at the end of a line and at the 
beginning of the next line when the word is hyphenated.
* date: how the date should be typically typeset: order, spacing, or other 
signs or abbreviation or texts.

Those I do not know for eo, have been marked with a percent sign.

#I have seen that the \lowerleftdoubleninequote,... are sometimes given by
#the character itself “ ”,...
#    For the date, is it the order of the part of the date yyy mm dd?
# 
#I did prepare the file lang-txt.lua and did send it to two friends for
#checking, I wait for their answer (I hope not to long).
# 
#I also have the pattern for hyphenation, the one from TeXLive uses
#fonctions to shorten the length of the file.
# 
#For French, I'll do it and send it to you.
# 
#Thanks for taking care of this.
# 
#  Regards,
# 
#Alain
___
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] Hyphenation pattern for Esperanto

2021-02-22 Thread Alain Delmotte

  
  
Hi Tomáš,
Thanks for your message.
First which country is "be"? If Belgium, pay attention that there
  are three languages: Dutch (Flemish) French (a little bit
  different from France French) and German (1% of the population).
Could you explain me the meaning of:

Le 21/02/2021 à 23:48, Tomas Hala a
  écrit :


  And this one is also needed:

#  \installlanguage
#    [\s!esperanto]
#    [\c!spacing=\v!packed,
#     %\c!leftsentence=\emdash,
#     %\c!rightsentence=\emdash,
#     %\c!leftsubsentence=\emdash,
#     %\c!rightsubsentence=\emdash,
#     %\c!leftquote=\lowerleftdoubleninequote,
#     %\c!rightquote=\upperrightdoublesixquote,
#     %\c!leftquotation=\lowerleftdoubleninequote,
#     %\c!rightquotation=\upperrightdoublesixquote,
#         %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
#     \s!patterns=eo,
#     \s!lefthyphenmin=2,
#     \s!righthyphenmin=2]


I have seen that the \lowerleftdoubleninequote,... are sometimes
  given by the character itself “ ”,...
  For the date, is it the order of the part of the date yyy mm dd?

I did prepare the file lang-txt.lua and did send it to two
  friends for checking, I wait for their answer (I hope not to
  long).
I also have the pattern for hyphenation, the one from TeXLive
  uses fonctions to shorten the length of the file.
For French, I'll do it and send it to you.
Thanks for taking care of this.

 Regards,
Alain


  


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

2021-02-09 Thread Otared Kavian
Hi Hans,

Thanks for the new composing commands. I made several tests and everything 
works great.
I guess when you say something like

> \withgrave   {a} == \\`{a}

you mean

\withgrave   {a} == \`{a}

(this is what I tested…).
Regarding the characters æ and œ, the command \chr produces them correctly, 
that is

\chr{ae} \chr{AE}
\chr{oe} \chr{OE}

produce

æ Æ
œ Œ

as expected.
If you think these commands are to stay, please tell me if they have to be on 
the wiki.

Best regards: Otared

> On 8 Feb 2021, at 10:53, Hans Hagen  wrote:
> 
> On 2/6/2021 11:41 PM, T. Kurt Bond wrote:
> 
>> I think that it would be useful.  I use Unicode characters extensively in my 
>> ConTeXt input, but only because I edit it in Emacs and can set up keymaps 
>> that map to the Unicode characters in a way that I can actually remember.  I 
>> think that this would add an easily remembered way for people to add 
>> combining characters to their documents.  Sometimes a slightly more verbose 
>> way to do something is helpful when it is more easily remembered.  
>> (Honestly, I can't remember the hex codes for any Unicode characters after 
>> you get out of the range that maps to plain ASCII
> I anyway uprgade this mechanism. First of all, the short commands will be 
> equivalents to more verbose ones.
> 
> \withgrave   {a} == \\`{a}
> \withacute   {a} == \\'{a}
> \withcircumflex  {a} == \\^{a}
> \withtilde   {a} == \\~{a}
> \withmacron  {a} == \\={a}
> \withbreve   {e} == \\u{e}
> \withdot {c} == \\.{c}
> \withdieresis{e} == \\"{e}
> \withring{u} == \\r{u}
> \withhungarumlaut{u} == \\H{u}
> \withcaron   {e} == \\v{e}
> \withcedilla {e} == \\c{e}
> \withogonek  {e} == \\k{e}
> 
> Did I miss one?
> 
> Then we can deprecate the short ones (keep them a low profile, with 
> permission to overload). After all, I don't expect someone who needs lots of 
> them to use these commands, so more verbose is better then. Aas I already 
> mentioned, in bib files they are treated differently already.
> 
> The low level helper is \chr, that can be used as
> 
> \chr {à} \chr {á} \chr {ä}
> \chr {`a} \chr {'a} \chr {"a}
> \chr {a acute} \chr {a grave} \chr {a umlaut}
> \chr {aacute}  \chr {agrave}  \chr {aumlaut}
> 
> (I can add more of the verbose, like {cyrillic a} if really needed. It means 
> that we can declare \eacute etc also depricated (these verbose names date 
> from \MKII, encoding neutral labels, utf handling, remapping to backend 
> encodings etc but we don't need that and I'm not sure if anyone ever used 
> those long names. Again, depricated, not removed (yet).)
> 
> Then there is the question what to do with \AE and \ij and such ... these 
> were used to enforce specific ligatures into a file assuming that f ont has 
> them but nowadays that's the job of a font handler (script language control). 
> We can keep them but assume them legacy. They normally don't belong in input. 
> (Being Dutch I actually never used \IJ or \ij).
> 
> Now, we can assume that when your languages needs characters with accents 
> that you use a font that has them. In MKIV and LMTX one can
> enable a checker
> 
> \enabletrackers[fonts.missing]
> \enabletrackers[fonts.missing=replace]
> \enabletrackers[fonts.missing=remove]
> 
> but in LMTX it's upgraded with more clever replacements (Jano will document 
> that + more about checking missing stuff in the wiki).
> 
> So, in LMTX we have more options (maybe I'll backport that to MKIV)
> 
> \checkmissingcharacters   \enabletrackers[fonts.missing]
> \removemissingcharacters  \enabletrackers[fonts.missing=remove]
> \replacemissingcharacters \enabletrackers[fonts.missing=replace]
> \handlemissingcharacters  \enabletrackers[fonts.missing={decompose,replace}]
> 
> the last one will inject decomposed characters into the list when font lacks 
> the real thing. The replacements visualize similar to MKIV but adapt to the 
> style.
> 
> Hans
> 
> (no upload yet)
> 
> -
>  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://bitbu

Re: [NTG-context] composing commands

2021-02-08 Thread Richard Mahoney
Hans,

For me, at least, having these covered would be useful:

   acute á
   double acute ő
   grave à
   double grave ȍ
   circumflex â
   circumflex below ḙ
   diaeresis ä
   tilde ã
   tilde below ḭ
   macron ā
   line below ḵ
   cedilla ç
   comma below ş
   hook ȥ
   ring above å
   ring below ḁ
   dot above ṁ
   middle dot ŀ
   dot below ṃ
   breve ă
   inverted breve ȃ
   caron ǩ
   stroke ø



Best, Richard  





-Original Message-
From: Hans Hagen 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users , T. Kurt Bond

Cc: Thomas A. Schmitz 
Subject: Re: [NTG-context] composing commands
Date: Mon, 8 Feb 2021 10:53:01 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0)
Gecko/20100101
 Thunderbird/78.7.1
X-Spam-Score: 0.0

On 2/6/2021 11:41 PM, T. Kurt Bond wrote:
> I think that it would be useful.  I use Unicode characters
> extensively in my ConTeXt input, but only because I edit it in Emacs
> and can set up keymaps that map to the Unicode characters in a way
> that I can actually remember.  I think that this would add an easily
> remembered way for people to add combining characters to their
> documents.  Sometimes a slightly more verbose way to do something is
> helpful when it is more easily remembered.  (Honestly, I can't
> remember the hex codes for any Unicode characters after you get out
> of the range that maps to plain ASCII
I anyway uprgade this mechanism. First of all, the short commands will
be equivalents to more verbose ones.
\withgrave   {a} == \\`{a}\withacute   {a} ==
\\'{a}\withcircumflex  {a} == \\^{a}\withtilde   {a} ==
\\~{a}\withmacron  {a} == \\={a}\withbreve   {e} ==
\\u{e}\withdot {c} == \\.{c}\withdieresis{e} ==
\\"{e}\withring{u} == \\r{u}\withhungarumlaut{u} ==
\\H{u}\withcaron   {e} == \\v{e}\withcedilla {e} ==
\\c{e}\withogonek  {e} == \\k{e}
Did I miss one?
Then we can deprecate the short ones (keep them a low profile, with
permission to overload). After all, I don't expect someone who needs
lots of them to use these commands, so more verbose is better then.
Aas I already mentioned, in bib files they are treated differently
already.
The low level helper is \chr, that can be used as
\chr {à} \chr {á} \chr {ä}\chr {`a} \chr {'a} \chr {"a}\chr {a
acute} \chr {a grave} \chr {a umlaut}\chr {aacute}  \chr
{agrave}  \chr {aumlaut}
(I can add more of the verbose, like {cyrillic a} if really needed. It
means that we can declare \eacute etc also depricated (these verbose
names date from \MKII, encoding neutral labels, utf handling,
remapping to backend encodings etc but we don't need that and I'm not
sure if anyone ever used those long names. Again, depricated, not
removed (yet).)
Then there is the question what to do with \AE and \ij and such ...
these were used to enforce specific ligatures into a file assuming
that f ont has them but nowadays that's the job of a font handler
(script language control). We can keep them but assume them legacy.
They normally don't belong in input. (Being Dutch I actually never
used \IJ or \ij).
Now, we can assume that when your languages needs characters with
accents that you use a font that has them. In MKIV and LMTX one
canenable a checker
\enabletrackers[fonts.missing]\enabletrackers[fonts.missing=replace]\e
nabletrackers[fonts.missing=remove]
but in LMTX it's upgraded with more clever replacements (Jano will
document that + more about checking missing stuff in the wiki).
So, in LMTX we have more options (maybe I'll backport that to MKIV)
\checkmissingcharacters   \enabletrackers[fonts.missing]\removemissing
characters  \enabletrackers[fonts.missing=remove]\replacemissingcharac
ters
\enabletrackers[fonts.missing=replace]\handlemissingcharacters  \enabl
etrackers[fonts.missing={decompose,replace}]
the last one will inject decomposed characters into the list when font
lacks the real thing. The replacements visualize similar to MKIV but
adapt to the style.
Hans
(no upload yet)
---
--   Hans Hagen | PRAGMA
ADE   Ridderstraat 27 | 8061 GH Hasselt | The
Netherlandstel: 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
__
_
-- 
T +6433121699  M +642106402

Re: [NTG-context] composing commands

2021-02-08 Thread Hans Hagen

On 2/6/2021 11:41 PM, T. Kurt Bond wrote:

I think that it would be useful.  I use Unicode characters extensively 
in my ConTeXt input, but only because I edit it in Emacs and can set up 
keymaps that map to the Unicode characters in a way that I can actually 
remember.  I think that this would add an easily remembered way for 
people to add combining characters to their documents.  Sometimes a 
slightly more verbose way to do something is helpful when it is more 
easily remembered.  (Honestly, I can't remember the hex codes for any 
Unicode characters after you get out of the range that maps to plain ASCII
I anyway uprgade this mechanism. First of all, the short commands will 
be equivalents to more verbose ones.


\withgrave   {a} == \\`{a}
\withacute   {a} == \\'{a}
\withcircumflex  {a} == \\^{a}
\withtilde   {a} == \\~{a}
\withmacron  {a} == \\={a}
\withbreve   {e} == \\u{e}
\withdot {c} == \\.{c}
\withdieresis{e} == \\"{e}
\withring{u} == \\r{u}
\withhungarumlaut{u} == \\H{u}
\withcaron   {e} == \\v{e}
\withcedilla {e} == \\c{e}
\withogonek  {e} == \\k{e}

Did I miss one?

Then we can deprecate the short ones (keep them a low profile, with 
permission to overload). After all, I don't expect someone who needs 
lots of them to use these commands, so more verbose is better then. Aas 
I already mentioned, in bib files they are treated differently already.


The low level helper is \chr, that can be used as

\chr {à} \chr {á} \chr {ä}
\chr {`a} \chr {'a} \chr {"a}
\chr {a acute} \chr {a grave} \chr {a umlaut}
\chr {aacute}  \chr {agrave}  \chr {aumlaut}

(I can add more of the verbose, like {cyrillic a} if really needed. It 
means that we can declare \eacute etc also depricated (these verbose 
names date from \MKII, encoding neutral labels, utf handling, remapping 
to backend encodings etc but we don't need that and I'm not sure if 
anyone ever used those long names. Again, depricated, not removed (yet).)


Then there is the question what to do with \AE and \ij and such ... 
these were used to enforce specific ligatures into a file assuming that 
f ont has them but nowadays that's the job of a font handler (script 
language control). We can keep them but assume them legacy. They 
normally don't belong in input. (Being Dutch I actually never used \IJ 
or \ij).


Now, we can assume that when your languages needs characters with 
accents that you use a font that has them. In MKIV and LMTX one can

enable a checker

\enabletrackers[fonts.missing]
\enabletrackers[fonts.missing=replace]
\enabletrackers[fonts.missing=remove]

but in LMTX it's upgraded with more clever replacements (Jano will 
document that + more about checking missing stuff in the wiki).


So, in LMTX we have more options (maybe I'll backport that to MKIV)

\checkmissingcharacters   \enabletrackers[fonts.missing]
\removemissingcharacters  \enabletrackers[fonts.missing=remove]
\replacemissingcharacters \enabletrackers[fonts.missing=replace]
\handlemissingcharacters  \enabletrackers[fonts.missing={decompose,replace}]

the last one will inject decomposed characters into the list when font 
lacks the real thing. The replacements visualize similar to MKIV but 
adapt to the style.


Hans

(no upload yet)

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

2021-02-03 Thread Ivan Pešić
>That is way too ambitious, maybe more like TeX (but in order to suite
>tex/mp extreme precision we would have to support microtones which is
>not in midi so that immediate abandons the project). Of course, when
>Mojca had ever push for 流TeX I'd given it a try. Too late now.
>
>Hans

Hans, it is possible to set up any scale through MIDI ;-)
I use that to emulate historical quarter-comma meantone keyboard tuning for
some 16th century harpsichord music from Byrd, for example...

Ivan

чет, 4. феб 2021. 00:33  је написао/ла:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> Today's Topics:
>
>1. midi (Hans Hagen)
>2. Re: midi (Henning Hraban Ramm)
>3. Re: midi (Hans Hagen)
>4. Re: midi (Fabrice L)
>5. Re: midi (Jairo A. del Rio)
>
>
>
> -- Forwarded message --
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Cc:
> Bcc:
> Date: Wed, 3 Feb 2021 18:09:19 +0100
> Subject: [NTG-context] midi
> Hi,
>
> So, in context, we can do text, and we can do graphics, and also fonts,
> now do we also need an interface to midi?
>
> https://www.youtube.com/watch?v=dIKEiKTVwgE
>
> 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
> -----
>
>
>
>
> -- Forwarded message --
> From: Henning Hraban Ramm 
> To: mailing list for ConTeXt users 
> Cc:
> Bcc:
> Date: Wed, 3 Feb 2021 19:09:13 +0100
> Subject: Re: [NTG-context] midi
>
> > Am 03.02.2021 um 18:09 schrieb Hans Hagen :
> >
> > Hi,
> >
> > So, in context, we can do text, and we can do graphics, and also fonts,
> now do we also need an interface to midi?
>
> Are you thinking about Knuth’s ĩTeX?
> Otherwise we have LilyPond.
>
> > https://www.youtube.com/watch?v=dIKEiKTVwgE
>
> funny idea
>
> HR
>
>
>
> -- Forwarded message --
> From: Hans Hagen 
> To: mailing list for ConTeXt users , Henning Hraban
> Ramm 
> Cc:
> Bcc:
> Date: Wed, 3 Feb 2021 19:39:53 +0100
> Subject: Re: [NTG-context] midi
> On 2/3/2021 7:09 PM, Henning Hraban Ramm wrote:
> >
> >> Am 03.02.2021 um 18:09 schrieb Hans Hagen :
> >>
> >> Hi,
> >>
> >> So, in context, we can do text, and we can do graphics, and also fonts,
> now do we also need an interface to midi?
> >
> > Are you thinking about Knuth’s ĩTeX?
>
> That is way too ambitious, maybe more like TeX (but in order to suite
> tex/mp extreme precision we would have to support microtones which is
> not in midi so that immediate abandons the project). Of course, when
> Mojca had ever push for 流TeX I'd given it a try. Too late 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
> -
>
>
>
>
> -- Forwarded message --
> From: Fabrice L 
> To: mailing list for ConTeXt users 
> Cc:
> Bcc:
> Date: Wed, 3 Feb 2021 14:00:12 -0500
> Subject: Re: [NTG-context] midi
> Hi,
>
> Off topic (I hope this is ok), an animation made 100% with ConTeXt /
> MetaFun. Several elements in the 6 840 images are sync to the music (i.e
> images « react » to music - although imperfectly). Theses thousand of pages
> are used to make a 3m49s animation. If somebody if ever interested I can
> give more details of the process.
>
> https://youtu.be/3x03g-eHFC8
>
> Fabrice.
>
> Le 3 févr. 2021 à 12:09, Hans Hagen  a écrit :
>
> Hi,
>
> So, in context, we can do text, and we can do graphics, and also fonts,
> now do we also need an interface to midi?
>
> https://www.youtube.com/watch?v=dIKEiKTVwgE
>
> Hans
>
> -

[NTG-context] [Solved] Fwd: lmtx-20210118 | Corruption with rotated floats

2021-02-01 Thread Richard Mahoney
I've just updated the system to LMTX-20210201 and have found that this
has been resolved -- \placetable[here,90] is back again! Thank you
very
much for this.

Best, Richard



 Forwarded Message 
From: Richard Mahoney 
Reply-To: Richard Mahoney , mailing
list for ConTeXt users 
To: mailing list for ConTeXt users 
Subject: [NTG-context] lmtx-20210118 | Corruption with rotated floats
Date: Sat, 23 Jan 2021 20:59:19 +1300
Mailer: Evolution 3.36.5 
Organization: Indica et Buddhica
X-Spam-Score: 0.0

List members,

I've found that recent versions of LMTX seem to have broken table and
figure floats using rotation. Lmtx-20210118 with for example:

\placetable[here,90]

results in the trashing of all subsequent body text in the PDF.

This can be corrected with something such as:

\placetable[here] ...

\framed[orientation=90]

(although one looses the ability to rotate the title of the table).

The last really stable version of LMTX, which I'm finding that I'm 
constantly returning to as my default, is lmtx-20200920.

This error has been occurring for some time now, and unfortunately,
while I would like to keep up the recent releases of LMTX, it is
essential that I should be able to rotate tables and images. Does
anyone know of a fix.


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


__
_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
__
_
-- 
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
___
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] Hyphenation on digits

2021-01-29 Thread Richard Mahoney
Hans,

Thanks for this.

In addition to:

({\it Ṛgveda}~\hyphenateddigits{1.114.10})  -- break after either "."

Here are some other typical cases reflecting material I've  been
working with of late:

{\it cf}.~(ARE 1949--50)\KSP, -- break after "--"

Tamil (lns 1---517, plates 11a---31b) -- break after either "---"

{\it Ekottarāgama}, T125, 2: 549a10-15. -- break anywhere



Best, Richard




-Original Message-
From: Hans Hagen 
Reply-To: mailing list for ConTeXt users 
To: mailing list for ConTeXt users , Henning
Hraban Ramm 
Subject: Re: [NTG-context] Hyphenation on digits
Date: Fri, 29 Jan 2021 11:25:00 +0100
Mailer: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0)
Gecko/20100101
 Thunderbird/78.6.1
X-Spam-Score: 0.0

On 1/29/2021 10:30 AM, Henning Hraban Ramm wrote:
> > Am 28.01.2021 um 15:00 schrieb Hans Hagen :
> > 
> > I'll add support for:
> >\pi\ =
> > \hyphenateddigits[\unknown]{3.141592653589793238462643383279502884
> > 197169399375105}
> > A quick and dirty hack as we don't need some full blown mechanism
> > for such a rare case.
> 
> Thank you! Might come handy for other non-words, as Richard has
> shown.
> Wikified: https://wiki.contextgarden.net/Hyphenation
Depending on usage it might need to b eimproved (like: does one wants
to break before a period or comma but let's first collect use cases
Hans

---
--   Hans Hagen | PRAGMA
ADE   Ridderstraat 27 | 8061 GH Hasselt | The
Netherlandstel: 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
__
_
-- 
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
___
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] Fwd: Re: Hyphenation on digits

2021-01-28 Thread Richard Mahoney
Just to clarify. The new \hyphenateddigits means that witha couple of
tightly packed columns of footnotes it is nowpossible to break a
textual reference such as this acrosstwo lines.
({\it Ṛgveda}~\hyphenateddigits{1.114.10})
This is just great, and I can see it being used reasonablyoften.

Best, Richard



 Forwarded Message From: Richard Mahoney <
rmaho...@indica-et-buddhica.org>Reply-To: Richard Mahoney <
rmaho...@indica-et-buddhica.org>To: mailing list for ConTeXt users <
ntg-context@ntg.nl>Subject: Re: [NTG-context] Hyphenation on
digitsDate: Fri, 29 Jan 2021 04:52:34 +1300Mailer: Cyrus-JMAP/3.5.0-
alpha0-84-gfc141fe8b8-fm-20210125.001-gfc141fe8X-Spam-Score: 0.0
p.MsoNormal,p.MsoNoSpacing{margin:0}Thank you for this Hans, its going
to be very useful for
breaking bibliographic refs including manuscript or
inscription codes in two column mode.

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 , "Jairo A. del
Rio" 
Subject: Re: [NTG-context] Hyphenation on digits
Date: Friday, 29 January 2021 03:00

On 1/28/2021 12:50 PM, Jairo A. del Rio wrote:
> Hi, list.
> 
> I want to know if ConTeXt provides an option to automatically 
> hyphenate/break digits as if they were alphabetic characters.
Example, 
> in a narrow page I expect something like that (I've used (-) for an 
> optional hyphen):
> 
> *π = *3.141592653(-)
> 58979323846264(-)
> 33832795028841(-)
> 97169399375105(-)
> ...
> 
> I found myself unable to read a satisfactory solution in the
mailing 
> list archive nor other TeX related resources. Maybe LMTX has some
magic 
> for that?

I'll add support for:

\starttext

\hsize6cm

\pi\ = 
\hyphenateddigits[\unknown]{3.1415926535897932384626433832795028841971
69399375105} 
  \blank
\pi\ = 
\hyphenateddigits{3.14159265358979323846264338327950288419716939937510
5} 
\blank
x $\pi  = 
\hyphenateddigits[\unknown]{3.1415926535897932384626433832795028841971
69399375105}$ 
\blank
x $\pi  = 
\hyphenateddigits{3.14159265358979323846264338327950288419716939937510
5}$ 
  \blank

\stoptext

A quick and dirty hack as we don't need some full blown mechanism for 
such a rare case.

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



-- 
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
___
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] Hyphenation on digits

2021-01-28 Thread Richard Mahoney
Thank you for this Hans, its going to be very useful for
breaking bibliographic refs including manuscript or
inscription codes in two column mode.

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 
<https://indica-et-buddhica.org/>


- Original message -
From: Hans Hagen 
To: mailing list for ConTeXt users , "Jairo A. del Rio" 

Subject: Re: [NTG-context] Hyphenation on digits
Date: Friday, 29 January 2021 03:00

On 1/28/2021 12:50 PM, Jairo A. del Rio wrote:
> Hi, list.
> 
> I want to know if ConTeXt provides an option to automatically 
> hyphenate/break digits as if they were alphabetic characters. Example, 
> in a narrow page I expect something like that (I've used (-) for an 
> optional hyphen):
> 
> *π = *3.141592653(-)
> 58979323846264(-)
> 33832795028841(-)
> 97169399375105(-)
> ...
> 
> I found myself unable to read a satisfactory solution in the mailing 
> list archive nor other TeX related resources. Maybe LMTX has some magic 
> for that?

I'll add support for:

\starttext

\hsize6cm

\pi\ = 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}
 
  \blank
\pi\ = 
\hyphenateddigits{3.141592653589793238462643383279502884197169399375105} 
\blank
x $\pi  = 
\hyphenateddigits[\unknown]{3.141592653589793238462643383279502884197169399375105}$
 
\blank
x $\pi  = 
\hyphenateddigits{3.141592653589793238462643383279502884197169399375105}$ 
  \blank

\stoptext

A quick and dirty hack as we don't need some full blown mechanism for 
such a rare case.

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] printing the current date

2021-01-27 Thread Wolfgang Schuster

Hans Hagen schrieb am 27.01.2021 um 22:31:

On 1/27/2021 6:28 PM, Peter Münster wrote:

On Sun, Jan 10 2021, Peter Münster wrote:


\currentdate% same as \date, but I would expect the day of today...


Should I fill a bug-report on the tracker?
Perhaps also for the missing space after \date[]?


Reporting here is faster. Can (lazy me) Wolfgang confirm the issue?



1. Wrong date

The \date command has wrong/weird grouping which makes global changes 
for the day, month and year.


\permanent\tolerant\protected\def\date[#1]#*[#2]%
  {\dontleavehmode
   \ifparameter#1\or
 \begingroup
 \letdummyparameter\c!d\normalday
 \letdummyparameter\c!m\normalmonth
 \letdummyparameter\c!y\normalyear
 \getdummyparameters[#1]%
 \normalexpanded
   {\endgroup
\normalday  \number\directdummyparameter\c!d\relax
\normalmonth\number\directdummyparameter\c!m\relax
\normalyear \number\directdummyparameter\c!y\relax}%
   \fi
   ...}


2. Missing space

When not all optional arguments are used the space after the last given 
argument is gobbled. This was normal behavior for a long time until you 
changed the code in MkIV to keep them.



\tolerant\def\foo[#1]#*[#2]%
  {[#1][#2]}

\starttext

a \foo [1] b

a \foo [1] [2] b

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


Re: [NTG-context] printing the current date

2021-01-27 Thread Hans Hagen

On 1/27/2021 6:28 PM, Peter Münster wrote:

On Sun, Jan 10 2021, Peter Münster wrote:


\currentdate% same as \date, but I would expect the day of today...


Should I fill a bug-report on the tracker?
Perhaps also for the missing space after \date[]?

Reporting here is faster. Can (lazy me) Wolfgang confirm the issue?

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] printing the current date

2021-01-27 Thread Peter Münster
On Sun, Jan 10 2021, Peter Münster wrote:

> \currentdate% same as \date, but I would expect the day of today...

Should I fill a bug-report on the tracker?
Perhaps also for the missing space after \date[]?

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

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


Re: [NTG-context] Missing images in Wiki?

2021-01-22 Thread Andres Conrado Montoya Acosta
This is one example:

https://wiki.contextgarden.net/Command/externalfigure

However, now I checked the source, and the image files are there... and
they are being correctly linked, but the image attributes width and height
are set to zero. Maybe something wrong with lazy loading?

Example in html code:




El vie, 22 ene 2021 a las 6:00,  escribió:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>1. Missing images in Wiki? (Andres Conrado Montoya)
>2. Re: Missing images in Wiki? (Taco Hoekwater)
>3. new lmtx / fonts (Hans Hagen)
>4. \doassign variable - updates not picked up (Werner Hennrich)
>
>
> --
>
> Message: 1
> Date: Thu, 21 Jan 2021 14:30:59 -0500
> From: Andres Conrado Montoya 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] Missing images in Wiki?
> Message-ID:
>  z7sh-ng53xaxs6lr_...@mail.gmail.com>
> Content-Type: text/plain; charset="utf-8"
>
> It seems a lot of image examples from the wiki are gone now. Most articles
> lost many images. Is this on purpose?
>
> --
> Andrés Conrado Montoya
> -- next part --
> An HTML attachment was scrubbed...
> URL: <
> http://mailman.ntg.nl/pipermail/ntg-context/attachments/20210121/8ba7f748/attachment-0001.htm
> >
>
> --
>
> Message: 2
> Date: Fri, 22 Jan 2021 09:06:51 +0100
> From: Taco Hoekwater 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Missing images in Wiki?
> Message-ID: <712d4f56-8cbc-4bdf-adac-86facd1d2...@bittext.nl>
> Content-Type: text/plain;   charset=utf-8
>
>
>
> > On 21 Jan 2021, at 20:30, Andres Conrado Montoya <
> andresconr...@gmail.com> wrote:
> >
> > It seems a lot of image examples from the wiki are gone now. Most
> articles lost many images. Is this on purpose?
>
> Seems unlikely, but provide a few examples, please. I will check.
>
> —
> Taco Hoekwater  E: t...@bittext.nl
> genderfluid (all pronouns)
>
>
>
>
>
> --
>
> Message: 3
> Date: Fri, 22 Jan 2021 09:50:50 +0100
> From: Hans Hagen 
> To: mailing list for ConTeXt users 
> Subject: [NTG-context] new lmtx / fonts
> Message-ID: 
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi,
>
> I uploaded a new lmtx. I'm still playing a bit with metafonts so there
> are two new files
>
> context --global meta-imp-demo.mkxl
> context --global meta-imp-clock.mkxl
>
> Both show a bit. The question is, do we need / want more like this? What
> kind of interfaces are best? It's mostly about used defined symbols that
> are proper characters and efficiently used.
>
> Hans
>
> PS. The clock one has a hidden cut'n'paste feature that only works on
> acrobat which of course then makes it a kind of useless feature (plenty
> of them by now) because when, e.g. a  mupdf bases viewer doesn't support
> this after all these years it's could as well be kept out of the standard.
>
>
>
> -----
>Hans Hagen | PRAGMA ADE
>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
>
>
> --
>
> Message: 4
> Date: Fri, 22 Jan 2021 09:48:58 +0100
> From: Werner Hennrich 
> To: ntg-context@ntg.nl
> Subject: [NTG-context] \doassign variable - updates not picked up
> Message-ID: <88b0bb87-972e-0664-1e29-71e7b0538...@gmx.at>
> Content-Type: text/plain; charset="utf-8"; Format="flowed"
>
> Hello everyone,
>
> I'm using ConTeXt  (ver: 2020.09.20 23:02 LMTX) and have to have
> conditional page headers based on specific content criteria. To achive
> this I'd like to get some global variables in TeX, change their values
> several times throughout the document and have my macro for the header
> read them and act accordingly (like skip the header at all, change a
> color, etc).
>
>

[NTG-context] LMTX/MkIV difference in date handling

2021-01-14 Thread Henning Hraban Ramm
ConTeXt  ver: 2021.01.11 17:27 LMTX  fmt: 2021.1.11

The following works in MkIV, but not in LMTX:


\def\Jahr{\currentdate[year]}

\settaggedmetadata[
rights={© \Jahr{} Me}
]

\starttext
\strut
\stoptext


The error message is:

 1 \def\Jahr{\currentdate[year]}
 2 
 3 \settaggedmetadata[
 4 >>   rights={© \Jahr{} Me}
 5 ]
 6 
 7 \starttext
 8 \strut
 9 \stoptext
10 


You've closed more groups than you opened. Such booboos are generally harmless,
so keep going.




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

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


Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-11 Thread Ivan Pešić
One nice tool that I use for translation is
https://po4a.org/index.php.en

I used it to translate (and maintain) complete Vim documentation.

It could be adapted to work with Context (there is already a Latex module)

Regards,
Ivan

сре, 6. јан 2021. 12:56  је написао/ла:

> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> Today's Topics:
>
>1. Re: A not so short introduction to ConTeXt Mark IV
>   (Bruce Horrocks)
>2. Re: A not so short introduction to ConTeXt Mark IV
>   (Joaquín Ataz López)
>3. Re: A not so short introduction to ConTeXt Mark IV
>   (Augusto Stoffel)
>4. Re: Randomize order of blocks (Otared Kavian)
>5. Re: Randomize order of blocks (Otared Kavian)
>
>
>
> -- Forwarded message --
> From: Bruce Horrocks 
> To: "ntg-context@ntg.nl" 
> Cc:
> Bcc:
> Date: Wed, 6 Jan 2021 00:36:23 +
> Subject: Re: [NTG-context] A not so short introduction to ConTeXt Mark IV
>
>
> > On 5 Jan 2021, at 20:31, Garulfo  wrote:
> >
> > Hi all,
> >
> > I saw that Mojca created a directory
> > https://github.com/contextgarden/not-so-short-introduction-to-context
> >
> > Joaquín, if you agree, and if
> > - you provide me with the spanish + english source codes
> > - Mojca provide you and me with github write access (garulfogb account)
> >
> > i could :
> > 1/ push the current code
> > 2/ start to write a github wiki page (+ link on contextgarden) to
> describe :
> > - for you : how to update from your own computer (the official source)
> > - for any user : how to use git to get the source + link to this list
> for discussion.
> >
> > Does anybody has a guide about "how to set up a documentation
> translation project with git ?".
> > One requirement will probably to define how propositions are officially
> validated. Does it requires Joaquín to learn how to use git ? Can we just
> work by sending files (or patches) to Joaquín who will update with a single
> git command ?
>
> I think we need to be really clear about what we want to achieve here.
>
> 1) Is it just making the source plus the PDF available for download? If so
> then there are plenty of simpler ways to do that than using Git.
>
> 2) If it is to gather feedback on things like typos then we don't need
> Git. For example I spotted a missing ']' in the English translation so all
> I need is a way to submit a 'bug report' not access to the source.
>
> 3) So what is left? To provide a way for translators to be notified of
> changes to the original? To provide a collaboration mechanism for
> significant changes to the document?
>
> I don't see that Git adds much in the way of value unless Joaquín and the
> translators are already very familiar with it -- because the learning curve
> is very steep and recovering from mistakes (made to the repository itself
> rather than to the document content) can sometimes be extremely difficult.
>
> --
> Bruce Horrocks
> Hampshire, UK
>
>
>
>
>
> -- Forwarded message --
> From: "Joaquín Ataz López" 
> To: ntg-context@ntg.nl
> Cc:
> Bcc:
> Date: Wed, 6 Jan 2021 06:26:34 +0100
> Subject: Re: [NTG-context] A not so short introduction to ConTeXt Mark IV
> I don't really know anything about git, so I can't give my opinion about
> what is or isn't convenient to do. Certainly to report bugs in my text I
> don't think it takes anything more than an e-mail to send them to me.
> Having a repository can be useful to keep a version that is always up to
> date; but that, on the other hand, would force me to be continually
> modifying the text, which in principle is not my intention. I do not
> exclude that there will be other versions in the future, but for the
> moment this is not part of my plans. And if there were other versions,
> it would be more to add some chapter; mainly I think that the most
> important material that is missing is the one related to XML, Lua and
> Metapost, that is: the three additional languages in which a ConTeXt
> document can be written. But I am far from being able to write anything
> about any of those three aspects. Some member of the list has offered to
> help me with it, but 

Re: [NTG-context] printing the current date

2021-01-10 Thread Peter Münster
On Sun, Jan 10 2021, Fabrice L wrote:

> For exemple:
>
>  \date[][weekday,day,month,year] and \currenttime[h,{\,:\,},m] 

Sorry, I should have mentioned, that I use the latest version:
context-2021.01.08

-- 
   Peter
___
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] printing the current date

2021-01-10 Thread Fabrice L


> Le 10 janv. 2021 à 13:23, Peter Münster  a écrit :
> 
> Hi,
> 
> I would expect, that \currentdate prints the current date, but it does
> not:
> 
> --8<---cut here---start->8---
> \starttext
> \date[d=1]% first day of this month, ok
> 
> \date% again first day, last parameters are used, this is ok
> 
> \currentdate% same as \date, but I would expect the day of today...
> \stoptext
> --8<---cut here---end--->8---
> 
> How could I print the current date please?

For exemple:

 \date[][weekday,day,month,year] and \currenttime[h,{\,:\,},m] 

F.

> 
> TIA for any hints,
> -- 
>   Peter
> ___
> 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] printing the current date

2021-01-10 Thread Peter Münster
Hi,

I would expect, that \currentdate prints the current date, but it does
not:

--8<---cut here---start->8---
\starttext
\date[d=1]% first day of this month, ok

\date% again first day, last parameters are used, this is ok

\currentdate% same as \date, but I would expect the day of today...
\stoptext
--8<---cut here---end--->8---

How could I print the current date please?

TIA for any hints,
-- 
   Peter
___
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] space after \date[]

2021-01-08 Thread Peter Münster
Hi,

There is no more space after \date[] with the latest version.
Is this wanted, or a bug?

Example:

\starttext
\date[d=1] X % no space before "X"
\stoptext

Kind regards,
-- 
   Peter
___
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] tikz-module not up to date (synchronisation problem with contextgarden?)

2021-01-08 Thread Christian Prim
Hi

It's been a long time, since a solution for the 'module wrapping error' in
tikz has been proposed here in the list:
https://mailman.ntg.nl/pipermail/ntg-context/2017/090404.html

Since July a fix has been published:
https://github.com/pgf-tikz/pgf/commit/9b24e5cdb8246b1075d02c02c75ff8bcac642c16

A few days ago the release containing the fix was released. On
contextgarden the manual under modules/t-tikz/doc/generic/pgf shows the
current version 3.1.8b, but the source doesn't include the fix. I compared
the source on context-garden (rsync://
contextgarden.net/minimals/current/modules/) with the zip (
https://github.com/pgf-tikz/pgf/archive/3.1.8b.zip). In the zip file the
fix is included, so I'm puzzled...

Is there a synchronisation-problem?

Just wanted to mention it. It's not crucial.

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

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


Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-05 Thread Joaquín Ataz López
I don't really know anything about git, so I can't give my opinion about 
what is or isn't convenient to do. Certainly to report bugs in my text I 
don't think it takes anything more than an e-mail to send them to me. 
Having a repository can be useful to keep a version that is always up to 
date; but that, on the other hand, would force me to be continually 
modifying the text, which in principle is not my intention. I do not 
exclude that there will be other versions in the future, but for the 
moment this is not part of my plans. And if there were other versions, 
it would be more to add some chapter; mainly I think that the most 
important material that is missing is the one related to XML, Lua and 
Metapost, that is: the three additional languages in which a ConTeXt 
document can be written. But I am far from being able to write anything 
about any of those three aspects. Some member of the list has offered to 
help me with it, but not immediately (we all have a lot of work).


The original idea, I think, was to provide a platform that would allow 
different collaborators to translate the text into different languages. 
Whether or not git is the best solution for that purpose, I really don't 
know.


What I would appreciate is that guide on "how to set up a documentation 
translation project with git? that Garulfo proposes.


El 5/1/21 a las 21:31, Garulfo escribió:

Hi all,

I saw that Mojca created a directory
https://github.com/contextgarden/not-so-short-introduction-to-context

Joaquín, if you agree, and if
- you provide me with the spanish + english source codes
- Mojca provide you and me with github write access (garulfogb account)

i could :
1/ push the current code
2/ start to write a github wiki page (+ link on contextgarden) to 
describe :

- for you : how to update from your own computer (the official source)
- for any user : how to use git to get the source + link to this list 
for discussion.


Does anybody has a guide about "how to set up a documentation 
translation project with git ?".
One requirement will probably to define how propositions are 
officially validated. Does it requires Joaquín to learn how to use git 
? Can we just work by sending files (or patches) to Joaquín who will 
update with a single git command ?








Le 03/01/2021 à 19:08, Hans Hagen a écrit :

On 1/3/2021 5:42 PM, Mojca Miklavec wrote:

On Sun, 3 Jan 2021 at 15:37, Garulfo wrote:


In oct 2020, a message proposed to create a GitHub/GitLab 
repository (or
even organization) for this so that anybody can help translating it 
into

other languages:
https://mailman.ntg.nl/pipermail/ntg-context/2020/099789.html


If you want to see it under
 https://github.com/contextgarden/
just propose the repository name and list the usernames for those who
should initially have access.
also because that would fit well into the plans for a bunch of 
context related repositories


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
___ 



--
Joaquín Ataz López
Derecho Civil
Universidad de Murcia

___
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] Hyphenation pattern for Esperanto

2020-12-23 Thread Mojca Miklavec
Dear Alain,

On Tue, 22 Dec 2020 at 21:02, Alain Delmotte wrote:
>
> Hi Hans and Mojca,
>
> I join a file containing the list of patterns for Esperanto

This one shouldn't be needed unless you believe that there is an issue
with the existing patterns.

> and the definition/translation of the general words for titles, glossaries,...
>
> Now regarding the labels, how could I provide the translations? Should I add 
> a line with translation for each term (or the most important, I have seen 
> that the French labels are not all translated)?

Ideally take the latest version of lang-txt.lua, add a line for
esperanto for each translation and send it to Hans.

We ideally need them in a similar for as for other languages.

Feel free to provide additions for French as well. (I guess in that
case Hans will send the changes for proofreading to at least another
member.)

I'm not exactly up-to-date about what other settings might be needed
in addition, but translations inside lang-txt.lua sound like a good
starting point.

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

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


Re: [NTG-context] Hyphenation pattern for Esperanto

2020-12-22 Thread Alain Delmotte

  
  
Hi Hans and Mojca,
I join a file containing the list of
patterns for Esperanto and the definition/translation of the
general words for titles, glossaries,...
In fact there is a file for Esperanto
in:
  
C:\Users\Alain\context-lmlx\tex\texmf-context\tex\context\patterns\mkiv\lang-eo.lua
  
So it has been in mkiv.
Now regarding the labels, how could I
provide the translations? Should I add a line with translation
for each term (or the most important, I have seen that the
French labels are not all translated)?
Thanks, regards,
Alain
  
Le 14/10/2020 à 18:40, Hans Hagen a
  écrit :

On
  10/14/2020 5:36 PM, Alain Delmotte wrote: 
  Dear Mojca, 

I did just repond to the message without remarking that I was
only answering to you; I'll take care inthe future. 

I'll check if the two list are the same, after expanding the
condensed one. And after I'll go to Hans. 
  
  
  As Mojca pointed out, we need to setup a language: 
  
  % Artificial Languages: Esperanto 
  
  \installlanguage 
    [\s!esperanto] 
    [%\c!spacing=\v!packed, 
     %\c!leftsentence=\emdash, 
     %\c!rightsentence=\emdash, 
     %\c!leftsubsentence=\emdash, 
     %\c!rightsubsentence=\emdash, 
     %\c!leftquote=\lowerleftdoubleninequote, 
     %\c!rightquote=\upperrightdoublesixquote, 
     %\c!leftquotation=\lowerleftdoubleninequote, 
     %\c!rightquotation=\upperrightdoublesixquote, 
     %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.}, 
     \s!patterns=eo, 
     \s!lefthyphenmin=2, 
     \s!righthyphenmin=2] 
  
  apart from labels as in lang-txt.lua because otherwise it's not
  that useful to have it I guess. 
  
  Hans 
  
  Alain 

Le 14/10/2020 à 13:16, Mojca Miklavec a écrit : 
Dear Alain, 
  
  Yes, I'm aware of the differences, but ConTeXt is not ready to
  read 
  patterns in the cryptic format. 
  (If the two sets of patterns are not equivalent, there's
  something 
  that needs fixing.) 
  
  Please be proactive on the list (chatting offline with me
  won't help 
  that much) and just try to convince Hans to add those
  patterns, or ask 
  him what you need to do in order to end up with patterns
  supported in 
  ConTeXt out of the box. 
  
  Mojca 
  
  On Mon, 12 Oct 2020 at 21:50, Alain Delmotte 
   
  wrote: 
  Hi Mojca, 

The pattern in TeXlive as I described (from hyph-eo.tex)
makes the list a littlebit  more compact: instead of 

1a2do, 1a2doj, 1a2dojn, 1a2don one write \nom{1a2d},
otherwise it looks the same (I didn't check the details). 

So I'll wait for the demand of Hans!! 

Alain 

Le 12/10/2020 à 16:38, Mojca Miklavec a écrit : 

Dear Alain, 

On Mon, 12 Oct 2020 at 13:44, Alain Delmotte wrote: 

I'd like to have hyphenation for Esperanto; it doesn't exist
in ConTeXt but exist in TeX/LaTeX. 

Would it be difficult to create the Esperanto file for
ConTeXt? 

The plain text version is already in the correct form: 

https://github.com/hyphenation/tex-hyphen/blob/master/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-eo.pat.txt
so it should be just a matter of Hans including the patterns
in the 
distribution. 

Usually he asks for translations of basic strings (like
"Chapter" 
etc.) when adding support for a new language ;) 

Mojca 
___

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

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

webpage  :http://www.pragma-ade.nl 
/http://context.aanhet.net

archive  :https://bitbucket.org/phg/context-mirror/commits/

wiki :http://contextgarden.net

___

  


___

If your question is of interest to others as well, please add an
entry t

Re: [NTG-context] Polar pgfplots seems to be broken (Aditya Mahajan)

2020-12-21 Thread Gavin

> Date: Mon, 21 Dec 2020 00:51:06 -0500 (EST)
> From: Aditya Mahajan 
> 
> On Sun, 20 Dec 2020, Gavin wrote:
> 
>> Hello,
>> 
>> I’m drawing solar system diagrams using the pgfplots module, but the polar 
>> library seem to be broken. It looks like it is calling something with a 
>> \begin{axis}... command. Here is the error message for a short document, 
>> included below.
>> 
>>> tex error   > tex error on line 18 in file 
>>> /Users/Gavin/Documents/Computer/ConTeXt/Polar Plot 
>>> Experiments/Untitled.tex: ! Undefined control sequence
>>> 
>>> \pgfplots@environment@polaraxis@ [#1]->\begin 
>>> {axis}[#1,data cs=polar,axis 
>>> type=polar]
>>> l.18\startpolaraxis[]
>>> 
>>> 16 \startsection[title={Polar Plot}]
>>> 17  \starttikzpicture   % tikz code
>>> 18 >>   \startpolaraxis[]
>>> 19  
>>> \addplot+[mark=none,domain=0:720,samples=600]{sin(4*x)};
>>> 20  \stoppolaraxis
>>> 21  \stoptikzpicture
>>> 22 \stopsection
>>> 
>>> mtx-context | fatal error: return code: 256
>> 
>> I’d love a fix or an idea for a work around. 
> 
> This is a bug in pgfplots macro pgfplotsdefineaxistype, which uses an 
> explicit \begin{axis} ... \end{axis} instead of the more portable \axis ... 
> \endaxis. Attached is a quick fix, but it has been quite a while since I 
> looked at pgfplots code, so it may be better to post a bug-report on pgfplots 
> mailing list for a proper fix.
> 
> Aditya
> 
> URL: 
> <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20201221/d7278aca/attachment.tex>

Aditya,

Thanks for the quick fix! I will post a bug report on the pgfplots mailing 
list, including your helpful diagnosis of the problem.

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] upload / metafun

2020-12-16 Thread Hans Hagen

On 12/15/2020 9:18 PM, Pablo Rodriguez wrote:

On 12/15/20 8:24 PM, Otared Kavian wrote:

[...]
However after running install. sh on MacOS, I still get current
version: 2020.12.10 22:26, even after removing the .tma files.> So I guess I 
have to wait a little bit for the new version to be
upoaded.

Hans,

I’m afraid I’m having the same issue as Otared.

   $ curl I http://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip
 Last-Modified: Thu, 10 Dec 2020 21:30:45 GMT

   $ curl -I http://lmtx.pragma-ade.com/install-lmtx/texmf.zip
 Last-Modified: Thu, 10 Dec 2020 21:30:47 GMT

This is from some minute ago (Date: Tue, 15 Dec 2020 20:15:33 GMT).

I guess this might be the reason for an oudated brand new install.

I think there might be an issue here.

I'll check it when I've finished what I'm doing now (some more mp stuff).

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] upload / metafun

2020-12-15 Thread Pablo Rodriguez
On 12/15/20 8:24 PM, Otared Kavian wrote:
> [...]
> However after running install. sh on MacOS, I still get current
> version: 2020.12.10 22:26, even after removing the .tma files.> So I guess I 
> have to wait a little bit for the new version to be
> upoaded.
Hans,

I’m afraid I’m having the same issue as Otared.

  $ curl I http://lmtx.pragma-ade.com/install-lmtx/texmf-context.zip
Last-Modified: Thu, 10 Dec 2020 21:30:45 GMT

  $ curl -I http://lmtx.pragma-ade.com/install-lmtx/texmf.zip
Last-Modified: Thu, 10 Dec 2020 21:30:47 GMT

This is from some minute ago (Date: Tue, 15 Dec 2020 20:15:33 GMT).

I guess this might be the reason for an oudated brand new install.

I think there might be an issue here.

Many thanks for your help,

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] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-03 Thread Stephen Gaito
Hans,

Again many thanks for your thoughts! (See below)

On Thu, 3 Dec 2020 13:15:28 +0100
Hans Hagen  wrote:

> On 12/3/2020 12:15 PM, Taco Hoekwater wrote:
> > 
> >   
> >> On 3 Dec 2020, at 11:35, Stephen Gaito 
> >> wrote:
> >>
> >> Hans,
> >>
> >> As I said my desktop is elderly... it has a 2.8GHz processor, 16Gb
> >> of DDR3 memory, and a couple of old SATA1 hard disks, and only 3Mb
> >> of CPU cache...
> >>
> >> ... all well past its use by date for single threaded ConTeXt. ;-(
> >>
> >> So one way to get better performance for ConTeXt is to invest in a
> >> new ultra fast processor. Which will cost a lot, and use a lot of
> >> power which has to be cooled, which uses even more power  
> > 
> > Startup time can be improved quite a bit with an SSD. Even a cheap
> > SATA SSD is already much faster than a traditional harddisk.
> > Doesn’t help with longer documents, but it could be a fairly cheap
> > upgrade.  
> 
> also, an empty context run
> 
> \starttext
> \stoptext
> 
> only takes 0.490 seconds on my machine, which means:
> 
> - starting mtxrun, which includes quite a bit of lua plus loading the
> file database etc
> - loading mtx-context that itself does some checking
> - and then launches the engine (it could be intgerated but then we
> run into issues when we have fatal errors as well as initializations
> so in the end it doesn't pay off at all)
> - the tex runs means: loading the format and initializing hundreds of 
> lua scripts including all kind of unicode related stuff
> 
> so, the .5 sec is quite acceptable to me and i knwo that when i would 
> have amore recent machine it would go down to half of that
> 

I will agree that this is acceptable for the complexity ConTeXt
represents... ConTeXt has a complex task... it *will* have to take some
time... that is OK.

> now, making a tex run persistent is not really a solution: one has to 
> reset all kinds of counters, dimensions etc wipe node and token
> space, etc an done would also have to reset the pdf output which
> includes all kind of housekeeping states ... adding all kind of
> resetters and hooks for that (plus all the garbage collection needed)
> will never pay back and a 'wipe all and reload' is way more efficient
> then

I also agree, keeping a pool of "warm" running ConTeXts, as you are
essentially describing, would be nice... but I suspect the complexity
does preclude this approach. Keep it Simple... Simply killing and
restarting ConTeXt as a new process is OK.

> 
> of course, when i ever run into a secenario where I have to creeate
> tens of thousands of one/few page docs very fast i might add some
> 'reset the pdf state' because that is kind of doable with some extra
> code but to be honest, no one ever came up with a project that had
> any real demands on the engine that could not be met (the fact that
> tex is a good solution for rendering doesn't mean that there is
> demand for it ... it is seldom on the radar of those who deal with
> that, who then often prefer some pdf library, also because quality
> doesn't really matter)
> 
> these kind of performance things are demand driven (read: i need a 
> pretty good reason to spend time on it)

Understood.

> 
> > I can’t comment on how to speed up the rest of what you are doing,
> > but generally multi-threading TeX typesetting jobs is so hard as to
> > be impossible in practise. About the only step that can be split off
> > is the generation of the PDF, and even there the possible gain is
> > quite small (as you noticed already).  
> 
> indeed, see above
> 
> > Typesetting is a compilation job, so the two main ways to speed
> > things along are
> > 
> > 1) split the source into independent tasks, like in a code compiler
> > that splits code over separate .c / .cpp / .m / .p etc. files,
> > and then combine the results (using e.g. mutool)
> > 
> > 2) precompile recurring stuff (in TeX, that would mean embedding
> > separately generated pdfs or images)  
> right
> 
> (and we are old enough and have been around long enough to have some
> gut feeling about that)
> 

I have a deep respect for both your vision, and experience in this
matter.

However, way back when you started ConTeXt, very few people would
have said it was possible/worth embedding Lua in TeX

Given that Lua *is* now embedded inside ConTeXt, I am simply making a
*crude* attempt to see if I can parallelize the overall ConTeXt
production cycle (with out changing ConTeXt-LMTX itself).

"Fools rush in..."

> Hans
> 
> ps. When it comes to p

Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-03 Thread Stephen Gaito
Taco,

Thanks for your comments... see below...

On Thu, 3 Dec 2020 12:15:46 +0100
Taco Hoekwater  wrote:

> > On 3 Dec 2020, at 11:35, Stephen Gaito 
> > wrote:
> > 
> > Hans,
> > 
> > As I said my desktop is elderly... it has a 2.8GHz processor, 16Gb
> > of DDR3 memory, and a couple of old SATA1 hard disks, and only 3Mb
> > of CPU cache...
> > 
> > ... all well past its use by date for single threaded ConTeXt. ;-(
> > 
> > So one way to get better performance for ConTeXt is to invest in a
> > new ultra fast processor. Which will cost a lot, and use a lot of
> > power which has to be cooled, which uses even more power  
> 
> Startup time can be improved quite a bit with an SSD. Even a cheap
> SATA SSD is already much faster than a traditional harddisk. Doesn’t
> help with longer documents, but it could be a fairly cheap upgrade.
> 
> I can’t comment on how to speed up the rest of what you are doing,
> but generally multi-threading TeX typesetting jobs is so hard as to
> be impossible in practise. About the only step that can be split off
> is the generation of the PDF, and even there the possible gain is 
> quite small (as you noticed already).
> 
> Typesetting is a compilation job, so the two main ways to speed things
> along are
> 
> 1) split the source into independent tasks, like in a code compiler
>that splits code over separate .c / .cpp / .m / .p etc. files,
>and then combine the results (using e.g. mutool)
> 

This is basically my approach... *However*, while the dependency graph
for a standard compilation has been engineered to be an acyclic tree,
for a ConTeXt "compilation", the "*.tex" file has a cyclic dependency
on the (generated) "*.tuc" file.

Basically my parallelization "build manager" has to unroll or other
wise reimplement the mtx-context.lua 

```
  for currentrun=1,maxnofruns do
...
  end
```

loop until the `multipass_changed(oldhash,newhash)` returns `false`.

Followed by a "pdf-linking" stage (possibly implemented, as you suggest,
by `mutool`) 

Not great but it might work... (and I am willing to give it a
try)...

> 2) precompile recurring stuff (in TeX, that would mean embedding
>separately generated pdfs or images)
> 
> Best wishes,
> Taco
> 
> 
> 
> 
> 
> ___
> If your question is of interest to others as well, please add an
> entry to the Wiki!
> 
> maillist : ntg-context@ntg.nl /
> http://www.ntg.nl/mailman/listinfo/ntg-context webpage  :
> http://www.pragma-ade.nl / http://context.aanhet.net archive  :
> https://bitbucket.org/phg/context-mirror/commits/ wiki :
> http://contextgarden.net
> ___

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

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


Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-03 Thread Hans Hagen

On 12/3/2020 12:15 PM, Taco Hoekwater wrote:




On 3 Dec 2020, at 11:35, Stephen Gaito  wrote:

Hans,

As I said my desktop is elderly... it has a 2.8GHz processor, 16Gb of
DDR3 memory, and a couple of old SATA1 hard disks, and only 3Mb of CPU
cache...

... all well past its use by date for single threaded ConTeXt. ;-(

So one way to get better performance for ConTeXt is to invest in a new
ultra fast processor. Which will cost a lot, and use a lot of power
which has to be cooled, which uses even more power


Startup time can be improved quite a bit with an SSD. Even a cheap SATA
SSD is already much faster than a traditional harddisk. Doesn’t help
with longer documents, but it could be a fairly cheap upgrade.


also, an empty context run

\starttext
\stoptext

only takes 0.490 seconds on my machine, which means:

- starting mtxrun, which includes quite a bit of lua plus loading the
file database etc
- loading mtx-context that itself does some checking
- and then launches the engine (it could be intgerated but then we run 
into issues when we have fatal errors as well as initializations so in 
the end it doesn't pay off at all)
- the tex runs means: loading the format and initializing hundreds of 
lua scripts including all kind of unicode related stuff


so, the .5 sec is quite acceptable to me and i knwo that when i would 
have amore recent machine it would go down to half of that


now, making a tex run persistent is not really a solution: one has to 
reset all kinds of counters, dimensions etc wipe node and token space, 
etc an done would also have to reset the pdf output which includes all 
kind of housekeeping states ... adding all kind of resetters and hooks 
for that (plus all the garbage collection needed) will never pay back 
and a 'wipe all and reload' is way more efficient then


of course, when i ever run into a secenario where I have to creeate tens 
of thousands of one/few page docs very fast i might add some 'reset the 
pdf state' because that is kind of doable with some extra code but to be 
honest, no one ever came up with a project that had any real demands on 
the engine that could not be met (the fact that tex is a good solution 
for rendering doesn't mean that there is demand for it ... it is seldom 
on the radar of those who deal with that, who then often prefer some pdf 
library, also because quality doesn't really matter)


these kind of performance things are demand driven (read: i need a 
pretty good reason to spend time on it)



I can’t comment on how to speed up the rest of what you are doing,
but generally multi-threading TeX typesetting jobs is so hard as to
be impossible in practise. About the only step that can be split off
is the generation of the PDF, and even there the possible gain is
quite small (as you noticed already).


indeed, see above


Typesetting is a compilation job, so the two main ways to speed things
along are

1) split the source into independent tasks, like in a code compiler
that splits code over separate .c / .cpp / .m / .p etc. files,
and then combine the results (using e.g. mutool)

2) precompile recurring stuff (in TeX, that would mean embedding
separately generated pdfs or images)

right

(and we are old enough and have been around long enough to have some gut 
feeling about that)


Hans

ps. When it comes to performance of tex, lua, context etc it is no 
problem, when googling a bit, to run into 'nonsense' arguments of why 
something is slow ... so don't take it for granted, just ask here on 
this list


-
  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] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-03 Thread Taco Hoekwater


> On 3 Dec 2020, at 11:35, Stephen Gaito  wrote:
> 
> Hans,
> 
> As I said my desktop is elderly... it has a 2.8GHz processor, 16Gb of
> DDR3 memory, and a couple of old SATA1 hard disks, and only 3Mb of CPU
> cache...
> 
> ... all well past its use by date for single threaded ConTeXt. ;-(
> 
> So one way to get better performance for ConTeXt is to invest in a new
> ultra fast processor. Which will cost a lot, and use a lot of power
> which has to be cooled, which uses even more power

Startup time can be improved quite a bit with an SSD. Even a cheap SATA
SSD is already much faster than a traditional harddisk. Doesn’t help
with longer documents, but it could be a fairly cheap upgrade.

I can’t comment on how to speed up the rest of what you are doing,
but generally multi-threading TeX typesetting jobs is so hard as to
be impossible in practise. About the only step that can be split off
is the generation of the PDF, and even there the possible gain is 
quite small (as you noticed already).

Typesetting is a compilation job, so the two main ways to speed things
along are

1) split the source into independent tasks, like in a code compiler
   that splits code over separate .c / .cpp / .m / .p etc. files,
   and then combine the results (using e.g. mutool)

2) precompile recurring stuff (in TeX, that would mean embedding
   separately generated pdfs or images)

Best wishes,
Taco





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

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


Re: [NTG-context] Using ConTeXt-LMTX for modern Mathematically-Literate-Programming 1/2

2020-12-03 Thread Stephen Gaito
Hans,

As I said my desktop is elderly... it has a 2.8GHz processor, 16Gb of
DDR3 memory, and a couple of old SATA1 hard disks, and only 3Mb of CPU
cache...

... all well past its use by date for single threaded ConTeXt. ;-(

So one way to get better performance for ConTeXt is to invest in a new
ultra fast processor. Which will cost a lot, and use a lot of power
which has to be cooled, which uses even more power

Alternatively, for the same costs (or less), I can buy cheaper slower
processors but have lots of threads (a cluster of Raspberry Pi 4 8Gb
cards)...

Alas this requires finding some way to parallelize ConTeXt

(Fools rush in where Angels fear to tread ;-(

Regards,

Stephen Gaito 

On Wed, 2 Dec 2020 14:04:18 +0100
Hans Hagen  wrote:

> On 12/2/2020 10:40 AM, Stephen Gaito wrote:
> 
> > Many thanks for your swift and helpful comments.
> > 
> > After some *very crude* tests using the `luametatex` and
> > `luametafun` documents, I find that while I *can* stop effective
> > processing at various points in the LuaMetaTeX pipeline, the time
> > difference overall is not really significant enough to bother with
> > this approach.
> > 
> > The principle problem is, as you suggested below, "stopping" the
> > pipeline at the PDF stage (using for example the
> > `pre_output_filter`) corrupted the `*.tuc` data which is for my
> > purposes, critical.
> > 
> > Your comment was:
> >   
> >> but keep in mind that multipass data is flushed as part of the
> >> shipout (because it is often location and order bound)  
> > 
> > For the record, using the `append_to_vlist_filter` callback, I did
> > manage to drastically reduce the "pages" (which were all blank, not
> > surprisingly).
> > 
> > However, on my elderly desktop from 2008, both callbacks
> > essentially cut only 6-8 seconds out of 18 seconds, for the
> > `luametatex` document, and 190 seconds, for the `luametafun`
> > document.  
> 
> hm, on my 2013 laptop the luametatex manual needs 10 sec (i have all
> the fonts, so that includes a bunch) and a metafun manual should do
> about 20
> 
> a test on am M1 mini needs half those times as reported yesterday
> 
> i bet that on a modern desktop the luatex manual will do < 5 sec
> 
> > In the case of the `luametafun` document, it is the MetaFun/MetaPost
> > processing which, of course, is taking a long time (as it should,
> > the graphics computations represent important but complex
> > computations).  
> 
> One run or many due to xref? Maybe your machine has no significant
> cpu cache? Do you run from disk or ssd? How much memory?
> 
> > My ultimate goal is to parallelize the production of large, heavily
> > cross-referenced, ConTeXt documents... more on this in a future
> > email...  
> 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] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
Hi Jean-Philippe,

A few weeks ago I saw briefly the discussion about Hans' message regarding 
\noalign and the the new definitions of \HR and \VR that you are sending. 
Indeed your solution works great !
Just for the case other people may have the same question about writing block 
matrix, I copy below the whole example which can be found later in the mail 
archive.
(For mkiv, I don't know how to do the same thing…).

%%% begin block-matrix.tex
% in LMTX defining \HR and \VR to create block matrices:
\pushoverloadmode
\noaligned\tolerant\protected\def\HR[#1]{\noalign{\hrule #1}}
\popoverloadmode

\def\VR{\dosingleempty\doVR}
\def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC}

\definemathmatrix[mymatrix]
[left={\left(\,},
right={\, \right)}]

\starttext  

\startformula
\startmymatrix
\NC A \VR  B \NR
\HR
\NC C \VR  D \NR
\stopmymatrix
\stopformula

\stoptext
%%% end block-matrix.tex

Best regards: Otared K.

> On 26 Nov 2020, at 19:46, Jean-Philippe Rey 
>  wrote:
> 
> Hi Otared,
> 
> Thank you very much.
> 
> I used your example to write the following macros. They are far from perfect 
> but suit my needs.  A few days ago, Hans warned not to use \noalign in LMTX, 
> so I used the trick he gave to the list even if I don't really understand it.
> 
> === LMTX version 
> %D \macros{HR, VR}
> %D \type{\HR} draws a horizontal rule between two rows of a matrix
> %D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between 
> two columns of a matrix
> %D each macro takes an optional parameter giving the rule dimensions
> %D Example
> %D  \type{\startmatrix \NC A \VR[depth 2mm] B \NR \HR[height 0.6pt] \NC C \VR 
> D \NR \stopmatrix}
>  
> \pushoverloadmode
> \noaligned\tolerant\protected\def\HR[#1]{\noalign{\hrule #1}}
> \popoverloadmode
> 
> \def\VR{\dosingleempty\doVR}
> \def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC}
> ===
> 
> === MkIV version 
> %D \macros{HR, VR}
> %D \type{\HR} draws a horizontal rule between two rows of a matrix
> %D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between 
> two columns of a matrix
> %D it takes an optional parameter giving the rule dimensions
> %D Example
> %D  \type{\startmatrix \NC A \VR[depth 2mm] B \NR \HR \NC C \VR D \NR 
> \stopmatrix}
>  
> \def\HR{\noalign{\hrule}}
> 
> \def\VR{\dosingleempty\doVR}
> \def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC}
> ===
> 
> For the MkIV version I haven't been able to add an optional parameter to \HR 
> the code
> 
> \def\HR{\dosingleempty\doHR}
> \def\doHR[#1]{\noalign{\hrule #1}}
> 
> complains about "Misplaced \noalign"
> 
> Best regards,
> 
> 
> 
>> Le 26 nov. 2020 à 13:40, Otared Kavian  a écrit :
>> 
>> Hi Jean-Philippe,
>> 
>> The following is better than the one I sent earlier:
>> 
>> \definemathmatrix[mymatrix]
>>  [left={\left(\,},
>>  right={\ \right)}]
>>  
>> \starttext
>> \startformula
>>  \startmymatrix
>>  \NC A \NC\hskip-.5em \vrule  \NC\hskip-.5em B \NR
>>  \noalign{\hrule}
>>  \NC C \NC \hskip-.5em\vrule \NC \hskip-.5em D \NR
>>  \stopmymatrix
>> \stopformula
>> \stoptext
>> 
>> Best regards: Otared K.
>> 
>>> On 26 Nov 2020, at 10:19, Jean-Philippe Rey 
>>>  wrote:
>>> 
>>> Dear list,
>>> 
>>> I would like to draw matrices with internal lines as can be done with LaTeX 
>>> (cf pdf output) :
>>> 
>>> 
>>> \documentclass{article}
>>> \begin{document}
>>> $M =\left( \begin{array}{c|c}
>>> A & B \\
>>> \hline
>>> C & D \\
>>> \end{array} \right)$
>>> \end{document}
>>> 
>>> 
>>> I didn't find out how to use mathmatrix to achieve this. My best result to 
>>> date is 
>>> 
>>> 
>>> \starttext
>>> $M = \left( \bTABLE[frame=off]
>>> \bTR
>>> \bTD[rightframe=on, bottomframe=on] $A$ \eTD
>>> \bTD[bottomframe=on] $B$ \eTD
>>> \eTR\bTR
>>> \bTD[rightframe=on] $C$ \eTD
>>> \bTD $D$ \eTD
>>> \eTR
>>> \eTABLE \right)$
>>> \stoptext
>>> 
>>> 
>>> The code is rather ugly, and I get a spurious space at the bottom of the 

Re: [NTG-context] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
Hi Otared,

Thank you very much.

I used your example to write the following macros. They are far from perfect 
but suit my needs.  A few days ago, Hans warned not to use \noalign in LMTX, so 
I used the trick he gave to the list even if I don't really understand it.

=== LMTX version 
%D \macros{HR, VR}
%D \type{\HR} draws a horizontal rule between two rows of a matrix
%D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between 
two columns of a matrix
%D each macro takes an optional parameter giving the rule dimensions
%D Example
%D  \type{\startmatrix \NC A \VR[depth 2mm] B \NR \HR[height 0.6pt] \NC C \VR D 
\NR \stopmatrix}
 
\pushoverloadmode
\noaligned\tolerant\protected\def\HR[#1]{\noalign{\hrule #1}}
\popoverloadmode

\def\VR{\dosingleempty\doVR}
\def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC}
===

=== MkIV version 
%D \macros{HR, VR}
%D \type{\HR} draws a horizontal rule between two rows of a matrix
%D \type{\VR} is used in place of \type{\NC} to draw a vertical rule between 
two columns of a matrix
%D it takes an optional parameter giving the rule dimensions
%D Example
%D  \type{\startmatrix \NC A \VR[depth 2mm] B \NR \HR \NC C \VR D \NR 
\stopmatrix}
 
\def\HR{\noalign{\hrule}}

\def\VR{\dosingleempty\doVR}
\def\doVR[#1]{\NC \hskip-0.5em \vrule #1 \hskip-0.5em \NC}
===

For the MkIV version I haven't been able to add an optional parameter to \HR 
the code

\def\HR{\dosingleempty\doHR}
\def\doHR[#1]{\noalign{\hrule #1}}

complains about "Misplaced \noalign"

Best regards,



> Le 26 nov. 2020 à 13:40, Otared Kavian  a écrit :
> 
> Hi Jean-Philippe,
> 
> The following is better than the one I sent earlier:
> 
> \definemathmatrix[mymatrix]
>   [left={\left(\,},
>   right={\ \right)}]
>   
> \starttext
> \startformula
>   \startmymatrix
>   \NC A \NC\hskip-.5em \vrule  \NC\hskip-.5em B \NR
>   \noalign{\hrule}
>   \NC C \NC \hskip-.5em\vrule \NC \hskip-.5em D \NR
>   \stopmymatrix
> \stopformula
> \stoptext
> 
> Best regards: Otared K.
> 
>> On 26 Nov 2020, at 10:19, Jean-Philippe Rey 
>>  wrote:
>> 
>> Dear list,
>> 
>> I would like to draw matrices with internal lines as can be done with LaTeX 
>> (cf pdf output) :
>> 
>> 
>> \documentclass{article}
>> \begin{document}
>> $M =\left( \begin{array}{c|c}
>> A & B \\
>> \hline
>> C & D \\
>> \end{array} \right)$
>> \end{document}
>> 
>> 
>> I didn't find out how to use mathmatrix to achieve this. My best result to 
>> date is 
>> 
>> 
>> \starttext
>> $M = \left( \bTABLE[frame=off]
>> \bTR
>>  \bTD[rightframe=on, bottomframe=on] $A$ \eTD
>>  \bTD[bottomframe=on] $B$ \eTD
>> \eTR\bTR
>>  \bTD[rightframe=on] $C$ \eTD
>>  \bTD $D$ \eTD
>> \eTR
>> \eTABLE \right)$
>> \stoptext
>> 
>> 
>> The code is rather ugly, and I get a spurious space at the bottom of the 
>> table.
>> 
>> Any hints?
>> 
>> Thank you,


-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr 
<mailto:jean-philippe@centralesupelec.fr>
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51

___
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] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
Hi Jean-Philippe,

The following is better than the one I sent earlier:

\definemathmatrix[mymatrix]
[left={\left(\,},
right={\ \right)}]

\starttext
\startformula
\startmymatrix
\NC A \NC\hskip-.5em \vrule  \NC\hskip-.5em B \NR
\noalign{\hrule}
\NC C \NC \hskip-.5em\vrule \NC \hskip-.5em D \NR
\stopmymatrix
\stopformula
\stoptext

Best regards: Otared K.

> On 26 Nov 2020, at 10:19, Jean-Philippe Rey 
>  wrote:
> 
> Dear list,
> 
> I would like to draw matrices with internal lines as can be done with LaTeX 
> (cf pdf output) :
> 
> 
> \documentclass{article}
> \begin{document}
> $M =\left( \begin{array}{c|c}
> A & B \\
> \hline
> C & D \\
> \end{array} \right)$
> \end{document}
> 
> 
> I didn't find out how to use mathmatrix to achieve this. My best result to 
> date is 
> 
> 
> \starttext
> $M = \left( \bTABLE[frame=off]
> \bTR
>   \bTD[rightframe=on, bottomframe=on] $A$ \eTD
>   \bTD[bottomframe=on] $B$ \eTD
> \eTR\bTR
>   \bTD[rightframe=on] $C$ \eTD
>   \bTD $D$ \eTD
> \eTR
> \eTABLE \right)$
> \stoptext
> 
> 
> The code is rather ugly, and I get a spurious space at the bottom of the 
> table.
> 
> Any hints?
> 
> Thank you,
> 
> -- 
> Jean-Philippe Rey
> jean-philippe@centralesupelec.fr
> 91192 Gif-sur-Yvette Cedex - France
> Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51
> ___
> 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] mathmatrix and internal lines

2020-11-26 Thread Otared Kavian
Hi Jean-Philippe,

For a simple case like the one you sent, a rather not optimal solution can be 
this:

\definemathmatrix[mymatrix]
[left={\left(\,},
right={\ \right)}]

\starttext
\startformula
\startmymatrix
\NC A \hskip .5em |\hskip-.5em  \NC B \NR
\noalign{\hrule}
\NC C \hskip .5em |\hskip-.5em \NC D \NR
\stopmymatrix
\stopformula
\stoptext

However I think I have seen sometime ago a more elegant solution, but I could 
not find it right now…

Best regards: Otared K.

> On 26 Nov 2020, at 10:19, Jean-Philippe Rey 
>  wrote:
> 
> Dear list,
> 
> I would like to draw matrices with internal lines as can be done with LaTeX 
> (cf pdf output) :
> 
> 
> \documentclass{article}
> \begin{document}
> $M =\left( \begin{array}{c|c}
> A & B \\
> \hline
> C & D \\
> \end{array} \right)$
> \end{document}
> 
> 
> I didn't find out how to use mathmatrix to achieve this. My best result to 
> date is 
> 
> 
> \starttext
> $M = \left( \bTABLE[frame=off]
> \bTR
>   \bTD[rightframe=on, bottomframe=on] $A$ \eTD
>   \bTD[bottomframe=on] $B$ \eTD
> \eTR\bTR
>   \bTD[rightframe=on] $C$ \eTD
>   \bTD $D$ \eTD
> \eTR
> \eTABLE \right)$
> \stoptext
> 
> 
> The code is rather ugly, and I get a spurious space at the bottom of the 
> table.
> 
> Any hints?
> 
> Thank you,
> 
> -- 
> Jean-Philippe Rey
> jean-philippe@centralesupelec.fr
> 91192 Gif-sur-Yvette Cedex - France
> Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51
> ___
> 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] mathmatrix and internal lines

2020-11-26 Thread Jean-Philippe Rey
Dear list,

I would like to draw matrices with internal lines as can be done with LaTeX (cf 
pdf output) :


\documentclass{article}
\begin{document}
$M =\left( \begin{array}{c|c}
A & B \\
\hline
C & D \\
\end{array} \right)$
\end{document}


I didn't find out how to use mathmatrix to achieve this. My best result to date 
is 


\starttext
$M = \left( \bTABLE[frame=off]
\bTR
\bTD[rightframe=on, bottomframe=on] $A$ \eTD
\bTD[bottomframe=on] $B$ \eTD
\eTR\bTR
\bTD[rightframe=on] $C$ \eTD
\bTD $D$ \eTD
\eTR
\eTABLE \right)$
\stoptext


The code is rather ugly, and I get a spurious space at the bottom of the table.

Any hints?

Thank you,

-- 
Jean-Philippe Rey
jean-philippe@centralesupelec.fr
91192 Gif-sur-Yvette Cedex - France
Empreinte PGP : 807A 5B2C 69E4 D4B5 783A 428A 1B5E E83E 261B BF51


blocmatrices-latex.pdf
Description: Adobe PDF document


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

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


Re: [NTG-context] Some ligatures don't work in latest LMTX

2020-11-25 Thread Jairo A. del Rio
Now diacritics work again. Thank you for the fix!

Best regards,

Jairo

El mar, 24 de nov. de 2020 a la(s) 14:17, Jairo A. del Rio (
jairoadelr...@gmail.com) escribió:

>
>
> -- Forwarded message -
> De: Jairo A. del Rio 
> Date: mar, 24 de nov. de 2020 a la(s) 14:16
> Subject: Re: [NTG-context] Some ligatures don't work in latest LMTX
> To: Hans Hagen 
>
>
> Thank you very much, Hans. Ligatures now work. However, diacritics aren't
> properly placed even using "features=arabic" (they appear below letters in
> LMTX). ConTeXt MkIV still gives correct output.
>
> Thank you in advance.
>
> Jairo
>
> El mar, 24 de nov. de 2020 a la(s) 12:04, Hans Hagen (j.ha...@xs4all.nl)
> escribió:
>
>> On 11/24/2020 8:12 AM, Jairo A. del Rio wrote:
>> > |Hi everyone. The following example works fine with MkIV, but fails
>> with
>> > latest LMTX.
>> > |
>> >
>> > |To be specific, the lam-alif ligature isn't working. Compile with both
>> > to see differences.
>> > |
>> >
>> > |Majalla is a Windows font, so I guess it's available for testing:
>> > |
>> >
>> > |
>> > \mainlanguage[arabic] \definefontfeature [arabic]
>> > [mode=node,language=dflt,script=arab,
>> > init=yes,medi=yes,fina=yes,isol=yes,
>> > liga=yes,dlig=yes,rlig=yes,clig=yes,
>> > mark=yes,mkmk=yes,kern=yes,curs=yes]
>> > \definefontfamily[main][serif][sakkalmajalla][features=arabic]
>> > \setupbodyfont[main] \setupdirections[bidi=global] \starttext أهلاً
>> وسهلاً
>> > \stoptext
>> >
>> > |
>> >
>> > |Is that a bug or are more features to be specified? Thank you in
>> advance.
>> (you can probably best use the already define arabic featre because it
>> also does some contextual stuff)
>>
>> anyway, there was an issue with the state querying (isol etc) as side
>> effect of another thing .. fixed in next upload (there haven't been
>> fundamental changes to the font handling for quite a while)
>>
>> 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] Fwd: Some ligatures don't work in latest LMTX

2020-11-24 Thread Jairo A. del Rio
-- Forwarded message -
De: Jairo A. del Rio 
Date: mar, 24 de nov. de 2020 a la(s) 14:16
Subject: Re: [NTG-context] Some ligatures don't work in latest LMTX
To: Hans Hagen 


Thank you very much, Hans. Ligatures now work. However, diacritics aren't
properly placed even using "features=arabic" (they appear below letters in
LMTX). ConTeXt MkIV still gives correct output.

Thank you in advance.

Jairo

El mar, 24 de nov. de 2020 a la(s) 12:04, Hans Hagen (j.ha...@xs4all.nl)
escribió:

> On 11/24/2020 8:12 AM, Jairo A. del Rio wrote:
> > |Hi everyone. The following example works fine with MkIV, but fails with
> > latest LMTX.
> > |
> >
> > |To be specific, the lam-alif ligature isn't working. Compile with both
> > to see differences.
> > |
> >
> > |Majalla is a Windows font, so I guess it's available for testing:
> > |
> >
> > |
> > \mainlanguage[arabic] \definefontfeature [arabic]
> > [mode=node,language=dflt,script=arab,
> > init=yes,medi=yes,fina=yes,isol=yes,
> > liga=yes,dlig=yes,rlig=yes,clig=yes,
> > mark=yes,mkmk=yes,kern=yes,curs=yes]
> > \definefontfamily[main][serif][sakkalmajalla][features=arabic]
> > \setupbodyfont[main] \setupdirections[bidi=global] \starttext أهلاً
> وسهلاً
> > \stoptext
> >
> > |
> >
> > |Is that a bug or are more features to be specified? Thank you in
> advance.
> (you can probably best use the already define arabic featre because it
> also does some contextual stuff)
>
> anyway, there was an issue with the state querying (isol etc) as side
> effect of another thing .. fixed in next upload (there haven't been
> fundamental changes to the font handling for quite a while)
>
> 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] troubles when installing OpenBSD 64 binaries (install.sh?)

2020-11-14 Thread Damien Thiriet
Hi,


I apologize for sending more or less the same message as last week, but
it went unnoticed on the mailing list. To sum up, looks like
that install.sh cannot fetch the openbsd 6.8 amd64 binaries.

I am aware of the *tma issue noticed by some list users, but since I am
ripping of anything in my /usr/local/context/ tree before upgrading,
shouldn't be an issue. Any help really welcomed, since texlive context
package doesn't compile either on my computer, an issue the packager
spend time on it and couldn't recreate/resolve. This means I am stick
with compiling via ssh on a debian box. 

Best regards,

Damien Thiriet 

>  Date: Sat, 7 Nov 2020 17:32:35 +0100
>  From: Damien Thiriet 
>  To: ntg-context@ntg.nl
>  Subject: troubles when installing OpenBSD 64 binaries (install.sh?)
>  
>  Hi,
>  
>  
>  I tried to install the new OpenBSD amd64 binaries (thanks Hans!)
>  but it failed. I suspect something is wrong with install.sh
>  
>  Here is the script I use to install binaries on a new system:
>  
>  
>  #!/bin/ksh
>  #script pour installer ConTeXt dans une nouvelle version OpenBSD
>  #Pour lire avant usage
>  /bin/echo "as-tu bien relu le script avant de le lancer?"
>  #temps de pause pour la lecture
>  /bin/sleep 30
>  #nettoie avant installation
>  /bin/rm -rf /usr/local/context/*
>  
>  #telecharge
>  /usr/bin/ftp http://lmtx.pragma-ade.nl/install-lmtx/context-openbsd$(uname 
> -r)-amd64.zip
>  
>  #decompresse
>  /usr/local/bin/unzip context-openbsd$(uname -r)-amd64.zip -d 
> /usr/local/context/
>  
>  #va dans le dossier
>  cd /usr/local/context/
>  #change les permissions
>  /bin/chmod 744 install.sh
>  #lance install.sh
>  ./install.sh 
>  
>  Here is the output log
>  
>  
>  Requesting 
> http://lmtx.pragma-ade.nl/install-lmtx/context-openbsd6.8-amd64.zip
>  100% 
> |***|
>   1255 KB00:01
>  1285778 bytes received in 1.76 seconds (711.15 KB/s)
>  Archive:  context-openbsd6.8-amd64.zip
> creating: /usr/local/context/bin/
>inflating: /usr/local/context/bin/mtx-install.lua
>inflating: /usr/local/context/bin/mtxrun
>inflating: /usr/local/context/bin/mtxrun.lua
>inflating: /usr/local/context/installation.pdf
>inflating: /usr/local/context/install.sh
>  mtxrun  | forcing cache reload
>  resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/root/texmf/web2c' from specification 'home:texmf/web2c'
>  resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/usr/local/texmf-local/web2c' from specification 
> 'selfautoparent:/texmf-local/web2c'
>  resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/usr/local/texmf-context/web2c' from specification 
> 'selfautoparent:/texmf-context/web2c'
>  resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/usr/local/texmf-dist/web2c' from specification 
> 'selfautoparent:/texmf-dist/web2c'
>  resolvers   | resolving | looking for regular 'texmfcnf.lua' on given 
> path '/usr/local/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
>  resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
> path '/root/texmf/web2c' from specification 'home:texmf/web2c'
>  resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
> path '/usr/local/texmf-local/web2c' from specification 
> 'selfautoparent:/texmf-local/web2c'
>  resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
> path '/usr/local/texmf-context/web2c' from specification 
> 'selfautoparent:/texmf-context/web2c'
>  resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
> path '/usr/local/texmf-dist/web2c' from specification 
> 'selfautoparent:/texmf-dist/web2c'
>  resolvers   | resolving | looking for fallback 'contextcnf.lua' on given 
> path '/usr/local/texmf/web2c' from specification 'selfautoparent:/texmf/web2c'
>  resolvers   | resolving |
>  resolvers   | resolving | warning: no lua configuration files found
>  resolvers   | resolving | no texmf paths are defined (using TEXMF)
>  resolvers   | resolving |
>  mtxrun  | the resolver databases are not present or outdated
>  mtx-install | server   : lmtx.pragma-ade.com
>  mtx-install | instance : install-lmtx
>  mtx-install | platform : openbsd6.8-amd64
>  mtx-install | system   : unix
>  mtx-install | fetching 
> 'http://lmtx.pragma-ade.com/install-lmtx//texmf.zip'
>  mtx-install | unzipping 'texmf.zip'
>   166 files of 1664 done,3298500 bytes, 0.060 seconds
>   332 file

Re: [NTG-context] new upload

2020-11-07 Thread Pablo Rodriguez
On 11/7/20 11:40 AM, Floris van Manen wrote:
> Dear Hans,
>
> Would it be possible to have a simple text file with the latest release
> version (or date) tag in it? Next to the folder containing the actual
> install script files? In that case it is easy to check that version tag
> by comparing with the local copy and decide if a further download and
> install is needed.

Dear Floris,

I have a simpler approach that might help you:

 curl -I http://pragma-ade.com/context/latest/cont-tmf.zip

I added a file with that to $HOME/bin/ and it works fine when invoking it.

To check which version you have installed on your computer:

export PATH=$PATH:$HOME/context/tex/texmf-linux-64/bin/ && context
--version && luametatex --version

Of course, you might need no export or adapt $PATH accordingly to your
ConTeXt directory.

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] new upload

2020-11-07 Thread Floris van Manen

Dear Hans,

Would it be possible to have a simple text file with the latest release 
version (or date) tag in it? Next to the folder containing the actual 
install script files? In that case it is easy to check that version tag 
by comparing with the local copy and decide if a further download and 
install is needed.


m.vr.gr.
Floris
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] ConTeXt Standalone last version

2020-11-05 Thread Jano Kula
On Wed, 4 Nov 2020 at 08:58, Joaquín Ataz López  wrote:

> The last time I checked the date of the ConTeXt Standalone version I had
> installed was early last summer, and the version installed was April 30,
> 2020. But today I wanted to update the version and I see that the "new"
> version that has been installed is the version of January 30, 2020. That
> is: the version has been moved back.
>
> Does anyone know why it has regressed?
>

Mine latest is 2020.01.30 14:13 and I would guess it's a typo instead of
2020.10.30 (though time suggests it could be generated).
Likely nothing was regressed to January.

Jano
___
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] caching remote images

2020-11-04 Thread Jano Kula
Hello!

I'd like to cache images (order of hundreds) from a remote location (not
all the time mapped as drive, download speed and amount of data are also
the factors).

\usepath[dirfile://./resources/**] is likely for speeding up searching not
downloading and I don't know when new images are available (when to delete
dirlist.* files), as described in workflows-mkiv.pdf.

Looks like the cache parameter in \externalfigure is used only if some
conversion is going on.

I could create a conversion which does nothing or only envelopes JPG in PDF
as .jpg.pdf (loading could be faster) and then:

if cached file exists
use cached .jpg.pdf
else
if drive is mapped
download, convert and cache .jpg
else
skip file
end
end

The source file with one  will never change or I could re-cache from
time to time to have up-to-date images cached.

Before reinventing the wheel: isn't such functionality or part of it
already available?

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

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


[NTG-context] ConTeXt Standalone last version

2020-11-03 Thread Joaquín Ataz López
The last time I checked the date of the ConTeXt Standalone version I had 
installed was early last summer, and the version installed was April 30, 
2020. But today I wanted to update the version and I see that the "new" 
version that has been installed is the version of January 30, 2020. That 
is: the version has been moved back.


Does anyone know why it has regressed?

--

-
Joaquín Ataz López
Profesor de Derecho Civil
Universidad de Murcia - Departamento de Derecho civil

___
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] Fw: statistical charts (was: Changing the colors of Charts in luametafun)

2020-10-26 Thread Tamara Kocurova
Hi Jan,

Thank you for noticing! Probably the fastest way to fix this would be
making the dots more dense. We will add a parameter for that in the near
future (it is also possible to add it directly to the code).

Best,
Tamara


-- Forwarded message --
> From: "Jan U. Hasecke" 
> To: ntg-context@ntg.nl
> Cc:
> Bcc:
> Date: Mon, 19 Oct 2020 20:16:16 +0200
> Subject: [NTG-context] statistical charts (was: Changing the colors of
> Charts in luametafun)
>
> Hi all,
>
> I play around with the charts module by Tamara Kocurová & Adriana
> Kašparová. Great work! I really like it.
>
> https://akela.mendelu.cz/~thala/statcharts/
>
> There is one very nitpicking thing. The dots of the grid are not always
> in a regularly fixed distance as the attached screenshot shows.
>
> I am not sure if this can be solved with a customized configuration.
>
> Ciao!
> juh
>
>
>
> ___
> 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] lmts status

2020-10-22 Thread Hans Hagen

Hi,

There haven't been lmtx updates for while now but there is a reason for 
it. On my machine I have luametatex 2.08 (so we jump number) which is in 
terms of typesetting the 20201010 version. That version has some 
reorganized internals, most have to do with consistency in the token 
interface at the Lua end. Of course there are some new and improved 
things too but those will be revealed in articles or manuals or the 
development status documents (already on my machine but they need checking).


However, around that date I also decided to play a bit with some pending 
features: extended macro definitions and frozen macros. The first has to 
do with extensions to the macro definition code. Some are already 
present for a while, others have been added. The challenge there is to 
make defining macros somewhat more convenient and at the same time get 
rid of often too confusing error messages when a user does something bad 
with arguments (those foo_bar_whatever kind of things which might look 
impressive but often is pretty ugly). Of course that only makes sense 
when we keep the current performance: only gain, no pain. But, it also 
means that we need to adapt quite some code in order to benefit from it 
and when I started doing that one quickly ends up in a chain reaction: 
from a dozen files to over 100 and fives times that amount pending. But 
it's actually kind of fun (also for users I think). And hopefully 
Wolfgang will find my many errors.


In parallel I played with the other feature: some kind of protection 
against macro abuse. This is actually related to the above because when 
you want to see macros with readable names in error messages, you cannot 
protect them with underscores and other ugly tricks that at the same 
time make stuff unreadable and ugly. We have a chicken and egg issue there.


Anyway, the reason for this mail is that I want to warn users that the 
next lmtx release will use several protection mechanisms. Checking will 
for now be off by default but one can bump the level of protection at 
runtime. Just to give you an idea: we have primitives that can get a 
heavy protection against overload. We also have macro package system 
commands and these can get a pretty hard protection too. Commands 
defined by users (using \define...) can be treated less strict. Of 
course we also have all kind of runtime (temporary) macros that we have 
to protect (freeze) but also be able to redefine when we want to (think 
of variables). Then we have properties that are not primitives but 
nevertheless need the same strong protection, think of predefined 
counters, dimensions etc. So, you can imagine that there is some work 
involved in getting all that up and running. A side effect of that is 
that occasionally I notice some undesired hack or something that needs 
attention. The good news is that this probably can be pulled off without 
 a real hit on performance.


However, one side effect is that when users enable this (off by default) 
mechanism the might run into messages (when only warnings are enables) 
or errors (when they go for the full package). Now, in order to get this 
working well (as intended) I'd like users who then run into issues to 
make small examples that we we add to the test suite (unless of course 
they decide to fix the style, simply because they figure that they did 
something wrong). You're warned.


So, when the next lmtx hits the web, make sure that you keep the old 
tree because one never knows where I mess up. I don't know when I'll 
upload. After all Wolfgang and I need to come to the conclusion that 
it's the way to go.


More later,

Hans

PS. When doing this one runs into quite interesting conceptual issues, 
even in a system like context that is rather structured. But this is 
also why the final solution needs somewhat more work that one thinks 
when one starts with it. A macro language like tex is quite different 
from some regular programming language (and making it look like one 
doesn't help).


-
  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] A Spanish introduction to ConTeXt Mark IV

2020-10-14 Thread Joaquín Ataz López


El 14/10/20 a las 12:47, Niels Meijer escribió:

Hello Joaquín,


I have been looking to get into ConTeXt for a few months now, LaTeX 
drove me
completely insane when writing my Master’s thesis. I have been looking 
for an

up-to-date introduction to ConTeXt as a whole, as I am still unable to get
basic things working in ConTeXt after reading the ‘Excursion’. (I really
tried to the best of my ability!)
I also believe that maintaining up-to-date documentation is important. 
Although in a system as dynamic as ConTeXt I think it is very difficult 
to achieve this; and it is probably more up to us users than to the 
developers. That's why my initiative


I just wanted to voice my support this book, as I feel that such a
newbie-friendly resource would fill a gaping hole in the current ConTeXt
ecosystem. I am considering having a stab at learning Spanish in order to
(attempt to) read your book.

Thank you very much, it is very kind of you.



Thanks for sharing,

Niels E. J. Meijer

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


--
Joaquín Ataz López
Derecho Civil
Universidad de Murcia

___
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] Hyphenation pattern for Esperanto

2020-10-14 Thread Hans Hagen

On 10/14/2020 5:36 PM, Alain Delmotte wrote:

Dear Mojca,

I did just repond to the message without remarking that I was only 
answering to you; I'll take care inthe future.


I'll check if the two list are the same, after expanding the condensed 
one. And after I'll go to Hans.


As Mojca pointed out, we need to setup a language:

% Artificial Languages: Esperanto

\installlanguage
  [\s!esperanto]
  [%\c!spacing=\v!packed,
   %\c!leftsentence=\emdash,
   %\c!rightsentence=\emdash,
   %\c!leftsubsentence=\emdash,
   %\c!rightsubsentence=\emdash,
   %\c!leftquote=\lowerleftdoubleninequote,
   %\c!rightquote=\upperrightdoublesixquote,
   %\c!leftquotation=\lowerleftdoubleninequote,
   %\c!rightquotation=\upperrightdoublesixquote,
   %\c!date={\v!year,~m.,\space,\v!month,\space,\v!day,~d.},
   \s!patterns=eo,
   \s!lefthyphenmin=2,
   \s!righthyphenmin=2]

apart from labels as in lang-txt.lua because otherwise it's not that 
useful to have it I guess.


Hans


Alain

Le 14/10/2020 à 13:16, Mojca Miklavec a écrit :

Dear Alain,

Yes, I'm aware of the differences, but ConTeXt is not ready to read
patterns in the cryptic format.
(If the two sets of patterns are not equivalent, there's something
that needs fixing.)

Please be proactive on the list (chatting offline with me won't help
that much) and just try to convince Hans to add those patterns, or ask
him what you need to do in order to end up with patterns supported in
ConTeXt out of the box.

Mojca

On Mon, 12 Oct 2020 at 21:50, Alain Delmotte
  wrote:

Hi Mojca,

The pattern in TeXlive as I described (from hyph-eo.tex) makes the list a 
littlebit  more compact: instead of

1a2do, 1a2doj, 1a2dojn, 1a2don one write \nom{1a2d}, otherwise it looks the 
same (I didn't check the details).

So I'll wait for the demand of Hans!!

Alain

Le 12/10/2020 à 16:38, Mojca Miklavec a écrit :

Dear Alain,

On Mon, 12 Oct 2020 at 13:44, Alain Delmotte wrote:

I'd like to have hyphenation for Esperanto; it doesn't exist in ConTeXt but 
exist in TeX/LaTeX.

Would it be difficult to create the Esperanto file for ConTeXt?

The plain text version is already in the correct form:
 
https://github.com/hyphenation/tex-hyphen/blob/master/hyph-utf8/tex/generic/hyph-utf8/patterns/txt/hyph-eo.pat.txt
so it should be just a matter of Hans including the patterns in the
distribution.

Usually he asks for translations of basic strings (like "Chapter"
etc.) when adding support for a new language ;)

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

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


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

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




--

-
  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] A Spanish introduction to ConTeXt Mark IV

2020-10-14 Thread Niels Meijer
Hello Joaquín,


I have been looking to get into ConTeXt for a few months now, LaTeX drove me
completely insane when writing my Master’s thesis. I have been looking for an
up-to-date introduction to ConTeXt as a whole, as I am still unable to get
basic things working in ConTeXt after reading the ‘Excursion’. (I really
tried to the best of my ability!)

I just wanted to voice my support this book, as I feel that such a
newbie-friendly resource would fill a gaping hole in the current ConTeXt
ecosystem. I am considering having a stab at learning Spanish in order to
(attempt to) read your book.


Thanks for sharing,

Niels E. J. Meijer

smime.p7s
Description: S/MIME cryptographic signature
___
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] correct vertical alignment in ToC

2020-09-29 Thread jbf
A quick look at the attached pdf extract from my current Table of 
Contents will demonstrate the problem. I need authors names, chapter 
titles and/or date range to line up correctly underneath each other, but 
because of the definitions I am working with (see below how the current 
result has been acheived) I do not know how to get these precise margin 
(I presume?) distances.


So, for example, the author for the Preface needs to line up directly 
under the author for the Foreword. And the title for Chapters One/Two 
and the date range for Chapter Three likewise. The 'Context' item is a 
\section and I have got that more or less to line up by using an \hspace 
definition, but I know that using two very different definitions is 
likely to cause problems. (Alternatively, they could all line up under 
the title for Chapter One, so a bit further in. What *has to happen* is 
that they all line up accurately under each other, whichever solution I 
use).


My real problem  is that I do not know how get these specific distances 
from the left-hand side using the definitions I have. If I knew how to 
get, say, 3cm in from the margin for Chapter authors/titles/date ranges 
(given the definition below) and section authors (given its definition 
below), I could solve this problem, but everything I have tried does not 
seem to work. Wolfgang had given me the ChapterListCommand definition, 
and I think Hraban the SectionTocentry:


(1) CHAPTERLISTCOMMAND

\define[3]\ChapterListCommand
  {\hbox\bgroup
 \hbox to 2.5cm{\currentlistsymbol\hss}% number + labeltext
 \vtop\bgroup
   \hsize\dimexpr\makeupwidth-2.5cm\relax
   \doifsomething{\rawstructurelistuservariable{year}}
 {{\structurelistuservariable{year}}\crlf}%
   \currentlistentrytitle % title
   \doifsomething{\rawstructurelistuservariable{author}}
 {\crlf{\structurelistuservariable{author}}}%
   \hfill\currentlistentrypagenumber % pagenumber
 \egroup
   \egroup}

Is there somewhere in here that I can specify my distances other than 
the \hbox 2.5cm? Note that I obviously also have (e.g. for the Preface, 
but I have others for Foreword, etc.):


\setuplist
  [preface]
  [label=preface,
   alternative=command,
   command=\ChapterListCommand]

(2) SECTIONTOCENTRY

 \definehspace[twoem][2.5 em]

   \define[1]\SectionTocEntry{%
  #1\hspace[twoem]% title
  \structurelistuservariable{author}%
}

\setuplist[section][
  textcommand=\SectionTocEntry,
  margin=.5cm]

The [twoem] definition (in fact it is 2.5 em) was how I got the 
'Context' author to roughly line up under the other items, but I have 
noticed that in some repetitions of this section, they do not line up 
exactly even so.


Hope somebody can help - in the end I suppose I can open it in a PDF 
editing program and shift items under each other, but I want to achieve 
the correct result using ConTeXt, understandably.


Julian



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

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


[NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jeong Dal
Hi,

I tried to make a table using \dorecurse or \doloop as in the example.
There is no error but \recurselevel is not increased, all are 0 in the first 
example and only two rows are created with the \recurselevel 0 and 2 only in 
the second example.

Does the tabulate cause the error?
What is wrong in this MWE?

Thank you for reading.

Best regards,

Dalyoung

*
\startbuffer[AdjacencyList1]
\starttabulate[|c|cw(2cm)|]
\HL
\dorecurse{8}
   {\NC \recurselevel \NC \NC\NR \HL}
\stoptabulate
\stopbuffer

\startbuffer[AdjacencyList2]
\starttabulate[|c|cw(2cm)|]
\HL
\doloop{
   \ifnum \recurselevel=7
  \exitloop
   \fi
   \NC \recurselevel \NC \NC\NR \HL
}
\stoptabulate
\stopbuffer

\starttext
\getbuffer[AdjacencyList1]

\getbuffer[AdjacencyList2]
\stoptext

> 2020. 9. 21. 오후 10:50, ntg-context-requ...@ntg.nl 작성:
> 
> Send ntg-context mailing list submissions to
>   ntg-context@ntg.nl
> 
> To subscribe or unsubscribe via the World Wide Web, visit
>   https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
>   ntg-context-requ...@ntg.nl
> 
> You can reach the person managing the list at
>   ntg-context-ow...@ntg.nl
> 
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
> 
> 
> Today's Topics:
> 
>   1. Parallel text support (Denis Maier)
>   2. Re: Parallel text support (Taco Hoekwater)
>   3. Re: ZapfDingbats Unicode differences MKIV vs LMTX
>  (Christoph Reller)
>   4. Re: ZapfDingbats Unicode differences MKIV vs LMTX (Hans Hagen)
>   5. Math fonts for Nimbus fonts (Otared Kavian)
>   6. Re: 2020 Meeting recordings? (Taco Hoekwater)
> 
> 
> --
> 
> Message: 1
> Date: Mon, 21 Sep 2020 12:21:37 +0200
> From: Denis Maier 
> To: ntg-context@ntg.nl
> Subject: [NTG-context] Parallel text support
> Message-ID: <780fe43c-f2c3-6ea1-04f5-d4d5c22e7...@mailbox.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
> 
> Hi,
> 
> I'm trying to typeset a parallel text that should appear in columns. The 
> sources are XML, and there I have to use tables for this. So, I thought 
> the easiest way is to use extreme tables for this:
> 
> =
> \starttext
> 
> \dorecurse{3}{\input knuth}
> 
> \startxtable[split=yes,frame=off]
> \startxrow
> \startxcell Text \stopxcell
> \startxcell Übersetzung \stopxcell
> \stopxrow
> \startxrow
> \startxcell \input ward \stopxcell
> \startxcell \input tufte \stopxcell
> \stopxrow
> \stopxtable
> 
> \stoptext
> =
> 
> However, as it turns out, split only seems to mean that the table is 
> split between rows, individual rows stay on the same page.
> 
> Is there a better approach? I've found the page-streams, but that seems 
> to be too much...
> 
> Best,
> Denis
> 
> 
> --
> 
> Message: 2
> Date: Mon, 21 Sep 2020 13:58:11 +0200
> From: Taco Hoekwater 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Parallel text support
> Message-ID: 
> Content-Type: text/plain; charset=utf-8
> 
> 
> 
>> On 21 Sep 2020, at 12:21, Denis Maier  wrote:
>> 
>> 
>> However, as it turns out, split only seems to mean that the table is split 
>> between rows, individual rows stay on the same page.
>> 
>> Is there a better approach? I've found the page-streams, but that seems to 
>> be too much…
> 
> \starttabulate
> 
> 
> 
> --
> 
> Message: 3
> Date: Mon, 21 Sep 2020 14:55:02 +0200
> From: Christoph Reller 
> To: Hans Hagen 
> Cc: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] ZapfDingbats Unicode differences MKIV vs
>   LMTX
> Message-ID:
>   
> Content-Type: text/plain; charset="utf-8"
> 
> On Sat, Sep 19, 2020 at 12:04 PM Hans Hagen  wrote:
> 
>> On 9/19/2020 6:18 AM, Christoph Reller wrote:
>>> On Fri, Sep 18, 2020 at 4:17 PM Hans Hagen >> <mailto:j.ha...@xs4all.nl>> wrote:
>>> 
>>>On 9/18/2020 11:23 AM, Christoph Reller wrote:
>>> 
>> \definefontsynonym[ZapfDingbats][file:ZapfDingbats][features=dingbats]
>>>> \usemodule [fnt-10]
>>>> \starttext
>>>> (1) \getglyphdirect{ZapfDingbats}{61491}\crlf % MKIV log: char 
>>>> (U+0F033) in font 'ZapfDingbats-4' with id 8: missing
>>>> (2) \getglyphdirect{ZapfDingbats}{983059} % LMTX log: char 
>>>> (U+F0013) in font 'ZapfDingbats-4' with id 8: missing
>>>> \ShowCompleteFon

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Otared Kavian
Hi Dalyoung,

I don't know why \recurselevel returns 0 inside a tabulate environment, but the 
following works fine:

\starttext
\startxtable[frame=off,bottomframe=on,width=1cm,align={middle,lohi}]
\startxrow\startxcell \stopxcell\stopxrow % just to have a line on the top of 
the first row
\dorecurse{8}
   {\startxrow\startxcell \recurselevel \stopxcell\stopxrow}
\stopxtable
\stoptext

Best regards: Otared K.

> On 21 Sep 2020, at 16:07, Jeong Dal  wrote:
> 
> Hi,
> 
> I tried to make a table using \dorecurse or \doloop as in the example.
> There is no error but \recurselevel is not increased, all are 0 in the first 
> example and only two rows are created with the \recurselevel 0 and 2 only in 
> the second example.
> 
> Does the tabulate cause the error?
> What is wrong in this MWE?
> 
> Thank you for reading.
> 
> Best regards,
> 
> Dalyoung
> 
> *
> \startbuffer[AdjacencyList1]
> \starttabulate[|c|cw(2cm)|]
> \HL
> \dorecurse{8}
>{\NC \recurselevel \NC \NC\NR \HL}
> \stoptabulate
> \stopbuffer
> 
> \startbuffer[AdjacencyList2]
> \starttabulate[|c|cw(2cm)|]
> \HL
> \doloop{
>\ifnum \recurselevel=7
>   \exitloop
>\fi
>\NC \recurselevel \NC \NC\NR \HL
> }
> \stoptabulate
> \stopbuffer
> 
> \starttext
> \getbuffer[AdjacencyList1]
> 
> \getbuffer[AdjacencyList2]
> \stoptext
> 
>> 2020. 9. 21. 오후 10:50, ntg-context-requ...@ntg.nl 작성:
>> 
>> Send ntg-context mailing list submissions to
>>  ntg-context@ntg.nl
>> 
>> To subscribe or unsubscribe via the World Wide Web, visit
>>  https://mailman.ntg.nl/mailman/listinfo/ntg-context
>> or, via email, send a message with subject or body 'help' to
>>  ntg-context-requ...@ntg.nl
>> 
>> You can reach the person managing the list at
>>  ntg-context-ow...@ntg.nl
>> 
>> When replying, please edit your Subject line so it is more specific
>> than "Re: Contents of ntg-context digest..."
>> 
>> 
>> Today's Topics:
>> 
>>   1. Parallel text support (Denis Maier)
>>   2. Re: Parallel text support (Taco Hoekwater)
>>   3. Re: ZapfDingbats Unicode differences MKIV vs LMTX
>>  (Christoph Reller)
>>   4. Re: ZapfDingbats Unicode differences MKIV vs LMTX (Hans Hagen)
>>   5. Math fonts for Nimbus fonts (Otared Kavian)
>>   6. Re: 2020 Meeting recordings? (Taco Hoekwater)
>> 
>> 
>> --
>> 
>> Message: 1
>> Date: Mon, 21 Sep 2020 12:21:37 +0200
>> From: Denis Maier 
>> To: ntg-context@ntg.nl
>> Subject: [NTG-context] Parallel text support
>> Message-ID: <780fe43c-f2c3-6ea1-04f5-d4d5c22e7...@mailbox.org>
>> Content-Type: text/plain; charset=utf-8; format=flowed
>> 
>> Hi,
>> 
>> I'm trying to typeset a parallel text that should appear in columns. The 
>> sources are XML, and there I have to use tables for this. So, I thought 
>> the easiest way is to use extreme tables for this:
>> 
>> =
>> \starttext
>> 
>> \dorecurse{3}{\input knuth}
>> 
>> \startxtable[split=yes,frame=off]
>> \startxrow
>> \startxcell Text \stopxcell
>> \startxcell Übersetzung \stopxcell
>> \stopxrow
>> \startxrow
>> \startxcell \input ward \stopxcell
>> \startxcell \input tufte \stopxcell
>> \stopxrow
>> \stopxtable
>> 
>> \stoptext
>> =
>> 
>> However, as it turns out, split only seems to mean that the table is 
>> split between rows, individual rows stay on the same page.
>> 
>> Is there a better approach? I've found the page-streams, but that seems 
>> to be too much...
>> 
>> Best,
>> Denis
>> 
>> 
>> --
>> 
>> Message: 2
>> Date: Mon, 21 Sep 2020 13:58:11 +0200
>> From: Taco Hoekwater 
>> To: mailing list for ConTeXt users 
>> Subject: Re: [NTG-context] Parallel text support
>> Message-ID: 
>> Content-Type: text/plain;charset=utf-8
>> 
>> 
>> 
>>> On 21 Sep 2020, at 12:21, Denis Maier  wrote:
>>> 
>>> 
>>> However, as it turns out, split only seems to mean that the table is split 
>>> between rows, individual rows stay on the same page.
>>> 
>>> Is there a better approach? I've found the page-streams, but that seems to 
>>> be too much…
>> 
>> \starttabulate
>> 
>> 
>> 
>> --
>> 
>> Message: 3
>> Date: Mon, 21

Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jairo A. del Rio
Hi,
Using ##1 instead of \recurselevel makes it work in this specific case if
you want a quick and dirty solution. It seems to be a thing with nesting,
as using #1 complains. I'd prefer the solutions as shown by Aditya:
constructing tables via Lua, etc.

Regards,
Jairo



El lun., 21 de sep. de 2020 a la(s) 09:16, Jeong Dal (hak...@me.com)
escribió:

> Hi,
>
> I tried to make a table using \dorecurse or \doloop as in the example.
> There is no error but \recurselevel is not increased, all are 0 in the
> first example and only two rows are created with the \recurselevel 0 and 2
> only in the second example.
>
> Does the tabulate cause the error?
> What is wrong in this MWE?
>
> Thank you for reading.
>
> Best regards,
>
> Dalyoung
>
> *
> \startbuffer[AdjacencyList1]
> \starttabulate[|c|cw(2cm)|]
> \HL
> \dorecurse{8}
> {\NC \recurselevel \NC \NC\NR \HL}
> \stoptabulate
> \stopbuffer
>
> \startbuffer[AdjacencyList2]
> \starttabulate[|c|cw(2cm)|]
> \HL
> \doloop{
> \ifnum \recurselevel=7
> \exitloop
> \fi
> \NC \recurselevel \NC \NC\NR \HL
> }
> \stoptabulate
> \stopbuffer
>
> \starttext
> \getbuffer[AdjacencyList1]
>
> \getbuffer[AdjacencyList2]
> \stoptext
>
> 2020. 9. 21. 오후 10:50, ntg-context-requ...@ntg.nl 작성:
>
> Send ntg-context mailing list submissions to
> ntg-context@ntg.nl
>
> To subscribe or unsubscribe via the World Wide Web, visit
> https://mailman.ntg.nl/mailman/listinfo/ntg-context
> or, via email, send a message with subject or body 'help' to
> ntg-context-requ...@ntg.nl
>
> You can reach the person managing the list at
> ntg-context-ow...@ntg.nl
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of ntg-context digest..."
>
>
> Today's Topics:
>
>   1. Parallel text support (Denis Maier)
>   2. Re: Parallel text support (Taco Hoekwater)
>   3. Re: ZapfDingbats Unicode differences MKIV vs LMTX
>  (Christoph Reller)
>   4. Re: ZapfDingbats Unicode differences MKIV vs LMTX (Hans Hagen)
>   5. Math fonts for Nimbus fonts (Otared Kavian)
>   6. Re: 2020 Meeting recordings? (Taco Hoekwater)
>
>
> --
>
> Message: 1
> Date: Mon, 21 Sep 2020 12:21:37 +0200
> From: Denis Maier 
> To: ntg-context@ntg.nl
> Subject: [NTG-context] Parallel text support
> Message-ID: <780fe43c-f2c3-6ea1-04f5-d4d5c22e7...@mailbox.org>
> Content-Type: text/plain; charset=utf-8; format=flowed
>
> Hi,
>
> I'm trying to typeset a parallel text that should appear in columns. The
> sources are XML, and there I have to use tables for this. So, I thought
> the easiest way is to use extreme tables for this:
>
> =
> \starttext
>
> \dorecurse{3}{\input knuth}
>
> \startxtable[split=yes,frame=off]
> \startxrow
> \startxcell Text \stopxcell
> \startxcell Übersetzung \stopxcell
> \stopxrow
> \startxrow
> \startxcell \input ward \stopxcell
> \startxcell \input tufte \stopxcell
> \stopxrow
> \stopxtable
>
> \stoptext
> =
>
> However, as it turns out, split only seems to mean that the table is
> split between rows, individual rows stay on the same page.
>
> Is there a better approach? I've found the page-streams, but that seems
> to be too much...
>
> Best,
> Denis
>
>
> --
>
> Message: 2
> Date: Mon, 21 Sep 2020 13:58:11 +0200
> From: Taco Hoekwater 
> To: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] Parallel text support
> Message-ID: 
> Content-Type: text/plain; charset=utf-8
>
>
>
> On 21 Sep 2020, at 12:21, Denis Maier 
> wrote:
>
>
> However, as it turns out, split only seems to mean that the table is split
> between rows, individual rows stay on the same page.
>
> Is there a better approach? I've found the page-streams, but that seems to
> be too much…
>
>
> \starttabulate
>
>
>
> --
>
> Message: 3
> Date: Mon, 21 Sep 2020 14:55:02 +0200
> From: Christoph Reller 
> To: Hans Hagen 
> Cc: mailing list for ConTeXt users 
> Subject: Re: [NTG-context] ZapfDingbats Unicode differences MKIV vs
> LMTX
> Message-ID:
> 
> Content-Type: text/plain; charset="utf-8"
>
> On Sat, Sep 19, 2020 at 12:04 PM Hans Hagen  wrote:
>
> On 9/19/2020 6:18 AM, Christoph Reller wrote:
>
> On Fri, Sep 18, 2020 at 4:17 PM Hans Hagen  <mailto:j.ha...@xs4all.nl>> wrote:
>
>On 9/18/2020 11:23 AM, Christoph Reller wrote:
>
> \definefontsynonym[ZapfDingbats][file:ZapfDingbats][features=dingbats]

Re: [NTG-context] Best way to store text for later use

2020-09-18 Thread Hans van der Meer
A possibility is saving the data as text in a Lua-table. If you are not afraid 
to use some Lua, I can send my code for saving files and data for repeated use.

dr. Hans van der Meer


> On 18 Sep 2020, at 15:36, Denis Maier  wrote:
> 
> Hi,
> 
> For typesetting XML I'm wondering how to best store text for later use:
> 
> I've tried using buffers, but this here doesn't work:
> 
> ==
> \startxmlsetups xml:article-meta
> \setupdocument [
> pub-year=\xmlfilter{#1}{/pub-date/year/command(xml:article-meta:pubdate:year)},
> volume=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)},
> doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)},
> elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)},
> title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title-group:article-title)},
> author={\AuthorList},
> ]
>   \startbuffer[abstract]
>   \xmlfilter{#1}{/abstract/command(xml:article-meta:abstract)}
>   \stopbuffer
>\xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:article-meta:abstract
> \xmlflush{#1}
> \stopxmlsetups
> ===
> 
> This here works:
> 
> ==
> \startxmlsetups xml:article-meta
> \setupdocument [
> pub-year=\xmlfilter{#1}{/pub-date/year/command(xml:article-meta:pubdate:year)},
> volume=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)},
> doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)},
> elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)},
> title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title-group:article-title)},
> author={\AuthorList},
> abstract=\xmlfilter{#1}{/abstract/command(xml:article-meta:abstract)},
> ]
>\xmlflush{#1}
> \stopxmlsetups
> 
> \startxmlsetups xml:article-meta:abstract
> \xmlflush{#1}
> \stopxmlsetups
> ===
> 
> But has using a variable for the abstract any drawbacks? (The abstract might 
> contain multiple paragraphs.)
> 
> Best,
> Denis
> ___
> 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] Best way to store text for later use

2020-09-18 Thread Denis Maier

Hi,

For typesetting XML I'm wondering how to best store text for later use:

I've tried using buffers, but this here doesn't work:

==
\startxmlsetups xml:article-meta
    \setupdocument [
pub-year=\xmlfilter{#1}{/pub-date/year/command(xml:article-meta:pubdate:year)},
volume=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)},
doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)},
elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)},
title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title-group:article-title)},
        author={\AuthorList},
    ]
  \startbuffer[abstract]
  \xmlfilter{#1}{/abstract/command(xml:article-meta:abstract)}
  \stopbuffer
   \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:article-meta:abstract
    \xmlflush{#1}
\stopxmlsetups
===

This here works:

==
\startxmlsetups xml:article-meta
    \setupdocument [
pub-year=\xmlfilter{#1}{/pub-date/year/command(xml:article-meta:pubdate:year)},
volume=\xmlfilter{#1}{/volume/command(xml:article-meta:volume)},
doi=\xmlfilter{#1}{/article-id[@pub-id-type='doi']/command(xml:article-meta:doi)},
elocation-id=\xmlfilter{#1}{/elocation-id/command(xml:article-meta:elocation-id)},
title=\xmlfilter{#1}{/title-group/article-title/command(xml:article-meta:title-group:article-title)},
        author={\AuthorList},
abstract=\xmlfilter{#1}{/abstract/command(xml:article-meta:abstract)},
    ]
   \xmlflush{#1}
\stopxmlsetups

\startxmlsetups xml:article-meta:abstract
    \xmlflush{#1}
\stopxmlsetups
===

But has using a variable for the abstract any drawbacks? (The abstract 
might contain multiple paragraphs.)


Best,
Denis
___
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] Error setting up ConTeXt in MacTeX 2020

2020-09-18 Thread Otared Kavian
Hi Felix,

Some time ago I encountered the same problem and we had a thread on this list 
about this:

https://www.mail-archive.com/ntg-context@ntg.nl/msg95355.html

The problem on my Mac came from the fact that a directory
/opt/local/etc/texmf/
existed (installed by MacPorts, without me knowing it…) where ConTeXt tries to 
find a format, while there is none.
I removed that directory and then I could use ConTeXt from MacTex 2020.

Best regards: Otared


> On 18 Sep 2020, at 09:41, Felix Krause  wrote:
> 
> Hi all,
> 
> with MacTeX 2020 on a newly installed Mac, I have the problem that ConTeXt 
> doesn't work anymore:
> 
> $ context file.tex
> mtx-context | warning: no format found, forcing remake (commandline 
> driven)
> […] snip lots of lines
> resolvers   | formats | changing to format path 
> '/var/folders/rj/hfjmjx796q102y4v23vh038cgp/T/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex'
> resolvers   | formats | unable to change to format path 
> '/var/folders/rj/hfjmjx796q102y4v23vh038cgp/T/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex'
> mtx-context | error, no format found with name: cont-en, aborting
> system  | total runtime: 5.315 seconds
> The ConTeXt docs <https://wiki.contextgarden.net/Running_Mark_IV> say that I 
> should run mtxrun --generate, which seems to run successfully, and context 
> --make, which finishes with the same „unable to change format path“ error (I 
> believe this is what context automatically does when compiling my file, 
> hinted by the „no format found. forcing remake“ message). I tried explicitly 
> running context --make cont-en which yields the same result. The given path 
> does exist on my hard drive.
> 
> I don't even know if the „unable to change format path“ message is actually 
> an error, but I have no other indicator of what goes wrong. The only line 
> that explicitly says „error“ is the one I get when trying to process the file.
> 
> Interestingly, I have another Mac where I upgraded from MacTeX 2019 to MacTeX 
> 2020 and everything works there.
> 
> I made sure that everything is up-to-date with the TeX Live Utility.
> 
> How can I fix this problem?
> 
> Regards,
> Felix
> 
> ___
> 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] Error setting up ConTeXt in MacTeX 2020

2020-09-18 Thread Felix Krause

Hi all,

with MacTeX 2020 on a newly installed Mac, I have the problem that 
ConTeXt doesn't work anymore:


$ context file.tex
mtx-context | warning: no format found, forcing remake 
(commandline driven)

[…] snip lots of lines
resolvers   | formats | changing to format path 
'/var/folders/rj/hfjmjx796q102y4v23vh038cgp/T/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex'
resolvers   | formats | unable to change to format path 
'/var/folders/rj/hfjmjx796q102y4v23vh038cgp/T/luatex-cache/context/a86c089b384a3076dc514ba966a1fac9/formats/luatex'
mtx-context | error, no format found with name: cont-en, 
aborting

system  | total runtime: 5.315 seconds

The [ConTeXt docs][1] say that I should run `mtxrun --generate`, which 
seems to run successfully, and `context --make`, which finishes with the 
same „unable to change format path“ error (I believe this is what 
context automatically does when compiling my file, hinted by the „no 
format found. forcing remake“ message). I tried explicitly running 
`context --make cont-en` which yields the same result. The given path 
does exist on my hard drive.


I don't even know if the „unable to change format path“ message is 
actually an error, but I have no other indicator of what goes wrong. The 
only line that explicitly says „error“ is the one I get when trying 
to process the file.


Interestingly, I have another Mac where I upgraded from MacTeX 2019 to 
MacTeX 2020 and everything works there.


I made sure that everything is up-to-date with the TeX Live Utility.

How can I fix this problem?

Regards,
Felix


 [1]: https://wiki.contextgarden.net/Running_Mark_IV___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


<    1   2   3   4   5   6   7   8   9   10   >