[NTG-context] new units
Hi, We now officially have three new units. These were officially introducd at the 2023 BachoTeX meeting in a presentation where the chair of the four person strong team also did the final live callibration (using the edithorial callibration instrument made for that purpose). An upcoming article in TB will explain the details of the process and also a careful mathematical annalysis of how we reached the right value with a high precission. The actual implementation is the most boring part. \starttext \startTEXpage[offset=1ts] Hello World! \the\dimexpr 1ts \the\dimexpr 1es \the\dimexpr 1eu \eufactor20 \the\dimexpr 1eu \stopTEXpage \stoptext The es (Edith) unit replaces the inch, and the ts (Tove) is one tenths of than (just like we have cm and mm). The eu (European Unit) is an adaptive one that defaults to 10 ts == 1es and can be multiplied by setting the \eufactor (default 10) which makes it possible to define layouts that easilly scale to different output media (important for the mobile phone / table generation). This means that MWE that use inches will likely no longer be considered valid and probably will be dealt with slower (or just ignored). These units can be used in the current upload. In a next upload the "19 feet max" message that tex issues when reaching a maximum will be adapted to a more realistic variant. (Actually, because tex has no foot unit, we could as well replace that with a more impressive little feet unit but we forgot to measure the smallest foot present which i guess was about 3 es so the limit is then some 75 bare theodores.) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Units for volts and Ohms
On 5/2/2023 8:09 AM, Aditya Mahajan via ntg-context wrote: Hi, As I was testing circuitikz, I realized that the following don't work: \unit{1V} \unit{100 kΩ} In phys-dim.lmt, we need to change line 467: v = "volt", to V = "volt", and perhaps add (not sure if lua allows utf variable names) Ω = "ohm", Ha, that's easy to test, right? So I won't answer this one. (instead you can ["Ω"] = "ohm") 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] OBSD 7.3 binary locally compiled… what next?
Hi, I upgraded today my OBSD to 7.3 and… realized too late that texlive binaries were on the compile farm, but not the lmtx ones. That was the opportunity to learn self-install, though. I compiled the binary, but I am stuck with the next step What I did: - rm -rf /usr/local/context/* (now I suspect I should have first updated my 7.2 installation and then, after upgrading to 7.3, compiled the binaries…) - download https://www.pragma-ade.nl/context/latest/cont-tmf.zip - unpacked it into /usr/local/context (unzip cont-tmf.zip -d /usr/local/context/) - cd /usr/local/context/source/luametatex - ./build.sh --native Compilation succeeded, looks like the binary lies in /usr/local/context/source/luametatex/build/native/luametatex What's the next step? There was this message: == tex trees resources like public fonts : tex/texmf/ the context macro package: tex/texmf-context/ the luametatex binary: tex/texmf-native/bin/... optional third party modules : tex/texmf-context/ fonts installed by the user : tex/texmf-fonts/fonts/data/ styles made by the user : tex/texmf-projects/tex/context/user/ binaries: tex/texmf-/bin/luametatex : the compiled binary (some 2-3MB) tex/texmf-/bin/mtxrun : copy of or link to luametatex tex/texmf-/bin/context: copy of or link to luametatex tex/texmf-/bin/mtxrun.lua : copy of tex/texmf-context/scripts/context/lua/mtxrun.lua tex/texmf-/bin/context.lua: copy of tex/texmf-context/scripts/context/lua/context.lua commands: mtxrun --generate : create file database mtxrun --script fonts --reload: create font database mtxrun --autogenerate context ... : run tex file (e.g. from editor) https://www.pragma-ade.nl/context/latest/cont-tmf.zip The tex/texmf/ folder does not exist yet. Does this mean I have to create that part of the tree by hand (which means should I have unpacked the zip at /usr/local/context/tex/texmf rather than /usr/local/context)?I’d bet copying anything(copying mtxrun from /usr/local/context/scripts/context/stubs/unix/mtxrun ? Should I run install.sh – which I not did, assuming maybe wrongly that it would fail, and if so, which options? Thank you for your time, Damien ___ 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] OBSD 7.3 binary locally compiled… what next?
On 5/4/2023 12:11 PM, damien thiriet via ntg-context wrote: Hi, I upgraded today my OBSD to 7.3 and… realized too late that texlive binaries were on the compile farm, but not the lmtx ones. That was the opportunity to learn self-install, though. I compiled the binary, but I am stuck with the next step What I did: - rm -rf /usr/local/context/* (now I suspect I should have first updated my 7.2 installation and then, after upgrading to 7.3, compiled the binaries…) - download https://www.pragma-ade.nl/context/latest/cont-tmf.zip - unpacked it into /usr/local/context (unzip cont-tmf.zip -d /usr/local/context/) - cd /usr/local/context/source/luametatex - ./build.sh --native Compilation succeeded, looks like the binary lies in /usr/local/context/source/luametatex/build/native/luametatex What's the next step? you should make tex/texmf-openbsd7.3-amd64 and put 5 files there: luametatex context -> luametatex mtxrun -> luametatex mtxrun.lua context.lua you can take the lua files from tex/texmf-openbsd7.2-amd64 or you can just rename the 7.2 path to 7.3 and move luametatex there (of course you then also need to adapt your path to the new 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 / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz + lmtx
On 4/28/2023 6:08 AM, Aditya Mahajan via ntg-context wrote: Hi all, For a few months now, all features of tikz have not been working with LMTX. After help from Hans and a bit of trial and error, I think that figured out what was going wrong with the catcodes in m-tikz: Since the texcatcodes are different from what tikz expects, the catcodes have to be set inside \starttikzpicture (in addition to before the loading of tikz files, which was already being done). I am attaching the working m-tikz.mkxl file. I have tested this on my course notes, which make extensive use of simple tikz block diagrams and pgfplots graphs. Perhaps others who were having issues with tikz could test if this fixes everything and, if so, we can add this to the distribution. So, what is needed from tikz? "graphics/pgf/base/pgf.tds.zip", "graphics/pgf/contrib/pgfplots.tds.zip", "graphics/pgf/contrib/circuitikz.tds.zip", Is there more that should be installed as reasonable basic set? I made a script that does fetch/installs it (and also wipes latex / plain /useless stuff afterwards including some shell etc scripts as we don't want those either - security risk etc -). Not being a tikz user I have no preferences but we can add some test files to the test suite if needed. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz + lmtx
On 5/4/2023 11:12 PM, Aditya Mahajan via ntg-context wrote: Does that mean that these will be now included as part of the lmtx install? no, i'm not going to bloat that one, but there will be a mtxrun --script install-tikz Not being a tikz user I have no preferences but we can add some test files to the test suite if needed. It may be good to add some basic files (e.g., the ones that I sent to you off-list) so that we may know if these packages break again. yes, i already added thse Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl - ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] tikz + lmtx
On Thu, 4 May 2023, Hans Hagen via ntg-context wrote: > On 4/28/2023 6:08 AM, Aditya Mahajan via ntg-context wrote: > > Hi all, > > > > For a few months now, all features of tikz have not been working with LMTX. > > After help from Hans and a bit of trial and error, I think that figured out > > what was going wrong with the catcodes in m-tikz: Since the texcatcodes are > > different from what tikz expects, the catcodes have to be set inside > > \starttikzpicture (in addition to before the loading of tikz files, which > > was already being done). > > > > I am attaching the working m-tikz.mkxl file. > > > > I have tested this on my course notes, which make extensive use of simple > > tikz block diagrams and pgfplots graphs. Perhaps others who were having > > issues with tikz could test if this fixes everything and, if so, we can add > > this to the distribution. > So, what is needed from tikz? > > "graphics/pgf/base/pgf.tds.zip", > "graphics/pgf/contrib/pgfplots.tds.zip", > "graphics/pgf/contrib/circuitikz.tds.zip", > > Is there more that should be installed as reasonable basic set? I believe that these are the most popular ones. > I made a script that does fetch/installs it (and also wipes latex / plain > /useless stuff afterwards including some shell etc scripts as we don't want > those either - security risk etc -). Does that mean that these will be now included as part of the lmtx install? > Not being a tikz user I have no preferences but we can add some test files to > the test suite if needed. It may be good to add some basic files (e.g., the ones that I sent to you off-list) so that we may know if these packages break again. Aditya ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___