Re: [NTG-context] TiKz with LMTX

2023-06-04 Thread Mikael Sundqvist via ntg-context
Hi Floris,

On Sun, Jun 4, 2023 at 11:59 PM Floris van Manen via ntg-context
 wrote:
>
>
>
> On 04/06/2023 18:18, Hans Hagen via ntg-context wrote:
> > can you try with
> >
> >   -- "source/generic/**",
> >
> > in
> >
> >mtx-install-imp-tikz.lua
> >
> > (comment line 25)
>
>
> does not make a difference here.

For whatever it is worth, I just tried to install tikz with

mtxrun --script install-modules --install tikz

and then your example in your first mail did compile here (and gave a
cross, and that looks right from the source).

/Mikael
___
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] Moving up a Figure

2023-06-04 Thread Jeroen via ntg-context
Not fully, it indeed moves up the figure but a little too much. Is there a
more granular method?

Op za 3 jun 2023 om 20:24 schreef Mikael Sundqvist via ntg-context <
ntg-context@ntg.nl>:

> Hi,
>
> On Sat, Jun 3, 2023 at 6:36 PM Jeroen via ntg-context
>  wrote:
> >
> > With the following example, the figure is placed a little lower than the
> first text line. The top of the figure is at about the middle of the first
> line. Is there a way to move-up the figure slightly to align it with the
> top of the text line?
> >
> > \useMPlibrary[dum]
> >
> > \starttext
> >
> > \startplacefigure
> >   [number=no,
> >location=right]
> >   \externalfigure[dummy]
> > \stopplacefigure
> >
> > \samplefile{tufte}
> >
> > \stoptext
>
> Maybe
>
> location={right,high}
>
> is what you look for?
>
> /Mikael
>
> ___
> 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] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Wolfgang Schuster via ntg-context

Berend de Boer via ntg-context schrieb am 05.06.2023 um 00:02:

Dear all,

I've noticed that \defineparagraphs does not break across pages. That
would be a huge page saver in my case. Do I have any options for page
breaking across a set of parallel paragraphs?

