[NTG-context] Re: QR Code (Henning Hraban Ramm)
Hi Hraban, Downgrading zint to 2.12.0 worked for me. Many thanks! In case someone is experiencing similar issues, I ran: brew remove zint curl https://raw.githubusercontent.com/Homebrew/homebrew-core/962d789d26c9d8f760affe272689f21388f7d3e2/Formula/z/zint.rb > zint.rb brew install zint.rb zint --version (should be 2.12.0) [follow the instructions to symlink zint to tex/texmf-osx-64/bin/lib/luametatex/zint] mtxrun --generate ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: FreeBSD 13.2
Hello, Henning Hraban Ramm writes: > > I guess you’re lacking the main distribution package. > > My installation (tree -dL 4, partly shortened): > > . > ├── bin (installation only) > └── tex > ├── texmf-cache (necessary, but auto-created?) > │ ├── luametatex-cache > │ │ └── context > │ └── luatex-cache > │ └── context > ├── texmf-context (main tree) > │ ├── colors OK, I unpacked the main distribution in context/tex, set PATH and ran mtxrun --generate which output: resolvers | resolving | variable 'SELFAUTOLOC' set to '/usr/home/rmason/context/tex/texmf-freebsd-amd64/bin' resolvers | resolving | variable 'SELFAUTODIR' set to '/usr/home/rmason/context/tex/texmf-freebsd-amd64' resolvers | resolving | variable 'SELFAUTOPARENT' set to '/usr/home/rmason/context/tex' resolvers | resolving | variable 'TEXMFCNF' set to '' resolvers | resolving | variable 'TEXMF' set to '' resolvers | resolving | variable 'TEXOS' set to 'texmf-freebsd-amd64' resolvers | resolving | resolvers | resolving | using configuration specification 'home:texmf/web2c;selfautoparent:/texmf-local/web2c;selfautoparent:/texmf-context/web2c;selfautoparent:/texmf/web2c' resolvers | resolving | resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/home/rmason/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/usr/home/rmason/context/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/usr/home/rmason/context/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c' resolvers | resolving | looking for regular 'texmfcnf.lua' on given path '/usr/home/rmason/context/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/home/rmason/texmf/web2c' from specification 'home:texmf/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/usr/home/rmason/context/tex/texmf-local/web2c' from specification 'selfautoparent:/texmf-local/web2c' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/usr/home/rmason/context/tex/texmf-context/web2c' from specification 'selfautoparent:/texmf-context/web2c' resolvers | resolving | found fallback configuration file '/usr/home/rmason/context/tex/texmf-context/web2c/contextcnf.lua' resolvers | resolving | looking for fallback 'contextcnf.lua' on given path '/usr/home/rmason/context/tex/texmf/web2c' from specification 'selfautoparent:/texmf/web2c' resolvers | resolving | resolvers | resolving | skipping configuration file 'selfautoparent:/texmf-context/web2c/texmfcnf.lua' (no valid format) resolvers | resolving | no texmf paths are defined (using TEXMF) resolvers | resolving | mtxrun | mtxrun | elapsed lua time: 0.041 seconds Looks like the unset TEXMF and TEXMFCNF envars are a problem. What should they be set to and where should they be set? Thanks, Roger ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: archive.contextgarden.net 404?
On Sun, Jan 28, 2024 at 19:42 (+0100), Mojca Miklavec wrote: > On Fri, 26 Jan 2024 at 00:42, Jim wrote: >> Today I ran across three references to archive.contextgarden.net, one in a >> tugboat article and two others in context garden wiki pages. >> I was not able to reach that site. Is it (long since?) dead or is it just >> on vacation temporarily? > It is on a veery long vacation. > The previous server broke down and I've been waiting for the volunteer > taking care of the server to get it back up (on a new machine). Mojca, thanks very much for letting me know. Glad to hear it is a long vacation and not a permanent situation. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: archive.contextgarden.net 404?
On Fri, 26 Jan 2024 at 00:42, Jim wrote: > > Today I ran across three references to archive.contextgarden.net, one in a > tugboat article and two others in context garden wiki pages. > > I was not able to reach that site. Is it (long since?) dead or is it just > on vacation temporarily? It is on a veery long vacation. The previous server broke down and I've been waiting for the volunteer taking care of the server to get it back up (on a new machine). Mojca ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] archive.contextgarden.net 404?
Today I ran across three references to archive.contextgarden.net, one in a tugboat article and two others in context garden wiki pages. I was not able to reach that site. Is it (long since?) dead or is it just on vacation temporarily? Thanks. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
Hi Thomas, Thank you for your advice: I did add chmod +x install.sh and now the script runs without MacOS complaining. However, since I had downloaded a new script yesterday and had updated to version 2024.01.23, I cannot check whether the issue was adding +x to the file install.sh. Best regards: Otared > On 23 Jan 2024, at 22:06, Thomas A. Schmitz > wrote: > > Hi Otared, > > I just tried, and my Macbook ran the update without any problem. Does it make > any difference if you chmod +x the script install.sh? > > All best > > Thomas > > On 1/23/24 21:59, Otared Kavian wrote: >> Hi Dr Hans Van der Meer, >> Thank you for your help. It seems that since January 18 something has >> changed (either on MacOS or on the install script), because the last >> time I could update without doing anything more than sh install.sh. >> In any case I checked xattr with >> which xattr >> and got: >> /usr/bin/xattr >> Then I did >> xattr -d com.apple.quarantine >> /Applications/context-osx-arm64/install.sh >> and got: >> xattr: /Applications/context-osx-arm64/install.sh: No such xattr: >> com.apple.quarantine >> Invoking again sh install.sh resulted in the error message I reported >> previously. >> Best regards: Otared > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > ___ Otared Kavian e-mail: ota...@gmail.com Phone: +33 6 88 26 70 95 ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: upload
Hi Otared, I just tried, and my Macbook ran the update without any problem. Does it make any difference if you chmod +x the script install.sh? All best Thomas On 1/23/24 21:59, Otared Kavian wrote: Hi Dr Hans Van der Meer, Thank you for your help. It seems that since January 18 something has changed (either on MacOS or on the install script), because the last time I could update without doing anything more than sh install.sh. In any case I checked xattr with which xattr and got: /usr/bin/xattr Then I did xattr -d com.apple.quarantine /Applications/context-osx-arm64/install.sh and got: xattr: /Applications/context-osx-arm64/install.sh: No such xattr: com.apple.quarantine Invoking again sh install.sh resulted in the error message I reported previously. Best regards: Otared ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: mtx-synctex.lua question
On Fri, Dec 8, 2023 at 21:18 (+0100), Hans Hagen wrote: > On 12/8/2023 7:51 PM, Jim wrote: >> Hi Hans (and anyone else interested in synctex), >> 282a284,285 >>> locate( 0, s) if fi ~= 0 then tl = s ; goto done end >>> locate( 0,-s) if fi ~= 0 then tl = s ; goto done end >> and then wrote the following quick and dirty shell script to create log >> files for comparison: > ok >> Admittedly, with the other two directions added in, a more extensive test >> (a total of a bit under 14 minutes CPU time on a Ryzen 4700U) showed the >> new version is about 0.5% slower, so there is a very minor downside. (I'd >> happily spend the extra matches for the minuscule amount of CPU time, but >> others may not.) > the .5% precen tis no big deal, also because this script is not that time > critical (the code could be made a bit faster anyway) so i'll add the few > lines Great. If nothing else, it will keep other people from asking the same question in the future. :-) > so those 14 minutes, was that N times a file or 1 time a huge file? N times a file: I swiped the code from the program and defined two functions, one (test_old) one for the current code and one for the new code: test_new () { for x in $=x_vals do for y in $=y_vals do printf "%3d, %3d: " $x $y out=`mtxrun --script mtx-synctex-jd.lua --goto --direct \ --page=$page --x=$x --y=$y --tolerance=$tolerance $st_file` echo $out done done } (The test_old was the same except for the argument to --script, which is 'synctext'.) I defined $page=15, $tolerance=300 and $st_file to be a file with 3441 lines (there are 19 pages in total, so I was skipping a lot of stuff) and changed x_vals and y_vals to create a lot of iterations: x_vals=`seq 100 5 550` y_vals=`seq 100 5 700` and finally I ran time (test_new > /dev/null) and time (test_old > /dev/null) So mtxrun was called for each of these 11,011 times. Not the best possible benchmark, but probably good enough to show that adding the other two cases isn't hurtful. Cheers. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: mtx-synctex.lua question
Hi Hans (and anyone else interested in synctex), On Fri, Dec 8, 2023 at 11:38 (-0400), Jim wrote: > Hi Hans, > On Fri, Dec 8, 2023 at 15:03 (+0100), Hans Hagen wrote: >> On 12/7/2023 7:23 PM, Jim wrote: >>> Hi, >>> In mtx-synctex.lua, inside >>> local function findlocation(filename,page,xpos,ypos,tolerance) >>> there is the following code: >>> for s=1,tolerance,max(tolerance//10,1) do >>> locate( s, 0) if fi ~= 0 then tl = s ; goto done end >>> locate(-s, 0) if fi ~= 0 then tl = s ; goto done end >>> locate( s, s) if fi ~= 0 then tl = s ; goto done end >>> locate( s,-s) if fi ~= 0 then tl = s ; goto done end >>> locate(-s, s) if fi ~= 0 then tl = s ; goto done end >>> locate(-s,-s) if fi ~= 0 then tl = s ; goto done end >>> end >>> Is the omission of the >>> locate(0, s) ... >>> and >>> locate(0, -s) ... >>> cases intentional, or is that an oversight? >>> If intentional, can someone explain the rationale to me? >> it's too long ago to remember the reason ... did you test with and without? > I did not. Yet. > But on your suggestion, I will give it a try and get back to you. I modified mtx-synctex.lua as follows: % diff /usr/local/context/tex/texmf-context/scripts/context/lua/mtx-synctex.lua mtx-synctex-jd.lua 279a280 > -- JD added (0, +/-s) cases for testing 282a284,285 > locate( 0, s) if fi ~= 0 then tl = s ; goto done end > locate( 0,-s) if fi ~= 0 then tl = s ; goto done end and then wrote the following quick and dirty shell script to create log files for comparison: - #! /bin/zsh # File: compare-my-synctex-version # Author: Jim Diamond # Created: 2023/12/08 13:27:23 # # Purpose: Run some tests to compare ConTeXt's mtx-synctex-lua to # my own version, vis-a-vis the backward-search # functionality. # # Notes:Assumes $1 is a valid ConTeXt synctex file, # $2 is a valid page within that file, and # $3, if present, is a valid DEFAULT_TOLERANCE=300 if [[ $# < 2 || $# > 3 || ! -r $1 ]] then echo >&2 "Usage: $0 [tolerance]" echo >&2 " tolerance default is $DEFAULT_TOLERANCE." exit 1 fi st_file=$1 page=$2 if [[ $3 != "" ]] then tolerance=$3 else tolerance=$DEFAULT_TOLERANCE fi x_vals=`seq 100 50 550` y_vals=`seq 100 50 700` old_results=${st_file}_page_${page}_tol_${tolerance}_using_current.out new_results=${st_file}_page_${page}_tol_${tolerance}_using_new.out if [[ -e $old_results || -e $new_results ]] then printf >&2 "$0: at least one of\n\t%s\nor\n\t%s\nexists; quitting.\n" \ $old_results $new_results exit 1 fi # Get rid of the extra newline from mtxrun as done below. for x in $=x_vals do for y in $=y_vals do printf "%3d, %3d: " $x $y out=`mtxrun --script synctex --goto --direct \ --page=$page --x=$x --y=$y --tolerance=$tolerance $st_file` echo $out done done | tee $old_results echo for x in $=x_vals do for y in $=y_vals do printf "%3d, %3d: " $x $y out=`mtxrun --script mtx-synctex-jd.lua --goto --direct \ --page=$page --x=$x --y=$y --tolerance=$tolerance $st_file` echo $out done done | tee $new_results - and ran it on one page of one synctex file for a few different values of tolerance (300, 200, 100 and 50). To briefly summarize, the modified script found a small number of matches that the original script didn't, occasionally the line number was different (almost always by 1, but a few times more), and the tolerance returned by this test version was also <= the tolerance returned by the current version. Admittedly, with the other two directions added in, a more extensive test (a total of a bit under 14 minutes CPU time on a Ryzen 4700U) showed the new version is about 0.5% slower, so there is a very minor downside. (I'd happily spend the extra matches for the minuscule amount of CPU time, but others may not.) Cheers. Jim ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___
[NTG-context] Re: Install fonts on MS Windows
Thanks a lot everybody ! Thank you all for the clarifying information! The problem has been solved using the command recommended by Pablo. All my attempts to clear the Windows font cache have failed, except for this one: mtxrun --script cache --erase && mtxrun --generate I started by copying the fonts into the \texmf-fontes\data\ directory, then I emptied the cache. Then, the following command: mtxrun --script fonts --list --pattern=didot --all works and correctly returns otf and ttf theano and gfs fonts. And thanks to Andres : your MWE compiles perfectly ! Now, I must confess that I don't know why installing new fonts in c:\windows\fonts, even after laboriously purging the Windows font cache and reloading the CTX font cache, didn't have the expected effects ... Le 24/09/2023 à 07:50, Andres Conrado Montoya a écrit : I did a test with Windows 10. Installed a fresh copy from the garden, Got the GFS Didot font from Google Fonts, and installed it system-wide (C:\Windows\fonts). After that, I ran mtxrun --script fonts --reload Then tried the pattern suggested but did not work. However, then I tried a pattern without asterisks: mtxrun --script fonts --list --pattern=didot --all This returned the font: C:\griego>mtxrun --script fonts --list --pattern=didot --all identifier familyname fontname filename subfont instances gfsdidot gfsdidot gfsdidotregular c:/windows/fonts/GFSDidot-Regular.ttf gfsdidotnormal gfsdidot gfsdidotregular c:/windows/fonts/GFSDidot-Regular.ttf gfsdidotregular gfsdidot gfsdidotregular c:/windows/fonts/GFSDidot-Regular.ttf theanodidot theanodidot theanodidotregular c:/windows/fonts/TheanoDidot-Regular.ttf theanodidotnormal theanodidot theanodidotregular c:/windows/fonts/TheanoDidot-Regular.ttf theanodidotregular theanodidot theanodidotregular c:/windows/fonts/TheanoDidot-Regular.ttf trying to render Pablo's example didn't work at first, but after i called the fonts with the name returned by mtxrun: \mainlanguage[agr] \definefontfamily[mainface][rm][gfsdidot] \definefontfamily[mainface][ss][theanodidot] \setupbodyfont[mainface] \starttext GFS Didot: \doloopoverlist{\tf, \it, \bf, \bi} {\recursestring\input aristotle-grc\par} \ss Theano Didot: \input aristotle-grc \stoptext Everything compiles correctly, and the font is used. Since it's only a single font file with no variants, you don´t get italics, bold etc. But the font is being used. -- Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell ___ 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 ___ -- Jean-Pierre Delange Ancients "Few discoveries are more irritating than those which expose the pedigree of ideas". Lord Acton ___ 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] Re: Install fonts on MS Windows
I did a test with Windows 10. Installed a fresh copy from the garden, Got the GFS Didot font from Google Fonts, and installed it system-wide (C:\Windows\fonts). After that, I ran mtxrun --script fonts --reload Then tried the pattern suggested but did not work. However, then I tried a pattern without asterisks: mtxrun --script fonts --list --pattern=didot --all This returned the font: C:\griego>mtxrun --script fonts --list --pattern=didot --all identifier familynamefontname filename subfont instances gfsdidot gfsdidot gfsdidotregular c:/windows/fonts/GFSDidot-Regular.ttf gfsdidotnormal gfsdidot gfsdidotregular c:/windows/fonts/GFSDidot-Regular.ttf gfsdidotregular gfsdidot gfsdidotregular c:/windows/fonts/GFSDidot-Regular.ttf theanodidot theanodidot theanodidotregular c:/windows/fonts/TheanoDidot-Regular.ttf theanodidotnormaltheanodidot theanodidotregular c:/windows/fonts/TheanoDidot-Regular.ttf theanodidotregular theanodidot theanodidotregular c:/windows/fonts/TheanoDidot-Regular.ttf trying to render Pablo's example didn't work at first, but after i called the fonts with the name returned by mtxrun: \mainlanguage[agr] \definefontfamily[mainface][rm][gfsdidot] \definefontfamily[mainface][ss][theanodidot] \setupbodyfont[mainface] \starttext GFS Didot: \doloopoverlist{\tf, \it, \bf, \bi} {\recursestring\input aristotle-grc\par} \ss Theano Didot: \input aristotle-grc \stoptext Everything compiles correctly, and the font is used. Since it's only a single font file with no variants, you don´t get italics, bold etc. But the font is being used. -- Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell ___ 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] Re: how to define an environment with key=value arguments
Am 08.09.23 um 19:37 schrieb Henning Hraban Ramm: But it uses its own page size, I don’t understand why. I need the bleed/trim area. If I use \setlayer in the setup, the content gets placed on the next page, i.e. under the text. \structureuservariable{image} in the setup gets the value from the _next_ chapter. Maybe the approach in from the source with \dummyparameter\c!name would work better, but I don’t know how to transfer it. I gave up, ran into too many problems. Tried to avoid injections and put everything in before/beforesection macros, but \structureuservariable there also always picks up the values from the next chapter (while I would expect the current or maybe the previous). So I copy-pasted the whole bunch of ugly commands in front of every chapter, and it works. It’s only for one book with 18 chapters, doesn’t make much sense to spend even more time on a more elegant solution. Hraban ___ 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] Re: Experiments with \doloopoverlist
Thank you Hanks, seems to work well after some tweaking. I had an issue, the patch you sent me gave an error when I ran 'context --make'. The error said: tex error > tex error on line 51 in file core-dat.mkxl: Parameters must be numbered consecutively [#1]#*[ S \permanent\tolerant\protected\def\setdataset[#1]#*[#S #2]#*[#S#3]% I've inserted the digit you should have used after the #. I edited line 51 as: \permanent\tolerant\protected\def\setdataset[#1]#*[#2]#*[#3]% Instead of your original: \permanent\tolerant\protected\def\setdataset[#1]#*[#S#2]#*[#S#3]% And now context --make runs, and the example compiles correctly, however, not really sure if what I did was the right thing to do. Thank you so much for your help! -- Andrés Conrado Montoya Andi Kú andresconr...@gmail.com http://sesentaycuatro.com http://messier87.com http://chiquitico.org Los fines no justifican los medios, porque la medida verdadera de nuestro carácter está dada por los medios que estamos dispuestos a utilizar, no por los fines que proclamamos. “You develop an instant global consciousness, a people orientation, an intense dissatisfaction with the state of the world, and a compulsion to do something about it. From out there on the moon, international politics look so petty. You want to grab a politician by the scruff of the neck and drag him a quarter of a million miles out and say, ‘Look at that, you son of a bitch.’” — Apollo 14 astronaut Edgar Mitchell ___ 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] Problems with luametatex and texlive on OpenBSD
Hi everyone, I'm finalising packaging TeX Live 2023 for OpenBSD and have an issue with context using the new luametatex engine. I'm getting various Lua errors when running `context --make`, like: node-ini.lmt:54: attempt to call a nil value (local 'getvalues') and: node-nut.lmt:22: attempt to index a nil value (local 'nodecodes') (full log below) As far as I can see, I've set up the system in the same way as the other downstream packagers have (according to https://github.com/contextgarden/luametatex/issues/1 and https://wiki.contextgarden.net/Building_LuaMetaTeX_for_TeX_Live): - make symlinks * /usr/local/bin/context.lua -> ../share/texmf-dist/scripts/context/lua/context.lua * /usr/local/bin/mtx-context.lua -> ../share/texmf-dist/scripts/context/lua/mtx-context.lua * /usr/local/bin/mtxrun.lua -> ../share/texmf-dist/scripts/context/lua/mtxrun.lua * /usr/local/bin/context -> luametatex * /usr/local/bin/mtxrun -> luametatex - patch resolvers * https://github.com/jasperla/openbsd-wip/blob/master/print/texlive/texmf/patches/patch-texmf-dist_scripts_context_lua_mtxrun_lua * https://github.com/jasperla/openbsd-wip/blob/master/print/texlive/texmf/patches/patch-texmf-dist_tex_context_base_mkiv_data-res_lua * https://github.com/jasperla/openbsd-wip/blob/master/print/texlive/texmf/patches/patch-texmf-dist_web2c_texmf_cnf In OpenBSD, we install the trees in /usr/local/share/texmf* (a hangover from teTeX), so in these patches, TRUEPREFIX resolves to /usr/local. This does mean selfauto doesn't work, but in the past I've always just patched in absolute paths and it's been fine. Does anyone know what may cause these errors? I've prodded around inside the lua and luametatex sources, but I don't really know what's going on. I tend to agree with Lua that the variables in question are not defined, so using them causes a `nil` to appear which can't be indexed or called. Something else must be expected to set up the undefined variables somewhere... Any help would be greatly appreciated. Full output of `context --make`: ``` resolvers | resolving | configuration files already identified resolvers | resolving | loading configuration file '/usr/local/share/texmf-dist/web2c/texmfcnf.lua' resolvers | resolving | resolvers | resolving | locating list of 'home:.texlive2023/texmf-config' (runtime) (tree:///home:.texlive2023/texmf-config) resolvers | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:///home:.texlive2023/texmf-config' resolvers | trees | locator 'home:.texlive2023/texmf-config' not found resolvers | resolving | locating list of 'home:texmf' (runtime) (tree:///home:texmf) resolvers | methods | resolving, method 'locators', how 'uri', handler 'tree', argument 'tree:///home:texmf' resolvers | trees | locator 'home:texmf' not found resolvers | resolving | locating list of '/usr/local/share/texmf-config' (cached) resolvers | methods | resolving, method 'locators', how 'uri', handler 'file', argument '/usr/local/share/texmf-config' resolvers | files | file locator '/usr/local/share/texmf-config' not found resolvers | resolving | locating list of '/usr/local/share/texmf-var' (cached) resolvers | methods | resolving, method 'locators', how 'uri', handler 'file', argument '/usr/local/share/texmf-var' resolvers | files | file locator '/usr/local/share/texmf-var' found as '/usr/local/share/texmf-var' resolvers | resolving | locating list of '/usr/local/share/texmf-project' (cached) resolvers | methods | resolving, method 'locators', how 'uri', handler 'file', argument '/usr/local/share/texmf-project' resolvers | files | file locator '/usr/local/share/texmf-project' not found resolvers | resolving | locating list of '/usr/local/share/texmf-fonts' (cached) resolvers | methods | resolving, method 'locators', how 'uri', handler 'file', argument '/usr/local/share/texmf-fonts' resolvers | files | file locator '/usr/local/share/texmf-fonts' not found resolvers | resolving | locating list of '/usr/local/share/texmf-local' (cached) resolvers | methods | resolving, method 'locators', how 'uri', handler 'file', argument '/usr/local/share/texmf-local' resolvers | files | file locator '/usr/local/share/texmf-local' found as '/usr/local/share/texmf-local' resolvers | resolving | locating list of '/usr/local/share/texmf-dist' (cached) resolvers | methods | resolving, method 'locators', how 'uri', handler 'file', argument '/usr/local/share/texmf-dist' resolvers | files | file locator '/usr/local/share/texmf-dist' found as '/usr/local/share/texmf-dist' resolvers | resolving | resolvers | methods | resolving, method 'generators', how 'uri', handler 'file', argument '/usr/local/share/texmf-var' resolvers | expansions | scanning path '/usr/local/share/texmf-var', branch
[NTG-context] Re: Par Builder Tests
On 7/21/2023 5:34 PM, Keith McKay wrote: Hi all, At the end of June, Hans uploaded a new lmtx version which included improvements to par building which he and Mikael had been working on in math mode. Hans suggested in the online chat that these improvements may be useful in typesetting novels. I was keen to try these since I have typset novels in the past. I have ran some tests on two novels which I downloaded from the Gutenberg Project site as epubs and extracted them to get the original xhtml files which I then typeset in context. I made very little in the way of changes to the files so that my setup for xml was very simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{1}{150} \setpenalties\clubpenalties {1}{150} \stopsetups \setuplayout[ width=10cm, topspace=0.5in, backspace=2.0cm, header=7.5mm, footer=0.25in, location={middle,middle}, vs=2, grid=yes, setups=mypenalties ] %\enabletrackers[makeup] %\enabletrackers[builders.hpack.quality] \enabletrackers[builders.hpack.overflow] %\enabletrackers[layout.vz] %\enabletrackers[paragraphs.passes] \enabletrackers[paragraphs.passes=summary] %\enabletrackers[paragraphs.passes=details] \setupalign[granular] %\setupalign[nothyphenated,hz,verytolerant] %\setupalign[vertical,height] %\setupalignpass[decent] %\setupalignpass[quality] %\setupalignpass[test1] \setupalignpass[test2] %\setupalignpass[test3] %\setupalignpass[test4] %\setupalignpass[test5] %\setupalignpass[optional1] %\setupalignpass[test2b] \starttext \setuppagenumbering[location={footer,middle},alternative=doublesided,state=start] \setcounter[userpage][1] %\showmakeup[vbox] %\showlayout \dostepwiserecurse{0}{30}{1}{ \xmlprocessfile{mysetups}{/path to xhtml files/4439720318703948998_84-h-\recurselevel.htm.xhtml}{} } \stoptext Below are the result showing the number of overfull boxes for these novels using the setups in the file spac-imp-tests.mkxl . See the manual Low Level - Lines Test Novel1 Novel2 Test1 70 35 Test2 30 8 Test3 62 23 Test4 89 40 Test5 28 9 Optional1 55 19 Quality 74 32 Decent 39 11 From these initial tests one can see that Test2 gave the lowest number of overfull boxes. So I edited test two, ran it, and the results are below. Test Novel1 Novel2 Test2b 11 0 My setup for test 2b is as follows: \startsetups align:pass:test2b \pretolerance 100 \tolerance 200 \parpasses 3 classes \indecentparpassclasses threshold 0.025pt tolerance 800 extrahyphenpenalty 50 next threshold 0.025pt tolerance 900 adjustspacing 3 adjustspacingstep 1 adjustspacingshrink 10 adjustspacingstretch 15 next threshold 0.025pt tolerance 1000 adjustspacing 3 adjustspacingstep 1 adjustspacingshrink 20 adjustspacingstretch 40 emergencystretch .25\bodyfontsize \relax % \linebreakpasses\plusone \stopsetups The only difference between test 2 and 2b are that I increased the tolerance in each of the three passes. In novel 2 this was successful in eliminating the overfull boxes but not in Novel 1 although I noticed that majority of overfull boxes were above 1pt with the largest about 12pt in Novel 1. I am at the stage now where I need some kind of strategy to reduce/eliminate overfull boxes, other than changing the tolerance, and I'm hoping for some advice from the community. Suggestions for further reading particularly on the commands in \setupalignpass and their usage would be appreciated and on the best way to tackle overfull boxes. you're too tolerant (stick to 200), you can even start out with pretolerance 50 and tolerance 150 and then in the passes 200 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] Par Builder Tests
Hi all, At the end of June, Hans uploaded a new lmtx version which included improvements to par building which he and Mikael had been working on in math mode. Hans suggested in the online chat that these improvements may be useful in typesetting novels. I was keen to try these since I have typset novels in the past. I have ran some tests on two novels which I downloaded from the Gutenberg Project site as epubs and extracted them to get the original xhtml files which I then typeset in context. I made very little in the way of changes to the files so that my setup for xml was very simple. Here are my setups for the layout of the novels showing some trackers that were used as well: \definepapersize[pagee][width=5.06in,height=7.81in] \setuppapersize[pagee] % XML setups here \startsetups[grid][mypenalties] \setdefaultpenalties \setpenalties\widowpenalties{1}{150} \setpenalties\clubpenalties {1}{150} \stopsetups \setuplayout[ width=10cm, topspace=0.5in, backspace=2.0cm, header=7.5mm, footer=0.25in, location={middle,middle}, vs=2, grid=yes, setups=mypenalties ] %\enabletrackers[makeup] %\enabletrackers[builders.hpack.quality] \enabletrackers[builders.hpack.overflow] %\enabletrackers[layout.vz] %\enabletrackers[paragraphs.passes] \enabletrackers[paragraphs.passes=summary] %\enabletrackers[paragraphs.passes=details] \setupalign[granular] %\setupalign[nothyphenated,hz,verytolerant] %\setupalign[vertical,height] %\setupalignpass[decent] %\setupalignpass[quality] %\setupalignpass[test1] \setupalignpass[test2] %\setupalignpass[test3] %\setupalignpass[test4] %\setupalignpass[test5] %\setupalignpass[optional1] %\setupalignpass[test2b] \starttext \setuppagenumbering[location={footer,middle},alternative=doublesided,state=start] \setcounter[userpage][1] %\showmakeup[vbox] %\showlayout \dostepwiserecurse{0}{30}{1}{ \xmlprocessfile{mysetups}{/path to xhtml files/4439720318703948998_84-h-\recurselevel.htm.xhtml}{} } \stoptext Below are the result showing the number of overfull boxes for these novels using the setups in the file spac-imp-tests.mkxl . See the manual Low Level - Lines Test Novel1 Novel2 Test1 70 35 Test2 30 8 Test3 62 23 Test4 89 40 Test5 28 9 Optional1 55 19 Quality 74 32 Decent 39 11 From these initial tests one can see that Test2 gave the lowest number of overfull boxes. So I edited test two, ran it, and the results are below. Test Novel1 Novel2 Test2b 11 0 My setup for test 2b is as follows: \startsetups align:pass:test2b \pretolerance 100 \tolerance 200 \parpasses 3 classes \indecentparpassclasses threshold 0.025pt tolerance 800 extrahyphenpenalty 50 next threshold 0.025pt tolerance 900 adjustspacing 3 adjustspacingstep 1 adjustspacingshrink 10 adjustspacingstretch 15 next threshold 0.025pt tolerance 1000 adjustspacing 3 adjustspacingstep 1 adjustspacingshrink 20 adjustspacingstretch 40 emergencystretch .25\bodyfontsize \relax % \linebreakpasses\plusone \stopsetups The only difference between test 2 and 2b are that I increased the tolerance in each of the three passes. In novel 2 this was successful in eliminating the overfull boxes but not in Novel 1 although I noticed that majority of overfull boxes were above 1pt with the largest about 12pt in Novel 1. I am at the stage now where I need some kind of strategy to reduce/eliminate overfull boxes, other than changing the tolerance, and I'm hoping for some advice from the community. Suggestions for further reading particularly on the commands in \setupalignpass and their usage would be appreciated and on the best way to tackle overfull boxes. Best Wishes Keith McKay ___ 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] Super slow installation
mkdir /tmp/context cd /tmp/context wget "lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip" unzip context-linux-64.zip sh install.sh Installation went quite quickly (after downloading the zip files). Ran it cleanly twice. Looks like it's back to its previous speed, thank you. ___ 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] Super slow installation
On 5/30/2023 1:03 AM, Thangalin via ntg-context wrote: Hi, Installation of a fresh copy of LMTX has gone from a few minutes to about 30 minutes. Here's what I ran: 1. Open terminal 2. Change to root 3. cd /opt 4. mkdir context-2023-05-29 5. cd context-2023-05-29 6. wget "http://lmtx.pragma-ade.com/install-lmtx//texmf.zip; 7. unzip texmf.zip 8. chmod +x install.sh 9. ./install.sh mtx-install | unzipping 'texmf-context.zip' 518 files of 5180 done, 81058499 bytes, 0.403 seconds ... snip ... 5180 files of 5180 done, 171691491 bytes, 1.035 seconds mtx-install | installing tex/texmf-context, 4924 files mtx-install | new : 0 % : 2447 : tex/texmf-context/context-readme.txt ... snip ... mtx-install | new : 48 % :21898 : tex/texmf-context/doc/context/sources/general/manuals/about/still-expanding-10.png Getting to this point has taken shy of 15 minutes. Any ideas what's going on or how to fix it? Note that upgrading against the version prior to 2023.05.29 (i.e., without re-installing from scratch), the process happens pretty quickly. can you try again? maybe the vm was in the process of beging backed up 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] Super slow installation
Hi, Installation of a fresh copy of LMTX has gone from a few minutes to about 30 minutes. Here's what I ran: 1. Open terminal 2. Change to root 3. cd /opt 4. mkdir context-2023-05-29 5. cd context-2023-05-29 6. wget "http://lmtx.pragma-ade.com/install-lmtx//texmf.zip; 7. unzip texmf.zip 8. chmod +x install.sh 9. ./install.sh mtx-install | unzipping 'texmf-context.zip' 518 files of 5180 done, 81058499 bytes, 0.403 seconds ... snip ... 5180 files of 5180 done, 171691491 bytes, 1.035 seconds mtx-install | installing tex/texmf-context, 4924 files mtx-install | new : 0 % : 2447 : tex/texmf-context/context-readme.txt ... snip ... mtx-install | new : 48 % :21898 : tex/texmf-context/doc/context/sources/general/manuals/about/still-expanding-10.png Getting to this point has taken shy of 15 minutes. Any ideas what's going on or how to fix it? Note that upgrading against the version prior to 2023.05.29 (i.e., without re-installing from scratch), the process happens pretty quickly. Thank you! ___ 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] installer
On 07/05/2023 17:13, Hans Hagen via ntg-context wrote: I just ran the install script (that then updates) on a linux box and get: ok. just did a fresh sh install.sh the script seems to run fine but still a mention of 'changelog' ~/context $ mtxrun --script install-modules --list resolvers | globbing | confusing filename, name: 'CHANGELOG', lower: 'changelog', already: 'ChangeLog' ___ 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] installer
On 5/7/2023 5:05 PM, Otared Kavian via ntg-context wrote: Hi Hans, Updating to current version: 2023.05.07 16:33 and issuing mtxrun --script install-modules I just ran the install script (that then updates) on a linux box and get: hagen@laptop-8:/data/context> export PATH=/data/context/tex/texmf-linux-64/bin:$PATH hagen@laptop-8:/data/context> mtxrun --script install-modules mtx-install-modules | ConTeXt Module Installer 1.00 mtx-install-modules | mtx-install-modules | --list list modules mtx-install-modules | --install install modules mtx-install-modules | --module install (zip) file(s) mtx-install-modules | mtx-install-modules | mtx-install-modules | Examples mtx-install-modules | mtx-install-modules | mtxrun --script install-modules --list mtx-install-modules | mtx-install-modules | mtxrun --script install-modules --install filter letter mtx-install-modules | mtxrun --script install-modules --install tikz mtx-install-modules | mtxrun --script install-modules --install --all mtx-install-modules | mtx-install-modules | mtxrun --script install-modules --install --module t-letter.zip mtx-install-modules | mtx-install-modules | mtx-install-modules | More information about ConTeXt and the tools that come with it can be found at: mtx-install-modules | mtx-install-modules | maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context mtx-install-modules | webpage : http://www.pragma-ade.nl / http://tex.aanhet.net mtx-install-modules | wiki : http://contextgarden.net mtx-install-modules | - 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] update
Hi Lynx, > * How can I be sure that the standalone version is the one being > implemented? It depends on what your $PATH is set to. On Linux/macOS, you can run $ type -ap context to list all the ConTeXts in your $PTAH. The first one in that list is the one that will be ran by default. If you want to always run the standalone version, then you'll need to make sure that your ConTeXt directory comes before your TL directory in your PATH. On Linux/macOS, you'd add something like export PATH="/path/to/context/bin/:$PATH" to your ~/.profile; on Windows, you can use the "setx" command. Googling something like "add location to path" will get you more specific instructions for your OS/shell. > * How do I update the standalone version Just run the installer again. On my system, I run $ cd /opt/context $ sudo sh ./install.sh > (I assume that, as of today, > it is already the most up-to-date version Correct. > if and when it is > required or desired to do so? You only need to update ConTeXt if a new update fixes a bug that affects you or adds a new feature that you want. Most updates are announced on the list, so you could just update whenever you see a new update. Or you could just try updating once per week. You could also just never update. Up to you. The general recommendation is to save an old copy of the ConTeXt folder before you update in case something breaks. I've never done this before though since I can usually patch the bugs myself, and I can always fall back on the version in TL if something is really broken. -- 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] Problem with latest version ?
On 1/5/2023 11:40 AM, Gavin via ntg-context wrote: Hi Hans, On Jan 5, 2023, at 12:39 AM, Hans Hagen via ntg-context wrote: On 1/5/2023 2:40 AM, Gavin via ntg-context wrote: Hi List, I could not figure out the right spot for the files m-tikz-pgfplots.tex and m-tikz-pgfplotstable.tex. I don’t currently have files with those names anywhere, and files with similar names and contents appear in a couple different places. I had to put off sorting it out until I had some more time. I was able to find the right place for m-tikz.mkxl, and it prevented an error at \usemodule[pgfplots], but I’d still get an error if I tried to use any command from the pgfplots. indeed they go alongside the m-tikz file ... did you run mtxrun --generate? Now I put the files alongside and ran mtxrun —generate. It did not work. The test file and resulting error are below. I used ConTeXt ver: 2022.12.29 14:32 LMTX fmt: 2022.12.29 int: english/english. I can try with the latest LMTX later today. The test file works with TeXLive 2022 Gavin TEST FILE: \usemodule[tikz] \usemodule[pgfplots]% PGFPlots module for graphs \starttext \starttikzpicture \draw (0, 0) circle (3cm); \stoptikzpicture \starttikzpicture \startaxis \addplot+[domain=0:360] {sin(x)}; \stopaxis \stoptikzpicture \stoptext fixed in next upload (later today) - 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] Problem with latest version ?
Hi Hans, > On Jan 5, 2023, at 12:39 AM, Hans Hagen via ntg-context > wrote: > > On 1/5/2023 2:40 AM, Gavin via ntg-context wrote: >> Hi List, >> I could not figure out the right spot for the files m-tikz-pgfplots.tex and >> m-tikz-pgfplotstable.tex. I don’t currently have files with those names >> anywhere, and files with similar names and contents appear in a couple >> different places. I had to put off sorting it out until I had some more time. >> I was able to find the right place for m-tikz.mkxl, and it prevented an >> error at \usemodule[pgfplots], but I’d still get an error if I tried to use >> any command from the pgfplots. > indeed they go alongside the m-tikz file ... did you run mtxrun --generate? Now I put the files alongside and ran mtxrun —generate. It did not work. The test file and resulting error are below. I used ConTeXt ver: 2022.12.29 14:32 LMTX fmt: 2022.12.29 int: english/english. I can try with the latest LMTX later today. The test file works with TeXLive 2022 Gavin TEST FILE: \usemodule[tikz] \usemodule[pgfplots]% PGFPlots module for graphs \starttext \starttikzpicture \draw (0, 0) circle (3cm); \stoptikzpicture \starttikzpicture \startaxis \addplot+[domain=0:360] {sin(x)}; \stopaxis \stoptikzpicture \stoptext ERROR: tex error > tex error on line 15 in file ./TikZTest.tex: Illegal unit of measure (pt inserted) \relax \pgfpl@@ #1->\advance \count 0 by-1\relax \ifnum \count 0=-1\relax \global \def \pgfplotslistselect@tmp {\def \pgfplotsretval {#1}}\fi \pgfpl@@ \pgfpl@@ {blue,every mark/.append style={fill=blue!80!black},mark=*} \pgfpl@@ {red,every mark/.append style={fill=red!80!black},mark=square*}\pgfpl@@ {brown!60!black,every mark/.append style={fill=brown!80!black},mark=otimes*}\pgfpl@@ {black,mark=star \pgfplotslistselect@ #1\of #2\to #3->\begingroup \count 0=#1\relax \long \def \pgfpl@@ ##1{\advance \count 0 by-1\relax \ifnum \count 0=-1\relax \global \def \pgfplotslistselect@tmp {\def #3{##1}}\fi }#2 \endgroup \pgfplotslistselect@tmp \pgfplots@getautoplotspec@ #1#2#3->\ifnum #2=0 \let \pgfplotsretval =\pgfutil@empty \else \pgfplotsmathmodint {#3}{#2}\pgfplotslistselect \pgfmathresult \of #1\to \pgfplotsretval \fi \pgfplots@getautoplotspec ...ternal error: expected 'L' or 'M', not '\pgfplots@cycle@multi@list@sequence '}\fi \fi \else \pgfplotslistsize \autoplotspeclist \to \c@pgf@countd \pgfplots@getautoplotspec@ {\autoplotspeclist }{\c@pgf@countd }{\pgfplots@listindex } \let #1=\pgfp ... ... \addplot+ [domain=0:360] 5 \usemodule[pgfplots] % PGFPlots module for graphs 6 7 \starttext 8 9 \starttikzpicture 10 \draw (0, 0) circle (3cm); 11 \stoptikzpicture 12 13 \starttikzpicture 14 \startaxis 15 >> \addplot+[domain=0:360] 16 {sin(x)}; 17 \stopaxis 18 \stoptikzpicture 19 20 \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] Structure: multi-volume products
Alan, I'm attaching the two master files used for the following (also ran cross refs between each vol.): Murugaiyan, Appasamy & Parlier-Renault, Édith (2021) (Eds) Whispering of Inscriptions: South Indian Epigraphy and Art History: Papers from an International Symposium in memory of Professor Noboru Karashima (Paris, 12–13 October 2017). Oxford: Indica et Buddhica. (2 vols) https://indica-et-buddhica.com/publications/murugaiyan-appasamy-parlier-renault-edith/whispering-of-inscriptions-south-indian-epigraphy-and-art-history Best, Richard -- T +6433121699 M +64210640216 rmaho...@indica-et-buddhica.org https://indica-et-buddhica.com/ Indica et Buddhica Littledene Bay Road Oxford NZ NZBN: 9429041761809 -Original Message- From: Alan Braslau via ntg-context Reply-To: mailing list for ConTeXt users To: mailing list for ConTeXt users Cc: Alan Braslau Subject: [NTG-context] Structure: multi-volume products Date: Thu, 15 Dec 2022 20:23:36 -0700 Mailer: Claws Mail 3.19.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.1) X-Spam-Score: 0.0 Hello, I have a book project that is being cut into two volumes (because it is too long and will be sold as a boxed set). Each volume is presently a separate *product* in the project structure. I presently set the counters in the second volume using: \setupheadnumber [part] [2] \setupheadnumber [chapter] [5] (I have multiple [5] parts in the project, and the first volume ends with part 2 and chapter 5.) 1) Is this the right way to be handling this? 2) Any suggestions on how I can put a Table of Contents for the first volume in the second volume? Thanks! Alan __ _ 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 __ _ % master000.tex – ConTeXt MkIV Module \startproduct master000 \project iebpmonographs \environment ieb-c-layout-000 \environment monograph-local-layout \usemodule[statistical-charts] % \enabletrackers[typesetters.suspects] % \showbodyfont % \showbodyfontenvironment \useexternaldocument[m001][master001][Whispering of Inscriptions, Vol.~{\sc ii}] \startfrontmatter \component tlpg000 { \setupheadtext[content=Contents of Vol.~i.] \setupheadertexts[Contents of Vol.~i.][pagenumber][pagenumber][Contents of Vol.~i.] \noheaderandfooterlines \completecontent \PY \PB } { \setupheadtext[tables=Tables of Vol.~i.] \setupheadertexts[Tables of Vol.~i.][pagenumber][pagenumber][Tables of Vol.~i.] \noheaderandfooterlines \completelistoftables \PY \PB } { \setupheadtext[figures=Figures of Vol.~i.] \setupheadertexts[Figures of Vol.~i.][pagenumber][pagenumber][Figures of Vol.~i.] \noheaderandfooterlines \completelistoffigures \PY } \component ackn % A. Murugaiyan & E. Parlier-Renault \component pref % A. Murugaiyan & E. Parlier-Renault \component intr % Y. Subbarayalu \stopfrontmatter \startbodymatter \setcounter[userpage][1] \component chp02 % Y. Subbarayalu \component chp01 % V. Gillet \component chp03 % G. Vijayavenugopal \component chp04 % E. Francis \component chp05 % N. Athiyaman \component chp06 % V. Selvakumar \component chp07 % S. Rajavelu \component chp08 % A. Murugaiyan \component chp09 % S. Brocquet \stopbodymatter % \startbackmatter % \component indx % \stopbackmatter \stopproduct % master001.tex – ConTeXt MkIV Module \startproduct master001 \project iebpmonographs \environment ieb-c-layout-001 \environment monograph-local-layout % \enabletrackers[typesetters.suspects] % \showbodyfont % \showbodyfontenvironment \useexternaldocument[m000][master000][Whispering of Inscriptions, Vol.~{\sc i}] \startfrontmatter \component tlpg001 { \setupheadtext[content=Contents of Vol.~ii.] \setupheadertexts[Contents of Vol.~ii.][pagenumber][pagenumber][Contents of Vol.~ii.] \noheaderandfooterlines \completecontent \PY \PB } { \setupheadtext[tables=Tables of Vol.~ii.] \setupheadertexts[Tables of Vol.~ii.][pagenumber][pagenumber][Tables of Vol.~ii.] \noheaderandfooterlines \completelistoftables \PY \PB } { \setupheadtext[figures=Figures of Vol.~ii.] \setupheadertexts[Figures of Vol.~ii.][pagenumber][pagenumber][Figures of Vol.~ii.] \noheaderandfooterlines \completelistoffigures \PY } \stopfrontmatter \startbodymatter \setcounter[userpage][1] \component chp10 % P. Estienne \component chp11 % V. Renganathan \component chp12 % C. Schmid \component chp13 % K. Rajan \component chp14 % A. Davrinche \component chp15 % M. Le Sauce-Carnis \component chp16 % V. Olivier \component chp17 % K. Ladrech \component chp18 % E. Par
Re: [NTG-context] Structure: multi-volume products
On Fri, 16 Dec 2022 22:31:59 +1300 Richard Mahoney | Indica et Buddhica wrote: > Alan, > > I'm attaching the two master files used for the following (also ran > cross refs between > each vol.): > > Murugaiyan, Appasamy & Parlier-Renault, Édith (2021) (Eds) Whispering > of Inscriptions: > South Indian Epigraphy and Art History: Papers from an International > Symposium in > memory of Professor Noboru Karashima (Paris, 12–13 October 2017). > Oxford: Indica et > Buddhica. (2 vols) > > https://indica-et-buddhica.com/publications/murugaiyan-appasamy-parlier-renault-edith/whispering-of-inscriptions-south-indian-epigraphy-and-art-history > > > Best, Richard > > Shared to the list, without the attached files. Based on the command: \useexternaldocument https://wiki.contextgarden.net/Command/useexternaldocument I'll make a solution Wiki page on the garden once I learn how this works. Alan ___ 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] Structure: multi-volume products
Thank you, This looks like a good solution! I will try it later, as soon as I can. Alan On Fri, 16 Dec 2022 22:31:59 +1300 Richard Mahoney | Indica et Buddhica wrote: > Alan, > > I'm attaching the two master files used for the following (also ran > cross refs between > each vol.): > > Murugaiyan, Appasamy & Parlier-Renault, Édith (2021) (Eds) Whispering > of Inscriptions: > South Indian Epigraphy and Art History: Papers from an International > Symposium in > memory of Professor Noboru Karashima (Paris, 12–13 October 2017). > Oxford: Indica et > Buddhica. (2 vols) > > https://indica-et-buddhica.com/publications/murugaiyan-appasamy-parlier-renault-edith/whispering-of-inscriptions-south-indian-epigraphy-and-art-history > > > Best, Richard ___ 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] update
On 8/5/2022 4:37 PM, Aditya Mahajan via ntg-context wrote: Hi, I cannot view the onandon.pdf manual. pdfinfo says that it a malformed PDF. bah, probably i ran some test .. some code there only works in older luametatex .. (keep in mind that i seldom run these manuals as a whole so sometimes the tex file are newer than the pdf document) .. esp the history documnents are sensitive for experimental features that evolve (i had to comment the fences chapter because we now have neater mechanism) i pushed an update (hopefully better; you shoulkd be able to process the files but math exmaples might not what is discussed due to the updates we did) as you're in update mode, here is something to play with .. i bet you can figure it out without documentation (and if you have input on this for us ... you're welcome) 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 -\pushoverloadmode \immutable\Umathdictdef\vdash 1 \mathbinarylogicaldictionary "22A2 \mathrelationcode 0 "22A2 \immutable\Umathdictdef\leq 1 \mathbinaryrelationdictionary "2264 \mathrelationcode 0 "2264 \immutable\Umathdictdef\geq 1 \mathbinaryrelationdictionary "2265 \mathrelationcode 0 "2265 \startluacode mathematics.dictionaries.registercharacter("binary logical", 0x22A2,"implies") mathematics.dictionaries.registercharacter("binary relation",0x2264,"less or equal") mathematics.dictionaries.registercharacter("binary relation",0x2265,"greater or equal") \stopluacode \immutable\Umathdictdef\ndivides 1 \mathbinaryarithmicdictionary "2224 \mathbinarycode 0 "2224 \immutable\Umathdictdef\nmid 1 \mathbinaryrelationdictionary "2224 \mathrelationcode 0 "2224 \startluacode mathematics.dictionaries.registercharacter("binary arithmic",0x2224,"don't divide") mathematics.dictionaries.registercharacter("binary relation",0x2224,"undivided") \stopluacode \popoverloadmode %definecolor[dictionary:default] \definecolor[dictionary:binary arithmic] [r=.5] %definecolor[dictionary:binary linear algebra] \definecolor[dictionary:binary logical][r=.5,b=.5] \definecolor[dictionary:binary relation] [g=.5] %\definecolor[dictionary:binary set] %definecolor[dictionary:constant arithmic] \definecolor[dictionary:constant set] [s=.5] %definecolor[dictionary:differential] %definecolor[dictionary:integral] %definecolor[dictionary:interval] %definecolor[dictionary:lambda] %definecolor[dictionary:limit] \definecolor[dictionary:nary arithmic] [r=.5,g=.5] %definecolor[dictionary:nary constructor] %definecolor[dictionary:nary functional] %definecolor[dictionary:nary linear algebra] %definecolor[dictionary:nary logical] %definecolor[dictionary:nary minmax] \definecolor[dictionary:nary relation] [b=.5] %definecolor[dictionary:nary set list] %definecolor[dictionary:nary set relation] %definecolor[dictionary:nary set] %definecolor[dictionary:nary statistics] %definecolor[dictionary:partial] %definecolor[dictionary:product] %definecolor[dictionary:quantifier] %definecolor[dictionary:unary arithmic] %definecolor[dictionary:unary elementary] %definecolor[dictionary:unary functional] %definecolor[dictionary:unary linear algebra] %definecolor[dictionary:unary logical] %definecolor[dictionary:unary set] %definecolor[dictionary:unary vector] %mathdictproperties \plusone \mathdictgroup \mathdefaultdictionary \enabletrackers[math.dictionaries] \starttext \definemathgroupset[demoa][binary arithmic,nary relation] \definemathgroupset[demob][binary relation,nary relation] % \tracingmath2 \tracingonline2 \showmakeup[mathglue] \startbuffer[a] $ a \leq b \geq c < d > e = \naturalnumbers = ℕ$ \stopbuffer \getbuffer[a] \blank \startbuffer[b] $ a \ndivides b \nmid c ^ {a \ndivides b \nmid c} + d ∤ e \times f > g × h - i $ \stopbuffer {\setmathgroupset[binary arithmic]\getbuffer[b]} \blank {\setmathgroupset[binary relation]\getbuffer[b]} \blank {\setmathgroupset[demoa]\getbuffer[b]} \blank {\setmathgroupset[demob]\getbuffer[b]} \blank {\setmathgroupset[demoa]\getbuffer[a]} \blank {\setmathgroupset[demob]\getbuffer[a]} \blank \stoptext dictionaries-001.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 / 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] Footnotes in captions -> "inherit" textwidth from floatntg
Anyway, it’s possibly related to this question : https://www.mail-archive.com/ntg-context@ntg.nl/msg100815.html Von: Maier, Denis Christian (UB) Gesendet: Donnerstag, 16. Juni 2022 11:57 An: 'mailing list for ConTeXt users' Cc: jbf Betreff: AW: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg Yes, that works. But it’s still strange, isn’t it? Denis Von: ntg-context mailto:ntg-context-boun...@ntg.nl>> Im Auftrag von jbf via ntg-context Gesendet: Donnerstag, 16. Juni 2022 11:49 An: Denis Maier via ntg-context mailto:ntg-context@ntg.nl>> Cc: jbf mailto:roma83...@gmail.com>>; mailing list for ConTeXt users mailto:ntg-context@ntg.nl>> Betreff: Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg Maybe \setupnote[footnote][width=\textwidth]? Julian On 16/6/22 18:56, Denis Maier via ntg-context wrote: Hi, I think I’ve ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won’t use the full textwidth, but only the width of the corresponding caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asdf \startplacefigure[title={My caption with a long footnote.\footnote{\input ward}}] \externalfigure[cow.pdf] \stopplacefigure \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl<mailto: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] Footnotes in captions -> "inherit" textwidth from floatntg
Yes, that works. But it’s still strange, isn’t it? Denis Von: ntg-context Im Auftrag von jbf via ntg-context Gesendet: Donnerstag, 16. Juni 2022 11:49 An: Denis Maier via ntg-context Cc: jbf ; mailing list for ConTeXt users Betreff: Re: [NTG-context] Footnotes in captions -> "inherit" textwidth from floatntg Maybe \setupnote[footnote][width=\textwidth]? Julian On 16/6/22 18:56, Denis Maier via ntg-context wrote: Hi, I think I’ve ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won’t use the full textwidth, but only the width of the corresponding caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asdf \startplacefigure[title={My caption with a long footnote.\footnote{\input ward}}] \externalfigure[cow.pdf] \stopplacefigure \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl<mailto: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] Footnotes in captions -> "inherit" textwidth from floatntg
Maybe \setupnote[footnote][width=\textwidth]? Julian On 16/6/22 18:56, Denis Maier via ntg-context wrote: Hi, I think I’ve ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won’t use the full textwidth, but only the width of the corresponding caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asdf \startplacefigure[title={My caption with a long footnote.\footnote{\input ward}}] \externalfigure[cow.pdf] \stopplacefigure \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 __ 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] Footnotes in captions -> "inherit" textwidth from float
Hi, I think I've ran into a somewhat strange behaviour. If you have a footnote in a float caption, the footnote won't use the full textwidth, but only the width of the corresponding caption. Is that on purpose, a context bug or a user bug? Best, Denis \starttext asdf \startplacefigure[title={My caption with a long footnote.\footnote{\input ward}}] \externalfigure[cow.pdf] \stopplacefigure \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] Compiling a large metapost document
I just bumped it to double the size, did mtxrun --reload, context --generate and the error is still tex memory > bumping category 'token' failed, details: all=8000 | ini=4 We ran into troubles scanning an argument. On Thu, Jun 2, 2022 at 9:20 AM Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl> wrote: > > On 01.06.22 23:30, Stefan Nedeljkovic wrote: > > I Tried editing the file context/tex/texmf/web2c/texmfcnf.lua, and > > running context --generate, context --make, but the error persists. I'm > > new to context and I don't know how to configure this file. Running > > --usage reveals in the log that the category "token" is exceeded. I > > tried the aforementioned editing of the conf file, but the log stays the > > same. > > > > That is the correct file, and I would assume that the category > "luametatex.tokensize" (line 135) would be the correct one to edit. Is > that the one you've edited, e.g. by bumping size to double its current > value? > > Thomas > > ___ > 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] Compiling a large metapost document
Sorry, i just updated the file, should now compile, but fail due to resources. Are the configuration options to context that would enable this file to be compiled? On Wed, Jun 1, 2022 at 7:24 PM Bruce Horrocks wrote: > Hi Stefan, > > What exactly are you asking for help with? > > The previous file was 12MB and simply ran out of resource when compiled. > The new file is 812KB and compiles provided you remove the references to > \setxheight[...] because \setxheight generates an error. > > > > On 1 Jun 2022, at 17:43, Stefan Nedeljkovic via ntg-context < > ntg-context@ntg.nl> wrote: > > > > Just fixed the file, here is the new link: > https://drive.google.com/file/d/16jTzHbaqxPmhgmNaDOBRijlhlmUCnH4j/view?usp=sharing > > > > On Wed, Jun 1, 2022 at 4:48 PM Stefan Nedeljkovic > wrote: > > Dear list, > > > > I have a large .tex file with metapost embedded in it and want to > compile it, but it fails. Here is a link to the file (~12MB): > https://drive.google.com/file/d/1t-6mxFmGp-nzpl0RrPgNFq8KRvpplgDv/view?usp=sharing > > > > Do you know of a way to compile it? > > BTW, the file is automatically generated by a Python script. > > > > Sincerely, > > Stefan > > — > 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] Compiling a large metapost document
Hi Stefan, What exactly are you asking for help with? The previous file was 12MB and simply ran out of resource when compiled. The new file is 812KB and compiles provided you remove the references to \setxheight[...] because \setxheight generates an error. > On 1 Jun 2022, at 17:43, Stefan Nedeljkovic via ntg-context > wrote: > > Just fixed the file, here is the new link: > https://drive.google.com/file/d/16jTzHbaqxPmhgmNaDOBRijlhlmUCnH4j/view?usp=sharing > > On Wed, Jun 1, 2022 at 4:48 PM Stefan Nedeljkovic wrote: > Dear list, > > I have a large .tex file with metapost embedded in it and want to compile it, > but it fails. Here is a link to the file (~12MB): > https://drive.google.com/file/d/1t-6mxFmGp-nzpl0RrPgNFq8KRvpplgDv/view?usp=sharing > > Do you know of a way to compile it? > BTW, the file is automatically generated by a Python script. > > Sincerely, > Stefan — 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] How to install the ConTeXt-SBL module?
While testing the module, I would copy the .mkiv and .lua files to my ConTeXt MkIV directory (on Windows with the TeXLive distribution, this was C:\texlive\2021\texmf-dist\tex\context\base\mkiv) and then run context --make to apply the updates. If there is some other preferred way to do this, I'm sure someone can correct me. Otherwise, I hope this helps! On Mon, May 30, 2022 at 10:28 AM Joel via ntg-context wrote: > I had https://github.com/jjmccollum/context-sbl this module working fine, > but ran and update, and somehow it deleted my extra files. I can't figure > out how I was able to get it working in the first place--I had just copied > all the files to a folder somewhere. > > What is the correct way to install an unofficial ConTeXt module, such as > this one? > > --Joel > > ___ > 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] How to install the ConTeXt-SBL module?
I had https://github.com/jjmccollum/context-sbl this module working fine, but ran and update, and somehow it deleted my extra files. I can't figure out how I was able to get it working in the first place--I had just copied all the files to a folder somewhere. What is the correct way to install an unofficial ConTeXt module, such as this one? --Joel ___ 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] arm osx
Hi Steffen I have TeXshop setup on my mac mini M1 but I rarely use it. I've just ran it on a file I have been working on and it runs OK. Here is my engine: %% #!/bin/bash export PATH=$PATH:/Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin /Users/pothole/data/contextmacosarm64/tex/texmf-osx-arm64/bin/mtxrun --autogenerate --script context --directives="system.error" --autopdf "$1" The only difference I can see is --directives="system.error" . Don't know if this helps. I'm running: system > ConTeXt ver: 2022.05.09 17:24 LMTX fmt: 2022.5.11 int: english/english Best Wishes Keith McKay On 29/05/2022 19:35, Steffen Wolfrum via ntg-context wrote: Hi, the first, clean install of MacOS ARM64bits I downloaded fromhttps://wiki.contextgarden.net/Installation Next I followed the thread below (exchanging texmf-osx-64/bin to texmf-osx-arm64/bin) and everything works like a charm (ConTeXt ver: 2022.01.21 20:13 LMTX) ! Today I wanted to update, using sh install.sh After that, running the same TeXShop engine as before gives an error: Users/steffen/Library/TeXShop/Engines/ConTeXt LMTX_ARM.engine: line 3: 19971 Killed: 9 /Users/steffen/context-osx-arm64/tex/texmf-osx-arm64/bin/mtxrun --autogenerate --script context --autopdf "$1" What did I do wrong? Steffen Am 25.04.2021 um 18:52 schrieb Keith McKay: Great! I'm glad it worked OK! Best Wishes Keith On Sun, 25 Apr 2021, 09:59 Charles Doherty, wrote: Dear Keith and Mojca, I followed the information provided buy Keith below and everything is working just fine. Mojca I directed my request to Keith in the first instance since I felt it was most likely my lack of knowledge of how to get things going that was the problem (as usual). So thank you for your quick response and offer to test. And thank you Keith for your example below it did the trick. Very best wishes, Charlie On 23 Apr 2021, at 15:53, Keith McKay wrote: Sorry. I put a typo in the engine file in my reply. It should be #!/bin/bash export PATH=/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin:/Users/pothole/data/contextarm64/tex/texmf-osx-64/bin /Users/pothole/data/contextarm64/tex/texmf-osx-64/bin/mtxrun --autogenerate --script context --autopdf "$1" Best Wishes Keith *** CHARLES DOHERTY 13 BANCROFT ROAD TALLAGHT DUBLIN D24 YH2V home: +353 1 2447483 Mobile: +353 863868629 charles.dohe...@icloud.com ___ 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 ___ ___ 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] Interactive checkbox in ConTeXt
So far I accomplished this but problem is that when I check it checks all, not individually. \setupinteraction[state=start] \setupexternalfigures[location=global] \definesymbol [yes] [{\externalfigure[check-mark-svgrepo-com.svg][conversion=mp]}] \definesymbol [no] [] \setupfield [setup 3] [width=0.5cm, height=0.5cm, rulethickness=1pt, corner=round, framecolor=red] \definefield [check-me] [check] [setup 3] [yes,no] [no] \define\chk{\field[check-me]} \starttext \chkgfgkfgfghjl \chkdfdffdfff \stoptext > 22 maj 2022 kl. 10:47 skrev Jan-Erik Hägglöf : > > Thank you for the useful tip. > > I’ve tested the example given below but ran into missing figure, maybe I need > to reconstruct the MetaPost file as mentioned in setup. Se attached example: > > Thanks in advance! > > /Jan-Erik > > \setupinteraction[state=start] > \setupexternalfigures[location=global] > > \definesymbol [yes] [{\externalfigure[mp-cont.502]}] > \definesymbol [no] [] > > > \setupfield > [setup 3] > [width=2cm, height=2cm, > rulethickness=3pt, corner=round, framecolor=red] > > \definefield [check-me] [check] [setup 3] [yes,no] [no] > > \starttext > \field[check-me] > \stoptext > >> 20 maj 2022 kl. 12:28 skrev Henning Hraban Ramm via ntg-context >> : >> >> Am 20.05.22 um 12:01 schrieb Jan-Erik Hägglöf via ntg-context: >>> How do I accomplish a similar funktion like this, that is written in latex, >>> but in context instead? >>> LATEXCODE >>> |\documentclass{article} \usepackage{hyperref} \begin{document} >>> \begin{Form} \CheckBox[name=mycheckbox,checkboxsymbol=\ding{53}]{This is a >>> check box:} \end{Form} \end{document}| >> >> Have a look at https://wiki.contextgarden.net/Widgets and the "mwidget" >> manual. >> >> Custom symbols work unreliably, depending of the viewer. >> >> 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 >> ___ > ___ 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] Interactive checkbox in ConTeXt
Thank you for the useful tip. I’ve tested the example given below but ran into missing figure, maybe I need to reconstruct the MetaPost file as mentioned in setup. Se attached example: Thanks in advance! /Jan-Erik \setupinteraction[state=start] \setupexternalfigures[location=global] \definesymbol [yes] [{\externalfigure[mp-cont.502]}] \definesymbol [no] [] \setupfield [setup 3] [width=2cm, height=2cm, rulethickness=3pt, corner=round, framecolor=red] \definefield [check-me] [check] [setup 3] [yes,no] [no] \starttext \field[check-me] \stoptext > 20 maj 2022 kl. 12:28 skrev Henning Hraban Ramm via ntg-context > : > > Am 20.05.22 um 12:01 schrieb Jan-Erik Hägglöf via ntg-context: >> How do I accomplish a similar funktion like this, that is written in latex, >> but in context instead? >> LATEXCODE >> |\documentclass{article} \usepackage{hyperref} \begin{document} \begin{Form} >> \CheckBox[name=mycheckbox,checkboxsymbol=\ding{53}]{This is a check box:} >> \end{Form} \end{document}| > > Have a look at https://wiki.contextgarden.net/Widgets and the "mwidget" > manual. > > Custom symbols work unreliably, depending of the viewer. > > 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 > ___ ___ 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] Numbering in mathalignment not working
It's true. In the version that comes with TeXlive 2021 (2021.03.05) this numbering works fine, but not with the 2022.05.11. L. Montgomery El jue, 19 may 2022 a las 3:34, śrīrāma via ntg-context () escribió: > Hi, > > [I am on version 2022.05.11 11:36] > > I think either a bug might have crept into one of the recent uploads or > there > is some change in behaviour – numbering of statements inside mathalignment > blocks is not working: only one statement is numbered even if multiple are > requested. > > The following example does not produce the expected result (sample > attached): > both the equations should be numbered when only the first one is – > > \starttext > > \placeformula > \startformula > \startmathalignment > \NC a \NC = b \NR[eq:one] > \NC c \NC = d \NR[eq:two] > \stopmathalignment > \stopformula > > \stoptext > > Also the [+] options and the second optional argument of \NR does not work > as > expected. Has its behaviour changed? > > I ran into this when I compiled a large maths-heavy document and while > proof- > reading noticed numerous missing references to statements inside > mathalignment. Please advise me on how I might fix/workaround this. > > Thank you, > > Sreeram___ > 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] Numbering in mathalignment not working
Hi, [I am on version 2022.05.11 11:36] I think either a bug might have crept into one of the recent uploads or there is some change in behaviour – numbering of statements inside mathalignment blocks is not working: only one statement is numbered even if multiple are requested. The following example does not produce the expected result (sample attached): both the equations should be numbered when only the first one is – \starttext \placeformula \startformula \startmathalignment \NC a \NC = b \NR[eq:one] \NC c \NC = d \NR[eq:two] \stopmathalignment \stopformula \stoptext Also the [+] options and the second optional argument of \NR does not work as expected. Has its behaviour changed? I ran into this when I compiled a large maths-heavy document and while proof- reading noticed numerous missing references to statements inside mathalignment. Please advise me on how I might fix/workaround this. Thank you, Sreeram align-numbering.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] \getcommacommandsize not working in lmtx
On 5/2/2022 9:37 AM, Denis Maier via ntg-context wrote: Hi, I’ve just ran into a behaviour that runs against what is shown on the wiki, https://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists <https://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists> Maybe a bug? More a feature as \define defines a protected macro. \starttext \define\somelist{foo,bar,baz} {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \defineexpandable\somelist{foo,bar,baz} {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \starttexdefinition protected somelist foo, bar, baz \stoptexdefinition {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \starttexdefinition somelist foo, bar, baz \stoptexdefinition {\tt\meaningasis\somelist} \getcommacommandsize[\somelist] \commalistsize \semiprotected\def\somelist{foo,bar,baz} \getcommacommandsize[\somelist] \commalistsize \getcommacommandsize[\semiexpanded{\somelist}] \commalistsize % also in next version: % % \starttexdefinition semiprotected somelist % foo, % bar, % baz % \stoptexdefinition % % {\tt\meaningasis\somelist} % % \getcommacommandsize[\somelist] \commalistsize % \getcommacommandsize[\semiexpanded{\somelist}] \commalistsize \stoptext The semiprotected is something lmtx and only expands when explicitly asked for (like in an \edef or so). Something that we might apply in the core some day. 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] \getcommacommandsize not working in lmtx
Hi, I've just ran into a behaviour that runs against what is shown on the wiki, https://wiki.contextgarden.net/System_Macros/Comma_Separated_Lists Maybe a bug? The wiki says you can use \getcommacommandsize to get the length of a comma separated list, but it does not seem to work. MWE below. Best, Denis \define\somelist {foo, bar, baz} \starttext \getcommacommandsize[\somelist] \commalistsize % Expected : 3 % Actual : 1 \expandafter\getcommalistsize\expandafter[\somelist] \commalistsize % Expected : 3 % Actual : 3 \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] lua-widow-control module error in LMTX
Now, I don't have any widows in my document, and I only count 2 broken hyphens. However, I think this is at the expense of the shenanigans the module has "perpetrated" elsewhere, because, apart from the crazy horizontal spacing of some paragraph in the bibliography, the module lies to me in the log. Yes, the log output fools me. There is no "Widow/Orphan NOT removed". But this is not true: To the 2 broken hyphens must be added 4 orphan lines that the log claims to have resolved. But what worries me the most is that it counts as successful one occasion with an empty line, another occasion with two empty lines in a row, and 4 occasions with no less than 7 empty lines in a row at the beginning of a chapter. I don't know if this information can provide any more clues to adjust the module for the grid mode, but I hope it helps. Greetings, Edu. El 29/4/22 a las 2:38, Max Chernoff escribió: On 2022-04-28 3:30 a.m., Henning Hraban Ramm wrote: I’m afraid the above release introduced a bug; while the offical release ran through, I now get: module > lua-widow-control > Widow/orphan detected. Attempting to remove. lua error > lua error on line 112 in file de/c_intro.tex: callback error: ...local/tex/luatex/lua-widow-control/lua-widow-control.lua:510: attempt to perform arithmetic on a nil value (field 'height') stack traceback: ...local/tex/luatex/lua-widow-control/lua-widow-control.lua:510: in function <...local/tex/luatex/lua-widow-control/lua-widow-control.lua:360> On 2022-04-28 4:54 a.m., Eduardo Bohoyo wrote: Here testing that beta version. As you know, my book is in grid mode, but I get the same error message as Hraban when the compilation crashes. However, when I comment grid again in my document, it does compile the pdf. Well that's why it was a beta :) Looks like I made some questionable assumptions about the order of the hlist/baselineskip nodes, so the module completely broke with things as simple as section headings. Hopefully this new beta should fix things: https://github.com/gucci-on-fleek/lua-widow-control/releases/tag/release-5e240b2ebb76f33c32ecbc673af09a1c64773033 Grid snapping is a little peculiar, so let me know if you find any more bugs. And thanks for the bug reports. -- Max ___ 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] lua-widow-control module error in LMTX
On 2022-04-28 3:30 a.m., Henning Hraban Ramm wrote: I’m afraid the above release introduced a bug; while the offical release ran through, I now get: module > lua-widow-control > Widow/orphan detected. Attempting to remove. lua error > lua error on line 112 in file de/c_intro.tex: callback error: ...local/tex/luatex/lua-widow-control/lua-widow-control.lua:510: attempt to perform arithmetic on a nil value (field 'height') stack traceback: ...local/tex/luatex/lua-widow-control/lua-widow-control.lua:510: in function <...local/tex/luatex/lua-widow-control/lua-widow-control.lua:360> On 2022-04-28 4:54 a.m., Eduardo Bohoyo wrote: Here testing that beta version. As you know, my book is in grid mode, but I get the same error message as Hraban when the compilation crashes. However, when I comment grid again in my document, it does compile the pdf. Well that's why it was a beta :) Looks like I made some questionable assumptions about the order of the hlist/baselineskip nodes, so the module completely broke with things as simple as section headings. Hopefully this new beta should fix things: https://github.com/gucci-on-fleek/lua-widow-control/releases/tag/release-5e240b2ebb76f33c32ecbc673af09a1c64773033 Grid snapping is a little peculiar, so let me know if you find any more bugs. And thanks for the bug reports. -- Max ___ 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] lua-widow-control module error in LMTX
Am 28.04.22 um 09:25 schrieb Max Chernoff via ntg-context: I _think_ that I've fixed it now. Can you try the beta version at https://github.com/gucci-on-fleek/lua-widow-control/releases/tag/release-47ff19d9804f6ecea64dda59426664680d9756e0 please? Hopefully this solves the issue. Hi Max, thank you for this module that I didn’t know. I’m afraid the above release introduced a bug; while the offical release ran through, I now get: module > lua-widow-control > Widow/orphan detected. Attempting to remove. lua error > lua error on line 112 in file de/c_intro.tex: callback error: ...local/tex/luatex/lua-widow-control/lua-widow-control.lua:510: attempt to perform arithmetic on a nil value (field 'height') stack traceback: ...local/tex/luatex/lua-widow-control/lua-widow-control.lua:510: in function <...local/tex/luatex/lua-widow-control/lua-widow-control.lua:360> My book is not in grid mode. 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 ___
[NTG-context] Fwd: lua-widow-control module error in LMTX
Hello, Max: As I promised you this morning, I had time this evening to read more carefully all your remarks in the last mail. And now I can answer you with more basis. In my particular case, it is not necessary to consider any of the seven possible problems you describe from highest to lowest probability. The question you asked me in the first paragraph about "interesting" features in my ConTeXt code is the key. When I uncomment grid=yes in my \setuplayout, lwc makes its real appearance on the scene. I suppose that in other documents than mine, i.e. less complex, this performance would be a success. But in my file it is, considering my current aesthetic requirements, a failure. This is because for me grid=yes is a non-negotiable part of my code. As I told you this morning when I sent you my pdf without the module activated, but with the layout my way, I understand that lwc can have problems with a text whose chapters have capital letters and small caps on the first page with less text than on the following pages; with long quotations that involve paragraphs of different layout and separated from the main text; with more than one footnote in a row, with a bibliography at the end with French indentation; with vertical spaces separating two lines within the same chapter when in the dummy text there is a supposed change of scene within the narrative; with etc. etc., etc., etc... Anyway, after uncommenting grid=yes again, I will send you the log file, as you asked me. By the way, I do get some "Widow/Orphan NOT removed on page..." in spite of the rest of "successes" that move the final lines of my pages away from the result I would like, and that you have seen in the pdf I sent you this morning. Do you want the new pdf with lwc actually acting on my file? Then you can get a better idea of what I mean by the end of some pages when I comment grid=yes (apart from the mischief that happens with the horizontal spaces in some paragraphs of the bibliographic section). Or, if you prefer, and you need more feedback, I can send you my current code to use it as a test bench for " daring " texts. Greetings, edu El 27/4/22 a las 9:14, Max Chernoff escribió: Quick question before I begin: are you using any especially "interesting" ConTeXt features? By "interesting" I mean things like grid typesetting, pagecolumns, bidirectional text, etc. I haven't tested lwc with every possible ConTeXt feature, so there may be some adverse interaction. If you are using something like this, try disabling it and see if that solves anything (then let me know so that I can fix it!) On 2022-04-26 3:45 a.m., Eduardo Bohoyo wrote: I can see "modules > 'lua-widow-control' is loaded". But, luckily, I can also see this: open source > level 2, order 4, name '/opt/luametatex/texmf-modules/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl' resolvers > lua > loading file '/opt/luametatex/texmf-modules/tex/luatex/lua-widow-control/lua-widow-control.lua' succeeded close source > level 2, order 4, name '/opt/luametatex/texmf-modules/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl' module > lua-widow-control > Already enabled Ok, so this is good; lwc is for sure being loaded successfully. No line such as "Widow/orphan detected. Attempting to delete". I see interleaved new groups with the same line always repeating a warning message throughout the whole file. In short, there are 613 new lines with the message "luatex warning > tex: left parfill skip is gone". But I didn't give it any importance, because I interpreted that they could be inherent to the module. Well this at least narrows the issue down quite a bit. Lwc runs in pretty much two stages: when a paragraph has finished being broken by TeX, lwc saves the paragraph. The second stage is ran just before each time the output routine is triggered so that lwc can remove the widows and orphans. Due to an lwc bug, the first stage results in the "left parfill skip" warning being printed twice for each paragraph. Normally this is quite annoying, but here it is good -- we know for sure that the first stage is running just fine. It is the second stage where you should get the "Widow/orphan detected" message, but this isn't happening. The code here is at lwc.lua:362-388. Here is a list of all possible reasons, in order of likelihood, why "Widow/orphan detected" wouldn't be printed when there is actually a widow or orphan: (Just listing all of these to make sure that *I* don't forget anything. I'd say that 1 and 2 are the only ones that are actually likely -- you can probably ignore all of the others) 1. "\clubpenalty" and/or "\widowpenalty" are either zero or infinite In these cases, lwc can't distinguish a widow o
Re: [NTG-context] lua-widow-control module error in LMTX
Quick question before I begin: are you using any especially "interesting" ConTeXt features? By "interesting" I mean things like grid typesetting, pagecolumns, bidirectional text, etc. I haven't tested lwc with every possible ConTeXt feature, so there may be some adverse interaction. If you are using something like this, try disabling it and see if that solves anything (then let me know so that I can fix it!) On 2022-04-26 3:45 a.m., Eduardo Bohoyo wrote: I can see "modules > 'lua-widow-control' is loaded". But, luckily, I can also see this: open source > level 2, order 4, name '/opt/luametatex/texmf-modules/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl' resolvers > lua > loading file '/opt/luametatex/texmf-modules/tex/luatex/lua-widow-control/lua-widow-control.lua' succeeded close source > level 2, order 4, name '/opt/luametatex/texmf-modules/tex/context/third/lua-widow-control/t-lua-widow-control.mkxl' module > lua-widow-control > Already enabled Ok, so this is good; lwc is for sure being loaded successfully. No line such as "Widow/orphan detected. Attempting to delete". I see interleaved new groups with the same line always repeating a warning message throughout the whole file. In short, there are 613 new lines with the message "luatex warning > tex: left parfill skip is gone". But I didn't give it any importance, because I interpreted that they could be inherent to the module. Well this at least narrows the issue down quite a bit. Lwc runs in pretty much two stages: when a paragraph has finished being broken by TeX, lwc saves the paragraph. The second stage is ran just before each time the output routine is triggered so that lwc can remove the widows and orphans. Due to an lwc bug, the first stage results in the "left parfill skip" warning being printed twice for each paragraph. Normally this is quite annoying, but here it is good -- we know for sure that the first stage is running just fine. It is the second stage where you should get the "Widow/orphan detected" message, but this isn't happening. The code here is at lwc.lua:362-388. Here is a list of all possible reasons, in order of likelihood, why "Widow/orphan detected" wouldn't be printed when there is actually a widow or orphan: (Just listing all of these to make sure that *I* don't forget anything. I'd say that 1 and 2 are the only ones that are actually likely -- you can probably ignore all of the others) 1. "\clubpenalty" and/or "\widowpenalty" are either zero or infinite In these cases, lwc can't distinguish a widow or orphan from other penalties, so it doesn't do anything. You can check for this with \showthe\widowpenalty \showthe\clubpenalty some time after "\starttext". This will print the values to the log file. The values should probably be "1", but things like "150" and "5000" are fine too. If you see negative values, "0", or values greater than ten thousand, then something is wrong here. 2. Something is "hiding" the widow/orphan penalties from lwc. Something like "\vadjust{\penalty X}" or the e-TeX "\-penalties" commands could potentially do this. One potential solution for (a subset of) this problem would be to modify lwc.mkxl to insert "\directsetup{*reset}" at line 52, to get: \startsetups[*default] \directsetup{*reset} \clubpenalty=\lwcparameter{orphanpenalty} \widowpenalty=\lwcparameter{widowpenalty} \displaywidowpenalty=\lwcparameter{widowpenalty} \brokenpenalty=\lwcparameter{brokenpenalty} \stopsetups If that doesn't do anything, keep the above modifications but also insert \setups[*default] after "\starttext" in your test document. 3. Lwc hasn't saved any paragraphs since the last output routine. Since we know that the first stage is running, this shouldn't be possible unless there is a weird bug somewhere else. 4. A weird engine/format bug. The LMTX test file was successful on Debian x86_64 three days ago https://github.com/gucci-on-fleek/lua-widow-control/runs/6144354147?check_suite_focus=true so something quite weird would have to be going on here. 5. Something is overwriting the "pre_output_filter" callback. Now this is an interesting one. ConTeXt has frozen most of the core engine callbacks, but "pre_output_filter" is unfrozen and unassigned. There is a ConTeXt interface for most of the other callbacks, but here I need to fallback to the low-level interface. With this interface, you can only register a single callback, so it is possible that some other pa
[NTG-context] Why can I no longer place \input inside table after update?
After I ran an update on ConTeXt, my code gets an error: \starttext \starttabulate[|p(.3\textwidth)|p(.7\textwidth)|] \HL \NC {\bf Term} \NC {\bf Definition} \NC\NR \HL \input test2.tex \HL \stoptabulate \stoptext File test2.tex contains "\NC {\bf Term} \NC {\bf Definition} \NC\NR". I also tried defining a macro earlier in the document... \define[2]\tablewordis{% \NC \NC \NC\NR \NC #1 \NC #2 \NC\NR } ...then placing that in test2.tex, e.g.: \tablewordis{my word}{my definition} I get the error: " The file ended when scanning an argument." Before the update, this code worked fine. How can I \input a file while inside a table environment, as above? Thanks, --Joel ___ 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] $\sin \theta$ behave differently in metafun
Dear all, I use $\sin \theta$ and $\cos \theta$ behave differently in text and in metafun. It works well sometime before but it doesn’t in metafun now. What is wrong in my example? Thank you for reading. Best regards, Dalyoung Here is a MWE. \startbuffer[pointCircle] numeric u; u:=1cm; pair A,B,C; draw fullcircle scaled 4u; A := dir(25)*2u; label.top(textext("$P=(\cos\theta, \sin\theta)$"), A); B := dir(-25)*2u; label.bot(textext("$Q=(\cos(-\theta), \sin(-\theta))$"), B); C := (xpart A, 0); label.lrt(textext("$A$"), C); label(textext("$O$"), origin); \stopbuffer \starttext I'd like use $\sin$ and $\cos$ in the metafun. But it shows strange text instead of $\sin$ and $\cos$. \processMPbuffer[pointCircle] \stoptext > 2022. 4. 13. 오전 11:09, 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. Re: Setting up zint on a mac with macOS Montery Version > 12.3.1 (Keith McKay) > 2. Re: fatal error in LMTX (Bruce Horrocks) > 3. Re: Setting up zint on a mac with macOS Montery Version > 12.3.1 (Bruce Horrocks) > 4. Re: Proper formatting of itemized bullets in ConTeXt (śrīrāma) > 5. Re: Proper formatting of itemized bullets in ConTeXt (śrīrāma) > > > -- > > Message: 1 > Date: Tue, 12 Apr 2022 21:04:50 +0100 > From: Keith McKay > To: Bruce Horrocks , mailing list for ConTeXt users > , monty.l...@gmail.com > Subject: Re: [NTG-context] Setting up zint on a mac with macOS Montery > Version 12.3.1 > Message-ID: <475d96e6-0905-7d2d-a51d-84b06d340...@gmail.com> > Content-Type: text/plain; charset="utf-8"; Format="flowed" > > Hi All > > I created the symbolic link as suggested by Bruce and Luis and still got the > error message > > optional> unable to locate library 'libzint' > > in my text editor. I use TeXworks. However, I thought I would try running > from the Terminal app and it worked. It found libzint and output the pdf with > both barcodes and the qrcode. I have no idea why it works in the Terminal and > not TexWorks, I'm guessing I have a path issue which I need to investigate. > > Notes > 1) My machine is a mac-mini-M1 with macos Monterey and I'm running the latest > ConTeXt version > 2) Bruce noted that my Homebrew was installed in a non-standard location so I > checked on the Hombrew website and it is installed in opt/homebrew for Apple > Silicon i.e the M1 chip. Maybe Bruce's homebrew was installed on an earlier > version. > > Thanks to Luis and Bruce for their suggestions. > Best Wishes > Keith McKay > > On 10/04/2022 22:26, Bruce Horrocks wrote: >> Hi Keith, >> >>> On 10 Apr 2022, at 14:49, Keith McKay via ntg-context >>> wrote: >>> >>> Hi All >>> >>> I have been struggling today trying to setup and use the Barcode module >>> zint in ConTeXt and failed. I have followed the instructions on the wiki >>> (https://wiki.contextgarden.net/Barcodes ) but with some changes as >>> follows. Which maybe why I failed. >>> >>> 1) I downloaded Zint using Homebrew since I'm using macOS, and installed it >>> according to the instructions. >>> >>> >>> 2) Since I'm using LMTX I looked for the file libzint.dylib and found it in >>> /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path >>> given on the wiki. The directory contained three files, two of which were >>> aliases, libzint.2.10.dylib and libzint.dylib, and an exe file >>> libzint.2.10.0.0.dylib >> You have Hombrew installed in a non-standard location. Mine is in >> /usr/local/Cellar with the executables linked into /usr/local/bin. >> >> But, assuming other Homebrew commands work when run from Terminal then you >> might still be okay. >> >>> 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint and >>> copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as >>> suggested on the wiki instructions. So I basically added >>> lib/luametatex
Re: [NTG-context] Setting up zint on a mac with macOS Montery Version 12.3.1
Hi All I created the symbolic link as suggested by Bruce and Luis and still got the error message optional> unable to locate library 'libzint' in my text editor. I use TeXworks. However, I thought I would try running from the Terminal app and it worked. It found libzint and output the pdf with both barcodes and the qrcode. I have no idea why it works in the Terminal and not TexWorks, I'm guessing I have a path issue which I need to investigate. Notes 1) My machine is a mac-mini-M1 with macos Monterey and I'm running the latest ConTeXt version 2) Bruce noted that my Homebrew was installed in a non-standard location so I checked on the Hombrew website and it is installed in opt/homebrew for Apple Silicon i.e the M1 chip. Maybe Bruce's homebrew was installed on an earlier version. Thanks to Luis and Bruce for their suggestions. Best Wishes Keith McKay On 10/04/2022 22:26, Bruce Horrocks wrote: Hi Keith, On 10 Apr 2022, at 14:49, Keith McKay via ntg-context wrote: Hi All I have been struggling today trying to setup and use the Barcode module zint in ConTeXt and failed. I have followed the instructions on the wiki (https://wiki.contextgarden.net/Barcodes ) but with some changes as follows. Which maybe why I failed. 1) I downloaded Zint using Homebrew since I'm using macOS, and installed it according to the instructions. 2) Since I'm using LMTX I looked for the file libzint.dylib and found it in /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path given on the wiki. The directory contained three files, two of which were aliases, libzint.2.10.dylib and libzint.dylib, and an exe file libzint.2.10.0.0.dylib You have Hombrew installed in a non-standard location. Mine is in /usr/local/Cellar with the executables linked into /usr/local/bin. But, assuming other Homebrew commands work when run from Terminal then you might still be okay. 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint and copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as suggested on the wiki instructions. So I basically added lib/luametatex/zint to texmf-osx-64/bin . "Yes" to creating the path but "no" to copying. Create a symbolic link instead. So, in Terminal: $ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint # In my case I used the following: $ ln -s /usr/local/Cellar/zint/2.10.0/lib/libzint.dylib libzint.so # For you with Homebrew in a different location, try: $ ln -s /opt/homebrew/Cellar/zint/2.10.0/lib/libzint.dylib libzint.so Then steps 4 and 5 as below. I ran the MWE below: the ISBN worked, the ISBNX didn't, the QR code did. This is on Monterey. 4) I ran mtxrun --generate to update the database. 5) I ran the MWE below but no barcode appeared. The console output shows: modules > using user prefixed file 'libs-imp-zint' modules > 'zint' is loaded however further down the output it gives: optional> unable to locate library 'libzint' I have tried renaming libzint2.10.0.0.so to libzint.so, but still no barcode. Is their something I am missing? Tips or hints appreciated. Best Wishes Keith McKay %% MWE \usemodule[zint] \starttext \barcode[alternative=isbn,text=9783865419026,width=4cm] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \stoptext — 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] Setting up zint on a mac with macOS Montery Version 12.3.1
Hi Keith, > On 10 Apr 2022, at 14:49, Keith McKay via ntg-context > wrote: > > Hi All > > I have been struggling today trying to setup and use the Barcode module zint > in ConTeXt and failed. I have followed the instructions on the wiki ( > https://wiki.contextgarden.net/Barcodes ) but with some changes as follows. > Which maybe why I failed. > > 1) I downloaded Zint using Homebrew since I'm using macOS, and installed it > according to the instructions. > > > 2) Since I'm using LMTX I looked for the file libzint.dylib and found it in > /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path given > on the wiki. The directory contained three files, two of which were aliases, > libzint.2.10.dylib and libzint.dylib, and an exe file libzint.2.10.0.0.dylib You have Hombrew installed in a non-standard location. Mine is in /usr/local/Cellar with the executables linked into /usr/local/bin. But, assuming other Homebrew commands work when run from Terminal then you might still be okay. > 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint and > copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as suggested > on the wiki instructions. So I basically added lib/luametatex/zint to > texmf-osx-64/bin . "Yes" to creating the path but "no" to copying. Create a symbolic link instead. So, in Terminal: $ cd $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint # In my case I used the following: $ ln -s /usr/local/Cellar/zint/2.10.0/lib/libzint.dylib libzint.so # For you with Homebrew in a different location, try: $ ln -s /opt/homebrew/Cellar/zint/2.10.0/lib/libzint.dylib libzint.so Then steps 4 and 5 as below. I ran the MWE below: the ISBN worked, the ISBNX didn't, the QR code did. This is on Monterey. > 4) I ran mtxrun --generate to update the database. > > 5) I ran the MWE below but no barcode appeared. The console output shows: > > > modules > using user prefixed file 'libs-imp-zint' > modules > 'zint' is loaded > > however further down the output it gives: > > > optional> unable to locate library 'libzint' > > I have tried renaming libzint2.10.0.0.so to libzint.so, but still no barcode. > Is their something I am missing? Tips or hints appreciated. > Best Wishes > Keith McKay > > %% MWE > \usemodule[zint] > \starttext > \barcode[alternative=isbn,text=9783865419026,width=4cm] > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] > \stoptext — 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] Setting up zint on a mac with macOS Montery Version 12.3.1
On my macOS High Sierra your MWE works fine. Although I remember that I didn't use Homebrew, but had to build zint manually. >From log: optional > using library '/Users/monty/context/tex/texmf-osx-64/bin/lib/luametatex/zint/libzint.so' Here it is enough that libzint.so be a link: libzint.so -> /usr/local/lib/libzint.2.10.0.0.dylib Delete the texmf-cache and run ./mtxrun --generate again, once you've made this link (or copied libzint.2.10.0.0.dylib to $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex /zint/libzint.so) [image: image.png] Greetings, L. Montgomery PD.- Does zint-qt work well? El dom, 10 abr 2022 a las 8:49, Keith McKay via ntg-context (< ntg-context@ntg.nl>) escribió: > Hi All > > I have been struggling today trying to setup and use the Barcode module > zint in ConTeXt and failed. I have followed the instructions on the wiki ( > https://wiki.contextgarden.net/Barcodes ) but with some changes as > follows. Which maybe why I failed. > > 1) I downloaded Zint using Homebrew since I'm using macOS, and installed > it according to the instructions. > > 2) Since I'm using LMTX I looked for the file libzint.dylib and found it > in /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path > given on the wiki. The directory contained three files, two of which were > aliases, libzint.2.10.dylib and libzint.dylib, and an exe file > libzint.2.10.0.0.dylib > > 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint > and copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as > suggested on the wiki instructions. So I basically added > lib/luametatex/zint to texmf-osx-64/bin . > > 4) I ran mtxrun --generate to update the database. > > 5) I ran the MWE below but no barcode appeared. The console output shows: > > *modules > using user prefixed file 'libs-imp-zint'* > > *modules > 'zint' is loaded* > > however further down the output it gives: > > *optional > unable to locate library 'libzint'* > > I have tried renaming libzint2.10.0.0.so to libzint.so, but still no > barcode. Is their something I am missing? Tips or hints appreciated. > > Best Wishes > > Keith McKay > > %% MWE > > \usemodule[zint] > > \starttext > > \barcode[alternative=isbn,text=9783865419026,width=4cm] > > \barcode[alternative=isbnx, text=9783865419026, width=4cm] > > \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, > width=3cm] > > \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 > > ___ > ___ 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] Setting up zint on a mac with macOS Montery Version 12.3.1
Hi All I have been struggling today trying to setup and use the Barcode module zint in ConTeXt and failed. I have followed the instructions on the wiki ( https://wiki.contextgarden.net/Barcodes ) but with some changes as follows. Which maybe why I failed. 1) I downloaded Zint using Homebrew since I'm using macOS, and installed it according to the instructions. 2) Since I'm using LMTX I looked for the file libzint.dylib and found it in /opt/homebrew/Cellar/zint/2.10.0/lib . This is different from the path given on the wiki. The directory contained three files, two of which were aliases, libzint.2.10.dylib and libzint.dylib, and an exe file libzint.2.10.0.0.dylib 3) I created the path $TEXROOT/tex/texmf-osx-64/bin/lib/luametatex/zint and copied libzint.2.10.0.0.dylib into but replaced dylib with 'so' as suggested on the wiki instructions. So I basically added lib/luametatex/zint to texmf-osx-64/bin . 4) I ran mtxrun --generate to update the database. 5) I ran the MWE below but no barcode appeared. The console output shows: /modules > using user prefixed file 'libs-imp-zint'/ // /modules > 'zint' is loaded/ however further down the output it gives: /optional > unable to locate library 'libzint'/ // I have tried renaming libzint2.10.0.0.so to libzint.so, but still no barcode. Is their something I am missing? Tips or hints appreciated. Best Wishes Keith McKay %% MWE \usemodule[zint] \starttext \barcode[alternative=isbn,text=9783865419026,width=4cm] \barcode[alternative=isbnx, text=9783865419026, width=4cm] \barcode[alternative=qrcode, text={https://wiki.contextgarden.net}, width=3cm] \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] Xml - Lua - context
Hi Thomas, Not sure whether it helps or not, but in regards to combinations and Lua I have had some challenges as well, but Hans' and Wolfgangs' solution with externalfigures works fine for me now: https://mailman.ntg.nl/pipermail/ntg-context/2021/103822.html https://mailman.ntg.nl/pipermail/ntg-context/2021/103827.html Adam On Mon, Mar 28, 2022 at 2:42 PM Thomas A. Schmitz via ntg-context < ntg-context@ntg.nl> wrote: > And here comes question 2, a very basic one: on A4 landscape pages, I want > to place two images next to each other (like the spread pages of a book). > What would be the preferred way of the really competent users to do this, > again keeping in mind that I want to loop over page numbers in a pdf file > and thus am coding in Lua. So far, I have tried or thought about: > > 1. Embedded xtable > > This is what I’m using now, an xtable of two columns for every A4 page. It > works, but I wonder if it’s a good method. > > 2. combinations > > This appeared to be the most natural approach (because it’s what > combinations are for), but I ran into expansion problems, added a few > “function () end” in my code, but couldn’t make it compile. Combinations, > combined with framed and externalfigure, are difficult to write in Lua - or > am I too stupid to find the winning combination (sorry for the puns). > > 3. columns > > Again, this would seen like a natural approach, having every A4 page set > up as two columns, but maybe that’s overkill? > > I’d be curious to know what you think! > > All best > > Thomas > > ___ > 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] Xml - Lua - context
And here comes question 2, a very basic one: on A4 landscape pages, I want to place two images next to each other (like the spread pages of a book). What would be the preferred way of the really competent users to do this, again keeping in mind that I want to loop over page numbers in a pdf file and thus am coding in Lua. So far, I have tried or thought about: 1. Embedded xtable This is what I’m using now, an xtable of two columns for every A4 page. It works, but I wonder if it’s a good method. 2. combinations This appeared to be the most natural approach (because it’s what combinations are for), but I ran into expansion problems, added a few “function () end” in my code, but couldn’t make it compile. Combinations, combined with framed and externalfigure, are difficult to write in Lua - or am I too stupid to find the winning combination (sorry for the puns). 3. columns Again, this would seen like a natural approach, having every A4 page set up as two columns, but maybe that’s overkill? I’d be curious to know what you think! All best Thomas ___ 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] mathcal generates error in ConTeXt
A A via ntg-context schrieb am 26.03.2022 um 08:50: Hi Jan, Thanks, I was starting to think pandoc is not yet mature enough to handle these conversions, but it looks like that might not be the case. \mathcal works now, but I actually ran into another issue in my real document. I have the following defined in my LaTeX: /$C = ``\textrm{dad}``$/ It looks like context has a hard time compiling the above, even with \starttext and \stoptext commands generated with the pandoc -s flag. Here's the error: /The control sequence at the end of the top line of your error message was never/ /\def'ed. You can just continue as I'll forget about whatever was undefined./ /mtx-context | fatal error: return code: 1/ / / How can I include quotes in math expressions the same way I do in LaTeX? When you take a closer look at the error message you can see ConTeXt complains about the \textrm command. tex error > tex error on line 2 in file ./test.tex: Undefined control sequence \undefined $C = ``\textrm {dad}``$ 1 \starttext 2 >> $C = ``\textrm{dad}``$ 3 \stoptext The control sequence at the end of the top line of your error message was never \def'ed. You can just continue as I'll forget about whatever was undefined. mtx-context | fatal error: return code: 1 You can solve this by replacing \textrm with \text or when you need more control about the style of the text you can use the \mathtext commands (e.g. \mathtextrm, \mathtextit etc.). To get the correct quotes in your document you either use the proper quotes in the source (“ and ”) or just use the \quotation command. \starttext $C = \text{\quotation{dad}}$ $C = \text{“dad”}$ \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] mathcal generates error in ConTeXt
Hi Jan, Thanks, I was starting to think pandoc is not yet mature enough to handle these conversions, but it looks like that might not be the case. \mathcal works now, but I actually ran into another issue in my real document. I have the following defined in my LaTeX: *$C = ``\textrm{dad}``$* It looks like context has a hard time compiling the above, even with \starttext and \stoptext commands generated with the pandoc -s flag. Here's the error: *The control sequence at the end of the top line of your error message was never* *\def'ed. You can just continue as I'll forget about whatever was undefined.* *mtx-context | fatal error: return code: 1* How can I include quotes in math expressions the same way I do in LaTeX? Regards, Amine On Sat, 26 Mar 2022 at 08:32, Jan-Erik Hägglöf wrote: > HI! > > It generates no \starttext \stoptext tag > > It works with this though > > \starttext > > $\mathcal{A}$ > > \stoptext > > But with the -s option you get a standalone version of the document > > *pandoc -s -f latex -t context -o test_context.tex test.tex* > > */Janne* > > 26 mars 2022 kl. 06:39 skrev A A via ntg-context : > > Dear All, > > I am using pandoc to covert a file called test.tex from LaTeX to ConTeXt. > Here are the contents of test.tex: > > *\documentclass{article}* > > *\begin{document}* > > *\mathcal{A}* > > *\end{document}* > > The file compiles OK with the following command and I see a resulting pdf: > > > *latexmk -pdflatex test.tex* > > Then I try to convert with pandoc: > > *pandoc -f latex -t context -o test_context.tex test.tex* > > Pandoc appears to successfully generate a file test_context.tex containing > the following: > > *\mathcal{A}* > > Then I try to compile the test_context.tex file: > > *context test_context.tex* > > Which unfortunately results in an error: > > > *resolvers | formats | executing runner 'run luametatex format': > C:/context/tex/texmf-win64/bin/luametatex --jobname="./test_context.tex" > --fmt=C:/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.fmt > --lua=C:/context/tex/texmf-cache/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex/cont-en.lui > --c:currentrun=1 --c:fulljobname="./test_context.tex" > --c:input="./test_context.tex" --c:kindofrun=1 --c:maxnofruns=9 > --c:texmfbinpath="C:/context/tex/texmf-win64/bin"* > > > *system > callbacks > not registering frozen 'local_box_filter'* > *system >* > *system > ConTeXt ver: 2021.11.02 10:03 LMTX fmt: 2021.11.4 > int: english/english* > *system >* > *system > 'cont-new.mkxl' loaded* > *open source > level 1, order 1, name > 'C:/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 > 'C:/context/tex/texmf-context/tex/context/base/mkxl/cont-new.mkxl'* > *system > files > jobname './test_context', input > './test_context.tex', result './test_context'* > *fonts > latin modern fonts are not preloaded* > *languages > language 'en' is active* > *open source > level 1, order 2, name './test_context.tex'* > *tex error > tex error on line 1 in file ./test_context.tex: > \textfont0 is undefined in (text) char, font id 0, character 63)* > > > ** > *$\mathcal{A}$* > > > *1 >> $\mathcal{A}$* > *2* > *Somewhere in the math formula just ended, you used the stated character > from an* > *undefined font family. For example, plain TeX doesn't allow \it or \sl in* > *subscripts. Proceed, and I'll try to forget that I needed that character.* > *mtx-context | fatal error: return code: 1* > > > Why does ConTeXt not accept mathcal? Why does pandoc not account for this? > How can I remedy this with a reasonable amount of effort? > > Regards, > > Amine > > > > ___ > 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] New upload is DOA on my M1 Mac
> On 15 Mar 2022, at 22:31, Gavin via ntg-context wrote: > > Hi Thomas, > >> I can confirm that context version: 2022.03.12 17:56 is running fine on my >> MacBook M1. > > Thanks for that. I’ll troubleshoot my installation. > >> And excuse my snark, but…. > > Snark excused. Ditto - working for me as well. I completely deleted everything and re-installed using the 64-bit MacOS ARM image on this page. <https://www.pragma-ade.nl/install.htm> The normal install steps worked: i.e unzip; move the "context-osx-arm64" parent directory to where you want it to be (/home/Users//Applications) in my case; ran the install script using the command ". ./install.sh" and it all installed nicely. I then added the path it told me about to my .zprofile file and to the engine file that I use. Logged out and in just to make sure the paths were picked up and it all works from both command line and from TeXShop. — 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 ___
[NTG-context] Errors compiling the MetaFun manual
Hi! I tried to compile the MetaFun manual from /doc/context/sources/general/manuals/metafun and ran into a few issues. I don't know if that's expected or if it's supposed to work on a current LMTX. Attached are the first two issues. It takes a while to boil it down to MWEs. Let me know if I should report the other errors, too. I'm not using the failing bits myself, so I don't need fix for that. Motivation is to help find issues with the current release. Marco %% metafun > log > error: A primary expression can't begin with ';' \starttext \startMPcode uniquelist(a) ; draw topath(a,--) ysized 2cm withpen pencircle scaled 1mm withcolor .625yellow ; drawpoints topath(a,--) ysized 2cm withpen pencircle scaled 1mm withcolor .625red ; drawpointlabels topath(a,--) ysized 2cm ; \stopMPcode \stoptext %% metapost> trace > unknown string ta %% metafun > log > %% metafun > log > error: Equation cannot be performed (unknown string=vacuous) \setupbackgrounds [page] [background={foreground,foregraphics}] \defineoverlay [foregraphics] [\positionoverlay{foregraphics}] \starttext \startMPpositiongraphic{mypos:line} path pa, pb, pab ; numeric na, nb ; string ta, tb ; ta := texstr("from") ; tb := texstr("to") ; na := positionpage(ta) ; nb := positionpage(tb) ; pa := positionbox(ta) ; pb := positionbox(tb) ; pa := fullcircle xsized (bbwidth(pa)+4pt) shifted center pa ; pb := fullcircle xsized (bbwidth(pb)+4pt) shifted center pb ; if na = nb : pab := center pa -- center pb ; pab := pab cutbefore (pab intersectionpoint pa) ; pab := pab cutafter (pab intersectionpoint pb) ; pickup pencircle scaled 1pt ; draw pab withcolor .625yellow ; positioninregion ; fi ; \stopMPpositiongraphic \startpositionoverlay{foregraphics} \setMPpositiongraphic{G-1}{mypos:line}{to=G-2} \stoppositionoverlay First we have defined an \hpos {G-1} {\strut overlay}. \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] \asciimode and MetaPost in LMTX result in “Isolated expression”
On Sat, 12 Mar 2022 15:51:16 +0100 Hans Hagen wrote: > you can try this > (in cont-new.tex): > > \prependtoks > \setcatcodetable\ctxcatcodes > \to \everyMPgraphic > > and then do lots of tests with and without asciimode so see if this > doesn't interfere I run almost every document with \asciimode, so I can surely test that aspect, but I'm not using MetaPost a lot these days. I ran a few projects and it seems to work fine. But that's not what I'd call extensive testing. I think compiling the MetaPost manual would be a good test. But on my machine this fails even without the \ctxcatcode fix in place. Maybe someone else with more MetaPost-heavy workflows¹ can test this, too? Marco ¹ Hraban? nudge, nudge… ___ 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
Am 12.03.22 um 00:16 schrieb Hans Hagen via ntg-context: Hi, It has been a while since there was an updaste but there it is. The most significant 'changes' are: Thank you so much! Finally log files of reasonable size again. My latest book (with a lot MetaPost and image trickery) ran flawlessly; still testing other projects. 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] "Flushbottom" / \setupalign[line] in LMTX
I forgot to include the link to my original question: https://www.mail-archive.com/ntg-context@ntg.nl/msg98171.html Von: Maier, Denis Christian (UB) Gesendet: Mittwoch, 9. März 2022 17:51 An: 'mailing list for ConTeXt users' Betreff: "Flushbottom" / \setupalign[line] in LMTX Hi everyone, a quick follow-up to todays monthly meeting: A couple of months ago I ran into issues getting "flushbottom" typesetting right. See: Today, some of these issues seem to have been fixed. But I still have the impression that vertical glue is still not working completely reliable. Below are a couple of examples. While the second example seems to work ok with \setupalign[height] the last line differs if we have different font size, cf. e.g. page 3 and 4. Best, Denis % From the Wiki : https://wiki.contextgarden.net/Flush_bottom %% \setupalign[line] \def\Par{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla} \def\Fig{\placefigure{A figure.}{\framed{\vbox to 5cm{bla \def\Tab{\placetable{A table.}{\framed{\vbox to 5cm{bla \starttext \section{Section}\Par\Par\Par\Fig\Par\Par\par\Par\par\Tab \Par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\Par\Par\Par \section{Section}\Par\Par\Par\Fig\Par\Par\par\Par\par\Tab \Par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\Par\Par\Par \section{Section}\Par\Par\Par\Fig\Par\Par\par\Par\par\Tab \Par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\Par\Par\Par \stoptext %%% % Another Example %%% \setuppapersize[A5][A5] \showframe \setupalign[line] % \setupalign[height] \setupdelimitedtext[blockquote] [ before={\setupindenting[yes]\tfx\setupinterlinespace}, spacebefore=medium, indentnext=no, leftmargin=no, rightmargin=no, ] \starttext \subject{asdf} \dorecurse{5}{ \input knuth \startblockquote \input ward \stopblockquote \input knuth \input ward \subject{asdf} \input knuth \startblockquote \input ward \stopblockquote \input knuth } \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] "Flushbottom" / \setupalign[line] in LMTX
Hi everyone, a quick follow-up to todays monthly meeting: A couple of months ago I ran into issues getting "flushbottom" typesetting right. See: Today, some of these issues seem to have been fixed. But I still have the impression that vertical glue is still not working completely reliable. Below are a couple of examples. While the second example seems to work ok with \setupalign[height] the last line differs if we have different font size, cf. e.g. page 3 and 4. Best, Denis % From the Wiki : https://wiki.contextgarden.net/Flush_bottom %% \setupalign[line] \def\Par{bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla bla} \def\Fig{\placefigure{A figure.}{\framed{\vbox to 5cm{bla \def\Tab{\placetable{A table.}{\framed{\vbox to 5cm{bla \starttext \section{Section}\Par\Par\Par\Fig\Par\Par\par\Par\par\Tab \Par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\Par\Par\Par \section{Section}\Par\Par\Par\Fig\Par\Par\par\Par\par\Tab \Par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\Par\Par\Par \section{Section}\Par\Par\Par\Fig\Par\Par\par\Par\par\Tab \Par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\par\Par\Par\Par\Par\Par \stoptext %%% % Another Example %%% \setuppapersize[A5][A5] \showframe \setupalign[line] % \setupalign[height] \setupdelimitedtext[blockquote] [ before={\setupindenting[yes]\tfx\setupinterlinespace}, spacebefore=medium, indentnext=no, leftmargin=no, rightmargin=no, ] \starttext \subject{asdf} \dorecurse{5}{ \input knuth \startblockquote \input ward \stopblockquote \input knuth \input ward \subject{asdf} \input knuth \startblockquote \input ward \stopblockquote \input knuth } \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] \sub conflict with my def
Thanks, Hans! Appending to \everymathematics is a powerful trick, which I will not overuse. -Gavin > On Jan 12, 2022, at 12:14 PM, Hans Hagen wrote: > > On 1/12/2022 7:34 PM, Gavin via ntg-context wrote: >> Hi List, >> I am converting problem sets from LaTeX to ConTeXt and ran into a puzzling >> problem. I define \sub to produce subscript text in math mode. (See >> definition below.) This worked for my ConTeXt book, but fails in the problem >> sets because in ConTeXt \sub is a special item command, and I use itemize to >> number problems. >> Obviously, I can rename my \sub command, but it is already used in hundreds >> of problems and solutions that I am converting. Is there a way to get my >> \sub to work in an itemize? I only need it in math mode. I will never use >> \sub for its ConTeXt itemizing purpose. > > \appendtoks >\define[1]\sub{_{\text{\rm\tf#1}}}% > \to \everymathematics > > or nicer: > > \define[1]\MyMathSub{_{\text{\rm\tf#1}}} > > \appendtoks >\let\sub\MyMathSub > \to \everymathematics > > >> Thanks! >> Gavin >> \define[1]\sub{_{\text{\rm\tf#1}}} >> \starttext >> $E\sub{final}$ is the final energy, but not in an itemize: >> \startitemize >> \item $E_{\text{\rm final}}$ is the final energy. >> \item $E\sub{final}$ is a mess. >> \stopitemize >> \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 >> ___ > > > -- > > - > 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] \sub conflict with my def
On 1/12/2022 7:34 PM, Gavin via ntg-context wrote: Hi List, I am converting problem sets from LaTeX to ConTeXt and ran into a puzzling problem. I define \sub to produce subscript text in math mode. (See definition below.) This worked for my ConTeXt book, but fails in the problem sets because in ConTeXt \sub is a special item command, and I use itemize to number problems. Obviously, I can rename my \sub command, but it is already used in hundreds of problems and solutions that I am converting. Is there a way to get my \sub to work in an itemize? I only need it in math mode. I will never use \sub for its ConTeXt itemizing purpose. \appendtoks \define[1]\sub{_{\text{\rm\tf#1}}}% \to \everymathematics or nicer: \define[1]\MyMathSub{_{\text{\rm\tf#1}}} \appendtoks \let\sub\MyMathSub \to \everymathematics Thanks! Gavin \define[1]\sub{_{\text{\rm\tf#1}}} \starttext $E\sub{final}$ is the final energy, but not in an itemize: \startitemize \item $E_{\text{\rm final}}$ is the final energy. \item $E\sub{final}$ is a mess. \stopitemize \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 ___ -- - 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] \sub conflict with my def
Hi List, I am converting problem sets from LaTeX to ConTeXt and ran into a puzzling problem. I define \sub to produce subscript text in math mode. (See definition below.) This worked for my ConTeXt book, but fails in the problem sets because in ConTeXt \sub is a special item command, and I use itemize to number problems. Obviously, I can rename my \sub command, but it is already used in hundreds of problems and solutions that I am converting. Is there a way to get my \sub to work in an itemize? I only need it in math mode. I will never use \sub for its ConTeXt itemizing purpose. Thanks! Gavin \define[1]\sub{_{\text{\rm\tf#1}}} \starttext $E\sub{final}$ is the final energy, but not in an itemize: \startitemize \item $E_{\text{\rm final}}$ is the final energy. \item $E\sub{final}$ is a mess. \stopitemize \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] \its disappeared
Henning Hraban Ramm via ntg-context schrieb am 08.01.2022 um 16:53: I don’t know since when the questionnaire item command \its doesn’t exist any more: https://wiki.contextgarden.net/Command/its \starttext \startitemize[5,packed][items=7,width=5em,distance=1em] \ran{\ss\tfx 1 \hss 7} \its \CONTEXT\ or \LaTeX? \its Tofu or sausage? \its Freedom or security? \stopitemize \stoptext strc-itm.mklx -\protected\tolerant\def\strc_itemgroups_start_items_indeed[#1]% +\protected\tolerant\def\strc_itemgroups_start_items[#1]% {\strc_itemgroups_start_edge {\localcontrolledloop \plusone \ifchknum#1\or#1\else0\itemgroupparameter\c!items\fi \plusone {\strc_itemgroups_used_symbol\hss}% \unskip}} It’s also absent in the interface files, i.e. autosyntax doesn’t work in the wiki. There is no easy way to document them because many of these short commands exists in different environment (e.g. \startitemize and \startinteractionmenu) with different arguments. Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] \its disappeared
I don’t know since when the questionnaire item command \its doesn’t exist any more: https://wiki.contextgarden.net/Command/its \starttext \startitemize[5,packed][items=7,width=5em,distance=1em] \ran{\ss\tfx 1 \hss 7} \its \CONTEXT\ or \LaTeX? \its Tofu or sausage? \its Freedom or security? \stopitemize \stoptext It’s also absent in the interface files, i.e. autosyntax doesn’t work in the wiki. Is there a better alternative? 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] upload
Same with W64 on W11. On 2021-12-24 17:08, Jairo A. del Rio via ntg-context wrote: Hi, Hans. In Ubuntu 20.04: resolvers > lua > loading file '/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt' succeeded fatal error: storage cannot be marked Jairo El vie, 24 dic 2021 a la(s) 13:45, Hans Hagen via ntg-context (ntg-context@ntg.nl) escribió: Hi, When wrapping up before the weekend I uploaded a new lmtx (bottom floats fixed afaiks, but hat mechanism might see some improvements anyway next year; exit codes more reliable; some low level tracing; side float coming loose from section head issue solved; ...). I'm experimenting with some more efficient low level state info and in the process ran into an issue / interference with (also low level) attributes. I'm not sure if I solved it (work in progress, i need to run into another border case first which may take ages) but the test suite runs ok so ... Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl <http://www.pragma-ade.nl> | www.pragma-pod.nl <http://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 __ 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
Hi, Hans. In Ubuntu 20.04: resolvers > lua > loading file '/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt' succeeded fatal error: storage cannot be marked Jairo El vie, 24 dic 2021 a la(s) 13:45, Hans Hagen via ntg-context ( ntg-context@ntg.nl) escribió: > Hi, > > When wrapping up before the weekend I uploaded a new lmtx (bottom floats > fixed afaiks, but hat mechanism might see some improvements anyway next > year; exit codes more reliable; some low level tracing; side float > coming loose from section head issue solved; ...). > > I'm experimenting with some more efficient low level state info and in > the process ran into an issue / interference with (also low level) > attributes. I'm not sure if I solved it (work in progress, i need to run > into another border case first which may take ages) but the test suite > runs ok so ... > > 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 ___
[NTG-context] upload
Hi, When wrapping up before the weekend I uploaded a new lmtx (bottom floats fixed afaiks, but hat mechanism might see some improvements anyway next year; exit codes more reliable; some low level tracing; side float coming loose from section head issue solved; ...). I'm experimenting with some more efficient low level state info and in the process ran into an issue / interference with (also low level) attributes. I'm not sure if I solved it (work in progress, i need to run into another border case first which may take ages) but the test suite runs ok so ... 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] [DKIM] Re: [DKIM] Re: [DKIM] circuitikz module seems broken
On Sun, 5 Dec 2021, Hans Hagen via ntg-context wrote: > On 12/4/2021 10:37 PM, Jan-Erik Hägglöf via ntg-context wrote: > > I did replace the attached .mkxl files now in the correct directory tree > together with the rest of all m-xyz.mkxl module files. > > > > The same error message appears and i’m back at square one. > hm, here i did: > > - install tikz from ctan > - install curcuitikz from ctan > - copy the m-files to context/base ... > > ran mtxrun --generate > > there is not much more I can do (esp if it also runs ok at Aditya's place) Things are not working correctly at my end either. The whole tikz/pgf code needs some cleaning up. There are a bunch of errors of the form: system > module wrapping error in 'tikz' because the many of the modules in tikz have a \stopmodule but not a \startmodule. I'll try to clean it up, but tikz is a rabbit hole 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] [DKIM] [DKIM] Re: [DKIM] circuitikz module seems broken
Ok so I did all the tips, installed from ctan without any success so it is interesting to know how it worked out for some and not for me. Well that is a good question. Thanks for your help anyway Regards Jan-Erik > 5 dec. 2021 kl. 16:35 skrev Hans Hagen : > > On 12/4/2021 10:37 PM, Jan-Erik Hägglöf via ntg-context wrote: >> I did replace the attached .mkxl files now in the correct directory tree >> together with the rest of all m-xyz.mkxl module files. >> The same error message appears and i’m back at square one. > hm, here i did: > > - install tikz from ctan > - install curcuitikz from ctan > - copy the m-files to context/base ... > > ran mtxrun --generate > > there is not much more I can do (esp if it also runs ok at Aditya's place) > > 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] [DKIM] Re: [DKIM] Re: [DKIM] circuitikz module seems broken
On 12/4/2021 10:37 PM, Jan-Erik Hägglöf via ntg-context wrote: I did replace the attached .mkxl files now in the correct directory tree together with the rest of all m-xyz.mkxl module files. The same error message appears and i’m back at square one. hm, here i did: - install tikz from ctan - install curcuitikz from ctan - copy the m-files to context/base ... ran mtxrun --generate there is not much more I can do (esp if it also runs ok at Aditya's place) 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] xml processing errors after latest upgrade
Still the same error. > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Mittwoch, 1. Dezember 2021 11:02 > An: 'Hans Hagen' ; 'mailing list for ConTeXt users' cont...@ntg.nl> > Betreff: AW: [NTG-context] xml processing errors after latest upgrade > > Trying a fresh installation. > > > -Ursprüngliche Nachricht- > > Von: Maier, Denis Christian (UB) > > Gesendet: Mittwoch, 1. Dezember 2021 10:59 > > An: 'Hans Hagen' ; mailing list for ConTeXt users > > > > Betreff: AW: [NTG-context] xml processing errors after latest upgrade > > > > You mean a problem with the update? > > > > I've wiped the cache and ran > > mtxrun --generate > > context --make > > > > But, no change. > > > > Denis > > > > > -Ursprüngliche Nachricht- > > > Von: Hans Hagen > > > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > > > An: mailing list for ConTeXt users > > > Cc: Maier, Denis Christian (UB) > > > Betreff: Re: [NTG-context] xml processing errors after latest > > > upgrade > > > > > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > > > > > Not sure what is going wrong. Any hints how I can start debugging? > > > > Any ideas what could have caused that change? > > > > > > > > (Ok, let’s build a MWE..) > > > a mix of old / new files? > > > > > > > > > - > > >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] xml processing errors after latest upgrade
Trying a fresh installation. > -Ursprüngliche Nachricht- > Von: Maier, Denis Christian (UB) > Gesendet: Mittwoch, 1. Dezember 2021 10:59 > An: 'Hans Hagen' ; mailing list for ConTeXt users cont...@ntg.nl> > Betreff: AW: [NTG-context] xml processing errors after latest upgrade > > You mean a problem with the update? > > I've wiped the cache and ran > mtxrun --generate > context --make > > But, no change. > > Denis > > > -Ursprüngliche Nachricht- > > Von: Hans Hagen > > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > > An: mailing list for ConTeXt users > > Cc: Maier, Denis Christian (UB) > > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > > > Not sure what is going wrong. Any hints how I can start debugging? > > > Any ideas what could have caused that change? > > > > > > (Ok, let’s build a MWE..) > > a mix of old / new files? > > > > > > - > >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] xml processing errors after latest upgrade
You mean a problem with the update? I've wiped the cache and ran mtxrun --generate context --make But, no change. Denis > -Ursprüngliche Nachricht- > Von: Hans Hagen > Gesendet: Mittwoch, 1. Dezember 2021 10:52 > An: mailing list for ConTeXt users > Cc: Maier, Denis Christian (UB) > Betreff: Re: [NTG-context] xml processing errors after latest upgrade > > On 12/1/2021 10:41 AM, Denis Maier via ntg-context wrote: > > > Not sure what is going wrong. Any hints how I can start debugging? Any > > ideas what could have caused that change? > > > > (Ok, let’s build a MWE..) > a mix of old / new files? > > > - >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] update lmtx
On 11/26/2021 11:10 AM, Alain Delmotte via ntg-context wrote: Hi! Le 22/11/2021 à 22:37, Hans Hagen via ntg-context a écrit : Hi, We're still working on the math so updated lfg files buit not many other things apart from a few fixes. In the process I ran into another area where ms eems to take the lead: https://devblogs.microsoft.com/math-in-office/unicode-math-braille-sequences/ and although it aims at msword I gave that a go for context so we now have a "braille-basic" module (style) that we (can) use (and run as demo) for playing with math spacing because we basically have a monospace font. If there is any interest in braille as alternative output we can extend that. I'm pretty sure that we need to adapt some (general spacing related) presets to this situation. Hans I remember having contact with people in the braille association in Belgium. To prepare braille text you need to follow certain rules, it is not just using braille symbols. sure, there are subtle details (leading chars and so) and there's also some 'shortcut' system So it is better to ask braille specialist about the requirements for good braille text. I'll wait and see what demands show up ... at least some basics are there. 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] update lmtx
Hi! Le 22/11/2021 à 22:37, Hans Hagen via ntg-context a écrit : Hi, We're still working on the math so updated lfg files buit not many other things apart from a few fixes. In the process I ran into another area where ms eems to take the lead: https://devblogs.microsoft.com/math-in-office/unicode-math-braille-sequences/ and although it aims at msword I gave that a go for context so we now have a "braille-basic" module (style) that we (can) use (and run as demo) for playing with math spacing because we basically have a monospace font. If there is any interest in braille as alternative output we can extend that. I'm pretty sure that we need to adapt some (general spacing related) presets to this situation. Hans I remember having contact with people in the braille association in Belgium. To prepare braille text you need to follow certain rules, it is not just using braille symbols. So it is better to ask braille specialist about the requirements for good braille text. 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] update lmtx
Hi, In the new upload for Windows 10/64 there is a new file "modules.bat". When I did launch it it went through all my harddisk and most of the time there was a line saying: "File has vanished..." those were about files outside the context-lmtx folder. (See the two attached images) I crashed the action. How can I have the modules installed in "C:\Users\Alain\context-lmtx\tex" and have the module use working? Thanks, Alain Le 22/11/2021 à 22:37, Hans Hagen via ntg-context a écrit : Hi, We're still working on the math so updated lfg files buit not many other things apart from a few fixes. In the process I ran into another area where ms eems to take the lead: https://devblogs.microsoft.com/math-in-office/unicode-math-braille-sequences/ and although it aims at msword I gave that a go for context so we now have a "braille-basic" module (style) that we (can) use (and run as demo) for playing with math spacing because we basically have a monospace font. If there is any interest in braille as alternative output we can extend that. I'm pretty sure that we need to adapt some (general spacing related) presets to this situation. 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 ___
[NTG-context] update lmtx
Hi, We're still working on the math so updated lfg files buit not many other things apart from a few fixes. In the process I ran into another area where ms eems to take the lead: https://devblogs.microsoft.com/math-in-office/unicode-math-braille-sequences/ and although it aims at msword I gave that a go for context so we now have a "braille-basic" module (style) that we (can) use (and run as demo) for playing with math spacing because we basically have a monospace font. If there is any interest in braille as alternative output we can extend that. I'm pretty sure that we need to adapt some (general spacing related) presets to this situation. 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] Problem with Google Font 'Vollkorn'
On 11/12/21 6:23 PM, Michael Urban via ntg-context wrote: > I downloaded the Google free font ‘Vollkorn’ > (https://fonts.google.com/specimen/Vollkorn) into an appropriate directory > and ran > mtxrun --script font --reload Hi Michael, I would rather wipe out the cache and start again: mtxrun --script cache --erase && mtxrun --generate I had problems reloading fonts on Linux, so I always run that after updating ConTeXt or adding a new font. Just in case it might help, Pablo ___ 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] Problem with Google Font 'Vollkorn'
> Am 12.11.2021 um 18:23 schrieb Michael Urban via ntg-context > : > > I downloaded the Google free font ‘Vollkorn’ > (https://fonts.google.com/specimen/Vollkorn) into an appropriate directory > and ran > mtxrun --script font --reload > all went well, and the Vollkorn truetype fonts show up in the output of > mtxrun --script font --list --all . > > However, the following input: > > \starttext > \definedfont[name:vollkornregular*default at 14pt] > \input tufte > \stoptext > > fails, with the following output: > system > ConTeXt ver: 2020.03.10 14:44 MKIV beta fmt: 2020.6.8 int: > english/english > > fonts > otf loading > loading > 'MYPATH/texmf/fonts/truetype/google/Vollkorn-Regular.ttf', hash > 'vollkorn-regular' > fonts > otf loading > loading failed due to read error > fonts > defining > forced type 'ttf' of 'Vollkorn-Regular' not found > fonts > defining > font with asked name 'Vollkorn-Regular' is not > found using lookup 'name' > fonts > defining > unknown font 'Vollkorn-Regular', loading aborted > > This is on Mac OSX. I don't recall this problem coming up before. > Evidently the difficulty is that it is expecting an otf font and is > confounded by the truetype file. > > The ConTeXt font system always bewilders me, but this time it's pretty > specific. Help? > For me it works on MacOS 10.14 and ConTeXt LMTX 2021.10.28. Does your list look like mine?: $ mtxrun --script fonts --list --all --pattern=vollkorn identifierfamilyname fontname filename subfont instances vollkornblack vollkorn vollkornblack Vollkorn-Black.ttf vollkornblackitalic vollkorn vollkornblackitalic Vollkorn-BlackItalic.ttf vollkornbold vollkorn vollkornbold Vollkorn-Bold.ttf vollkornbolditalicvollkorn vollkornbolditalic Vollkorn-BoldItalic.ttf vollkornextrabold vollkorn vollkornextrabold Vollkorn-ExtraBold.ttf vollkornextrabolditalic vollkorn vollkornextrabolditalic Vollkorn-ExtraBoldItalic.ttf vollkornitalicvollkorn vollkornitalic Vollkorn-Italic.ttf vollkornmediumvollkorn vollkornmedium Vollkorn-Medium.ttf vollkornmediumitalic vollkorn vollkornmediumitalic Vollkorn-MediumItalic.ttf vollkornnormalvollkorn vollkornitalic Vollkorn-Italic.ttf vollkornregular vollkorn vollkornregular Vollkorn-Regular.ttf vollkornsemibold vollkorn vollkornsemibold Vollkorn-SemiBold.ttf vollkornsemibolditalicvollkorn vollkornsemibolditalic Vollkorn-SemiBoldItalic.ttf 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 ___
[NTG-context] Problem with Google Font 'Vollkorn'
I downloaded the Google free font ‘Vollkorn’ (https://fonts.google.com/specimen/Vollkorn) into an appropriate directory and ran mtxrun --script font --reload all went well, and the Vollkorn truetype fonts show up in the output of mtxrun --script font --list --all . However, the following input: \starttext \definedfont[name:vollkornregular*default at 14pt] \input tufte \stoptext fails, with the following output: system > ConTeXt ver: 2020.03.10 14:44 MKIV beta fmt: 2020.6.8 int: english/english fonts > otf loading > loading 'MYPATH/texmf/fonts/truetype/google/Vollkorn-Regular.ttf', hash 'vollkorn-regular' fonts > otf loading > loading failed due to read error fonts > defining > forced type 'ttf' of 'Vollkorn-Regular' not found fonts > defining > font with asked name 'Vollkorn-Regular' is not found using lookup 'name' fonts > defining > unknown font 'Vollkorn-Regular', loading aborted This is on Mac OSX. I don't recall this problem coming up before. Evidently the difficulty is that it is expecting an otf font and is confounded by the truetype file. The ConTeXt font system always bewilders me, but this time it's pretty specific. Help? ___ 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] MkIV missing?
It works. I don't know why, but it works now. Best wishes Jörg Am 18.10.21 um 17:27 schrieb Jörg Hofmann via ntg-context: Am 04.10.21 um 15:33 schrieb Taco Hoekwater via ntg-context: We are busy with this off-list. If it is urgent: luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate fixed it for me (you’ll need to adjust the path, of course) Best wishes, Taco But not for me. :( After I set up my PC again, Linux Mint 20.1 Cinnamon, I also reinstalled ConTeXt and since then I have been experiencing the error. Are there any further steps? Besst wishes Jörg On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context wrote: Same problem here, on a linux64, context current version: 2021.09.26 17:00 Greetings Marcus Vinicius On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context wrote: Am 04.10.2021 um 13:06 schrieb Hans Hagen: On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote: Hi, since a while, I can’t run MkIV any more, even after several runs of install.sh (and mtxrun --generate, of course). It’s the same on my Mac and my Linux laptop (of course the bin dir is different on the latter): $ context --version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2021.09.26 17:00 mtx-context | main context file: /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.09.26 17:00 $ context --version --luatex mtx-context | redirect luametatex -> luatex: luatex --luaonly "/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context --version --luatex --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' $ which context /Users/hraban/lmtx/tex/texmf-osx-64/bin/context $ which luatex /Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex $ luatex --version This is LuaTeX, Version 1.13.0 (TeX Live 2021) ... $ mtxrun --version mtxrun | ConTeXt TDS Runner Tool 1.32 mtxrun | source path I thought that was related to the server/provider move, but I guess it isn’t. It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that a call to mtxrun can’t find any configuration. works here ... maybe a --generate issue? I re-ran the install script with a shell ("sh install.sh" instead just ". install.sh"), but that doesn’t change the "unknown script" issue. "mtxrun --generate" seems to work without problems; or do you see something suspicious in the attached log? 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 ___ -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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 ___ — Taco Hoekwater E:t...@bittext.nl genderfluid (all pronouns) ___ 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/contex
Re: [NTG-context] MkIV missing?
Am 04.10.21 um 15:33 schrieb Taco Hoekwater via ntg-context: We are busy with this off-list. If it is urgent: luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate fixed it for me (you’ll need to adjust the path, of course) Best wishes, Taco But not for me. :( After I set up my PC again, Linux Mint 20.1 Cinnamon, I also reinstalled ConTeXt and since then I have been experiencing the error. Are there any further steps? Besst wishes Jörg On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context wrote: Same problem here, on a linux64, context current version: 2021.09.26 17:00 Greetings Marcus Vinicius On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context wrote: Am 04.10.2021 um 13:06 schrieb Hans Hagen : On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote: Hi, since a while, I can’t run MkIV any more, even after several runs of install.sh (and mtxrun --generate, of course). It’s the same on my Mac and my Linux laptop (of course the bin dir is different on the latter): $ context --version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version: 2021.09.26 17:00 mtx-context | main context file: /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl mtx-context | current version: 2021.09.26 17:00 $ context --version --luatex mtx-context | redirect luametatex -> luatex: luatex --luaonly "/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context --version --luatex --redirected mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' $ which context /Users/hraban/lmtx/tex/texmf-osx-64/bin/context $ which luatex /Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex $ luatex --version This is LuaTeX, Version 1.13.0 (TeX Live 2021) ... $ mtxrun --version mtxrun | ConTeXt TDS Runner Tool 1.32 mtxrun | source path I thought that was related to the server/provider move, but I guess it isn’t. It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that a call to mtxrun can’t find any configuration. works here ... maybe a --generate issue? I re-ran the install script with a shell ("sh install.sh" instead just ". install.sh"), but that doesn’t change the "unknown script" issue. "mtxrun --generate" seems to work without problems; or do you see something suspicious in the attached log? 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 ___ -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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 ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] SyncTeX does not work with Zathura
On 10/10/2021 7:20 PM, Cezary Drożak wrote: > you can play with > > mtxrun --script synctex > > and the synctex file to see if it makes sense I wrote two almost identical files in plain tex and context. When I generated the synctex file and ran `mtxrun --script synctex --list x.synctex` I got this: ``` $ mtxrun --script synctex --list context.synctex mtx-synctex | begin page: 1 mtx-synctex | end page: 1 $ mtxrun --script synctex --list tex.synctex mtx-synctex | begin page: 1 mtx-synctex | [ 72 82 92 82] : 1 : /home/nawordar/tests/tex/hello/./tex.tex mtx-synctex | end page: 1 ``` It looks like context generates an incomplete synctext file. I can't say ... what is missing? Can you figure out what makes Zathura unhappy? The context synctex files are definitely less verbose because (1) we avoid clutter, (2) omit auto-generated content like pagenumbers and so, (3) collapse ranges (which we can do because we know what we're dealing with), (4) don't compress (because it makes no sense), (5) ignore styles, (6) also handle xml, etc. There have been some changes between synctex 1 and 2 but I don['t keep track of that. Actually, if a 'call some command' approach would have been chosen we could have better readable files (in our case lua or so). > one problem with synctex is that the editors depend on a library and there has been changes > > texshop now uses the more independent method for context i.e. just calling "mtxrun --script synctex ..." which not only removes the dependency of a library (the dependency on mtxrun is ok as one has context anyway) but also permits room for improvement (apart from not being tricked by latex specific heuristics in the library) But that would need a change in Zathura wouldn't it? sure, so unlikely to happen soon (i have no influence on that) (but it would have been a better approach anyway, not being dependent on libraries that that depend on specific synctex versions in tex as well as heuristics; basically now one needs a version of the editor/viewer that matches a tex engine); one doesn't hard code a pdf viewer in an editor either (btw, the script approach permits two way sync, so in texshop one can go from pdf to source and source to pdf) here with \starttext Hello, world! \stoptext i get SyncTeX Version:1 Input:1:oeps.tex Output:pdf Magnification:1000 Unit:1 X Offset:0 Y Offset:0 Content: !103 {1 [0,0:0,0:0,0,0 v0,0:0,55380990:39158276,55380990,0 h1,6:4661756,9176901:4275840,655360,327680 ] !104 }1 !8 Postamble: Count:3 !22 Post scriptum: (also with context --synctex oeps) 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] SyncTeX does not work with Zathura
> you can play with > > mtxrun --script synctex > > and the synctex file to see if it makes sense I wrote two almost identical files in plain tex and context. When I generated the synctex file and ran `mtxrun --script synctex --list x.synctex` I got this: ``` $ mtxrun --script synctex --list context.synctex mtx-synctex | begin page: 1 mtx-synctex | end page: 1 $ mtxrun --script synctex --list tex.synctex mtx-synctex | begin page: 1 mtx-synctex | [ 72 82 92 82] : 1 : /home/nawordar/tests/tex/hello/./tex.tex mtx-synctex | end page: 1 ``` It looks like context generates an incomplete synctext file. > one problem with synctex is that the editors depend on a library and there has been changes > > texshop now uses the more independent method for context i.e. just calling "mtxrun --script synctex ..." which not only removes the dependency of a library (the dependency on mtxrun is ok as one has context anyway) but also permits room for improvement (apart from not being tricked by latex specific heuristics in the library) But that would need a change in Zathura wouldn't it? ___ 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] SyncTeX does not work with Zathura
On 10/10/2021 6:11 PM, Cezary Drożak via ntg-context wrote: Hello, I have been trying to get SyncTeX to work with ConTeXt and Zathura, but nothing seems to work. I created a simple `hello.mklx` file and ran `context --synctex=-1 hello.mklx`. Then I launched Zathura with `zathura -x "nvr -cc \"call vimtex#view#reverse_goto(%{line}, '%{input}')\" --nostart" hello.pdf`. When I clicked "Hello, world!" while holding a control key it printed the following error to console: ``` (org.pwmt.zathura:80241): GLib-CRITICAL **: 15:49:12.359: g_variant_new_string: assertion 'string != NULL' failed warning: Failed to obtain data via SyncTeX or data is incomplete. ``` I am attaching the `hello.mklx`, `hello.pdf` files and the generated `hello.synctex` file. I am getting the same result with `--synctex=1`. you can play with mtxrun --script synctex and the synctex file to see if it makes sense one problem with synctex is that the editors depend on a library and there has been changes texshop now uses the more independent method for context i.e. just calling "mtxrun --script synctex ..." which not only removes the dependency of a library (the dependency on mtxrun is ok as one has context anyway) but also permits room for improvement (apart from not being tricked by latex specific heuristics in the library) 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] SyncTeX does not work with Zathura
Hello, I have been trying to get SyncTeX to work with ConTeXt and Zathura, but nothing seems to work. I created a simple `hello.mklx` file and ran `context --synctex=-1 hello.mklx`. Then I launched Zathura with `zathura -x "nvr -cc \"call vimtex#view#reverse_goto(%{line}, '%{input}')\" --nostart" hello.pdf`. When I clicked "Hello, world!" while holding a control key it printed the following error to console: ``` (org.pwmt.zathura:80241): GLib-CRITICAL **: 15:49:12.359: g_variant_new_string: assertion 'string != NULL' failed warning: Failed to obtain data via SyncTeX or data is incomplete. ``` I am attaching the `hello.mklx`, `hello.pdf` files and the generated `hello.synctex` file. I am getting the same result with `--synctex=1`. Regards, Cezary Drożak hello.pdf Description: Adobe PDF document SyncTeX Version:1 Output:pdf Magnification:1000 Unit:1 X Offset:0 Y Offset:0 Content: !86 {1 [0,0:0,0:0,0,0 v0,0:0,55380990:39158276,55380990,0 ] !60 }1 !7 Postamble: Count:2 !22 Post scriptum: \starttext Hello, world! \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] MkIV missing?
We are busy with this off-list. If it is urgent: luatex --luaonly ~/lmtx/tex/texmf-osx-64/bin/mtxrun.lua --generate fixed it for me (you’ll need to adjust the path, of course) Best wishes, Taco > On 4 Oct 2021, at 15:28, Marcus Vinicius Mesquita via ntg-context > wrote: > > Same problem here, on a linux64, context current version: 2021.09.26 17:00 > > Greetings > > Marcus Vinicius > > On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context > wrote: > > > Am 04.10.2021 um 13:06 schrieb Hans Hagen : > > > > On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote: > >> Hi, > >> since a while, I can’t run MkIV any more, even after several runs of > >> install.sh (and mtxrun --generate, of course). > >> It’s the same on my Mac and my Linux laptop (of course the bin dir is > >> different on the latter): > >> $ context --version > >> mtx-context | ConTeXt Process Management 1.04 > >> mtx-context | > >> mtx-context | main context file: > >> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv > >> mtx-context | current version: 2021.09.26 17:00 > >> mtx-context | main context file: > >> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl > >> mtx-context | current version: 2021.09.26 17:00 > >> $ context --version --luatex > >> mtx-context | redirect luametatex -> luatex: luatex --luaonly > >> "/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context > >> --version --luatex --redirected > >> mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' > >> $ which context > >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/context > >> $ which luatex > >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex > >> $ luatex --version > >> This is LuaTeX, Version 1.13.0 (TeX Live 2021) > >> ... > >> $ mtxrun --version > >> mtxrun | ConTeXt TDS Runner Tool 1.32 > >> mtxrun | source path > >> I thought that was related to the server/provider move, but I guess it > >> isn’t. > >> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that > >> a call to mtxrun can’t find any configuration. > > works here ... maybe a --generate issue? > > I re-ran the install script with a shell ("sh install.sh" instead just ". > install.sh"), but that doesn’t change the "unknown script" issue. > > "mtxrun --generate" seems to work without problems; or do you see something > suspicious in the attached log? > > 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 > ___ > > > -- > Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo > nem seus membros, por ser descanso da alma, primavera do coração, distração > do aflito, entretenimento do solitário, e viático do viajante. > > Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) > ___ > 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 > ___ — Taco Hoekwater E: t...@bittext.nl genderfluid (all pronouns) ___ 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] MkIV missing?
Same problem here, on a linux64, context current version: 2021.09.26 17:00 Greetings Marcus Vinicius On Mon, Oct 4, 2021 at 8:55 AM Henning Hraban Ramm via ntg-context < ntg-context@ntg.nl> wrote: > > > Am 04.10.2021 um 13:06 schrieb Hans Hagen : > > > > On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote: > >> Hi, > >> since a while, I can’t run MkIV any more, even after several runs of > install.sh (and mtxrun --generate, of course). > >> It’s the same on my Mac and my Linux laptop (of course the bin dir is > different on the latter): > >> $ context --version > >> mtx-context | ConTeXt Process Management 1.04 > >> mtx-context | > >> mtx-context | main context file: > /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv > >> mtx-context | current version: 2021.09.26 17:00 > >> mtx-context | main context file: > /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl > >> mtx-context | current version: 2021.09.26 17:00 > >> $ context --version --luatex > >> mtx-context | redirect luametatex -> luatex: luatex --luaonly > "/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context > --version --luatex --redirected > >> mtxrun | unknown script 'mtx-context.lua' or > 'mtx-mtx-context.lua' > >> $ which context > >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/context > >> $ which luatex > >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex > >> $ luatex --version > >> This is LuaTeX, Version 1.13.0 (TeX Live 2021) > >> ... > >> $ mtxrun --version > >> mtxrun | ConTeXt TDS Runner Tool 1.32 > >> mtxrun | source path > >> I thought that was related to the server/provider move, but I guess it > isn’t. > >> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so > that a call to mtxrun can’t find any configuration. > > works here ... maybe a --generate issue? > > I re-ran the install script with a shell ("sh install.sh" instead just ". > install.sh"), but that doesn’t change the "unknown script" issue. > > "mtxrun --generate" seems to work without problems; or do you see > something suspicious in the attached log? > > 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 > > ___ > -- Todas as coisas fatigam o corpo, salvo a música, que não fatiga nem o corpo nem seus membros, por ser descanso da alma, primavera do coração, distração do aflito, entretenimento do solitário, e viático do viajante. Kunnâsh al-Hâ'ik (Cancioneiro de al-Hâ'ik) ___ 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] MkIV missing?
> Am 04.10.2021 um 13:06 schrieb Hans Hagen : > > On 10/4/2021 12:39 PM, Henning Hraban Ramm via ntg-context wrote: >> Hi, >> since a while, I can’t run MkIV any more, even after several runs of >> install.sh (and mtxrun --generate, of course). >> It’s the same on my Mac and my Linux laptop (of course the bin dir is >> different on the latter): >> $ context --version >> mtx-context | ConTeXt Process Management 1.04 >> mtx-context | >> mtx-context | main context file: >> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv >> mtx-context | current version: 2021.09.26 17:00 >> mtx-context | main context file: >> /Users/hraban/lmtx/tex/texmf-context/tex/context/base/mkxl/context.mkxl >> mtx-context | current version: 2021.09.26 17:00 >> $ context --version --luatex >> mtx-context | redirect luametatex -> luatex: luatex --luaonly >> "/Users/hraban/lmtx/tex/texmf-osx-64/bin/mtxrun.lua" --script mtx-context >> --version --luatex --redirected >> mtxrun | unknown script 'mtx-context.lua' or 'mtx-mtx-context.lua' >> $ which context >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/context >> $ which luatex >> /Users/hraban/lmtx/tex/texmf-osx-64/bin/luatex >> $ luatex --version >> This is LuaTeX, Version 1.13.0 (TeX Live 2021) >> ... >> $ mtxrun --version >> mtxrun | ConTeXt TDS Runner Tool 1.32 >> mtxrun | source path >> I thought that was related to the server/provider move, but I guess it isn’t. >> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that a >> call to mtxrun can’t find any configuration. > works here ... maybe a --generate issue? I re-ran the install script with a shell ("sh install.sh" instead just ". install.sh"), but that doesn’t change the "unknown script" issue. "mtxrun --generate" seems to work without problems; or do you see something suspicious in the attached log? Hraban mtxrun-generate.log 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 / 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] MkIV missing?
> Am 04.10.2021 um 13:20 schrieb Taco Hoekwater : > >> On 4 Oct 2021, at 12:39, Henning Hraban Ramm via ntg-context >> wrote: >> >> I thought that was related to the server/provider move, but I guess it isn’t. >> >> It’s a bit annoying that install.sh leaves ~/lmtx/bin in the PATH, so that a >> call to mtxrun can’t find any configuration. > > That is why I always run “sh install.sh” instead of executing the script > directly. I always ran ". install.sh", i.e. "source install.sh"; calling a shell solves the PATH issue. Thanks for the hint! 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] Incorrect rendering in Devanagari forms in some fonts
On Wednesday, September 1, 2021 1:43:56 PM IST kauśika cittūr wrote: > Dear All, > > I have encountered a strange problem using certain Devanagari fonts for the > Sanskrit languagein ConTeXt, wherein the rakaar ligatures are not rendered > properly in some glyphs/conjuncts. The problem is not too easy to describe > so please pardon this long email. > > The fonts I am using are as follows: > • Shobhika – https://github.com/Sandhi-IITBombay/Shobhika > • Murty Sanskrit – https://murtylibrary.com/mcli-fonts.php > > I had previously posted about this issue on TeX SE and Ulrike Fischer was > kind enough to suggest that the problem might have something to do with the > font rendering (since I have no issues in XeLaTeX (using Harfbuzz)): > > https://tex.stackexchange.com/questions/612634/devanagari-forms-in-context-u > sing-shobhika-font > > My ConTeXt (LMTX) version is: 2021.08.30 19:56 > > I am using the following typescript for Murty: > > \starttypescript [serif] [murty] > \definefontsynonym > [Serif] > [name:murtysanskritregular] > [features=devanagari-two] > \stoptypescript > > \starttypescript [murty] > \definetypeface [murty] [rm] [serif] [murty] [default] > \stoptypescript > > and the following for Shobhika: > > \starttypescript [serif] [shobhika] > \definefontsynonym > [Serif] > [name:shobhikaregular] > [features=devanagari-two] > \definefontsynonym > [SerifBold] > [name:shobhikabold] > [features=devanagari-two] > \stoptypescript > > \starttypescript [shobhika] > \definetypeface [shobhika] [rm] [serif] [shobhika] > \stoptypescript > > Below is the test file I am using to demonstrate the problem: > > \setupbodyfont[shobhika] > \starttext > \startcolumns > ट्रा ट्रि ट्री ट्रु द्रू ट्रे ट्रै ट्रो ट्रौ > > ठ्रा ठ्रि ठ्री ठ्रु ठ्रू ठ्रे ठ्रै ठ्रो ठ्रौ > > ड्रा ड्रि ड्री ड्रु ड्रू ड्रे ड्रै ड्रो ड्रौ > > ढ्रा ढ्रि ढ्री ढ्रु ढ्रू ढ्रे ढ्रै ढ्रो ढ्रौ > > छ्रा छ्रि छ्री छ्रु छ्रू छ्रे छ्रै छ्रो छ्रौ > > \column > क्र ख्र ग्र घ्र ण्र > > च्र छ्र ज्र झ्र ञ्र > > च्रे छ्रे ज्रे झ्रे ञ्रे > > त्रे थ्रे द्रे ध्रे न्रे > > प्र फ्र ब्र भ्र म्र > > य्र ल्र व्र स्र श्र ष्र ह्र > \stopcolumns > \stoptext > > When I use the 'devanagari-two' feature set, which sets the script tag to > 'dev2', the rakaar forms (provided by the features 'rkrf=yes' and > 'blwf=yes') do not render properly for some glyphs, namely the glyphs in > the right column, enclosed in a red rectangle in the file > 'devanagari-two-forms-shobhika.png' attached in the Drive folder here. > > When I switch to using the 'devanagari-one' > feature set (in the foregoing typescript definitions), which sets the script > tag to 'deva', the rakaar forms in the left column are rendered incorrectly > in > the file 'devanagari-one-forms-shobhika.png' attached in the Drive folder > here. > > Analogous problems occur with the Murty font. Further, in the Murty font, > one other conjunct, namely > त् + त > does not render properly. I have highlighted this in the file > 'murty-conjuct.png'. > > The sample images demonstrating the issues are available in the following > public Google Drive folder: > > https://drive.google.com/drive/folders/1aOmPKqBzB5usVvT9g-Bxk87exyiQn7ax > > I must mention once again that I have no such problems using either of these > fonts in XeLaTeX. > > What I am noticing is that this problem only occurs with consonant forms > that have a 'circular base', i.e., have no danda (the vertical line) next > to the character. For what it is worth, I have noticed also that I am able > to 'circumvent' this issue if I write > > छ्र + ZWS + Devanagari vowel sign > > where ZWS is the zero-width space U+200B. Unfortunately, this quickly > becomes very untenable in large documents. Since I was new to ConTeXt I did > not venture > to ask earlier on since I had not read much of the documentaion. Now, after > having read quite a bit, I have mustered up the courage to ask here. As a > stop-gap solution, I defined another font alternative with > \definefontalternative[rk] > and used that with a font synonym using 'devanagari-two' where necessary. > > I have completely migrated (away from (Xe)LaTeX )to ConTeXt for all my > university work which is in English with lots of mathematics. I am by no > means an expert but I have learned very much about ConTeXt by reading the > excellent wiki, documentation and mailing list. I have no issues using > ConTeXt on an everyday basis for my English-language based work. It is only > when I tried to use it for my work in Indian-langu
[NTG-context] Incorrect rendering in Devanagari forms in some fonts
Dear All, I have encountered a strange problem using certain Devanagari fonts for the Sanskrit languagein ConTeXt, wherein the rakaar ligatures are not rendered properly in some glyphs/conjuncts. The problem is not too easy to describe so please pardon this long email. The fonts I am using are as follows: • Shobhika – https://github.com/Sandhi-IITBombay/Shobhika • Murty Sanskrit – https://murtylibrary.com/mcli-fonts.php I had previously posted about this issue on TeX SE and Ulrike Fischer was kind enough to suggest that the problem might have something to do with the font rendering (since I have no issues in XeLaTeX (using Harfbuzz)): https://tex.stackexchange.com/questions/612634/devanagari-forms-in-context-using-shobhika-font My ConTeXt (LMTX) version is: 2021.08.30 19:56 I am using the following typescript for Murty: \starttypescript [serif] [murty] \definefontsynonym [Serif] [name:murtysanskritregular] [features=devanagari-two] \stoptypescript \starttypescript [murty] \definetypeface [murty] [rm] [serif] [murty] [default] \stoptypescript and the following for Shobhika: \starttypescript [serif] [shobhika] \definefontsynonym [Serif] [name:shobhikaregular] [features=devanagari-two] \definefontsynonym [SerifBold] [name:shobhikabold] [features=devanagari-two] \stoptypescript \starttypescript [shobhika] \definetypeface [shobhika] [rm] [serif] [shobhika] \stoptypescript Below is the test file I am using to demonstrate the problem: \setupbodyfont[shobhika] \starttext \startcolumns ट्रा ट्रि ट्री ट्रु द्रू ट्रे ट्रै ट्रो ट्रौ ठ्रा ठ्रि ठ्री ठ्रु ठ्रू ठ्रे ठ्रै ठ्रो ठ्रौ ड्रा ड्रि ड्री ड्रु ड्रू ड्रे ड्रै ड्रो ड्रौ ढ्रा ढ्रि ढ्री ढ्रु ढ्रू ढ्रे ढ्रै ढ्रो ढ्रौ छ्रा छ्रि छ्री छ्रु छ्रू छ्रे छ्रै छ्रो छ्रौ \column क्र ख्र ग्र घ्र ण्र च्र छ्र ज्र झ्र ञ्र च्रे छ्रे ज्रे झ्रे ञ्रे त्रे थ्रे द्रे ध्रे न्रे प्र फ्र ब्र भ्र म्र य्र ल्र व्र स्र श्र ष्र ह्र \stopcolumns \stoptext When I use the 'devanagari-two' feature set, which sets the script tag to 'dev2', the rakaar forms (provided by the features 'rkrf=yes' and 'blwf=yes') do not render properly for some glyphs, namely the glyphs in the right column, enclosed in a red rectangle in the file 'devanagari-two-forms-shobhika.png' attached in the Drive folder here. When I switch to using the 'devanagari-one' feature set (in the foregoing typescript definitions), which sets the script tag to 'deva', the rakaar forms in the left column are rendered incorrectly in the file 'devanagari-one-forms-shobhika.png' attached in the Drive folder here. Analogous problems occur with the Murty font. Further, in the Murty font, one other conjunct, namely त् + त does not render properly. I have highlighted this in the file 'murty-conjuct.png'. The sample images demonstrating the issues are available in the following public Google Drive folder: https://drive.google.com/drive/folders/1aOmPKqBzB5usVvT9g-Bxk87exyiQn7ax I must mention once again that I have no such problems using either of these fonts in XeLaTeX. What I am noticing is that this problem only occurs with consonant forms that have a 'circular base', i.e., have no danda (the vertical line) next to the character. For what it is worth, I have noticed also that I am able to 'circumvent' this issue if I write छ्र + ZWS + Devanagari vowel sign where ZWS is the zero-width space U+200B. Unfortunately, this quickly becomes very untenable in large documents. Since I was new to ConTeXt I did not venture to ask earlier on since I had not read much of the documentaion. Now, after having read quite a bit, I have mustered up the courage to ask here. As a stop-gap solution, I defined another font alternative with \definefontalternative[rk] and used that with a font synonym using 'devanagari-two' where necessary. I have completely migrated (away from (Xe)LaTeX )to ConTeXt for all my university work which is in English with lots of mathematics. I am by no means an expert but I have learned very much about ConTeXt by reading the excellent wiki, documentation and mailing list. I have no issues using ConTeXt on an everyday basis for my English-language based work. It is only when I tried to use it for my work in Indian-languages that I ran into this issue. I request your kind help in this matter. I really want to be able to use ConTeXt for these Indic works. I will be grateful for any help and/or guidance. Many thanks, kauśika ___ 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] problem with MkIV/TeXlive/TEXMFCACHE
Arthur Rosendahl writes: > On Mon, Aug 30, 2021 at 12:48:05PM +0200, Rainer J.H. Brandt via ntg-context > wrote: > > But, as I said, my texmf.cnf sets TEXMFCACHE to $TEXMFSYSVAR;$TEXMFVAR, > > and TEXMFSYSVAR is /var/opt/texlive. Why is that ignored? > > Do you have write permission on that directory? Yes and no. I'm trying to set up a multi-user environment, and /var/opt/texlive is owned by the software owner. Nobody else may write there. I ran "mtxrun --generate" while being that software owner. (I'm used to doing it this way for other engines.) I want to configure the system so that everybody may use contents from TEXMFSYSVAR, but optionally uses an additional personal directory. I don't know if this makes sense in the case of luatex-cache, but had thought so. Thanks, Rainer ___ 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] problem with MkIV/TeXlive/TEXMFCACHE
On Mon, Aug 30, 2021 at 11:49 AM Rainer J.H. Brandt via ntg-context < ntg-context@ntg.nl> wrote: > Hello Luigi, > > you asked: > > On Fri, Aug 27, 2021 at 10:35 AM Rainer J.H. Brandt via ntg-context < > > ntg-context@ntg.nl> wrote: > > > > > Dear experts, > > > > > > I want to use ConTeXt MkIV as supplied by TeXlive 2021. > > > After installation, I ran "mtxrun --generate". > > > I also tried "context --generate". > > > Both create output in the wrong place. > > > > > > The TeXlive documentation says that ConTeXt uses TEXMFCACHE, > > > which uses the default $TEXMFSYSVAR;$TEXMFVAR in my texmf.cnf. > > > My TEXMFSYSVAR is /var/opt/texlive, but ConTeXt doesn't use it. > > > Instead, it creates /opt/texmf-var and creates its output there. > > > I don't understand why it used that path; I've never used or configured > > > it. > > > > > > How can I convice ConTeXt to use TEXMFSYSVAR? > > > [...] > > > > What does > > $> tlmgr conf > > say ? > > The output is appended below and looks reasonable. In particular, it shows > that I installed under /opt/local/share/texlive and doesn't mention the > "mtxrun --generate" output path /opt/texmf-var at all. > > Please note that I don't use tlmgr and also that I didn't use the TeX Live > installer. I built the binaries from their sources and then installed > the rest from the texmf archive file. I use other engines on a daily basis, > mostly pdflatex, and they work flawlessly. > > Thanks, Rainer > > hm, my $> mtxrun --variables says resolvers | lists | TEXMFCACHE resolvers | lists | env: unset resolvers | lists | var: TEXMFCACHE resolvers | lists | exp: selfautoparent:texmf-var;home:.texlive2021/texmf-var and it's ok. So perhaps your selfautoparent it's not 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 ___