Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-17 Thread Max Chernoff via ntg-context
> 
Hi Amano(?), Hans

> > Can you make it easier to make an OS package for ConTeXt LMTX by
> > releasing versioned (source) archives, including BUILD/INSTALL
> > instructions in the versioned archives, and so on? I wish I could just
> > extract a versioned binary archive into certain locations or use GNU
> > autotools or use meson build system which is far better than GNU
> > autotools.
> 
> there is a github repository for the tex stuff 

For reference, the GitHub repository is at:

   https://github.com/contextgarden/context-mirror/
   
It's semi-official mirror, but the authoritative source is the zips hosted
by Pragma. 

> and have no experience 
> with all that versioning / release / os packaging stuff (couldn't test
> it anyway and continuously adapt to teh subtle differences in 
> distributions and os's) ... we just post zips (already for decades) but 
> anyone is free to come up with such instructions (e.g. aditya did some
> for arch)
> 
> anyway, lmtx is still kind of experimental and at some point 
> installation will move to the garden (not much is needed, just a web 
> server) and the packaging scripts are / will be in the distribution  .. 
> there are no dependencies (and we keep it that way: self contained bins)
> 
> sorry, i just can't spent time on all the possible variant ways of 
> installation .. that is up to volunteers

I think all that Amano is asking for is for older versions of the
zips/binaries to be kept available. Right now, the only files available
for download that I'm aware of are the latest versions.

This is problematic from a reproducibility standpoint, since if you have
multiple people, say, writing a large textbook, it would make sense that
they wouldn't want to upgrade their systems constantly in case something
breaks. These people can easily just avoid upgrades, but if someone new
joins the team, they can only download the newest version. However, that
won't necessarily match the older version that everyone else has, which
can lead to problems.

Having older versions available would also help in the case of major
short-term regressions, since users would be able to (manually)
downgrade to an older version if necessary. 

An easy solution to this would be the following: instead of overwriting
the whole "/install-lmtx/" tree on every update, you would install all
the new files to something like "/install-lmtx-2022-08-07/", then have
"/install-lmtx/" be a symlink to the latest "/install-lmtx--MM-DD/".
I don't think that this would be very hard to implement from a technical
perspective, and the only downside that I can think of would be extra
disk space used. This is a fairly common implementation among other
software.

One other solution would be to have "dl.contextgarden.net" mirror a
zip/binary combo once every few months or so. These would often be out
of date, but they would provide a stable archive that would be useful in
cases like this.

This is just a suggestion though; it's not something that I personally
need, although I see how it could be potentially valuable for others.

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

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


[NTG-context] Clipping multiple PDFs

2022-08-17 Thread jethro Reuel via ntg-context
Hello,

I am trying to put multiple PDF’s that were typeset differently into one 
document without modifying the individual files themselves. I came up with this:

\starttext

\copypages[ass1.pdf][][scale=950]
\copypages[ass2.pdf][][scale=950]
…

stoptext

The problem is the original page numbers show and I’d prefer that it did not. 
So I thought maybe I could clip all the page numbers from every page (since 
they are all in the same position across all the pages) but I don’t know how to 
do this with the \clip command. Any ideas? I already tried using \input but it 
gives some weird output in some places. It doesn’t have to use this method as 
long as it does what I need it to do.

Thanks in advance.

Jethro 

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

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


Re: [NTG-context] Using MathTime Pro 2 fonts in ConTeXt

2022-08-17 Thread Sebastian Leonardo Molina Diaz via ntg-context
Any hints on how to do it?

On Sat, Aug 13, 2022 at 10:18 AM Sebastian Leonardo Molina Diaz <
smoli...@unal.edu.co> wrote:

> I really like the design of the characters in MathTime, TeX Gyre doesn't
> do the work for m, so I would get hands on work only to make it work.
>
> On Sat, Aug 13, 2022, 10:15 Hans Hagen via ntg-context 
> wrote:
>
>> On 8/13/2022 4:57 PM, Sebastian Leonardo Molina Diaz via ntg-context
>> wrote:
>> > Years ago it was asked if someone could provide a typescript for the
>> > MathTime Pro2 fonts. However, the conversation ended nowhere, so I want
>> to
>> > ask how should I format a typescript to use such fonts. Below is the
>> link
>> > of the related conversation:
>> >
>> > https://mailman.ntg.nl/pipermail/ntg-context/2010/051611.html
>> we're now living in an math unicode and math opentype universe so before
>> you spend time on this: does texgyre termes works out for you
>>
>> Hans
>>
>>
>> -
>>Hans Hagen | PRAGMA ADE
>>Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
>> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
>> -
>>
>> ___
>> If your question is of interest to others as well, please add an entry to
>> the Wiki!
>>
>> maillist : ntg-context@ntg.nl /
>> https://www.ntg.nl/mailman/listinfo/ntg-context
>> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
>> archive  : https://bitbucket.org/phg/context-mirror/commits/
>> wiki : https://contextgarden.net
>>
>> ___
>>
>

-- 
Atentamente,



*Sebastian Leonardo Molina Diaz*
Computer Science
Universidad Nacional de Colombia

-- 
*Aviso legal:* El contenido de este mensaje y los archivos adjuntos son 
confidenciales y de uso exclusivo de la Universidad Nacional de Colombia. 
Se encuentran dirigidos sólo para el uso del destinatario al cual van 
enviados. La reproducción, lectura y/o copia se encuentran prohibidas a 
cualquier persona diferente a este y puede ser ilegal. Si usted lo ha 
recibido por error, infórmenos y elimínelo de su correo. Los Datos 
Personales serán tratados conforme a la Ley 1581 de 2012 y a nuestra 
Política de Datos Personales que podrá consultar en la página web 
www.unal.edu.co .* *Las opiniones, informaciones, 
conclusiones y cualquier otro tipo de dato contenido en este correo 
electrónico, no relacionados con la actividad de la Universidad Nacional de 
Colombia, se entenderá como personales y de ninguna manera son avaladas por 
la Universidad.
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Special numbering

2022-08-17 Thread Fabrice Couvreur via ntg-context
Hi  Aditya,
Thanks for your help, it works perfectly.
Fabrice

Le mer. 17 août 2022 à 17:48, Aditya Mahajan via ntg-context <
ntg-context@ntg.nl> a écrit :

> On Wed, 17 Aug 2022, Fabrice Couvreur via ntg-context wrote:
>
> > Hello,
> > how to get this
> > Définition 1.1.
> > Proposition 1.2.
> > Définition 1.3.
> > Proposition 1.4.
> >
> > Thanks
> > Fabrice
> >
> > \setupenumerations
> >   [before={\blank},
> >after={\blank},
> >alternative=serried,
> >distance=0.5em,
> >title=yes,
> >titleleft=,
> >titleright=,
> >titlestyle=normal,
> >prefix=yes,
> >prefixsegments=chapter,
> >way=bychapter,
> >headcommand=\groupedcommand{}{.},
> >numbercommand=\groupedcommand{}{},
> >titlecommand=\groupedcommand{(}{)},
> >width=broad]
> >
> > \defineenumeration
> >[definition]
> >[text=Définition,
> > number=yes,
> > style=italic]
> >
> > \defineenumeration
> >[proposition]
> >[text=Proposition,
> > number=yes,
>
> Add:
>
>   counter=definition,
>
> > style=italic]
>
>
> Now, definition and proposition share the same counter.
>
>
> Aditya___
> If your question is of interest to others as well, please add an entry to
> the Wiki!
>
> maillist : ntg-context@ntg.nl /
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage  : https://www.pragma-ade.nl / http://context.aanhet.net
> archive  : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
>
> ___
>
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


Re: [NTG-context] Special numbering

2022-08-17 Thread Aditya Mahajan via ntg-context
On Wed, 17 Aug 2022, Fabrice Couvreur via ntg-context wrote:

> Hello,
> how to get this
> Définition 1.1.
> Proposition 1.2.
> Définition 1.3.
> Proposition 1.4.
> 
> Thanks
> Fabrice
> 
> \setupenumerations
>   [before={\blank},
>after={\blank},
>alternative=serried,
>distance=0.5em,
>title=yes,
>titleleft=,
>titleright=,
>titlestyle=normal,
>prefix=yes,
>prefixsegments=chapter,
>way=bychapter,
>headcommand=\groupedcommand{}{.},
>numbercommand=\groupedcommand{}{},
>titlecommand=\groupedcommand{(}{)},
>width=broad]
> 
> \defineenumeration
>[definition]
>[text=Définition,
> number=yes,
> style=italic]
> 
> \defineenumeration
>[proposition]
>[text=Proposition,
> number=yes,

Add:

  counter=definition,

> style=italic]


Now, definition and proposition share the same counter.

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

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


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-17 Thread Hans Hagen via ntg-context

On 8/17/2022 3:09 PM, amano.kenji wrote:

* Will TexLive replace its own ConTeXt Mark IV with ConTeXt LMTX?


at some point we will switch to lmtx and mkiv is than just there and can 
be used but basically it is frozen (already for a while, apart from fixes).



* context lmtx binary installer archive is not versioned. I can't use 
unversioned archives in OS packages.


at some point (all depends on time and effort and ...) the source wil be 
part of the context distribution so then one can compile



* Is it actually possible to present a separate override file for 
contextcnf.lua? If not, I would need to patch contextcnf.lua, or contextcnf.lua 
should support both portable installation and OS-level installation.


you can put one in texmf-local (as the mtxrun --generate i posted trace 
shows)



* Can you make it easier to make an OS package for ConTeXt LMTX by releasing 
versioned (source) archives, including BUILD/INSTALL instructions in the 
versioned archives, and so on? I wish I could just extract a versioned binary 
archive into certain locations or use GNU autotools or use meson build system 
which is far better than GNU autotools.


there is a github repository for the tex stuff and have no experience 
with all that versioning / release / os packaging stuff (couldn't test 
it anyway and continuously adapt to teh subtle differences in 
distributions and os's) ... we just post zips (already for decades) but 
anyone is free to come up with such instructions (e.g. aditya did some 
for arch)


anyway, lmtx is still kind of experimental and at some point 
installation will move to the garden (not much is needed, just a web 
server) and the packaging scripts are / will be in the distribution  .. 
there are no dependencies (and we keep it that way: self contained bins)


sorry, i just can't spent time on all the possible variant ways of 
installation .. that is up to volunteers



While portable installations can be great for testing bleeding edge features 
and keeping up with latest development, most of the time, I prefer OS package 
releases.
I never use an os tex release .. who knows whaty has been done with it 
.. esp when one has a long term workflow (e.g. fonts can change)


Hans


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

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


[NTG-context] Special numbering

2022-08-17 Thread Fabrice Couvreur via ntg-context
Hello,
how to get this
Définition 1.1.
Proposition 1.2.
Définition 1.3.
Proposition 1.4.

Thanks
Fabrice

\setupenumerations
  [before={\blank},
   after={\blank},
   alternative=serried,
   distance=0.5em,
   title=yes,
   titleleft=,
   titleright=,
   titlestyle=normal,
   prefix=yes,
   prefixsegments=chapter,
   way=bychapter,
   headcommand=\groupedcommand{}{.},
   numbercommand=\groupedcommand{}{},
   titlecommand=\groupedcommand{(}{)},
   width=broad]

\defineenumeration
   [definition]
   [text=Définition,
number=yes,
style=italic]

\defineenumeration
   [proposition]
   [text=Proposition,
number=yes,
style=italic]

\starttext
\startchapter
  [title={First chapter}]
  \dorecurse{2}{
\startdefinition

\stopdefinition
\startproposition

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

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


Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-17 Thread amano.kenji via ntg-context
* Will TexLive replace its own ConTeXt Mark IV with ConTeXt LMTX?
* context lmtx binary installer archive is not versioned. I can't use 
unversioned archives in OS packages.
* Is it actually possible to present a separate override file for 
contextcnf.lua? If not, I would need to patch contextcnf.lua, or contextcnf.lua 
should support both portable installation and OS-level installation.
* Can you make it easier to make an OS package for ConTeXt LMTX by releasing 
versioned (source) archives, including BUILD/INSTALL instructions in the 
versioned archives, and so on? I wish I could just extract a versioned binary 
archive into certain locations or use GNU autotools or use meson build system 
which is far better than GNU autotools.

While portable installations can be great for testing bleeding edge features 
and keeping up with latest development, most of the time, I prefer OS package 
releases.

--- Original Message ---
On Tuesday, August 16th, 2022 at 4:02 PM, Hans Hagen via ntg-context 
 wrote:


> On 8/16/2022 1:43 PM, amano.kenji via ntg-context wrote:
> 
> > Even if I put the installation in an archive and make a linux package that 
> > installs the archive, I still have to modify contextcnf.lua which isn't 
> > intended to handle differing system-wide installation paths of various 
> > POSIX-like operating systems.
> > 
> > And, I don't really know
> > 
> > * what the variables in contextcnf.lua mean and do.
> > * whether there is a way to override certain variables in contextcnf.lua 
> > with another file. A separate override file is going to make it easy for 
> > linux distributions to override certain variables in contextcnf.lua.
> 
> mtxrun --generate
> 
> reports all kind of locations where configurations files are looked for
> 
> one can also set environment variables and see what is used
> 
> mtxrun --variables
> mtxrun --expansions
> 
> so there are plenty ways to configure and you can run
> 
> > mtxrun --configurations
> 
> 
> which on my machine gives
> 
> system | resolved | file :
> c:/data/develop/tex-context/tex/texmf-local/web2c/texmfcnf.lua
> system | resolved | file :
> c:/data/develop/tex-context/tex/texmf/web2c/texmfcnf.lua
> 
> indicating that i use an additional configuration file
> 
> there are some boundary conditions:
> 
> - we use mtxrun as runner and that one used luatex as lua engine
> - this means that mtxrun[.lua] has to be in the same path as the binary
> 
> in lmtx we even go a bit further:
> 
> - in lmtx there is mtxrun.lua
> - as well as context.lua
> - there are 'mtxrun' and 'context' binaries that are either copies or
> symlinks to luametatex in the same path
> - this is the same on unix and windows
> 
> in lmtx luametatex is also used as runner for mkiv when installed
> 
> on unix i normally just install the minimal tree and then either add the
> bin path to the path or just run mtxrun fully qualified (actually always
> for the whole system under /data/context)
> 
> Hans
> 
> -
> Hans Hagen | PRAGMA ADE
> Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
> -
> ___
> If your question is of interest to others as well, please add an entry to the 
> Wiki!
> 
> maillist : ntg-context@ntg.nl / 
> https://www.ntg.nl/mailman/listinfo/ntg-context
> webpage : https://www.pragma-ade.nl / http://context.aanhet.net
> archive : https://bitbucket.org/phg/context-mirror/commits/
> wiki : https://contextgarden.net
> ___
___
If your question is of interest to others as well, please add an entry to the 
Wiki!

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


[NTG-context] Suggestions for project structures, environment inheritance, local overrides

2022-08-17 Thread Denis Maier via ntg-context
Hi everyone

One of my current main projects where I use ConTeXt is typesetting journal 
articles from xml sources. As the journal appears only online, we've decided to 
publish each article individually. I have a working setup, but I occasionally 
ponder whether I could make things more smootly. Currently, my folder structure 
looks roughly like this :

2022
-- _assets
-- article1
 source
 md
 xml
 pdf
 html
-- article2
etc.

Usually, I receive Word files that get transformed via pandoc to markdown, 
polished, and from there to XML. HTML is produced via XSLT, PDF via ConTeXt. 
Transformations are performed with the help of a makefile.

The _assets folder contains a bunch of helper files, scripts, and two 
environment files used by ConTeXt :
jats.tex -> contains the setup for JATS XML
layout.tex -> contains layout settings

Now, this mostly works, but I sometimes struggle with things like 
overrides/additions for specific articles. Say, I have the global definitions, 
but I need to make small changes for one specific article? Or, I need to add 
something to one specific article, but I don't want to add this to the  
 files. I guess my question is something like this :

- How could a painless solution for such a scenario look like?
- Should you just load multiple environment files and override earlier 
settings? (How would that work with xml setups?)

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

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