Initially I just had a \hbox{\vtop{#1}\hfil\vtop{#2}} but obviously
that doesn't break, so went for more ConTeXt style, but couldn't see a
good mechanism.


You can use the tabulate environment to create parallel paragraphs.

\setuppapersize[A5]

\definetabulate[bilingual][|pA{normal,verytolerant,stretch}|pA{normal,verytolerant,stretch}|]

\starttext

\startbilingual
\NC \input tufte
\NC \input knuth
\NC\NR
\stopbilingual

\stoptext

Wolfgang

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

2023-06-04 Thread Berend de Boer via ntg-context

Hi Hans,


Probably some on this list already checked how well chatgpt answers
questions about domains one knows well and then probably noted that in
spite of impressive wording, one can run into quite incorrect answers.


I've been using it for ConTeXt, and to be honest, it works amazingly
well. It hallucinates sometimes, but it's such a time saver.

--
All the best,

Berend de Boer
___
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] Page breaks with \defineparagraphs possible?

2023-06-04 Thread Berend de Boer via ntg-context

Dear all,

I've noticed that \defineparagraphs does not break across pages. That
would be a huge page saver in my case. Do I have any options for page
breaking across a set of parallel paragraphs?

Initially I just had a \hbox{\vtop{#1}\hfil\vtop{#2}} but obviously
that doesn't break, so went for more ConTeXt style, but couldn't see a
good mechanism.


Example file where you can see the entire paragraphs thing is put on the next 
page.

==

\setuppapersize[A5]

\defineparagraphs[bilingual][n=2,tolerance=stretch,before=,after=,distance=\0.06\textwidth]
\setupparagraphs[bilingual][1][width=0.47\textwidth]
\setupparagraphs[bilingual][2][width=0.47\textwidth]

\starttext

\input tufte

\startbilingual
 \input tufte
 \nextbilingual
 \input knuth

\stopbilingual

\stoptext

==

--
All the best,

Berend de Boer
___
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] TiKz with LMTX

2023-06-04 Thread Floris van Manen via ntg-context



On 04/06/2023 18:18, Hans Hagen via ntg-context wrote:

can you try with

  -- "source/generic/**",

in

   mtx-install-imp-tikz.lua

(comment line 25)



does not make a difference here.

___
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] TiKz with LMTX

2023-06-04 Thread Jigé via ntg-context
 I tried:
$ mtxrun --generate
and also commenting out "source/generic/**" in mtx-install-imp-tikz.lua
but with no success.
Same error: Driver file ``pgfsys-luatex.def'' not found.

This file does not exist in my installation.
$ find ~/.local/share/context -iname "*.def"
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-vtex.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-textures.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-postscript.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvisvgm4ht.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvipdfm.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvipdfmx.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-pdf-via-dvi.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-tex4ht.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvisvgm.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvi.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-common-svg.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-xetex.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgfsys-dvips.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgf/utilities/pgfutil-context.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-xetex.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-dvips.def
/home/myname/.local/share/context/tex/texmf-modules/tex/generic/pgfplots/sys/pgflibrarypgfplots.surfshading.pgfsys-dvipdfmx.def

Il tried using some of these files by writing them in 
context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg , by the way, but 
it either doesn't compile or produces a bad picture.

Here are some quotes from the online pgf/tikz manual ( 
https://tikz.dev/drivers#section-formats ) :

> 10.2.1 Selecting the Backend Driver
> 
> When TEX typesets your document, it does not know which program you are going
> to use to transform the .dvi-file. If your .dvi-file does not contain any 
> special commands,
> this would be fine; but these days almost all .dvi-files contain lots of 
> special commands.
> It is thus necessary to tell TEX which program you are going to use later on.
> 
> Unfortunately, there is no “standard” way of telling this to TEX.
> For the LATEX format a sophisticated mechanism exists inside the graphics 
> package
> and pgf plugs into this mechanism. For other formats and when this plugging 
> does not work
> as expected, it is necessary to tell pgf directly which program you are going 
> to use.
> This is done by redefining the macro \pgfsysdriver to an appropriate value 
> before you load pgf.
> If you are going to use the dvips program, you set this macro to the value 
> pgfsys-dvips.def;
> if you use pdftex or pdflatex, you set it to pgfsys-pdftex.def; and so on.
> In the following, details of the support of the different programs are 
> discussed.
> 
> 10.2.2 Producing PDF Output
> 
> pgf supports three programs that produce pdf output [...]:
> dvipdfm, pdftex, and vtex. The pdflatex program is the same as the pdftex 
> program:
> it uses a different input format, but the output is exactly the same.
> 
> File pgfsys-pdftex.def
> This is the driver file for use with pdfTEX, that is, with the pdftex or 
> pdflatex command.
> It includes pgfsys-common-pdf.def.
> 
> This driver has a lot of functionality.
> (Almost) everything pgf “can do at all” is implemented in this driver.
> 
> File [...]
[...]

(And so on with pgfsys-dvipdfm.def pgfsys-xetex.def pgfsys-vtex.def... Basicaly 
all the other drivers cited have serious shortcomings in processing TiKz 
pictures.)

So, we need the driver: pgfsys-luatex.def . Or do we? The name of this driver 
is guessed at compile time.

  ___
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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-06-04 Thread Cron Daemon via ntg-context
receiving incremental file list
 context/latest/
 context/latest/cont-lmt.zip
 context/latest/cont-mpd.zip
 context/latest/cont-ppc.zip
 context/latest/cont-sci.zip
 context/latest/cont-tmf.zip
 context/latest/cont-tst.7z
 context/latest/cont-tst.tar.xz
 context/latest/cont-tst.zip
 general/manuals/
 general/manuals/luametatex.pdf
 general/qrcs/
 general/qrcs/setup-de.pdf
 general/qrcs/setup-en.pdf
 general/qrcs/setup-fr.pdf
 general/qrcs/setup-it.pdf
 general/qrcs/setup-mapping-de.pdf
 general/qrcs/setup-mapping-en.pdf
 general/qrcs/setup-mapping-fr.pdf
 general/qrcs/setup-mapping-it.pdf
 general/qrcs/setup-mapping-nl.pdf
 general/qrcs/setup-nl.pdf
 
 sent 222,519 bytes  received 61,618,278 bytes  4,264,882.55 bytes/sec
 total size is 560,645,780  speedup is 9.07


Running archiver:

New dir: /var/www/aanhet.net/context//htdocs/archives/context-2023-06-04.20
232433921   
/var/www/aanhet.net/context//htdocs/archives/context-2023-06-04.20/latest
126745317   
/var/www/aanhet.net/context//htdocs/archives/context-2023-06-04.20/current
359183334   
/var/www/aanhet.net/context//htdocs/archives/context-2023-06-04.20
359183334   total
___
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] update

2023-06-04 Thread Hans Hagen via ntg-context

Hi,

This time not a functional update but a (potential) performance one. I 
have no clue if it matters for average usage and some was already in 
place anyway. I gain some .2 seconds on the 8.5 seconds for the 
luametatex manual (of which is < 4 sec for tex so we gain the .2 sec on 
that part). It all depends on usage scenarios. Hopefully there are no 
side effects (due to typos).


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] Cron /var/www/aanhet.net/context/bin/cron/context-mirror

