Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?
The problem is that I read that ConTeXt Mark IV will be phased out in favor of ConTeXt LMTX. If TexLive ConTeXt is outdated, I will want to use ConTeXt LMTX. I want ConTeXt installed as a linux distribution package. I think LMTX should accommodate linux distributions as well as portable installation. --- Original Message --- On Monday, August 15th, 2022 at 6:46 PM, Alan Braslau wrote: > I believe that you are missing the point of LMTX. > > LMTX Context is intended to be a self-contained AND PORTABLE directory > tree. It does not need system installation paths and such and is > designed to happily co-exist with system installed TeX (using packages) > or TeXlive or others, without interference. The LMTX directory tree is > very light-weight and indeed many production users might keep a separate > copy with EACH major TeX project, thus ensuring that the project will > continue to compile without changes as LMTX evolves. This strategy can > be a successful insurance that very old projects will continue to > compile yielding the same results many years later. > > Not that you need to go that far. > > Many users install LMTX for a system-wide use in some commonly > accessible location. This is totally portable: only the PATH needs to be > set to find the correct context executable. > > LMTX does not go the route of system packages as this relies on package > maintainers. ConTeXt mkiv with luatex continues to be made available and > updated with TeXlive, so any system packages that provide TeXlive can > provide ConTeXt. > > Alan > > > > On 15/08/2022 07:54, amano.kenji via ntg-context wrote: > > > From my perspective, a few optimizations for system installation need to > > happen for ConTeXt. > > > > contextcnf.lua needs to support system installation paths. > > > > Arch Linux texlive-core packages has its own patched version of > > texmfcnf.lua that sets TEXMFSYSVAR=/var/lib/texmf, TEXMFOS=/usr/share, > > TEXMFDIST=/usr/share/texmf-dist, and TEXMFSYSCONFIG=/etc/texmf. > > > > TexLive's own version of texmfcnf.lua is not suitable for system-wide > > installation. > > > > contexcnf.lua assumes all paths are relative to /path/to/extracted-archive > > which is definitely not a system-wide installation. > > > > A system-wide installation is installed to absolute paths. > > > > On top of that, there needs to be a document called INSTALLATION or BUILD > > that offers a simplified version of build/installation instructions > > contained in install.sh, mtx-install.lua, and mtxrun.lua. It seems mtxrun > > can be used to build and install ConTeXt without internet access as long as > > all dependencies are already present. > > > > If ConTeXt is optimized for system-wide installation by modifying > > contextcnf.lua and adding INSTALL or BUILD, then all POSIX-like operating > > systems will be able to easily make packages for ConTeXt. Not just Gentoo > > Linux. > > > > Can anyone help me with optimizing ConTeXt for system-wide installation? > > > > --- Original Message --- > > On Monday, August 15th, 2022 at 12:12 PM, Bruce Horrocks n...@scorecrow.com > > wrote: > > > > > > On 15 Aug 2022, at 13:03, amano.kenji via ntg-context > > > > ntg-context@ntg.nl wrote: > > > > > > > > TexLive has texmfcnf.lua that doesn't really work with texlive-context > > > > installed by linux distributions. > > > > > > > > Arch Linux has its own patched version of texmfcnf.lua. > > > > > > > > It seems I'd be better off with a linux package for ConTeXt LMTX. > > > > > > > > How can I build and install ConTeXt LMTX on Gentoo Linux or any linux > > > > distribution? > > > > > > > > I wish it was as simple as ./configure, make, and make install. > > > > > > Install instructions for LMTX on Linux are here: > > > https://wiki.contextgarden.net/Installation > > > > > > It's pre-built so there are no make steps. > > > > > > Try it and ask again if you have problems. :-) > > > > > > — > > > Bruce Horrocks > > > Hampshire, UK > > > ___ > > > If your question is of interest to others as well, please add an entry to > > > the Wiki! > > > > maillist : ntg-context@ntg.nl / > > https://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : https://contextgarden.net > > ___ > > > > -- > -- > 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] How can I make a Gentoo Linux package for ConTeXt LMTX?
http://lmtx.pragma-ade.nl/install-lmtx/texmf-context.zip is not versioned. If the file changes later, linux distributions refuse to use the file. I wish ConTeXt and LuaMetaTex were versioned and provided `offline` build instructions. The vast majority of programs are versioned and can be built easily offline. Even if they were distributed as binary files, if they are versioned, I can still make linux packages out of them. --- Original Message --- On Monday, August 15th, 2022 at 9:56 PM, Max Chernoff wrote: > Okay, I'm seeing a few separate issues here. > > 1. Gentoo expects to compile everything from source. > > This isn't an option here since LuaMetaTeX doesn't have any source > available (yet). So for the time being, you'll need to use the provided > binaries. These support pretty much every architecture, so this > shouldn't really be a problem. > > 2. You want to install ConTeXt LMTX system-wide. > > This is doable with the standard Linux installer script. Just make sure > to run the script as root and install the files in /opt/context. This is > what I've done on my system, and it works quite well. > > $ ls -l $(type -p context) > lrwxrwxrwx. 1 root root 10 Jul 28 00:33 > /opt/context/tex/texmf-linux-64/bin/context -> luametatex* > > > 3. You want to install ConTeXt without any network access. > > The easiest way to do this would be to install on a system with > internet, then just copy over the files. > > If you want to use the "original" installer files, it shouldn't be > impossible, but probably not too easy either. (All steps below are > untested) > > The platform-independent stuff is all in one big zip, located at: > > http://lmtx.pragma-ade.nl/install-lmtx/texmf-context.zip > > Unzip this file as "/tex/texmf-context/". > > > Then you also need to download all of the binaries. You will need to > download all of the paths listed in this file: > > http://lmtx.pragma-ade.nl/install-lmtx/tex/texmf-linux-64.tma > > All of those files need to be placed in "/tex/texmf-linux- > > 64/bin". > > Then to finish installing you'll need to run "mtxrun --generate" and > "context --make". There are probably a bunch of other steps that I'm > missing, but this should get you close. > > Again, probably easier to just use the regular installer. > > 4. ConTeXt is really picky about texmfcnf stuff. > > This is an issue that I've had too: > > https://github.com/latex3/l3build/issues/232 > > Pretty much any modification of anything texmfcnf-related with ConTeXt > will completely prevent it from running. There's a thread discussing the > problem (but with no real solutions) here: > > https://tug.org/pipermail/tex-live/2020-September/046099.html > > And a Wiki page here: > > https://wiki.contextgarden.net/Custom_Configuration > > I agree that this texmfcnf stuff makes it really difficult to install or > use ConTeXt with any kind of custom paths. Does anyone know how to > properly configure a texmfcnf with custom paths? > > Hopefully this is of some help. > -- 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] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?
At least, furigana seems covered. How do I know which document to consult? There are many PDF files that come with ConTeXt. --- Original Message --- On Monday, August 15th, 2022 at 3:39 PM, Wolfgang Schuster via ntg-context wrote: > amano.kenji via ntg-context schrieb am 15.08.2022 um 14:00: > > > Is there any documentation about \ruby? > > > You can see all available parameters in setup-en.pdf, the example below > shows a few of them: > > begin example > \setupinterlinespace[line=4ex] > > \setuptype[style=\ttx] > > \starttext > > \start > x \ruby{aaa}{bbb} x > \stop > > \start \setupruby[location=left] > \type{\setupruby[location=left]}\quad x \ruby{aaa}{bbb} x > \stop > > \start \setupruby[location=right] > \type{\setupruby[location=right]}\quad x \ruby{aaa}{bbb} x > \stop > > \start \setupruby[location=right,left={[},right={]}] > \type{\setupruby[left={[},right={]}]}\quad x \ruby{aaa}{bbb} > x > \stop > > \start \setupruby[align=flushleft] > \type{\setupruby[align=flushleft]}\quad x \ruby{aa}{bbb} > x > \stop > > \start \setupruby[align=flushright] > \type{\setupruby[align=flushright]}\quad x \ruby{aa}{bbb} > x > \stop > > \start \setupruby[style=\itxx] > \type{\setupruby[style=\itxx]}\quad x \ruby{aaa}{bbb} x > \stop > > \start \setupruby[color=blue] > \type{\setupruby[color=blue]}\quad x \ruby{aaa}{bbb} x > \stop > > \start \setupruby[voffset=-1.2ex] > \type{\setupruby[voffset=-1.2ex]}\quad x \ruby{aaa}{bbb} x > \stop > > \stoptext > end example > > > What about vertical text? > > > ConTeXt has a mechanism to produce vertical text but there is nothing > yet which can > be used out of the box to produce a complete document with vertical > paragraphs. > > Wolfgang > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ 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] How can I make a Gentoo Linux package for ConTeXt LMTX?
Even if I put the installation in an archive and make a linux package that installs the archive, I still have to modify contextcnf.lua which isn't intended to handle differing system-wide installation paths of various POSIX-like operating systems. And, I don't really know * what the variables in contextcnf.lua mean and do. * whether there is a way to override certain variables in contextcnf.lua with another file. A separate override file is going to make it easy for linux distributions to override certain variables in contextcnf.lua. --- Original Message --- On Monday, August 15th, 2022 at 5:00 PM, Bruce Horrocks wrote: > > On 15 Aug 2022, at 13:19, amano.kenji amano.ke...@proton.me wrote: > > > > I was trying to translate instructions in install.sh and dependencies of > > install.sh into shell commands in a Gentoo Linux package. > > > > Gentoo Linux downloads all dependencies and builds a package in a network > > namespace where there is no internet access. > > > If you must use a Linux that makes life hard... ;-) > > I'm guessing you're trying to prepare ConTeXt for use in a private repository > on a LAN so that your users can install it without needing Internet access? > > ConTeXt only depends on glibc (iirc) - and it assumes it is present already. > So do an install on a machine that does have Internet access and everything > you need will then be self-contained in the directory you chose to install > into. Zip up that directory and use it for subsequent installs as many times > as you want just by unzipping it - no further Internet access required. > > You'll need to set up the PATH for where you unzipped the file - but the > install.sh file has the necessary information towards the end. > > Try it and see - it's not like typical modern bloatware that pulls down 100's > of Gbytes of dependencies willy-nilly. > > > Thus, install.sh cannot be directly used in a gentoo linux package. I have > > to translate instructions used in install.sh into shell commands. > > > > How can I do that? Can I somehow execute mtx-install.lua, mtxrun.lua, or > > mtxrun in a way that doesn't require internet access? > > > > --- Original Message --- > > On Monday, August 15th, 2022 at 12:12 PM, Bruce Horrocks n...@scorecrow.com > > wrote: > > > > > > On 15 Aug 2022, at 13:03, amano.kenji via ntg-context > > > > ntg-context@ntg.nl wrote: > > > > > > > > TexLive has texmfcnf.lua that doesn't really work with texlive-context > > > > installed by linux distributions. > > > > > > > > Arch Linux has its own patched version of texmfcnf.lua. > > > > > > > > It seems I'd be better off with a linux package for ConTeXt LMTX. > > > > > > > > How can I build and install ConTeXt LMTX on Gentoo Linux or any linux > > > > distribution? > > > > > > > > I wish it was as simple as ./configure, make, and make install. > > > > > > Install instructions for LMTX on Linux are here: > > > https://wiki.contextgarden.net/Installation > > > > > > It's pre-built so there are no make steps. > > > > > > Try it and ask again if you have problems. :-) > > > > > > — > > > Bruce Horrocks > > > Hampshire, UK > > > — > Bruce Horrocks > Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] \nolimits no effect in LMTX
Hello, The \nolimits macro has no effect in LMTX, but works fine in the context mkiv version of my texlive installation. Small example: \starttext \startformula \sum\nolimits_{i=1}^{n} a_i \stopformula \stoptext In LMTX the sub- and superscripts are incorrectly placed below and above the sum operator. Can someone have a look what's going wrong? Thanks in advance! Best regards, Stefan Haller ___ 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] Is rendering furigana over horizontal or vertical japanese text doable in ConTeXt?
amano.kenji schrieb am 16.08.2022 um 13:33: At least, furigana seems covered. How do I know which document to consult? There are many PDF files that come with ConTeXt. You can start with the following thread from 2020: https://mailman.ntg.nl/pipermail/ntg-context/2020/098389.html Useful documents are (both are part of your context installation): - http://www.pragma-ade.nl/general/manuals/followingup.pdf - https://www.pragma-ade.nl/general/manuals/lowlevel-boxes.pdf Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \nolimits no effect in LMTX
On 8/16/2022 3:38 PM, Stefan Haller via ntg-context wrote: Hello, The \nolimits macro has no effect in LMTX, but works fine in the context mkiv version of my texlive installation. Small example: \starttext \startformula \sum\nolimits_{i=1}^{n} a_i \stopformula \stoptext In LMTX the sub- and superscripts are incorrectly placed below and above the sum operator. Can someone have a look what's going wrong? Thanks in advance! \starttext \definemathoperator[nosum][sum][method=nolimits] \startformula \sum [method=nolimits]_{i=1}^{n} a_i + \sum _{i=1}^{n} a_i + \sum [bottom={n},top={i=1},topcolor=red] a_i + \nosum _{i=1}^{n} a_i \nosum[method=auto] _{i=1}^{n} a_i \stopformula \stoptext the \nolimits command is actually a modifier that 'looks back'and patches a previous math atom an dthat doesn't work well with the new more flexible implementation of \sum as math operator 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] Bug (?) with \placefigure[right]
Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly with three or so nearly blank (except for the subject) pages produced. \setuppapersize [A5] [A5] \starttext \dorecurse{12}{ \subject{Some heading} \placefigure[right] {} {\externalfigure[cow.pdf] [width=3cm]} \input lorem } \stoptext I actually want \placefigure[right,none] in my real doc but that also goes awry. LMTX current version: 2022.08.05 11:44 My actual requirement is to have a set of short biographies, including a small 'passport' photo, for each contributor to a book. So any suggestions on how to wrap text around the photo that avoids this issue would be welcome. — Bruce Horrocks Hampshire, UK ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Bug (?) with \placefigure[right]
Bruce Horrocks via ntg-context schrieb am 16.08.2022 um 18:11: Things start to go awry after about 5 or 6 iterations, 12 shows it up clearly with three or so nearly blank (except for the subject) pages produced. \setuppapersize [A5] [A5] \starttext \dorecurse{12}{ \subject{Some heading} \placefigure[right] {} {\externalfigure[cow.pdf] [width=3cm]} \input lorem } \stoptext I actually want \placefigure[right,none] in my real doc but that also goes awry. LMTX current version: 2022.08.05 11:44 My actual requirement is to have a set of short biographies, including a small 'passport' photo, for each contributor to a book. So any suggestions on how to wrap text around the photo that avoids this issue would be welcome. \setuppapersize [A5] [A5] \starttext \dorecurse{12} {\subject{Some heading} \starthanging[right]{\externalfigure[cow.pdf][width=3cm]} \samplefile{lorem} \stophanging} \stoptext Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?
On 8/16/2022 1:43 PM, amano.kenji via ntg-context wrote: Even if I put the installation in an archive and make a linux package that installs the archive, I still have to modify contextcnf.lua which isn't intended to handle differing system-wide installation paths of various POSIX-like operating systems. And, I don't really know * what the variables in contextcnf.lua mean and do. * whether there is a way to override certain variables in contextcnf.lua with another file. A separate override file is going to make it easy for linux distributions to override certain variables in contextcnf.lua. mtxrun --generate reports all kind of locations where configurations files are looked for one can also set environment variables and see what is used mtxrun --variables mtxrun --expansions so there are plenty ways to configure and you can run >mtxrun --configurations which on my machine gives system | resolved | file : c:/data/develop/tex-context/tex/texmf-local/web2c/texmfcnf.lua system | resolved | file : c:/data/develop/tex-context/tex/texmf/web2c/texmfcnf.lua indicating that i use an additional configuration file there are some boundary conditions: - we use mtxrun as runner and that one used luatex as lua engine - this means that mtxrun[.lua] has to be in the same path as the binary in lmtx we even go a bit further: - in lmtx there is mtxrun.lua - as well as context.lua - there are 'mtxrun' and 'context' binaries that are either copies or symlinks to luametatex in the same path - this is the same on unix and windows in lmtx luametatex is also used as runner for mkiv when installed on unix i normally just install the minimal tree and then either add the bin path to the path or just run mtxrun fully qualified (actually always for the whole system under /data/context) 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] \nolimits no effect in LMTX
On Tue, Aug 16, 2022 at 05:47:06PM +0200, Hans Hagen via ntg-context wrote: > \definemathoperator[nosum][sum][method=nolimits] > > \startformula > \sum [method=nolimits]_{i=1}^{n} a_i + > \sum _{i=1}^{n} a_i + > \sum [bottom={n},top={i=1},topcolor=red] a_i + > \nosum _{i=1}^{n} a_i > \nosum[method=auto] _{i=1}^{n} a_i > \stopformula > > \stoptext Thanks for the response and also for your efforts creating and maintaining ConTeXt! The proposed alternative work well. This also solves the confusion due to never being able to to remember that I have to put the \limits / \nolimits directive *after* the symbol I want to modify. If somebody else stumbled across this: The code for the *mathoperators macros sits in `mkxl/math-lop.mkxl`. Best regards, Stefan ___ 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 ___