Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Floris van Manen via ntg-context wrote:

> 
> 
> On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote:
> > These are already part of the distribution. Just one caveat: you need to use
> > 
> > \usemodule[tikz]
> > \usemodule[pgfplots]
> 
> 
> when running the example from contextgarden:
> https://wiki.contextgarden.net/Pgfplot
> 
> \setupcolors[state=start]
> \usemodule[tikz]
> \usemodule[pgfplots]
> \starttext
> \starttikzpicture
> \startaxis[
> xmin=0,xmax=300,
> title=http://cryogenics.nist.gov/,
> xlabel=$T$ (K),
> ylabel=$(L-L_{293})/L_{293}$,
> legend style={at={(0.95,0.05)},anchor=south east},
> width=16cm ]
> \addplot[mark=none,color=red] plot file {sapphire.dat};
> \addlegendentry{sapphire}
> \addplot[mark=none,color=green] plot file {Be.dat};
> \addlegendentry{Be}
> \addplot[mark=none,color=blue] plot file {BeCu.dat};
> \addlegendentry{BeCu}
> \addplot[mark=none,color=cyan] plot file {SS304.dat};
> \addlegendentry{SS304}
> \addplot[mark=none,color=magenta] plot file {Al6061-T6.dat};
> \addlegendentry{Al6061-T6}
> \addplot[mark=none,color=orange] plot file {nylon.dat};
> \addlegendentry{nylon}
> \stopaxis
> \stoptikzpicture
> \stoptext

Is it possible to create a standalone test that does not depend on a bunch of 
datafiles that need to be downloaded?

Thanks,
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] Problem with exponent

2023-04-28 Thread Bruce Horrocks via ntg-context


> On 28 Apr 2023, at 19:21, Fabrice Couvreur via ntg-context 
>  wrote:
> 
> Hi,
> I want to write x'² . Only, I get x²'.
> Thanks
> Fabrice
> 
> \starttext
> \m{{x'}²+{y'}²}
> \stoptext

This came up before [1]. The solution is to use \primed{...}

\starttext
\m{{x'}²+{y'}²} 
\quad
\m{\primed{x}^2+\primed{y}^2} 
\stoptext


[1] 
—
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 / 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] LuaMetaTeX doesn't find files when symlinked

2023-04-28 Thread lynx--- via ntg-context
hi, Max 

The two suggestions don't work. I get a message, "Could not start the
command..." each time. 

$ /usr/local/ConTeXt_Standalone/context-linux-64/bin/context --nofile 

results in " no such file or directory " which is, indeed, the case. NB:
I have just let the installer program do its thing, I didn't manipulate
the file structure before or after. Here is what the tree looks
likepartially expanded 

On 2023-04-28 01:28, Max Chernoff via ntg-context wrote:

> Hi Lynx,
> 
>> Today, I created a separate "user command" within TeXstudio, and it
>> points to "/usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun" 
>> This command generates the same log output as the example at
>> https://gitlab.com/islandoftex/images/texlive/-/issues/30.
> 
> This is probably not the same issue, since the path "context-linux-
> 64/bin/mtxrun" suggests that that isn't a symlink. (Well, it is a
> symlink mtxrun => ./luametatex, but that email is about multi-level
> symlinks like /usr/bin/context => /usr/local/texlive/2023/bin/x86_64-
> linux/context => ./luametatex)
> 
> To compile a document, you almost certainly want to use "context"
> instead of "mtxrun". So try changing the user command to
> "/usr/local/ConTeXt_Standalone/context-linux-64/bin/context".
> 
> If that doesn't fix anything, run
> 
> $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun --generate
> $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/context --make
> 
> and try again.
> 
> If it still doesn't work, then what do you get when you run
> 
> $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/context --nofile
> 
> -- 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
> __
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 + lmtx

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



On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote:

These are already part of the distribution. Just one caveat: you need to use

\usemodule[tikz]
\usemodule[pgfplots]



when running the example from contextgarden:
https://wiki.contextgarden.net/Pgfplot

\setupcolors[state=start]
\usemodule[tikz]
\usemodule[pgfplots]
\starttext
\starttikzpicture
\startaxis[
xmin=0,xmax=300,
title=http://cryogenics.nist.gov/,
xlabel=$T$ (K),
ylabel=$(L-L_{293})/L_{293}$,
legend style={at={(0.95,0.05)},anchor=south east},
width=16cm ]
\addplot[mark=none,color=red] plot file {sapphire.dat};
\addlegendentry{sapphire}
\addplot[mark=none,color=green] plot file {Be.dat};
\addlegendentry{Be}
\addplot[mark=none,color=blue] plot file {BeCu.dat};
\addlegendentry{BeCu}
\addplot[mark=none,color=cyan] plot file {SS304.dat};
\addlegendentry{SS304}
\addplot[mark=none,color=magenta] plot file {Al6061-T6.dat};
\addlegendentry{Al6061-T6}
\addplot[mark=none,color=orange] plot file {nylon.dat};
\addlegendentry{nylon}
\stopaxis
\stoptikzpicture
\stoptext