2023-06-04 Thread Cron Daemon via ntg-context
receiving incremental file list
 ./
 ctan.lsr
 document-2.htm
 download-1.htm
 download-2.htm
 logo-ade.png
 logo-cts.png
 logo-pod.png
 rss.xml
 show-fil.pdf
 context/latest/
 
 sent 1,309 bytes  received 113,441 bytes  76,500.00 bytes/sec
 total size is 560,532,876  speedup is 4,884.82
___
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] TiKz with LMTX

2023-06-04 Thread Hans Hagen via ntg-context

On 6/4/2023 5:10 PM, Floris van Manen via ntg-context wrote:



On 04/06/2023 16:44, Hans Hagen via ntg-context wrote:

what if you run "mtxrun --generate" beforehand?

is that file somewhere in the tree?

it works here


i tried it here as well, does not work.

can you try with

 -- "source/generic/**",

in

  mtx-install-imp-tikz.lua

(comment line 25)

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
___


Re: [NTG-context] TiKz with LMTX

2023-06-04 Thread Floris van Manen via ntg-context



On 04/06/2023 16:44, Hans Hagen via ntg-context wrote:

what if you run "mtxrun --generate" beforehand?

is that file somewhere in the tree?

it works here


i tried it here as well, does not work.




$ context tk-tst.tex

resolvers   | formats | executing runner 'run luametatex format': 
/home/vm/context/tex/texmf-linux-64/bin/luametatex 
--jobname="./tk-tst.tex" --socket --shell-escape 
--fmt=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.fmt 
--lua=/home/vm/luametatex-cache/context/formats/luametatex/cont-en.lui 
--c:currentrun=1 --c:fulljobname="./tk-tst.tex" --c:input="./tk-tst.tex" 
--c:kindofrun=1 --c:maxnofruns=9 
--c:texmfbinpath="/home/vm/context/tex/texmf-linux-64/bin"

system  >
system  > ConTeXt  ver: 2023.06.01 09:42 LMTX  fmt: 2023.6.4 
int: english/english

system  >
system  > 'cont-new.mkxl' loaded
open source > level 1, order 1, name 
'/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'

system  > beware: some patches loaded from cont-new.mkiv
close source> level 1, order 1, name 
'/home/vm/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'
system  > files > jobname './tk-tst', input './tk-tst.tex', 
result './tk-tst'

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './tk-tst.tex'
modules > 'tikz' is loaded
open source > level 2, order 3, name 
'/home/vm/context/tex/texmf-context/tex/context/modules/mkxl/m-tikz.mkxl'

open source > level 3, order 4, name 'pgfutil-common.tex'
close source> level 3, order 4, name 'pgfutil-common.tex'
open source > level 3, order 5, name 'pgfutil-context.def'
close source> level 3, order 5, name 'pgfutil-context.def'
open source > level 3, order 6, name 'pgfrcs.code.tex'
open source > level 4, order 7, name 'pgf.revision.tex'
close source> level 4, order 7, name 'pgf.revision.tex'
close source> level 3, order 7, name 'pgfrcs.code.tex'
open source > level 3, order 8, name 'pgfsys.code.tex'
open source > level 4, order 9, name 'pgfkeys.code.tex'
open source > level 5, order 10, name 'pgfkeyslibraryfiltered.code.tex'
close source> level 5, order 10, name 'pgfkeyslibraryfiltered.code.tex'
close source> level 4, order 10, name 'pgfkeys.code.tex'
cld > stack >
cld > stack > use : slot = context.functions.register(f)
cld > stack > and : context.functions.unregister(slot)
cld > stack >
open source > level 4, order 11, name 'pgf.cfg'
close source> level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-luatex.def

! Package pgf Error: Driver file ``pgfsys-luatex.def'' not found..
 \pgfutil@packageerror
#1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2}
 \pgfutil@IfFileExists
#1#2#3->\openin \pgfutil@inputcheck =#1 \ifeof \pgfutil@inputcheck #3
\relax \else #2\relax \fi \closein \pgfutil@inputcheck

  \pgferror{Driver file ``\pgfsysdriver'' not found.}}

