Re: [NTG-context] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12
On 2021-05-06, Bruce Horrocks wrote: >> Sorry, my explanation of what I am trying to achieve was a bit too >> terse. > Thank-you for the explanation - that's much clearer. > > I've experimented a bit with Docker and I've managed to get > a stand-alone LMTX install to work under a 32-bit Alpine Linux that > has had the glibc library added. This should - fingers crossed - work > in iSH. That's great news! I'll try it asap and report back. Thanks for looking into it. Anyway, for Hans and Mojca: I confirm that I was not able to run ConTeXt from the texlive package (TeX Live 2020) of Alpine Linux 3.12 (x86_64). I get the error in my original post to this thread, which I could not solve with the suggested fixes. If other can reproduce it, maybe it's worth reporting upstream to Alpine developers. I can install ConTeXt LMTX just fine in Alpine x86_64, however! Nicola ___ 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] Hyphen collapsing
Not sure if this is a regression: % SOF \nohyphencollapsing \setuphead[chapter][align={nothyphenated}] \starttext \chapter{Such --- Emdashery} \stoptext % EOF Expected: No collapsed hyphens. Actual: Hyphens are collapsed. Workaround: Remove the nothyphenated option or insert \nohyphencollapsing into the \chapter command. Is there another way to prevent collapsing hyphens with a single setting that applies to the entire document? The hyphens did not collapse in the previous version. Current version: 2021.05.06 ___ 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] SVG transparent stroke shown
Hi again! % SOF\startbuffer[svg] \stopbuffer \starttext \placefigure{}{\includesvgbuffer[svg][conversion=mp]} \stoptext % EOF Expected: No border around the outer white box, border around the inner green box. Actual: Border around both boxes. Version: 2021.05.06 Additional details: The SVG is generated using GraphViz, which adds a white box as the background with a transparent border. The GraphViz is being invoked over a rest API. Even if the binary has a setting to change the border colour, that setting probably isn't accessible via HTTP POST. ___ 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] Bug with OpenBSD 6.9 amd64?
Hi, I have just upgraded my LMTX install to OpenBSD 6.9. Unfortunately, my first context run aborted with this error message /usr/local/context/tex/texmf-openbsd6.9-amd64/bin/mtxrun[1]: syntax error: `newline' unexpected I tried mtxrun --generate and ended with alomst the same error message, as I could have expected /usr/local/context/tex/texmf-openbsd6.9-amd64/bin/mtxrun[1]: syntax error: `newline' unexpected I wiped the cache, then suppressed it, didn't change anything. Which informations might be helpful to solve this problem? Best regards, Damien Thiriet ___ 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] Bug with OpenBSD 6.9 amd64?
On 5/6/2021 9:03 PM, Damien Thiriet wrote: Hi, I have just upgraded my LMTX install to OpenBSD 6.9. Unfortunately, my first context run aborted with this error message /usr/local/context/tex/texmf-openbsd6.9-amd64/bin/mtxrun[1]: syntax error: `newline' unexpected I tried mtxrun --generate and ended with alomst the same error message, as I could have expected /usr/local/context/tex/texmf-openbsd6.9-amd64/bin/mtxrun[1]: syntax error: `newline' unexpected I wiped the cache, then suppressed it, didn't change anything. Which informations might be helpful to solve this problem? i have no clue ... maybe googling for that message helps 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] Issue running ConTeXt from TeX Live 2019 on Alpine Linux 3.12
On 3 May 2021, at 09:29, Nicola wrote: > > > Sorry, my explanation of what I am trying to achieve was a bit too > terse. > > There is a little wonderful app on the App Store, called iSH > (https://github.com/ish-app/ish), which essentially allows you to run > a 32-bit x86 Alpine Linux distribution on the iPad. One feature of the > app is that it can import and mount several "file systems". One way to > create such a file system is to export a Docker container. > > So, what one can do is create a Docker container in some other device (I > use my laptop), configure it as desired, then export it into a .tar > archive, copy it into the iPad, and import it into iSH. This is better > than installing/building packages directly inside the app, because (a) > compiling on the iPad is extremely slow, and (b) some packages may raise > errors if one tries to install them inside the app (TeX Live being one > of them: this link explains the issue and the Docker workaround: > https://github.com/ish-app/ish/issues/1123). > > iSH emulates x86_32 and uses Musl. AFAICS, ConTeXt LMTX currently only > provides a 64-bit download for Linux Musl. So, the next best alternative > is to use ConTeXt from TeX Live. > > So, this is where I am at: I am trying to make ConTeXt work inside an > x86 Alpine Linux Musl container, using the official Alpine package. Thank-you for the explanation - that's much clearer. I've experimented a bit with Docker and I've managed to get a stand-alone LMTX install to work under a 32-bit Alpine Linux that has had the glibc library added. This should - fingers crossed - work in iSH. You need to set up a working directory containing: - the 32-bit LMTX downloaded from "http://lmtx.pragma-ade.nl/install-lmtx/context-linux.zip"; - the file "Dockerfile" that is attached to this email - the modified LMTX install file "alpine-glibc-install.sh" that is attached to this email - a subdirectory "sources" where you can place a hello world tex file Use the following commands to build and run the container: $ docker build . -t context-alpine-glibc $ docker run -it -v $(pwd)/sources:/src context-alpine-glibc /bin/ash The run command bind mounts the sub-directory "sources" so that it is accessible from within the container as the /src directory.[2] Once you are in the container run these commands to process the hello world document: # cd /src # context hello_world.tex There's no PDF viewer installed so you'll need to view it from the host in "sources". On the Mac this works as expected. Over to you to try in iSH. :-) [1] The install.sh file needs to be hacked because the CPU architecture check (uname -m) returns the word size of the host computer, not the container, so I just hard-coded the values. :-) [2] On Windows use something like: $ docker run -it -v %cd%/sources:/src context-alpine-glibc /bin/ash — Bruce Horrocks Hampshire, UK Dockerfile Description: Binary data alpine-glibc-install.sh 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] Double-sided layer
Huseyin Özoguz schrieb am 06.05.2021 um 12:48: Hello context-community, I have an image as a layer and want it to place on every page of a book with some offset. My minexample: \setlayer[mybg] [hoffset=2cm, voffset=0.2cm, doublesided=yes] {\framed[frame=off, width=2cm, height=1cm]{\externalfigure[bilder_bearbeitet_png/32.png][width=\textwidth]}} That works in principle, but I want the hoffset to be relative to the cutspace/backspace: different on right and left page, such that the layer is set equally on every page relative to the textbody. In the example above I use "doublesided=yes", but that has no effect. How to achieve proper double-sided behavior? You have to set the content for the layer twice, once for the left pages and a second time for the right pages. \setuppagenumbering [alternative=doublesided] % \setupexternalfigures % [directory=images_bearbeitet_png] \definelayer [backgroundimage] [width=\paperwidth, height=\paperheight, state=repeat, doublesided=yes] \setupbackgrounds [page] [background=backgroundimage] \setlayer [backgroundimage] [right] [x=\backspace, y=\dimexpr\topspace+\headerheight+\headerdistance\relax] {\externalfigure[32.png]} \setlayer [backgroundimage] [left] [x=\cutspace, y=\dimexpr\topspace+\headerheight+\headerdistance\relax] {\externalfigure[32.png]} \showframe [text] [text] \starttext \dorecurse{10}{\dontleavehmode\page} \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] Bug in \framed and \inframed
On Thu, 6 May 2021, Johann Birnick wrote: > There is a bug with \framed and related commands: If this is the first object > in > a line, a linebreak is inserted! See the following example: > > > \starttext > > > This \inframed{works} fine. > > \inframed{But} this not. > > \stoptext https://wiki.contextgarden.net/FAQ#Why_is_there_a_line-break_in_the_output_after_some_commands.3F 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] Bug in \framed and \inframed
There is a bug with \framed and related commands: If this is the first object in a line, a linebreak is inserted! See the following example: \starttext This \inframed{works} fine. \inframed{But} this not. \stoptext Thank you, Johann ___ 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] A Bug in lmt_shade
On 5/6/2021 1:04 PM, Keith McKay wrote: Hi all, I think a bug has appeared in lmt_shade in the latest upload. MWE below. more a genwral bug (side effect of changed helper) .. fixed in next upload 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] A Bug in lmt_shade
Hi all, I think a bug has appeared in lmt_shade in the latest upload. MWE below. Thanks Keith McKay %% \setuppapersize[A4,landscape][A4,landscape] \starttext \startMPpage StartPage; width := PaperWidth ; height := PaperHeight ; unit := cm ; definecolor [ name = "MyColor1", r = 0.781, g = 0.5, b = 0.5 ] ; definecolor [ name = "MyColor3", r = 1, g = 1, b = 0.7983 ] ; draw lmt_shade [ path = unitsquare xscaled width yscaled height, direction = "up", alternative = "linear", colors = { "MyColor1", "MyColor3" }, ] ; StopPage; \stopMPpage \stoptext %%% %%% Console Output %%% system > system > ConTeXt ver: 2021.05.05 19:29 LMTX fmt: 2021.5.6 int: english/english system > < snip > metapost > initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost > loading 'metafun' as 'metafun.mpxl' using method 'default' metapost > initializing number mode 'scaled' metafun > log > metafun > log > error: An expression can't begin with 'right delimiter' metafun > log > metapost > log > metapost > log > 0 metapost > log > metapost > log > ) metapost > log > ...enter_b,alternative,s;string.color_a,color_b,alternative,s;pair.center_a,center_b;alternative:=getparameter"alternative";mfun_with_shade_method_analyze(getparameter"path") metapost > log > ;domain_min:... metapost > log > image->begingroup.save.currentpicture;picture.currentpicture;currentpicture:=nullpicture;(TEXT3) metapost > log > ;currentpicture.if.str(SUFFIX2)<>"":shifted(mfun_labxf(SUFFIX2)*lrcorner.p+mfun_labyf(SUFFIX2)*ulcorn... metapost > log > lmt_do_shade->...ve="circular":draw.fullcircle.scaled(radius_a)shifted.center_a.dashed.evenly;draw.fullcircle.scaled(factor*radius_b)shifted-center_b.dashed.evenly;fi.fi.popparameters;) metapost > log > endgroup metapost > log > lmt_do_shade metapost > log > metapost > log > <*> ...3", r = 1, g = 1, b = 0.7983 ] ; draw lmt_shade [ path = unitsquare xscaled width yscaled height, direction = "up", alternative = "linear", colors = { "MyColor1", "MyColor3" }, ] metafun > log > metafun > log > I'm afraid I need some sort of value in order to continue, so I've tentatively inserted '0'. metafun > log > metapost > log > ; StopPage; ; metapost > log > ___ 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] Double-sided layer
Hello context-community, I have an image as a layer and want it to place on every page of a book with some offset. My minexample: \setlayer[mybg] [hoffset=2cm, voffset=0.2cm, doublesided=yes] {\framed[frame=off, width=2cm, height=1cm]{\externalfigure[bilder_bearbeitet_png/32.png][width=\textwidth]}} That works in principle, but I want the hoffset to be relative to the cutspace/backspace: different on right and left page, such that the layer is set equally on every page relative to the textbody. In the example above I use "doublesided=yes", but that has no effect. How to achieve proper double-sided behavior? Thank you. Huseyin ___ 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] setupalign[line]/setupalign[height] break \testpage
Hi everyone, I've recently asked this question: https://www.mail-archive.com/ntg-context@ntg.nl/msg98293.html To reiterate: Is there any way to add a \vfill on a page immediately before a section heading? On the mailing list I then found a possible solution : \setuphead[section][aftersection=cmd] So, I thought \testpage or \checkpage here could be a solution. However, the vertical stretching algorithm seems to interfere with \testpage in some way as the example below tries to illustrate. Can anyone confirm this? Is this a bug or am I missing something? \setuppapersize[A5][A5] % Activate this and \testpage stops working %\setupalign[height] %\setuptolerance[vertical,stretch] %\setupinterlinespace[ % stretch=0.001, % shrink=0.001, % ] % \showframe \starttext \section{Section} \input knuth\par \input knuth\par \input knuth\par \input ward \input ward \testpage[20] % This stops working as soon as vertical stretching is active \input ward \section{Section} \input knuth\par \stoptext Best, Denis ___ 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] environments in texmf-local?
> Am 06.05.2021 um 00:58 schrieb jbf : > > Hi list, > > A query: since we can place private (or any) modules in the texmf-local > subdirectory and call them from anywhere, would it be a misuse to also place > some environment setups there as well? It certainly makes it easy to call > them from wherever, and saves having to reorganize my file and directory > structure. I think it’s the exact purpose of texmf-local (or texmf-project) to make any personal stuff available to all of your projects. Best, 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 ___