i get a fatal error:

resolvers   | globbing | confusing filename, name: 'CHANGELOG', 
lower: 'changelog', already: 'ChangeLog'


resolvers   | formats | executing runner 'run luametatex format': 
/home/vm/context/tex/texmf-linux-64/bin/luametatex --jobname="./context 
24.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="./context 24.tex" --c:input="./context 
24.tex" --c:kindofrun=1 --c:maxnofruns=9 --c:purgeall 
--c:texmfbinpath="/home/vm/context/tex/texmf-linux-64/bin"


resolvers   > globbing > confusing filename, name: 'CHANGELOG', 
lower: 'changelog', already: 'ChangeLog'

system  >
system  > ConTeXt  ver: 2023.04.27 17:04 LMTX  fmt: 2023.4.28 
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 './context 24', input './context 
24.tex', result './context 24'

fonts   > latin modern fonts are not preloaded
languages   > language 'en' is active
open source > level 1, order 2, name './context 24.tex'
colors  > 'rgb' color space is supported
colors  > 'cmyk' color space is supported
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'
open source > level 4, order 5, name 'pgfutil-common-lists.tex'
close source> level 4, order 5, name 'pgfutil-common-lists.tex'
close source> level 3, order 5, name 'pgfutil-common.tex'
open source > level 3, order 6, name 'pgfutil-context.def'
close source> level 3, order 6, name 'pgfutil-context.def'
open source > level 3, order 7, name 'pgfrcs.code.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 'pgfkeysfiltered.code.tex'
close source> level 5, order 10, name 'pgfkeysfiltered.code.tex'
close source> level 4, order 10, name 'pgfkeys.code.tex'
open source > level 4, order 11, name 'pgf.cfg'
close source> level 4, order 11, name 'pgf.cfg'
Driver file for pgf: pgfsys-pdftex.def

open source > level 4, order 12, name 'pgfsys-pdftex.def'
open source > level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 5, order 13, name 'pgfsys-common-pdf.def'
close source> level 4, order 13, name 'pgfsys-pdftex.def'
open source > level 4, order 14, name 'context.tex'
setup   > error in line 12, namespace 'fontinstanceready', 
instance 'D', key 'no,'
open source > level 5, order 15, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-plex.mkiv'
open source > level 6, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 6, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv'
close source> level 5, order 16, name 
'/home/vm/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-plex.mkiv'

fonts   > checking > char 2 (U+00032) in font '' with id 0: missing
fonts   > checking > char 4 (U+00034) in font '' with id 0: missing
fonts   > checking > char . (U+0002E) in font '' with id 0: missing
fonts   > checking > char p (U+00070) in font '' with id 0: missing
fonts   > checking > char g (U+00067) in 

[NTG-context] Problem with exponent

2023-04-28 Thread Fabrice Couvreur via ntg-context
Hi,
I want to write x'² . Only, I get x²'.
Thanks
Fabrice

\starttext
\m{{x'}²+{y'}²}
\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] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Ulrike Fischer via ntg-context wrote:

> Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via
> ntg-context:
> 
> > Circuitikz still doesn't work. Even loading the module fails. 
> 
> It works for me on texlive 2023 with your new module file. 

Thanks for testing. I'll double check what was going wrong with my circuitikz 
tests.

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] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Gavin wrote:

> Hi fellow Tik-Z users,
> 
> Tik-Z, including circuitikz, is working for me after adding two files from 
> Hans to a slightly older version of ConTeXt (ver: 2023.02.07 19:06 LMTX  fmt: 
> 2023.3.14). I do not know if these files are of any use with the current 
> versions, but I am quoting a list email from January (including the files) 
> just in case it helps anyone with the present problems.
> 
> Gavin

These are already part of the distribution. Just one caveat: you need to use

\usemodule[tikz]
\usemodule[pgfplots]

Directly loading 

\usemodule[pgfplots]

will not work as the t-pgfplots module explicitly loads t-tikz, which does not 
work with LMTX.

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] tikz + lmtx

2023-04-28 Thread Gavin via ntg-context
Hi fellow Tik-Z users,

Tik-Z, including circuitikz, is working for me after adding two files from Hans 
to a slightly older version of ConTeXt (ver: 2023.02.07 19:06 LMTX  fmt: 
2023.3.14). I do not know if these files are of any use with the current 
versions, but I am quoting a list email from January (including the files) just 
in case it helps anyone with the present problems.

Gavin


> Hi Hans, Fabrice, and List,
> 
> Now it is working for me. I had installed the new upload. I also needed to 
> put the two new files from Hans’ earlier email (m-tikz-pgfplots.tex and 
> m-tikz-pgfplotstable.tex) in the right spot 
> (tex/texmf-context/tex/context/modules/mkxl) and run "mtxrun --generate”. I’m 
> not sure if I was also supposed to put the third file from the earlier email 
> in this spot also, but I didn’t, and it works.
> 
> I am still getting some new errors in specific files, but I will spend some 
> time tracking down the source of those errors before starting a new thread. 
> That might be a while, because all of the things I need for my current work 
> are now working.
> 
> I’ve re-attached those two files from the earlier email from Hans so anyone 
> reading this doesn’t need to hunt for them.
> 
> Thanks for the fixes!
> 
> Gavin
> 
> 