open source > level 4, order 12, name 'tk-tst.pgf'
close source> level 4, order 12, name 'tk-tst.pgf'
close source> level 3, order 12, name 'pgfsys.code.tex'
open source > level 3, order 13, name 'pgfkeys.code.tex'
close source> level 3, order 13, name 'pgfkeys.code.tex'
open source > level 3, order 14, name 'pgfsyssoftpath.code.tex'
close source> level 3, order 14, name 'pgfsyssoftpath.code.tex'
open source > level 3, order 15, name 'pgfsysprotocol.code.tex'
close source> level 3, order 15, name 'pgfsysprotocol.code.tex'
open source > level 3, order 16, name 'pgfcore.code.tex'
open source > level 4, order 17, name 'pgfmath.code.tex'
open source > level 5, order 18, name 'pgfmathutil.code.tex'
close source> level 5, order 18, name 'pgfmathutil.code.tex'
open source > level 5, order 19, name 'pgfmathparser.code.tex'
close source> level 5, order 19, name 'pgfmathparser.code.tex'
open source > level 5, order 20, name 'pgfmathfunctions.code.tex'
close source> level 5, order 20, name 'pgfmathfunctions.code.tex'
open source > level 5, order 21, name 'pgfmathfunctions.basic.code.tex'
close source> level 5, order 21, name 'pgfmathfunctions.basic.code.tex'
open source > level 5, order 22, name 
'pgfmathfunctions.trigonometric.code.tex'
close source> level 5, order 22, name 
'pgfmathfunctions.trigonometric.code.tex'

open source > level 5, order 23, name 'pgfmathfunctions.random.code.tex'
close source> level 5, order 23, name 'pgfmathfunctions.random.code.tex'
open source > level 5, order 24, name 
'pgfmathfunctions.comparison.code.tex'
close source> level 5, order 24, name 
'pgfmathfunctions.comparison.code.tex'

open source > level 5, order 25, name 'pgfmathfunctions.base.code.tex'
close source> level 5, order 25, name 'pgfmathfunctions.base.code.tex'
open source > level 5, 

Re: [NTG-context] TiKz with LMTX

2023-06-04 Thread Hans Hagen via ntg-context

On 6/4/2023 11:11 AM, Jigé via ntg-context wrote:

Hi all.

I'm trying to use TiKz inside ConTeXt. It has not been working for some time...

I checked the messages from last month on the mailing list (late april, early 
may). Il didn't quit actually understand what was going on but I read that some 
files had to be updated. Maybe as a workaround, while waiting for a new LMTX 
format? Users reported it to work after some file updates.

So, because I was using a TeXlive package on Gnu/Archlinux, which might be 
updated only after a few months or a year, I followed the wiki and did a 
personal fresh install like this :

$ mkdir ~/.local/share/context
$ cd ~/.local/share/context
$ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip
$ unzip context-linux-64.zip
$ sh install.sh
$ rm context-linux-64.zip
$ cd ~/.local/share/context/tex
$ mtxrun --script install-modules --list
$ mtxrun --script install-modules --install tikz
(And for good measure, I later did `mtxrun --script install-modules --install 
all`)

$ cd my-working-directory
$ vi some-sample-context-file.tex
$ export PATH=/home/myname/.local/share/context/tex/texmf-linux-64/bin:$PATH
$ context some-sample-context-file.tex

Did I miss anything? It works just fine.


But with a TiKz picture included, a very simple one like this:
\usemodule[tikz]
\starttext
We are working on
\starttikzpicture
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\stoptikzpicture.
\stoptext

It doesn't compile. The output begins with:

resolvers   | formats | executing runner 'run luametatex format':
[...]

and ends with:

[...]
open source > level 4, order 11, name 'pgf.cfg'
close source> level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-luatex.def

tex error   > tex error on line 1757 in file pgfsys.code.tex: Package pgf 
Error: Driver file ``pgfsys-luatex.def'' not found.


what if you run "mtxrun --generate" beforehand?

is that file somewhere in the tree?

it works here


 \pgfutil@packageerror
 #1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2}
 \pgfutil@IfFileExists
 #1#2#3->\openin \pgfutil@inputcheck =#1 \ifeof \pgfutil@inputcheck #3
 \relax \else #2\relax \fi \closein \pgfutil@inputcheck

   \pgferror{Driver file ``\pgfsysdriver'' not found.}}


This error message was generated by an \errmessage command, so I can't give any
explicit help. Pretend that you're Hercule Poirot: Examine all clues, and deduce
the truth by order and method.
mtx-context | fatal error: return code: 1


The PATH is set correctly, this is not the output from using the regular 
TeXlive package which uses luatex, terminates because it doesn't understand 
\pgfsetxvec{\pgfpoint{1cm}{0cm}} and makes no reference to Hercule Poirot.

