[NTG-context] Drawing scaled externalfigure in Metapost produces erroneous size in the latest beta
Hello! The simple Metapost code that follows worked fine until upgrading to recent beta. I don't have a clue exactly when this behaviour was introduced since I switched just recently from the standard Texlive version available in Arch Linux. \starttext \startMPcode draw externalfigure "test.pdf" scaled 10mm; \stopMPcode \stoptext Now it produces a graphic with size of approximately 110 mm at least in my system with various test files which previously scaled just fine.. Any help is greatly appreciated. -Thorsten S.___ 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] *** Spam *** Drawing scaled externalfigure in Metapost produces erroneous size in the latest beta
Hi Thorsten, I had the same problem a couple of months ago. Use sized instead of scaled now. The same goes for xscaled and yscaled. Greetings Lutz Am 4. April 2019 01:31:29 MESZ schrieb "Thorsten S." : >Hello! > >The simple Metapost code that follows worked fine until upgrading to >recent beta. I don't have a clue exactly when this behaviour was >introduced since I switched just recently from the standard Texlive >version available in Arch Linux. > >\starttext >\startMPcode >draw externalfigure "test.pdf" scaled 10mm; >\stopMPcode >\stoptext > >Now it produces a graphic with size of approximately 110 mm at least in >my system with various test files which previously scaled just fine.. >Any help is greatly appreciated. > >-Thorsten S. ___ 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] Drawing scaled externalfigure in Metapost produces erroneous size in the latest beta
On 4/4/2019 1:31 AM, Thorsten S. wrote: Hello! The simple Metapost code that follows worked fine until upgrading to recent beta. I don't have a clue exactly when this behaviour was introduced since I switched just recently from the standard Texlive version available in Arch Linux. \starttext \startMPcode draw externalfigure "test.pdf" scaled 10mm; \stopMPcode \stoptext Now it produces a graphic with size of approximately 110 mm at least in my system with various test files which previously scaled just fine.. Any help is greatly appreciated. scaled scaled the original size ... long ago that was 1bp but for accuracy reasons that is no longer the case, just use: draw externalfigure "test.pdf" xsized 10mm; which in most cases is actually a better method than 'scaled' 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] beta
Hi, I uploaded a new beta (as we're now post current again). The lmtx installation is normally also updated in sync but sometimes can be a bit ahead as I myself use that as default. 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] variable edef with localhsize calculation
Dear All, I try to save \localhsize in a variable (with \edef), but whenever the enclosure changes, my variable changes too. \starttext \edef\myVar{\dimexpr (\localhsize-15pt)\relax} localhsize: \the\dimexpr\localhsize\relax \\ myVar: \the\dimexpr\myVar\relax \\ \setupnarrower[middle=50mm] \startnarrower localhsize: \the\dimexpr\localhsize\relax \\ myVar: \the\dimexpr\myVar\relax \\ \stopnarrower \stoptext I would expect that myVar has the same value inside the narrower as outside, because I used \edef and not \def. Is there another variable I can use, or does someone knows a solution for this specific problem? Thanks, Julian btw. everything works as expected, if I do not use \localhsize. ___ 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] beta
On Thu, 4 Apr 2019, Hans Hagen wrote: Hi, I uploaded a new beta (as we're now post current again). The lmtx installation is normally also updated in sync but sometimes can be a bit ahead as I myself use that as default. Is there or will there be any difference between context mkiv and luametatex distributions apart from the binaries? 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] beta
On Thu, 4 Apr 2019 10:06:03 -0400 (EDT) Aditya Mahajan wrote: > > I uploaded a new beta (as we're now post current again). The lmtx > > installation is normally also updated in sync but sometimes can be a bit > > ahead as I myself use that as default. > > Is there or will there be any difference between context mkiv and > luametatex distributions apart from the binaries? The backends are different as are a few other details but the base macros are the same. Hans is working on an article describing this that I believe he will be presenting at BachoTeX and publishing in TugBoat. Alan P.S. The new beta seems to fix a problem that Preview (and Skim) on MacOS had in rendering certain characters (some peculiarity/bug in the Apple pdf library). ___ 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] variable edef with localhsize calculation
On 4/4/2019 3:05 PM, Rörig, Julian wrote: \edef\myVar{\dimexpr (\localhsize-15pt)\relax} \edef\myVar{\the\dimexpr\localhsize-15pt\relax} - 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] Archlinux package for luametatex
Hi, I create a archlinux AUR for luametatex: https://aur.archlinux.org/packages/luametatex/ Those using archlinux can now use their favorite AUR helper to install luametatex. It installs the files in /opt/luametatex and has the following features: 1. If texlive is installed, a symlink to '/usr/share/texmf-dist/fonts' is created at '/opt/luametatex/texmf-fonts/fonts'. This way, all fonts installed via texlive are available in context. 2. It context minimals is installed via AUR, a symlink to '/opt/context-minimals/texmf-modules' is created at 'opt/luametatex/texmf-modules'. So, all the context modules are available. 3. A setuptex file is created at /opt/luametatex/setuptex. So, it is easier to switch back and forth between lmtx and mkiv. 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 ___
[NTG-context] How to update LMTX?
Dear list, With ConTeXt standalone there was an easy way to update the install script and the distrivution using rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh --context=latest --engine=luatex --modules=all --fonts=all For LMTX it seems that I have to download the zip from http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to account for possibly updated installation scripts. Is there a resource where I can download the (unzipped) install script and binaries via rsync directly? On another note, it seems that I can't install modules and fonts in LMTX. When running mtxrun --script mtx-install.lua --help I can see the options --modules and --fonts but running bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." --instance="..." --modules=all --fonts=all seems to have no effect. How do I install modules and fonts? Cheers, Henri ___ 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 update LMTX?
One just runs ./install.sh at any time to update. Alan On Fri, 5 Apr 2019 09:27:15 +1300 Henri Menke wrote: > Dear list, > > With ConTeXt standalone there was an easy way to update the install script and > the distrivution using > > rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . > sh ./first-setup.sh --context=latest --engine=luatex --modules=all > --fonts=all > > For LMTX it seems that I have to download the zip from > http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to > account for possibly updated installation scripts. Is there a resource where > I > can download the (unzipped) install script and binaries via rsync directly? > > On another note, it seems that I can't install modules and fonts in LMTX. > When running > > mtxrun --script mtx-install.lua --help > > I can see the options --modules and --fonts but running > > bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." > --instance="..." --modules=all --fonts=all > > seems to have no effect. How do I install modules and fonts? > > Cheers, Henri > > ___ > 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] How to update LMTX?
On 5/04/19 9:32 AM, Alan Braslau wrote: > One just runs ./install.sh at any time to update. Yes, just like ./first-setup.sh for ConTeXt standalone, but how to update ./install.sh and mtxrun without downloading the whole zip every time? Cheers, Henri > > Alan > > > On Fri, 5 Apr 2019 09:27:15 +1300 > Henri Menke wrote: > >> Dear list, >> >> With ConTeXt standalone there was an easy way to update the install script >> and >> the distrivution using >> >> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . >> sh ./first-setup.sh --context=latest --engine=luatex --modules=all >> --fonts=all >> >> For LMTX it seems that I have to download the zip from >> http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to >> account for possibly updated installation scripts. Is there a resource >> where I >> can download the (unzipped) install script and binaries via rsync directly? >> >> On another note, it seems that I can't install modules and fonts in LMTX. >> When running >> >> mtxrun --script mtx-install.lua --help >> >> I can see the options --modules and --fonts but running >> >> bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." >> --instance="..." --modules=all --fonts=all >> >> seems to have no effect. How do I install modules and fonts? >> >> Cheers, Henri >> >> ___ >> 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] (no subject)
In terminal: mtxrun --autogenerate --script context --autopdf Test.tex -> resolvers | initialization | fatal error: kpse library is accessed (key: default_texmfcnf) All works from within TexShop. ___ 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] follow up
Dear Hans, I have installed both ConTeXt LMTX and ConTeXt MKIV side by side. But I have a problem to run it. If it is OK to run a file in LMTX environment, then I got a following error when I run it in MKIV environment. “I can’t fine a file …../defFonts.tex” even though it is there. To resolve it, I run “mtxrun —generate” in MKIV. But it invoke the same type error in LMTX. Here are the command in Atom editor which I use to run it. LMTX: source /Users/graph/ConTeXtLMTX/tex/setuptex; context {filePath} MKIV: source /Users/graph/ConTeXt/tex/setuptex; context {filePath} I may avoid it by adding “mtxrun —generate” before compiling it. But it isn’t a good solution. I think that there is a better way to do this. Would you please tell me how to fix it or what is a better way? Thank you for reading. Best regards, Dalyoung > > Hi, > > We have worked furiously all day kicking-out extra code, and are pleased > to present a lean-and-mean version of luatex with your favorite ConTeXt. > Same good taste but only half the calories and a new name: luametatex > and ConTeXt LMTX. No more Mk-whatever, no more dependencies for we can > now stand on our own. Of course, good-old luatex and MkIV (as well as > MkII) will continue to coexist and be maintained. However, now you will > be able to run ConTeXt lmtx on your smart thermostat or on your > refrigerator for the Internet of Things - the dawn of a new era! > > Stay tuned, > > Alan and Hans ___ 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] (no subject)
On 4/4/2019 9:30 PM, Dmitry Starostin wrote: In terminal: mtxrun --autogenerate --script context --autopdf Test.tex -> resolvers | initialization | fatal error: kpse library is accessed (key: default_texmfcnf) this normally means that there is no file database ... context mkiv nor lmtx doesn't use kpse 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] follow up
On 4/5/2019 12:17 AM, Jeong Dal wrote: Dear Hans, I have installed both ConTeXt LMTX and ConTeXt MKIV side by side. But I have a problem to run it. If it is OK to run a file in LMTX environment, then I got a following error when I run it in MKIV environment. “I can’t fine a file …../defFonts.tex” even though it is there. To resolve it, I run “mtxrun —generate” in MKIV. But it invoke the same type error in LMTX. Here are the command in Atom editor which I use to run it. LMTX: source /Users/graph/ConTeXtLMTX/tex/setuptex; context {filePath} MKIV: source /Users/graph/ConTeXt/tex/setuptex; context {filePath} I may avoid it by adding “mtxrun —generate” before compiling it. But it isn’t a good solution. I think that there is a better way to do this. Would you please tell me how to fix it or what is a better way? Does /mtxrun --autogenerate --script context --autopdf {filePath} work in your editor? 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] How to update LMTX?
On 4/5/2019 12:09 AM, Alan Braslau wrote: On Thu, 4 Apr 2019 23:11:42 +0200 Hans Hagen wrote: (we just don't use rsync) As rsync can be problematic for some locations (TCP port 873 blocked) without the ability to tunnel. indeed, especially in schools http is most often open. right and rsync is also very unix centric so on windows one has to use cygwin (bah) or a mingw version (hard to get); also the rsync protocol is sometimes updated so then you need matching versions 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] How to update LMTX?
On Thu, 4 Apr 2019 23:11:42 +0200 Hans Hagen wrote: > (we just don't use rsync) As rsync can be problematic for some locations (TCP port 873 blocked) without the ability to tunnel. http is most often open. Alan ___ 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 update LMTX?
On 4/4/2019 10:27 PM, Henri Menke wrote: Dear list, With ConTeXt standalone there was an easy way to update the install script and the distrivution using rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh --context=latest --engine=luatex --modules=all --fonts=all For LMTX it seems that I have to download the zip from http://www.pragma-ade.nl/install.htm, extract it and then run install.sh to first=setup.sh never changed so there was no reason to download that, and the idea is that install.sh also is rather stable (and like fitst-setup it also updates) account for possibly updated installation scripts. Is there a resource where I can download the (unzipped) install script and binaries via rsync directly? currently not, you can just rerun the install script and it will only fetch new files (which is pretty fast) (unzipping the beta zip in texmf-context probably works ok too but that won't update binaries) On another note, it seems that I can't install modules and fonts in LMTX. When running mtxrun --script mtx-install.lua --help I can see the options --modules and --fonts but running for modules and fonts you have to wait till mojca has the garden up and running (for now you can just copy the subtrees from a regular installation) (i don't have such a local fonts tree as my own fonts tree is way larger and i don't want mixups) bin/mtxrun --script ./bin/mtx-install.lua --update --server="..." --instance="..." --modules=all --fonts=all seems to have no effect. How do I install modules and fonts? see above 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] How to update LMTX?
On 4/4/2019 10:36 PM, Henri Menke wrote: On 5/04/19 9:32 AM, Alan Braslau wrote: One just runs ./install.sh at any time to update. Yes, just like ./first-setup.sh for ConTeXt standalone, but how to update ./install.sh and mtxrun without downloading the whole zip every time? you don't, install.sh doesn't need updating (at least not often) ... and an update doesn't download a zip unless you have wiped everything and the bin dir is updated too ... all is pretty similar to first-install (we just don't use rsync) 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 ___