m-tikz-pgfplots.tex
Description: Binary data


m-tikz-pgfplotstable.tex
Description: Binary data

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

2023-04-28 Thread Ulrike Fischer via ntg-context
Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via
ntg-context:

> Circuitikz still doesn't work. Even loading the module fails. 

It works for me on texlive 2023 with your new module file. 



-- 
Ulrike Fischer 
http://www.troubleshooting-tex.de/

___
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] LuaMetaTeX doesn't find files when symlinked

2023-04-28 Thread Max Chernoff via ntg-context


Hi Lynx,

> Today, I created a separate "user command" within TeXstudio, and it
> points to "/usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun" 
> This command generates the same log output as the example at
> https://gitlab.com/islandoftex/images/texlive/-/issues/30.

This is probably not the same issue, since the path "context-linux-
64/bin/mtxrun" suggests that that isn't a symlink. (Well, it is a
symlink mtxrun => ./luametatex, but that email is about multi-level
symlinks like /usr/bin/context => /usr/local/texlive/2023/bin/x86_64-
linux/context => ./luametatex)

To compile a document, you almost certainly want to use "context"
instead of "mtxrun". So try changing the user command to
"/usr/local/ConTeXt_Standalone/context-linux-64/bin/context".

If that doesn't fix anything, run

   $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun --generate
   $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/context --make
   
and try again.

If it still doesn't work, then what do you get when you run

   $ /usr/local/ConTeXt_Standalone/context-linux-64/bin/context --nofile

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


Re: [NTG-context] LuaMetaTeX doesn't find files when symlinked

2023-04-28 Thread lynx--- via ntg-context
Max & Hans: 

I installed the stand-alone ConTeXt installation just today. It seems
like I have my $PATH set correctly now. 

I have been editing ConTeXt and running it within TeXstudio. I had set
up a "user command" to execute arara on LaTeX and ConTeXt files when I
did NOT have the "standalone" version installed. It still works
correctly. 

Today, I created a separate "user command" within TeXstudio, and it
points to "/usr/local/ConTeXt_Standalone/context-linux-64/bin/mtxrun" 
This command generates the same log output as the example at
https://gitlab.com/islandoftex/images/texlive/-/issues/30. 

If I understand this correctly, my OLD user command within TeXstudio is
still finding the TeXlive version of ConTeXt, and that TeXlive version
does have the symlinks mentioned by Max (and BTW, I did NOT create
those, they are part of the default TeXlive installation process!). This
is because my OLD "arara" command has the path to the March 13 version
of TeXlive 2023 version (installed from ISO image, with some updates
using tlmgr already installed). 

Lynx 

On 2023-04-27 21:00, Max Chernoff via ntg-context wrote:

> Hi Hans,
> 
> With the LuaMetaTeX-based ConTeXt wrapper, it's not generally possible
> to run ConTeXt from a symlinked binary in another directory. This shows
> up if someone makes symlinks in "/usr/bin" so that they can avoid adding
> anything to their $PATH.
> 
> If you make run a symlink to the LuaMetaTeX-based ConTeXt wrapper, it
> looks for texmfcnf.lua relative to the symlink location, not the symlink
> target. With the old LuaTeX/kpse-based wrapper, the script would look
> for texmfcnf.lua relative to the symlink target.
> 
> I know that my description above is terrible, so here's a demo:
> 
> $ bin=$(mtxrun --expand-var TEXMFOS | head -1)/*
> $ cd $(mktemp -d)
> $ ln -s $bin/luatex $bin/luametatex $bin/context $bin/context.lua $bin/mtxrun 
> $bin/mtxrun.lua .
> $ ./context --nofile
> $ ./context --luatex --nofile
> 
> Running the above commands used to work with the old LuaTeX/kpse-based
> wrapper, but it doesn't work any more. I was able to ""fix"" this by
> adding the lines
> 
> if os.selfpath then
> environment.ownbin = lfs.symlinktarget(os.selfpath .. io.fileseparator .. 
> os.selfname)
> environment.ownpath = environment.ownbin:match("^.*" .. io.fileseparator)
> else
> environment.ownpath = kpse.new("luatex"):var_value("SELFAUTOLOC")
> environment.ownbin = environment.ownpath .. io.fileseparator .. (arg[-2] or 
> arg[-1] or arg[0] or "luatex"):match("[^" .. io.fileseparator .. "]*$")
> end
> 
> to mtxrun.lua, right below the line
> 
> package.loaded["data-ini"] = package.loaded["data-ini"] or true
> 
> but this is obviously not a very good fix.
> 
> There are some threads with more details at:
> 
> https://tug.org/pipermail/tex-live/2023-March/049028.html
> https://gitlab.com/islandoftex/images/texlive/-/issues/30
> 
> Those links only discuss TL, but I get the same issue if I make a symlink
> to the standalone ConTeXt files. 
> 
> 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
> __
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
___