I ingenuously tried to explicitly set some formats in the file 
~/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg 
but with no success.

Is it related to this issue: https://github.com/pgf-tikz/pgf/issues/990 ?

Thanks in advance!...

Best regards
Jean-Guillaume
___
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
___


--

-
  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] TiKz with LMTX

2023-06-04 Thread Jigé via ntg-context
Hi all.

I'm trying to use TiKz inside ConTeXt. It has not been working for some time...

I checked the messages from last month on the mailing list (late april, early 
may). Il didn't quit actually understand what was going on but I read that some 
files had to be updated. Maybe as a workaround, while waiting for a new LMTX 
format? Users reported it to work after some file updates.

So, because I was using a TeXlive package on Gnu/Archlinux, which might be 
updated only after a few months or a year, I followed the wiki and did a 
personal fresh install like this :

$ mkdir ~/.local/share/context
$ cd ~/.local/share/context
$ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip
$ unzip context-linux-64.zip
$ sh install.sh
$ rm context-linux-64.zip
$ cd ~/.local/share/context/tex
$ mtxrun --script install-modules --list
$ mtxrun --script install-modules --install tikz
(And for good measure, I later did `mtxrun --script install-modules --install 
all`)

$ cd my-working-directory
$ vi some-sample-context-file.tex
$ export PATH=/home/myname/.local/share/context/tex/texmf-linux-64/bin:$PATH
$ context some-sample-context-file.tex

Did I miss anything? It works just fine.


But with a TiKz picture included, a very simple one like this:
\usemodule[tikz]
\starttext
We are working on
\starttikzpicture
\draw (-1.5,0) -- (1.5,0);
\draw (0,-1.5) -- (0,1.5);
\stoptikzpicture.
\stoptext

It doesn't compile. The output begins with:

resolvers   | formats | executing runner 'run luametatex format': 
[...]

and ends with:

[...]
open source > level 4, order 11, name 'pgf.cfg'
close source> level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-luatex.def

tex error   > tex error on line 1757 in file pgfsys.code.tex: Package pgf 
Error: Driver file ``pgfsys-luatex.def'' not found.

 \pgfutil@packageerror
#1#2#3->\errhelp {#3}\errmessage {Package #1 Error: #2}
 \pgfutil@IfFileExists
#1#2#3->\openin \pgfutil@inputcheck =#1 \ifeof \pgfutil@inputcheck #3
\relax \else #2\relax \fi \closein \pgfutil@inputcheck

  \pgferror{Driver file ``\pgfsysdriver'' not found.}}


This error message was generated by an \errmessage command, so I can't give any
explicit help. Pretend that you're Hercule Poirot: Examine all clues, and deduce
the truth by order and method.
mtx-context | fatal error: return code: 1


The PATH is set correctly, this is not the output from using the regular 
TeXlive package which uses luatex, terminates because it doesn't understand 
\pgfsetxvec{\pgfpoint{1cm}{0cm}} and makes no reference to Hercule Poirot.

I ingenuously tried to explicitly set some formats in the file 
~/.local/share/context/tex/texmf-modules/tex/generic/pgf/systemlayer/pgf.cfg 
but with no success.

Is it related to this issue: https://github.com/pgf-tikz/pgf/issues/990 ?

Thanks in advance!...

Best regards
Jean-Guillaume
___
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] Chinese typesetting with macOS font. Which one is a good choice?

2023-06-04 Thread 李延瑞
Gerben Wierda via ntg-context  于2023年6月2日周五 19:37写道:

> For Japanese I currently use
>
> \startsetups [japanese]
>   \setscript [nihongo]
> \stopsetups
> \setuplanguage [ja] [setups=japanese]
> \definefallbackfamily
>   [archimate]
>   [ss]
>   [Hiragino Sans]
>   [preset=range:japanese,
>tf=style:W3,
>it=style:W3,
>bf=style:W5,
>bi=style:W5,
>force=yes]
> \definefontfamily [archimate] [ss] [Optima]
> \setupbodyfont[archimate]
>
> I've been wondering what a good choice is for Chinese which is to be added
> to my project. Hiragino Sans GB has both Japanese and Chinese but only W3,W6
>
> I have no knowledge of what is elegant in these fonts. Can someone advise
> me? No bitmap fonts.
>
>
There are Noto Serif/Sans CJK fonts (including HK/JP/KR/SC/TC ) developed
by Google. But I don't know how to mix them with Hiraginfo Sans GB.

-- 
Best regards,

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