[NTG-context] Re: vim syntax highlighting bug?
Hello on my installation, it's working: [image: image.png] But I'm on an old version on debian: VIM - Vi IMproved 8.2 (2019 Dec 12 kompiliert am Oct 01 2021 01:51:08) Inklusive der Patches: 1-2434 Extra Patches: 8.2.3402, 8.2.3403, 8.2.3409, 8.2.3428 Perhaps something has changed in version 9.0... Hope it helps Christian Am Sa., 6. Jan. 2024 um 13:04 Uhr schrieb Damien Thiriet via ntg-context < ntg-context@ntg.nl>: > Hello, > > > Happy New Year! > > I got into a bug in my Vim syntax highlighting version. > Highlight stays in lua mode after ctxlua macro is closed. > Here is a MWE, where «this should not be highlitghted as > a comment indeed is. > > \starttext > > Hello! > \ctxlua{context("does the parser work?")} > > -- this should not be highlighted as a comment > > \stoptext > > Do other Vim users come into this? > Is my syntax file outdated? > > I am using this Vim version on OpenBSD 7.3 -stable: > VIM - Vi IMproved 9.0 (2022 Jun 28, compiled Sep 6 2023 08:55:14) > Included patches: 1-1876 > > 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 / > 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 > > ___ > ___ 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 ___
Re: [NTG-context] [installing lmtx on raspi400]
In buster the libc6 is too old. You can switch to debian 11 or ubuntu as Hans said or you can add a newer glibc version. I had the same problem on a chromebook duet. I solved it following this (or a similar) solution: https://github.com/deltachat/deltachat-desktop/issues/1006#issue-498257133 (you read context instead of deltachat) I had no problems using the newer libc6. But you do this at your one risk! Kind regards Christian Am Do., 13. Mai 2021 um 16:30 Uhr schrieb Hans Hagen : > On 5/13/2021 2:08 PM, Floris van Manen wrote: > > No desktop system is complete before having a proper lmtx installed ;-) > > > > So with this OS version > > > > $ uname -a > > Linux rp400 5.10.17-v8+ #1414 SMP PREEMPT Fri Apr 30 13:23:25 BST 2021 > > aarch64 GNU/Linux > > > > $ hostnamectl > > Static hostname: rp400 > > Icon name: computer > >Operating System: Debian GNU/Linux 10 (buster) > > Kernel: Linux 5.10.17-v8+ > >Architecture: arm64 > > > > > > I downloaded > > context-linux-aarch64.zip > > > > > > unzipped it in the ~/context folder and ran the install.sh script > > > > $ sudo sh ./install.sh > > > > this gives an error: > > > > /home/pi/context/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: version > > `GLIBC_2.29' not found (required by /home/pi/context/bin/mtxrun) > > > > > > > > Anyone with a hint ? > > the 64 bit is generate on a rpi runing ubuntu so maybe more recent libs? > > Hans > > (makes me wonder if it runs on a rpi with windows) > > - >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] tikz-module not up to date (synchronisation problem with contextgarden?)
Hi It's been a long time, since a solution for the 'module wrapping error' in tikz has been proposed here in the list: https://mailman.ntg.nl/pipermail/ntg-context/2017/090404.html Since July a fix has been published: https://github.com/pgf-tikz/pgf/commit/9b24e5cdb8246b1075d02c02c75ff8bcac642c16 A few days ago the release containing the fix was released. On contextgarden the manual under modules/t-tikz/doc/generic/pgf shows the current version 3.1.8b, but the source doesn't include the fix. I compared the source on context-garden (rsync:// contextgarden.net/minimals/current/modules/) with the zip ( https://github.com/pgf-tikz/pgf/archive/3.1.8b.zip). In the zip file the fix is included, so I'm puzzled... Is there a synchronisation-problem? Just wanted to mention it. It's not crucial. Thanks Christian ___ 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] Install Problem on aarch64
Thanks Hans for the quick fix. Install works now on aarch64. Christian Am Fr., 18. Dez. 2020 um 16:35 Uhr schrieb Hans Hagen : > On 12/18/2020 2:58 PM, Christian Prim wrote: > > Hi > > > > upgrading my lmtx-Installation results in: > > > > mtx-install | platform : linux-aarch64 > > mtx-install | system : unix > > mtx-install | updating tex/texmf, 1541 files > > mtx-install | updating tex/texmf-context, 3915 files > > mtx-install | updating tex/texmf-linux-aarch64, 6 files > > mtx-install | skipping tex/texmf-linux-aarch64/bin/context > > mtx-install | skipping tex/texmf-linux-aarch64/bin/mtxrun > > mtx-install | changed : 0 % : 2696864 : > > tex/texmf-linux-aarch64/bin/luametatex > > mtx-install | tex/texmf-linux-aarch64/bin/luametatex, trying again: > > mtx-install | changed : 0 % : 2696864 : > > tex/texmf-linux-aarch64/bin/luametatex > > > > Is there a problem on my side or is this a bug? > > > > Because of wrong binary version I can't run context --make > > > > This is LuaMetaTeX, Version 2.08.03 > > > 2097153([...]/lmtx/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl(context.mkxl(syst-ini.mkxl > > ! token call, execute: [\directlua]:1: array of names expected > > stack traceback: > > [C]: in function 'tex.enableprimitives' > > [\directlua]:1: in main chunk. > > } > something seemed messed up (incompleteupload or so) ... i'll make a new > install later (first need finish something) > > 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] Install Problem on aarch64
Hi upgrading my lmtx-Installation results in: mtx-install | platform : linux-aarch64 mtx-install | system : unix mtx-install | updating tex/texmf, 1541 files mtx-install | updating tex/texmf-context, 3915 files mtx-install | updating tex/texmf-linux-aarch64, 6 files mtx-install | skipping tex/texmf-linux-aarch64/bin/context mtx-install | skipping tex/texmf-linux-aarch64/bin/mtxrun mtx-install | changed : 0 % : 2696864 : tex/texmf-linux-aarch64/bin/luametatex mtx-install | tex/texmf-linux-aarch64/bin/luametatex, trying again: mtx-install | changed : 0 % : 2696864 : tex/texmf-linux-aarch64/bin/luametatex Is there a problem on my side or is this a bug? Because of wrong binary version I can't run context --make This is LuaMetaTeX, Version 2.08.03 2097153([...]/lmtx/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl(context.mkxl(syst-ini.mkxl ! token call, execute: [\directlua]:1: array of names expected stack traceback: [C]: in function 'tex.enableprimitives' [\directlua]:1: in main chunk. } Thanks Christian ___ 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] Install Problems with 64 bit ARM Linux
Hi Mojca thanks a lot! Because glibc is backward compatible one can only deliver the 2.28 binaries (they work on a 2.29-system) ... so not several versions needed. Christian Am Di., 1. Dez. 2020 um 16:20 Uhr schrieb Hans Hagen : > On 12/1/2020 4:05 PM, Mojca Miklavec wrote: > > Dear Christian, > > > > I remembered that I have an old Pine64 with Armbian 10 collecting dust > > somewhere in a drawer. > > I powered it up and it still works :) I guess we could build the > binaries there. > So then we have, like with bsd, several versions? Bah, happy me that > windows doesn't have that problem. > > 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 ___
Re: [NTG-context] Install Problems with 64 bit ARM Linux
Hi Hans > > (btw, i think a 32 bit arm bij should run on the 64 right, and the 32 > bit is still old debian) Could be, but one has to install the 32-bit linker and libraries. It doesn't work out of the box. I tested it. And the binary is not recognised as such: user@penguin:~/test/bin$ ./mtxrun -bash: ./mtxrun: No such file or directory user@penguin:~/test/bin$ file mtxrun mtxrun: ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux-armhf.so.3, for GNU/Linux 3.2.0, BuildID[sha1]=2605a12bc4b8fdedf57f71908f74f3ad3fbedcc8, stripped user@penguin:~/test/bin$ ldd mtxrun not a dynamic executable Sorry for the not so good news... Christian ___ 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] Install Problems with 64 bit ARM Linux
Hi Mojca sorry for being a few days late. I got the hardware just yesterday. It's a lenovo chromebook duet (Tablet), that can run linux apps. For the UK (you may select your country) it's here: https://www.lenovo.com/gb/en/laptops/lenovo/student-chromebooks/Lenovo-CT-X636/p/ZZICZCTCT1X Very nice little piece of hardware. Small, great battery life and not so limited as other tablets (full linux access). Rather fast too... As I told in the second email, there's a workaround. But it would be nice, if context would work out of the box. These little tablets are commonly used at schools. Hope I could help Many thanks again Christian Am Sa., 28. Nov. 2020 um 10:52 Uhr schrieb Mojca Miklavec < mojca.miklavec.li...@gmail.com>: > Dear Christian, > > On Fri, 27 Nov 2020 at 20:50, Christian Prim wrote: > > > > Is there a reason why the arm binaries for ARM Linux use version 2.29 of > glibc? > > They are being compiled on a Raspberry PI which kind of lacks > first-class 64-bit support (or at least that was the case when we set > up a builder on our build farm, about 9 months ago). I don't remember > seeing anyone even request those binaries before, and this is the > first complaint I see about the glibc-too-new issue on aarch64 (it was > common on the Intel platform, but there we can easily build on Debian > 8 or 9). > > I believe the RPI is currently running some recent version of Ubuntu > (it was set up by Hans; I would need to check to be sure, but it could > well be that it's 20.04). > > Judging from (random google hits) > https://www.raspberrypi.org/forums/viewtopic.php?t=243985 > > https://www.raspberrypi.org/blog/latest-raspberry-pi-os-update-may-2020/ > it could be that May 2020 (which is precisely 6 months ago, in any > case later than when the builder was set up) has brought some better > news, an OS image that wouldn't require so much hacking to get it set > up and running. > > It's a pity that you didn't ask this question a few days ago, I > believe that Hans just reinstalled everything on that tiny device (SD > cards are a pain and like to wear out rather quickly if you keep > running build jobs and rewriting the same memory cells over and over > again; I thought we had set up an external disk properly, but well > ...) > > We could try again to get Debian 10 running on the RPI. > > Alternatively we could cross-compile, of course, but that's a bit more > painful to set up, and RPI 4 is certainly amazingly fast. > > > My actual debian buster installation is still on glibc-2.28. The x86_64 > Linux binaries also use the older 2.28-version which is widely used among > many distros. I would be very happy if I could install a 2.28-version on my > ARM Linux box. Else I have to compile my own glic... or my own mtxrun... > > A luametatex binary is needed. > > Out of curiosity: what hardware do you run your linux distro on? > > Mojca > > ___ > 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] Install Problems with 64 bit ARM Linux
Hi could solve the problem, by installing the glibc from debian testing following the instructions found here: https://github.com/deltachat/deltachat-desktop/issues/1006 It would still be better I think when glibc 2.28 was used in the binaries... Thanks Christian Am Fr., 27. Nov. 2020 um 20:49 Uhr schrieb Christian Prim < christian.p...@gmx.ch>: > Hi everyone > > Is there a reason why the arm binaries for ARM Linux use version 2.29 of > glibc? My actual debian buster installation is still on glibc-2.28. The > x86_64 Linux binaries also use the older 2.28-version which is widely used > among many distros. I would be very happy if I could install a 2.28-version > on my ARM Linux box. Else I have to compile my own glic... or my own > mtxrun... > > Many thanks for your clarifications > Christian > > PS.: error messages during the install: > .../lmtx/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: version > `GLIBC_2.29' not found (required by .../lmtx/bin/mtxrun) > ___ 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] Install Problems with 64 bit ARM Linux
Hi everyone Is there a reason why the arm binaries for ARM Linux use version 2.29 of glibc? My actual debian buster installation is still on glibc-2.28. The x86_64 Linux binaries also use the older 2.28-version which is widely used among many distros. I would be very happy if I could install a 2.28-version on my ARM Linux box. Else I have to compile my own glic... or my own mtxrun... Many thanks for your clarifications Christian PS.: error messages during the install: .../lmtx/bin/mtxrun: /lib/aarch64-linux-gnu/libm.so.6: version `GLIBC_2.29' not found (required by .../lmtx/bin/mtxrun) ___ 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 gnuplot-module in lmtx
Thanks Hans the new upload works with the gnuplot-module as it should be! Christian Am Mi., 25. Nov. 2020 um 14:25 Uhr schrieb Christian Prim < christian.p...@gmx.ch>: > Hi > > with the latest version of lmtx (upgraded a minute ago), the > gnuplot-example from the wiki-page (for lmtx with externalfigure) doesn't > work. Error is: > > tex error > tex error on line 1 in file > virtual://buffer.svg-sin-inclusion.1: Undefined control sequence > > \font_basics_predefine #1#2->\font_basics_defined_font_yes > [#2]\gletcsname #1\expandafter \endcsname \csname > \v_font_identifier_basic \endcsname > \predefinedfont [#1]->\ifcsname \??predefinedfont #1\endcsname > \lastnamedcs \else \font_basics_predefined {#1} > \fi > \svgnormal ...ame \??svgfamily #1\endcsname \lastnamedcs \else > #1\fi -#2-#3}\predefinedfont [\s!spec :\p_font *\s!default \space @ 10bp] > \fi #4\egroup > > \svgstartlayer > \svgscaled{1}{arial}{normal}{normal}{\svgscaled{1}{arial}{normal}{normal}{\svghashed{1}}} > \svgstoplayer > > \ > > \global \setbox \mptextbox \hbox {\clf_mptexttoks > } > ... > > \includegnuplotsvgfile[./sin.svg] > \resetbuffer[svg-sin-inclusion] > > > > > 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: 256 > > here is the code: > > gnuplot.tex: > \usemodule[gnuplot] > > \starttext > \externalfigure[sin.gp][conversion=svg,width=4cm] > \stoptext > > sin.gp: > set format xy "$%g$" > > set title 'This is a plot of $y=\\sin(x)$' > set xlabel 'This is the $x$ axis' > set ylabel 'This is the $y$ axis' > > plot [0:6.28] [0:1] sin(x) > > The same code works on older lmtx (current version: 2020.09.20 23:02). > It's not on the same linux-machine, but both have the same gnuplot-version > installed. > > Is this a bug? > > Thanks > Christian > ___ 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 gnuplot-module in lmtx
Hi with the latest version of lmtx (upgraded a minute ago), the gnuplot-example from the wiki-page (for lmtx with externalfigure) doesn't work. Error is: tex error > tex error on line 1 in file virtual://buffer.svg-sin-inclusion.1: Undefined control sequence \font_basics_predefine #1#2->\font_basics_defined_font_yes [#2]\gletcsname #1\expandafter \endcsname \csname \v_font_identifier_basic \endcsname \predefinedfont [#1]->\ifcsname \??predefinedfont #1\endcsname \lastnamedcs \else \font_basics_predefined {#1} \fi \svgnormal ...ame \??svgfamily #1\endcsname \lastnamedcs \else #1\fi -#2-#3}\predefinedfont [\s!spec :\p_font *\s!default \space @ 10bp] \fi #4\egroup \svgstartlayer \svgscaled{1}{arial}{normal}{normal}{\svgscaled{1}{arial}{normal}{normal}{\svghashed{1}}} \svgstoplayer \ \global \setbox \mptextbox \hbox {\clf_mptexttoks } ... \includegnuplotsvgfile[./sin.svg] \resetbuffer[svg-sin-inclusion] 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: 256 here is the code: gnuplot.tex: \usemodule[gnuplot] \starttext \externalfigure[sin.gp][conversion=svg,width=4cm] \stoptext sin.gp: set format xy "$%g$" set title 'This is a plot of $y=\\sin(x)$' set xlabel 'This is the $x$ axis' set ylabel 'This is the $y$ axis' plot [0:6.28] [0:1] sin(x) The same code works on older lmtx (current version: 2020.09.20 23:02). It's not on the same linux-machine, but both have the same gnuplot-version installed. Is this a bug? Thanks Christian ___ 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 on linux I get: csname overload > fatal error, protection level 4, control sequence 'textcontrolspace', properties 'immutable', file 'enco-ini.mkxl', line 315 wiped cache; run mtxrun --generate without problems; but context --make has this error. Do I miss something? Thanks Christian Am Mo., 23. Nov. 2020 um 18:56 Uhr schrieb Hans Hagen : > Hi, > > I uploaded a next iteration of lmtx. From now on there are dedicated sub > directories for mklx and mpxl, which is an indication that we're on the > way to a full code split. > > 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 ___
Re: [NTG-context] Problems with tikz plot file
Many thanks Hans for the quick fix! Christian Am Fr., 4. Sept. 2020 um 10:09 Uhr schrieb Hans Hagen : > On 9/4/2020 8:32 AM, Christian Prim wrote: > > Hi everyone > > > > Following MWE produces an error on newest lmtx (current version: > > 2020.09.03 20:03): > > > > \usemodule[tikz] > > \starttext > > \placefigure[here][]{}{\hbox{\starttikzpicture > > \draw plot file {data.table}; > > \stoptikzpicture}} > > \stoptext > > > > with data.table: > > > > 150 -0.102 > > 150.1 -0.15 > > 150.2 -0.389 > > 150.3 -0.15 > > 150.4 -0.389 > > 150.5 -0.15 > > 150.6 -0.293 > > 150.7 -0.341 > > 150.8 -0.485 > > 150.9 -0.293 > > > > (data.table could be any x-y-pair) > > > > The error says: > > tex error on line 5 in file ./plot.tex: Argument of \pgf@parsexyline > has > > an extra } > > > > It doesn't seem to be directly related to > > > https://unix.stackexchange.com/questions/10267/how-to-find-unmatched-brackets-in-a-text-file > as > > > I have tested to convert data.table to dos-Format with unix2dos. No > success. > > > > I'm working on linux (debian). > > > > What am I missing? Or is this a bug? > seems that i need to append a space to the lines read in .. i'll fix it > > 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] Problems with tikz plot file
Hi everyone Following MWE produces an error on newest lmtx (current version: 2020.09.03 20:03): \usemodule[tikz] \starttext \placefigure[here][]{}{\hbox{\starttikzpicture \draw plot file {data.table}; \stoptikzpicture}} \stoptext with data.table: 150 -0.102 150.1 -0.15 150.2 -0.389 150.3 -0.15 150.4 -0.389 150.5 -0.15 150.6 -0.293 150.7 -0.341 150.8 -0.485 150.9 -0.293 (data.table could be any x-y-pair) The error says: tex error on line 5 in file ./plot.tex: Argument of \pgf@parsexyline has an extra } It doesn't seem to be directly related to https://unix.stackexchange.com/questions/10267/how-to-find-unmatched-brackets-in-a-text-file as I have tested to convert data.table to dos-Format with unix2dos. No success. I'm working on linux (debian). What am I missing? Or is this a bug? Many thanks Christian ___ 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] Table-bug in lmtx?
Hello Hans many thanks for the fix! Christian Am Mo., 30. März 2020 um 22:45 Uhr schrieb Hans Hagen : > On 3/30/2020 6:23 PM, Christian Prim wrote: > > Hello list > > > > following MWE gives a strange error "(interwoven alignment preambles are > > not allowed)" when processed with lmtx: > > > > \definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|] > > \starttext > > \starttable[fosa] > > \NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR > > \MR > > \NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR > > \stoptable > > \stoptext > > > > No problems in mkiv. > > I think Use3 is the problem, but I'm not sure... > I found the issue (in the engine) ... tomorrow I'll upload a new one. > > 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] Table-bug in lmtx?
Hello list following MWE gives a strange error "(interwoven alignment preambles are not allowed)" when processed with lmtx: \definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)|xp(5cm)s2|lw(2.5cm)|] \starttext \starttable[fosa] \NC Cell 1 \NC\Use3[p(8cm)]{A longer cell}\NC\AR \MR \NC Cell 1 \NC Cell 2 \NC Cell 3 \NC Cell 4 \NC\AR \stoptable \stoptext No problems in mkiv. I think Use3 is the problem, but I'm not sure... Many thanks for your help Christian ___ 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 long indices in LMTX
Hello For reference: Here is the ConTeXt way of entering a long text-Index, which works with lmtx: \starttext \m{F_{\text{long Index}}=m_{\text{long Index}}a} \stoptext Sorry for the noise. (Perhaps a change correlated to the prime discussion...) Christian Am Mi., 25. März 2020 um 09:53 Uhr schrieb Christian Prim < christian.p...@gmx.ch>: > Hello list > > Sorry to ask again. What do I miss in following MWE? > > \starttext > \m{F_{\rm longIndex}=m_{\rm longIndex}a} > \stoptext > > The index longIndex overlaps the following characters "=" and "a" when > processed with lmtx. No problems with mkiv. > > Thanks for your help > Christian > > Am Sa., 21. März 2020 um 17:27 Uhr schrieb Christian Prim < > christian.p...@gmx.ch>: > >> Hello >> >> Following MWE produces strange output in latest LMTX. mkiv (also latest) >> output is ok. >> >> \usetypescript[palatino] >> \setupbodyfont[palatino,11pt] >> \starttext >> \m{F_{\rm longIndex}=m_{\rm longIndex}a} >> \stoptext >> >> The spacing in the index is wrong. >> >> What am I missing? >> >> Thanks in advance >> Christian >> > ___ 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 long indices in LMTX
Hello list Sorry to ask again. What do I miss in following MWE? \starttext \m{F_{\rm longIndex}=m_{\rm longIndex}a} \stoptext The index longIndex overlaps the following characters "=" and "a" when processed with lmtx. No problems with mkiv. Thanks for your help Christian Am Sa., 21. März 2020 um 17:27 Uhr schrieb Christian Prim < christian.p...@gmx.ch>: > Hello > > Following MWE produces strange output in latest LMTX. mkiv (also latest) > output is ok. > > \usetypescript[palatino] > \setupbodyfont[palatino,11pt] > \starttext > \m{F_{\rm longIndex}=m_{\rm longIndex}a} > \stoptext > > The spacing in the index is wrong. > > What am I missing? > > Thanks in advance > Christian > ___ 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 long indices in LMTX
Hello Following MWE produces strange output in latest LMTX. mkiv (also latest) output is ok. \usetypescript[palatino] \setupbodyfont[palatino,11pt] \starttext \m{F_{\rm longIndex}=m_{\rm longIndex}a} \stoptext The spacing in the index is wrong. What am I missing? Thanks in advance Christian test_lmtx.pdf Description: Adobe PDF document test_mkiv.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] PDF output routine in lmtx
Thanks for your answer, Hans. I checked standard (modern) and gyre-palatino font. Both give no output. Did pdf-Version change between mkiv and lmtx? I will try to find the problem in the pdf-file, if I can. Thanks Christian Am Mo., 29. Apr. 2019 um 13:21 Uhr schrieb Hans Hagen : > On 4/29/2019 11:46 AM, Christian Prim wrote: > > Hi > > > > in lmtx the pdf output routine has changed afaik. I just wanted to > > report, that in lmtx our printer/copier (Ricoh 8200S or Ricoh 8110S) > > doesn't print any character. A standard document as the MWE prints well > > under mkiv. Under lmtx, there is no output (blank sheet). In a document > > with a tikz-figure, the tikz-figure (without labels, as they are text) > > is printed. Something with text output must have changed, that makes it > > incompatible with the copier at our school. I tried to print with > > different drivers and also used the printers interface (direct print via > > usb-stick). No success. Are they some flags I can play with (like other > > pdf-version or so) to find a solution to this problem? This "bug" > > prevents me to use lmtx at out school. > > > > MWE: > > > > \starttext > > That is a test. > > \stoptext > > Any font? > > > Of course there is no problem with the preview and the output works on a > > HP-Printer. > hard to say ... we output rather straightforward pdf 1.7 > > 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] PDF output routine in lmtx
Hi in lmtx the pdf output routine has changed afaik. I just wanted to report, that in lmtx our printer/copier (Ricoh 8200S or Ricoh 8110S) doesn't print any character. A standard document as the MWE prints well under mkiv. Under lmtx, there is no output (blank sheet). In a document with a tikz-figure, the tikz-figure (without labels, as they are text) is printed. Something with text output must have changed, that makes it incompatible with the copier at our school. I tried to print with different drivers and also used the printers interface (direct print via usb-stick). No success. Are they some flags I can play with (like other pdf-version or so) to find a solution to this problem? This "bug" prevents me to use lmtx at out school. MWE: \starttext That is a test. \stoptext Of course there is no problem with the preview and the output works on a HP-Printer. Many thanks for all suggestions! Christian ___ 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] PDF output routine in lmtx
Hi converting the document to ps and back to pdf works (pdf2ps and ps2pdf). But I think there must be a simpler solution... Christian Am Mo., 29. Apr. 2019 um 11:46 Uhr schrieb Christian Prim < christian.p...@gmx.ch>: > Hi > > in lmtx the pdf output routine has changed afaik. I just wanted to report, > that in lmtx our printer/copier (Ricoh 8200S or Ricoh 8110S) doesn't print > any character. A standard document as the MWE prints well under mkiv. Under > lmtx, there is no output (blank sheet). In a document with a tikz-figure, > the tikz-figure (without labels, as they are text) is printed. Something > with text output must have changed, that makes it incompatible with the > copier at our school. I tried to print with different drivers and also used > the printers interface (direct print via usb-stick). No success. Are they > some flags I can play with (like other pdf-version or so) to find a > solution to this problem? This "bug" prevents me to use lmtx at out school. > > MWE: > > \starttext > That is a test. > \stoptext > > Of course there is no problem with the preview and the output works on a > HP-Printer. > > Many thanks for all suggestions! > > Christian > ___ 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] gnuplot-module broken under lmtx
Hi It's little off-topic as there are officially no modules included in lmtx. But when I used the modules from a mkiv-installation, there was little to no problem. But with the gnuplot-module I can't fix the error myself. MWE: \usemodule[gnuplot] \startGNUPLOTscript[sin] plot sin(x) \stopGNUPLOTscript \starttext \placefigure[here]{Sine Test}{\useGNUPLOTgraphic[sin]} \stoptext Under mkiv everything is fine. mkiv creates a file gnuplot-gnuplot-1.plt, sends this file to gnuplot and uses the output gnuplot-gnuplot-1-ctx.tex. Under lmtx only the files gnuplot-gnuplot-1.tmp and gnuplot-gnuplot-inclusions.tmp are created. When I copy the correct .plt file from a mkiv-run, no gnuplot-gnuplot-1-ctx.tex is generated. If I copy the correct -ctx.tex file from a mkiv-run, I still get an error. Relevant part from the logfile of a working mkiv-run: modules > 'gnuplot' is loaded open source > level 3, order 4, name '/home/user/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv' loading > Gnuplot module open source > level 4, order 5, name '/home/user/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 4, order 5, name '/home/user/context/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 3, order 5, name '/home/user/context/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded open source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' close source> level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' metapost> initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost> loading 'metafun' as '/home/user/context/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' using method 'default' metapost> initializing number mode 'scaled' floatblocks > '1' placed (here) from a lmtx-run (no .plt-file and -ctx.tex given): modules > 'gnuplot' is loaded open source > level 3, order 4, name '/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv' loading > Gnuplot module open source > level 4, order 5, name '/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 4, order 5, name '/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 3, order 5, name '/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded mtxrun | mtxrun | executing: gnuplot gnuplot-gnuplot-1.plt mtxrun | mtxrun | /home/user/lmtx/tex/texmf-linux-64/bin/mtxrun.lua:26166: attempt to call a nil value (field 'exec') aaa > mtxrun --direct gnuplot gnuplot-gnuplot-1.plt floatblocks > no block given floatblocks > '1' placed (here) lmtx with given .plt and -ctx.tex-file: modules > 'gnuplot' is loaded open source > level 3, order 4, name '/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv' loading > Gnuplot module open source > level 4, order 5, name '/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 4, order 5, name '/home/user/lmtx/tex/texmf-context/tex/context/fonts/mkiv/type-imp-texgyre.mkiv' close source> level 3, order 5, name '/home/user/lmtx/tex/texmf-modules/tex/context/third/gnuplot/t-gnuplot.mkiv' fonts > preloading latin modern fonts (second stage) fonts > 'fallback modern-designsize rm 12pt' is loaded mtxrun | mtxrun | executing: gnuplot gnuplot-gnuplot-1.plt mtxrun | mtxrun | /home/user/lmtx/tex/texmf-linux-64/bin/mtxrun.lua:26166: attempt to call a nil value (field 'exec') aaa > mtxrun --direct gnuplot gnuplot-gnuplot-1.plt open source > level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' close source> level 3, order 6, name 'gnuplot-gnuplot-1-ctx.tex' metapost> initializing instance 'metafun:1' using format 'metafun' and method 'default' metapost> loading 'metafun' as '/home/user/lmtx/tex/texmf-context/metapost/context/base/mpiv/metafun.mpiv' using method 'default' metapost> initializing number mode 'scaled' floatblocks > '1' placed (here) tex error > tex error on line 1 in file gnuplot-gnuplot-1-ctx.tex: ! Undefined control sequence \GNUPLOTfile -ctx.tex \fourthoffivearguments #1#2#3#4#5->#4 set output "\@@GNUPLOTresult " }\endwrite \shipoutscratchbox \page_shipout_box #1->\clf_shipoutpage #1 \relax \global \setbox #1\emptybox ... ...l.8 \stoptext 1 >> % Written by ConTeXt terminal
Re: [NTG-context] LMTX: 32-bit binaries for 64-bit system
Thanks for the very fast fix! Works again without problems on linux-64bit. Christian Am Sa., 6. Apr. 2019 um 12:44 Uhr schrieb Hans Hagen : > On 4/6/2019 11:04 AM, Christian Prim wrote: > > Hello > > > > Today I tried to update the lmtx-installation on 64-bit Linux. The > > update worked fine, but now I get: > > # context > > /home/username/lmtx/tex/texmf-linux-64/bin/context: No such file or > > directory > > > > Same for mtxrun. > > > > Redo a fresh install doesn't work either. > > # ./install.sh > > /install.sh: 94: ./install.sh: /home/username/test/bin/mtxrun: not found > > > > Digging in the problem I found, that the 64-bit installer has 32-bit > > binaries. The same as in the 32-bit installation. On a system with > > compatibility libraries the new install works, but on a pure 64-bit > > system there is a problem. > > > > Could you please fix or tell me what I miss. > > can you check again, i just uploaded an update > > 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] LMTX: 32-bit binaries for 64-bit system
Hello Today I tried to update the lmtx-installation on 64-bit Linux. The update worked fine, but now I get: # context /home/username/lmtx/tex/texmf-linux-64/bin/context: No such file or directory Same for mtxrun. Redo a fresh install doesn't work either. # ./install.sh /install.sh: 94: ./install.sh: /home/username/test/bin/mtxrun: not found Digging in the problem I found, that the 64-bit installer has 32-bit binaries. The same as in the 32-bit installation. On a system with compatibility libraries the new install works, but on a pure 64-bit system there is a problem. Could you please fix or tell me what I miss. Thanks Christian PS.: My architecture was correctly detected: platform : linux-64 # file mtxrun -- gives for the file in the installer ( http://lmtx.pragma-ade.nl/install-lmtx/context-linux-64.zip): mtxrun: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=729a29022162787ac1c5e5e48353a6ec37cce6b7, stripped Exactly same sha1 as for 32-bit Linux mtxrun ___ 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] web site
No problem here! Mohammad Hossein Batenischrieb am Di., 5. Juli 2016 um 10:40 Uhr: > is the server down? > > i can't connect to pragma-ade.nl or contextgarden.net or > minimals.contextgarden.net. all refuse my connection. > > On Sun, Jul 3, 2016 at 5:25 AM, Hans Hagen wrote: > >> Hi, >> >> >> for those accessing the website (for updates) best use prgama-ade.nl >> instead of pragma-ade.com >> >> 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://tex.aanhet.net >> archive : http://foundry.supelec.fr/projects/contextrev/ >> 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://tex.aanhet.net > archive : http://foundry.supelec.fr/projects/contextrev/ > 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Bug in table ?
Thanks Hans works again with latest beta. Christian Am Son, 20. Dez, 2015 um 10:56 schrieb Hans Hagen <pra...@wxs.nl>: On 12/20/2015 5:30 PM, Christian Prim wrote: > Dear list > > with the latest context I get wrong alignment in table. i'll look at it, not so much a table, more some side effect > I know table is deprecated. But I couldn't get xtable to baseline align nor really depricated but complemented by other mechanisms that some purposes are better Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Bug in table ?
Dear list with the latest context I get wrong alignment in table. MWE: (not so minimal, it's a snippet of my document) \setuppapersize[A5][A5] \setuplayout[location=middle, marking=on, topspace=1.5cm, margin=1cm, headspace=0cm, header=0cm, headerdistance=0.0cm, footer=1cm, %bottomspace=1cm, width=fit, height=fit] \setupbodyfont[palatino,10pt] \definetabletemplate[fosa][s0|xp(3.5cm)|lw(0.7cm)m|xp(5cm)s2|lw(2.5cm)m|] \starttext \starttable[fosa] \NC Kräftegleichgewicht \NC\Use3[p(8cm)]{Ein Körper ist im Kräftegleichgewicht, wenn die resultierende Kraft $\vec{F}_{\rm res}$ Null ist.}\NC\AR \MR \NC Drehmoment \NC\Use2[lM]{M=Fr} \NC [M]=\unit{1 Newton meter}\NC\AR \NC \NC F \NC Kraft ($\perp$\ zur DA) \NC [F]=\unit{1 Newton}\NC\AR \NC \NC r \NC Kraftarm (Abstand DA – Wirkungslinie) \NC [r]=\unit{1 meter}\NC\AR \MR \NC Momenten-\crlf gleichgewicht \NC\Use3[lM]{\sum M_{\rm rechtsdrehend}=\sum M_{\rm linksdrehend}}\NC\AR \MR \NC Gleichgewichtsarten \NC\Use3[p(8cm)]{stabil, labil, indifferent}\NC\AR \MR \NC Hebelgesetz \NC\Use3[lM]{F_1 r_1 = F_2 r_2}\NC\AR \NC \NC r_i \NC Kraftarme \NC [r_i]=\unit{1 meter} \NC\AR \MR \stoptable \stoptext What I got before latest beta: old.pdf What I get with new beta (only snippet): new.pdf The misalignment is visible. I know table is deprecated. But I couldn't get xtable to baseline align two different cells with display math in the same row. MWE: \starttext \startxtable[frame=off] \startxrow \startxcell[width=5cm] \m{\displaystyle \gamma=\frac{1}{\sqrt{1-\left (\frac{v}{c}\right )^2}}}\stopxcell \startxcell[width=4cm] Reaktionsprinzip\stopxcell \stopxrow \stopxtable \stoptext \gamma isn't aligned with the text "Reaktionsprinzip". Please tell me what I have to change in table or what table-environment I have to use to get the desired output. Thanks Christian old.pdf Description: Adobe PDF document new.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Vectorsigns are missplaced
Hello in latest beta the vector signs are missplaced: %\usetypescript[palatino] %\setupbodyfont[palatino] \starttext \m{\vec{v}} \m{\vec{F}_{\rm res}} \stoptext With lm-fonts the vector sign is more or less correct over the F, but wrong over the letter v. With palatino font both are wrong. Did the syntax changed? Or is it a bug? Kind regards Christian ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Thanks Hans with context-version 2015.05.13 23:52 it finally works on my side! Thanks for the fix! Christian 2015-04-25 23:18 GMT+02:00 Hans Hagen pra...@wxs.nl: On 4/24/2015 3:05 PM, Christian Prim wrote: Hi Hans I don't know if the latest beta already has the new code. But I can confirm, that there is still a difference between tikz-colors and context/metafun colors. TikZ translates c=1,m=1 in (native) RGB, that is b=1, which is in some way correct. ConTeXt translates c=1,m=1 in something I couldn't really define (perhaps sRGB or some other color profile) r=0.183... g=0.191... b=0.574... or in Web-Hex: #2e3092 or back to cmyk: c=.68, m=.67,k=.43 (which is blue with some key-value compared to TikZ with k=0) So I think that TikZ and ConTeXt don't use the same color profile Hope it could help somewhat to solve my problem. your example works ok here (with the tikz def file i made last week) i also made \setupcolors[cmyk=no] \setupcolors[rgb=no] \setupcolors[cmyk=no,rgb=no] \setupcolors[state=stop] working (nothing needed in tikz as the code that interfaces to it does that) which will be in the next beta Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Hi Hans I don't know if the latest beta already has the new code. But I can confirm, that there is still a difference between tikz-colors and context/metafun colors. TikZ translates c=1,m=1 in (native) RGB, that is b=1, which is in some way correct. ConTeXt translates c=1,m=1 in something I couldn't really define (perhaps sRGB or some other color profile) r=0.183... g=0.191... b=0.574... or in Web-Hex: #2e3092 or back to cmyk: c=.68, m=.67,k=.43 (which is blue with some key-value compared to TikZ with k=0) So I think that TikZ and ConTeXt don't use the same color profile Hope it could help somewhat to solve my problem. Thanks Christian PS.: New MWE with output.pdf attached. \usemodule[tikz] \usetypescript[palatino] \setupbodyfont[palatino,40pt] \starttext \definecolor[mycola][c=1,m=1,y=0,k=0] \definecolor[mycolb][c=0.5,m=0.5,y=0,k=0] \definecolor[mycolc][c=0.25,m=0.25,y=0,k=0] \starttikzpicture \node[fill=mycola,rectangle, minimum height=4cm,minimum width=2cm] {\startcolor[mycola]T\stopcolor}; \node[fill=mycolb,rectangle, minimum height=4cm,minimum width=2cm] at (2,0) {\startcolor[mycolb]T\stopcolor}; \node[fill=mycolc,rectangle, minimum height=4cm,minimum width=2cm] at (4,0) {\startcolor[mycolc]T\stopcolor}; \stoptikzpicture \startMPcode fill fullsquare xscaled 2cm yscaled 4cm withcolor \MPcolor{mycola}; fill fullsquare xscaled 2cm yscaled 4cm xshifted 2cm withcolor \MPcolor{mycolb}; fill fullsquare xscaled 2cm yscaled 4cm xshifted 4cm withcolor \MPcolor{mycolc}; \stopMPcode \par \startcolor[mycola]T\stopcolor \startcolor[mycolb]T\stopcolor \startcolor[mycolc]T\stopcolor \stoptext 2015-04-17 1:27 GMT+02:00 Hans Hagen pra...@wxs.nl: On 4/16/2015 11:29 PM, Christian Prim wrote: Hi Hans sorry to ask again. But the different color handling between context-version before 2015.04.14 00:54 and context-version 2015.04.14 00:54 is remarkable and annoying. See attached pdf-documents. Both have exactly the same source: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycola][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycolb][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycolc][c=0.055,m=0.145,y=0.22,k=0.1125] \starttikzpicture \node[fill=mycola,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] {\startcolor[mycola]T\stopcolor}; \node[fill=mycolb,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (2,0) {\startcolor[mycolb]T\stopcolor}; \node[fill=mycolc,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (4,0) {\startcolor[mycolc]T\stopcolor}; \stoptikzpicture \stoptext I write in each box the letter T with exactly the same color as the underlying box. Textcolor is set using context, fill color of the box is set using tikz. old.pdf shows the correct color handling. The letter T has exactly the same color as the box and therefore disappears. With newest beta (new.pdf) the letter T is visible. Must I now stay with an old beta or can this bug be fixed? Perhaps it's a bug in tikz... i found out that it relates to the lack of gray support (which in fact seems to be rgb support) so the next beta might work ok for you (no upload yet) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ output.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Howto typeset physical half-life
Hi Hans thanks for the checker, that surely helps. So I could find a solution (perhaps not the best) for my problem: \m{T_{\text{½}}} Thanks again Christian 2015-04-17 23:51 GMT+02:00 Hans Hagen pra...@wxs.nl: On 4/17/2015 9:41 PM, Christian Prim wrote: Hi a year or so before one could simply typeset the physical half-life as shown in MWE: \usetypescript[palatino] \setupbodyfont[palatino] \starttext ½ α \m{T_α} \m{T_½} \stoptext The greek letter is just to show, that utf-8 works as expected. In actual beta (and probably longer before) this doesn't work anymore. What have I missed? Are you sure? palatino doesn't have that character in its math repertoire (it might have been present in the alternative that uses px fonts combined with a pagella text font in which case they're coming from text). The math subsystem of context does to some extend accept super and subscript characters but not (at least not now) these fractions. Is this really needed? It can be done but quite some extra overhead for bad practice. Anyway, I've added a checker so that at least it gets reported (assuming the use of one math collection): mkiv lua stats unknown math characters: ½ (U+000BD) (n=3) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Howto typeset physical half-life
Hi a year or so before one could simply typeset the physical half-life as shown in MWE: \usetypescript[palatino] \setupbodyfont[palatino] \starttext ½ α \m{T_α} \m{T_½} \stoptext The greek letter is just to show, that utf-8 works as expected. In actual beta (and probably longer before) this doesn't work anymore. What have I missed? Thanks Christian ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Hi Hans sorry to ask again. But the different color handling between context-version before 2015.04.14 00:54 and context-version 2015.04.14 00:54 is remarkable and annoying. See attached pdf-documents. Both have exactly the same source: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycola][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycolb][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycolc][c=0.055,m=0.145,y=0.22,k=0.1125] \starttikzpicture \node[fill=mycola,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] {\startcolor[mycola]T\stopcolor}; \node[fill=mycolb,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (2,0) {\startcolor[mycolb]T\stopcolor}; \node[fill=mycolc,rectangle, minimum height=4cm,minimum width=2cm,anchor=south west] at (4,0) {\startcolor[mycolc]T\stopcolor}; \stoptikzpicture \stoptext I write in each box the letter T with exactly the same color as the underlying box. Textcolor is set using context, fill color of the box is set using tikz. old.pdf shows the correct color handling. The letter T has exactly the same color as the box and therefore disappears. With newest beta (new.pdf) the letter T is visible. Must I now stay with an old beta or can this bug be fixed? Perhaps it's a bug in tikz... Thanks Christian Am Don, 16. Apr, 2015 um 9:58 schrieb Hans Hagen pra...@wxs.nl: On 4/16/2015 9:34 PM, Christian Prim wrote: Hi Hans is it correct, that with the new beta one can just use rgb-colors using tikz or is there a bug preventing the usage of cmyk-colors as it used to work before? cmyk should work ok but afaik tikz assumes rgb in some cases so that prohibits that we can do automatic conversion tp other color spaces at he context end Thanks! Christian PS.: See mail below for MWE showing false cmyk colors in tikz. 2015-04-14 11:54 GMT+02:00 Christian Prim christian.p...@gmx.ch mailto:christian.p...@gmx.ch: Thanks Hans for clarification. But even with simple context color models (that worked before) I get other colors. MWE: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125] \startcolor[mycol] {\bfa Test} \stopcolor \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \fill[mycol_h] (2, 0) rectangle ++(2,4); \fill[mycol_q] (4, 0) rectangle ++(2,4); \stoptikzpicture \stoptext I'm not so familiar with metafun, so I couldn't do the rectangle with metafun (the different colors between context/metafun and tikz would certainly be better visible so). But the bullet shows, that the text color isn't the same as the tikz-figure. But they should as they are identical. Something must have changed in color handling. Christian 2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl mailto:pra...@wxs.nl: On 4/14/2015 10:29 AM, Christian Prim wrote: Thanks Hans for the fix! I have noticed, that spotcolors can be used in tikz, but they are darker. Is that wanted or a bug? they will map onto cmyk or rgb depending on definitions ... don't expect advanced context color models to work with tikz (but they do work with metafun) Hans --__--__- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 tel:087%20875%2068%2074 | www.pragma-ade.com http://www.pragma-ade.com | 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 mailto:ntg-context@ntg.nl / http://www.ntg.nl/mailman/__listinfo/ntg-context http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/__projects/contextrev/ http://foundry.supelec.fr/projects/contextrev/ 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
Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Hi Hans is it correct, that with the new beta one can just use rgb-colors using tikz or is there a bug preventing the usage of cmyk-colors as it used to work before? Thanks! Christian PS.: See mail below for MWE showing false cmyk colors in tikz. 2015-04-14 11:54 GMT+02:00 Christian Prim christian.p...@gmx.ch: Thanks Hans for clarification. But even with simple context color models (that worked before) I get other colors. MWE: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125] \startcolor[mycol] {\bfa Test} \stopcolor \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \fill[mycol_h] (2, 0) rectangle ++(2,4); \fill[mycol_q] (4, 0) rectangle ++(2,4); \stoptikzpicture \stoptext I'm not so familiar with metafun, so I couldn't do the rectangle with metafun (the different colors between context/metafun and tikz would certainly be better visible so). But the bullet shows, that the text color isn't the same as the tikz-figure. But they should as they are identical. Something must have changed in color handling. Christian 2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl: On 4/14/2015 10:29 AM, Christian Prim wrote: Thanks Hans for the fix! I have noticed, that spotcolors can be used in tikz, but they are darker. Is that wanted or a bug? they will map onto cmyk or rgb depending on definitions ... don't expect advanced context color models to work with tikz (but they do work with metafun) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Thanks Hans for the fix! I have noticed, that spotcolors can be used in tikz, but they are darker. Is that wanted or a bug? MWE: \usemodule[tikz] \starttext \definecolor[gruen][c=0.52,y=0.86] \definespotcolor[mycol][gruen][p=1] \definespotcolor[mycol_h][gruen][p=0.5] \definespotcolor[mycol_q][gruen][p=0.25] \startcolor[mycol] {\bfa Test Test Test Test Test} \stopcolor \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \fill[mycol_h] (2, 0) rectangle ++(2,4); \fill[mycol_q] (4, 0) rectangle ++(2,4); \stoptikzpicture \stoptext I expect the first rectangle to have the same color as the (wanted) color of the text. But the color of the text is closer to the color of the rectangle in the middle (50%). Christian 2015-04-13 22:51 GMT+02:00 Hans Hagen pra...@wxs.nl: On 4/13/2015 7:45 PM, Mojca Miklavec wrote: Hi, The following example works in MkII and it works in TeX Live 2014, but it fails with the latest beta (it draws a black rectangle instead of using the defined colour): \usemodule[tikz] \starttext \definecolor[mycol][r=0.9,g=0.8,b=0.8] \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \stoptikzpicture \stoptext It would be really nice to fix this in time for TeX Live 2015. Hm, i'm a bit puzzled why some suggested patched are nto in the distribution. Anyway, attached a more modern variant you need a beta that i just uploaded because i found out that when tijz predefines some mixed colors it assumes rgb color space your example then runs ok here Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Thanks Hans for clarification. But even with simple context color models (that worked before) I get other colors. MWE: \usemodule[tikz] \setupbodyfont[40pt] \starttext \definecolor[mycol][c=0.23,m=0.58,y=0.88,k=0.45] \definecolor[mycol_h][c=0.115,m=0.29,y=0.44,k=0.225] \definecolor[mycol_q][c=0.055,m=0.145,y=0.22,k=0.1125] \startcolor[mycol] {\bfa Test} \stopcolor \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \fill[mycol_h] (2, 0) rectangle ++(2,4); \fill[mycol_q] (4, 0) rectangle ++(2,4); \stoptikzpicture \stoptext I'm not so familiar with metafun, so I couldn't do the rectangle with metafun (the different colors between context/metafun and tikz would certainly be better visible so). But the bullet shows, that the text color isn't the same as the tikz-figure. But they should as they are identical. Something must have changed in color handling. Christian 2015-04-14 10:42 GMT+02:00 Hans Hagen pra...@wxs.nl: On 4/14/2015 10:29 AM, Christian Prim wrote: Thanks Hans for the fix! I have noticed, that spotcolors can be used in tikz, but they are darker. Is that wanted or a bug? they will map onto cmyk or rgb depending on definitions ... don't expect advanced context color models to work with tikz (but they do work with metafun) Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] ConTeXt-defined colours broken in TikZ in MkIV with latest betas
Hi I can confirm this bug. It worked fine for me a week before. It seems to be a bug in one of the latest beta. Thanks for fixing it Christian 2015-04-13 19:45 GMT+02:00 Mojca Miklavec mojca.miklavec.li...@gmail.com: Hi, The following example works in MkII and it works in TeX Live 2014, but it fails with the latest beta (it draws a black rectangle instead of using the defined colour): \usemodule[tikz] \starttext \definecolor[mycol][r=0.9,g=0.8,b=0.8] \starttikzpicture \fill[mycol] (0, 0) rectangle (2,4); \stoptikzpicture \stoptext It would be really nice to fix this in time for TeX Live 2015. Thank you, Mojca ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes broken in latest beta?
Hans, context --version gives: mtx-context | current version: 2015.03.27 21:39 but running context file.tex says: Fatal Error Your format does not match the base files! Format Version 2015.03.26 22:52 MKIV Files Version2015.03.27 21:39 I used first-setup as always to update. What is my mistake? How can I fix it? Thanks Christian 2015-03-27 21:37 GMT+01:00 Hans Hagen pra...@wxs.nl: On 3/27/2015 6:46 PM, Pablo Rodriguez wrote: Hans, I’m afraid that footnotes are broken in latest beta from 2015-03-26 22:54: \starttext a\footnote{b} \stoptext Both numbers in body and footnote are missing. Many thanks for your help, i uploaded a beta ... with a few more things done in notes (some 1000 changes to go) thanks for testing Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes broken in latest beta?
Sorry Hans, found the error myself: In the file publ-ini.lua there is a 7 at the beginning. Removing it fixes the problem. Christian 2015-03-27 22:12 GMT+01:00 Christian Prim christian.p...@gmx.ch: Hans, there must be a file missing: context --make cont-en gives: error loading file: publ-ini.lua (aborting) So the Format file isn't generated. Thanks for fixing it Christian 2015-03-27 22:08 GMT+01:00 Christian Prim christian.p...@gmx.ch: Hans, context --version gives: mtx-context | current version: 2015.03.27 21:39 but running context file.tex says: Fatal Error Your format does not match the base files! Format Version 2015.03.26 22:52 MKIV Files Version2015.03.27 21:39 I used first-setup as always to update. What is my mistake? How can I fix it? Thanks Christian 2015-03-27 21:37 GMT+01:00 Hans Hagen pra...@wxs.nl: On 3/27/2015 6:46 PM, Pablo Rodriguez wrote: Hans, I’m afraid that footnotes are broken in latest beta from 2015-03-26 22:54: \starttext a\footnote{b} \stoptext Both numbers in body and footnote are missing. Many thanks for your help, i uploaded a beta ... with a few more things done in notes (some 1000 changes to go) thanks for testing Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] footnotes broken in latest beta?
Hans, there must be a file missing: context --make cont-en gives: error loading file: publ-ini.lua (aborting) So the Format file isn't generated. Thanks for fixing it Christian 2015-03-27 22:08 GMT+01:00 Christian Prim christian.p...@gmx.ch: Hans, context --version gives: mtx-context | current version: 2015.03.27 21:39 but running context file.tex says: Fatal Error Your format does not match the base files! Format Version 2015.03.26 22:52 MKIV Files Version2015.03.27 21:39 I used first-setup as always to update. What is my mistake? How can I fix it? Thanks Christian 2015-03-27 21:37 GMT+01:00 Hans Hagen pra...@wxs.nl: On 3/27/2015 6:46 PM, Pablo Rodriguez wrote: Hans, I’m afraid that footnotes are broken in latest beta from 2015-03-26 22:54: \starttext a\footnote{b} \stoptext Both numbers in body and footnote are missing. Many thanks for your help, i uploaded a beta ... with a few more things done in notes (some 1000 changes to go) thanks for testing Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
Hi Hans, with the new beta following mwe produces a bug. Perhaps I'm doing something wrong. MWE: \definefontfamily[mainface][sans][DejaVu Sans] %or \definefontfamily[mainface][sans][gosmicksans] with the same result \setupbodyfont[mainface] \starttext \input tufte \stoptext Error log: Typesetting /home/ubuntu/workspace/mwe.tex mtx-context | run 1: luatex --fmt=/home/ubuntu/workspace/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en --jobname=mwe --lua=/home/ubuntu/workspace/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luatex/cont-en.lui --no-parse-first-line --c:currentrun=1 --c:fulljobname=./mwe.tex --c:input=./mwe.tex --c:kindofrun=1 --c:maxnofruns=8 cont-yes.mkiv This is LuaTeX, Version beta-0.80.0 (TeX Live 2015/dev) (rev 5195) \write18 enabled. interfaces implementor warning: 'commands.writestatus' is redefined interfaces implementor error: no actions for 'btxresolvelistreference' open source 1 1 /home/ubuntu/workspace/context/tex/texmf-context/tex/context/base/cont-yes.mkiv ConTeXt ver: 2015.03.26 19:19 MKIV beta fmt: 2015.3.26 int: english/english system 'cont-new.mkiv' loaded open source 2 2 /home/ubuntu/workspace/context/tex/texmf-context/tex/context/base/cont-new.mkiv close source 2 2 /home/ubuntu/workspace/context/tex/texmf-context/tex/context/base/cont-new.mkiv system files jobname 'mwe', input './mwe', result 'mwe' fontslatin modern fonts are not preloaded languageslanguage 'en' is active open source 2 3 /home/ubuntu/workspace/documents/snippets/bug/mwe.tex tex errorerror on line 179 in file /home/ubuntu/workspace/documents/snippets/bug/mwe.tex: ! Argument of \splitoffbase has an extra } inserted text \par to be read again } \rawdoifinsetelse ...def \m_syst_sub_string {,#1,} \ifx \m_syst_sub_string \m... \addtocommalist #1#2-\rawdoifinsetelse {#1} #2\resetglobal {\dodoglobal \ede... \font_typefaces_define_a ...usetypescriptfile [#4] \font_typescripts_use_one ... l.179 ] ... l.2 \setupbodyfont [mainface] Thanks for your help. Christian 2015-03-26 19:24 GMT+01:00 Hans Hagen pra...@wxs.nl: Hi, I uploaded a beta (for luatex 0.80) that has some changes in low level interfaces. Hopefully there are no side effects but there are they can be sorted out fast. I tested the code on projects and manuals so it should not be too bad. Depending on how complex your setup up is, there can be a speed gain of some 5% compared to previous versions. Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Fwd: Using spotcolors in TikZ
Sorry to ask again. I have to print a book with just two spotcolors (PANTONE colors). The the pdf must just contain two colors and the tint of them. How can I do this, when I have a tikz-picture in the document? Thanks Christian --- original message: I want to use spotcolors in a tikz-picture. Is this implemented? I get an error: Package pgf Error: Color test_line has an unsupported color model. MWE: (does not work) \usemodule[tikz] \setupcolors[rgb=no,cmyk=yes,spot=yes,state=start,overprint=yes] \definecolor[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18] \definespotcolor[test_line][PantoneTwoNineFour][p=1] \definespotcolor[test_fill][PantoneTwoNineFour][p=0.5] \tikzset{mybox/.style={rectangle,rounded corners,align=center,thick,draw=test_line,fill=test_fill}} \starttext \starttikzpicture \node[mybox] at (0,0) {Test}; \stoptikzpicture \stoptext Thanks for helping me. Christian ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Using spotcolors in TikZ
Hello list I want to use spotcolors in a tikz-picture. Is this implemented? I get an error: Package pgf Error: Color test_line has an unsupported color model. MWE: (does not work) \usemodule[tikz] \setupcolors[rgb=no,cmyk=yes,spot=yes,state=start,overprint=yes] \definecolor[PantoneTwoNineFour][c=1,m=.56,y=0,k=.18] \definespotcolor[test_line][PantoneTwoNineFour][p=1] \definespotcolor[test_fill][PantoneTwoNineFour][p=0.5] \tikzset{mybox/.style={rectangle,rounded corners,align=center,thick,draw=test_line,fill=test_fill}} \starttext \starttikzpicture \node[mybox] at (0,0) {Test}; \stoptikzpicture \stoptext Thanks for helping me. Christian ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
Hi Hans, the tikz-example on the wiki (which worked in last beta) doesn't compile too. http://wiki.contextgarden.net/TikZ Christian 2014-11-26 21:06 GMT+01:00 Pablo Rodriguez oi...@gmx.es: On 11/26/2014 08:28 PM, Hans Hagen wrote: Hi, I uploaded a new beta. Hans, I’m afraid that this sample cannot be compiled with the new beta: \starttext \section{What is \ConTeXt?} \stoptext Pablo -- http://www.ousia.tk ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] beta
Sorry for the noise, after a fresh install of standalone, everything is fine again. Don't know, why this happened. Christian 2014-11-26 21:48 GMT+01:00 Hans Hagen pra...@wxs.nl: On 11/26/2014 9:29 PM, Christian Prim wrote: Hi Hans, the tikz-example on the wiki (which worked in last beta) doesn't compile too. http://wiki.contextgarden.net/TikZ it works here so it's prob ably the already discussed tikz library issue Hans - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Gray unit
Hello the physical unit Gray has Gy as symbol (see http://en.wikipedia.org/wiki/Gray_(unit) ). Context returns Gr. MWE: \starttext \unit{1 Gray} \stoptext Thanks for fixing this little bug. Christian ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \startfloattext ... \stopfloattext
What is the context way to place text near a table (or another float) in an enumeration-environment? I just want to have the text just this right to the table. The second item 2) should be below the table. In the (not so) MWE all is fine, but the table is not indented. When I use \placetable the text is indented, but the second item is placed near the table on the right. (I could insert a \blank[xycm] but I don't think it's the way to solve my problem.) Thanks for all comments Christian \starttext \startitemize[n,packed,joinedup][stopper=)] \item Abhängigkeit der Beschleunigung von der Wagenmasse $m$: \blank $M=$ \hl[5] \unit{kg} \blank \starttabletext[left,high,none]{}{ %\placetable[left,high,none]{}{ \starttable[|l|l|] \HL \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR \HL \VL \qquad \VL \qquad \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \stoptable} Just this text near the table! \stoptabletext \item second item ... \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \startfloattext ... \stopfloattext
Thanks, Hans that was exactly what I needed. Christian 2013/9/9 Hans Hagen pra...@wxs.nl On 9/9/2013 2:38 PM, Christian Prim wrote: What is the context way to place text near a table (or another float) in an enumeration-environment? I just want to have the text just this right to the table. The second item 2) should be below the table. In the (not so) MWE all is fine, but the table is not indented. When I use \placetable the text is indented, but the second item is placed near the table on the right. (I could insert a \blank[xycm] but I don't think it's the way to solve my problem.) Thanks for all comments Christian \starttext \startitemize[n,packed,**joinedup][stopper=)] \item Abhängigkeit der Beschleunigung von der Wagenmasse $m$: \blank $M=$ \hl[5] \unit{kg} \blank \starttabletext[left,high,**none]{}{ %\placetable[left,high,none]{}**{ \starttable[|l|l|] \HL \VL $m$ in kg \VL $a$ in \unit{m isquare s} \VL\NR \HL \VL \qquad \VL \qquad \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \VL \VL \VL\AR \VL \VL \VL\AR \HL \stoptable} Just this text near the table! \stoptabletext \item second item ... \stoptext one of the solution is to use paired boxes: \starttext \definepairedbox [mylegend] [location={right,top}] % width=10cm \startitemize[n,packed,**joinedup][stopper=)] \startitem some introduction text \blank and some more \blank \startplacemylegend \startcontent \starttable[|l|l|] \HL \VL foo \VL bar \VL \NR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \VL \VL \VL \AR \VL \VL \VL \AR \HL \stoptable \stopcontent \startcaption \input ward \stopcaption \stopplacemylegend \stopitem \startitem and even more \stopitem \stopitemize \stoptext I patched the beta a bit so that for a horizontal variant the hsize is calculated automatically. Hans --**--**- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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 http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] question concerning \setupalign \setuptolerance
Dear list is there a way to \setupalign and \setuptolerance globaly? In tabulate- or frameenvironement for example they are reseted. MWE: \definefontfeature[default][default][expansion=quality,protrusion=quality] \usetypescript[palatino] \setupbodyfont[palatino,11pt] \setupbodyfontenvironment[default][em=italic] \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] \starttext \subject{Normal Text} align working, tolerance working. \input knuth \subject{Table} Table resets align/tolerance: \starttabulate \NC aling/tolerance not working \NC \input knuth \NC\NR \NC align/tolerance working \NC \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] \input knuth \NC\NR \stoptabulate \subject{Frame} Framedtext resets align/tolerance: \startframedtext[width=0.6\textwidth] aling/tolerance not working \input tufte \stopframedtext \startframedtext[width=0.6\textwidth] \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] aling/tolerance working \input tufte \stopframedtext \stoptext Thanks! Christian ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] question concerning \setupalign \setuptolerance
Thanks Wolfgang! Now everything is clear and fine. Christian 2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch: Thanks Wolfgang I have tested it (on new beta) but the alignment is still wrong in the tabulate-environment. It's correct in the framedtext-environment, but tolerance is still missing, so that a line is still too long. My new questions: - What about tolerance? Where must I add the keys? The \setupalign command does also accepts “tolerant”, “verytolerant” and “stretch” as keyword which means you don’t need the \setuptolerance command. This is important because the value of the align key is passed to the \setupalign command. - What about tabulate-environment? I’m sorry but I was wrong about the setting for the tabulate environment, the align value of \setuptabulate accepts only “left”, “middle”, “right” and “normal” as arguments. There is also no way to change the format of the default tabulation environment, only local changes are possible, e.g. \starttabulate[|l|pA{normal,hanging,hz,stretch}|] \NC align/tolerance not working \NC \input knuth \NC\NR \NC align/tolerance working \NC \input knuth \NC\NR \stoptabulate When you want a different default alignment you have to create your own tabulation environment with the \definetabulate command. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] question concerning \setupalign \setuptolerance
Thanks Wolfgang I have tested it (on new beta) but the alignment is still wrong in the tabulate-environment. It's correct in the framedtext-environment, but tolerance is still missing, so that a line is still too long. My new questions: - What about tolerance? Where must I add the keys? - What about tabulate-environment? Thanks! Christian My new MWE is: \definefontfeature[default][default][expansion=quality,protrusion=quality] \usetypescript[palatino] \setupbodyfont[palatino,11pt] \setupbodyfontenvironment[default][em=italic] \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] \setupframedtext[align={normal,hanging,hz}] %NEW \setuptabulate[align={normal,hanging,hz}] %NEW \showframe %NEW, for better seeing \starttext \subject{Normal Text} align working, tolerance working. \input knuth \subject{Table} Table resets align/tolerance: \starttabulate \NC align/tolerance not working \NC \input knuth \NC\NR \NC align/tolerance working \NC \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] \input knuth \NC\NR \stoptabulate \subject{Frame} Framedtext resets align/tolerance: \startframedtext[width=0.6\textwidth] align working, tolerance not working \input tufte \stopframedtext \startframedtext[width=0.6\textwidth] \setupalign[hz,hanging] \setuptolerance[horizontal,stretch] align/tolerance working \input tufte \stopframedtext \stoptext 2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com Am 30.08.2013 um 14:23 schrieb Christian Prim christian.p...@gmx.ch: Dear list is there a way to \setupalign and \setuptolerance globaly? In tabulate- or frameenvironement for example they are reseted. Environments which have a align key use the settings of the key and ignore global values, to enable protrusion and font expansion for these environment you have to change their align values. \setupframedtext [align={normal,hanging,hz}] \setuptabulate [align={normal,hanging,hz}] 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] question concerning \setupalign \setuptolerance
Sorry I still have a problem with \startfiguretext \stopfiguretext. There ist no \setupfiguretext nor \setupfloattext to enter the align= keypairs. Where must I enter align={normal,hanging,hz,stretch} to make the text around these figures aligned like the rest of the document? Thanks Christian PS.: My minimal (not) working example: \definefontfeature[default][default][expansion=quality,protrusion=quality] %\setup?figure?text[align={normal,hanging,hz,stretch}] \setupalign[hz,hanging,stretch] \showframe \starttext Correct Text \input knuth \startfiguretext[right,none]{}{\externalfigure[cow][width=0.5\textwidth]} Wrong alignment! \input knuth \stopfiguretext \stoptext 2013/8/30 Christian Prim christian.p...@gmx.ch Thanks Wolfgang! Now everything is clear and fine. Christian 2013/8/30 Wolfgang Schuster schuster.wolfg...@gmail.com Am 30.08.2013 um 17:55 schrieb Christian Prim christian.p...@gmx.ch: Thanks Wolfgang I have tested it (on new beta) but the alignment is still wrong in the tabulate-environment. It's correct in the framedtext-environment, but tolerance is still missing, so that a line is still too long. My new questions: - What about tolerance? Where must I add the keys? The \setupalign command does also accepts “tolerant”, “verytolerant” and “stretch” as keyword which means you don’t need the \setuptolerance command. This is important because the value of the align key is passed to the \setupalign command. - What about tabulate-environment? I’m sorry but I was wrong about the setting for the tabulate environment, the align value of \setuptabulate accepts only “left”, “middle”, “right” and “normal” as arguments. There is also no way to change the format of the default tabulation environment, only local changes are possible, e.g. \starttabulate[|l|pA{normal,hanging,hz,stretch}|] \NC align/tolerance not working \NC \input knuth \NC\NR \NC align/tolerance working \NC \input knuth \NC\NR \stoptabulate When you want a different default alignment you have to create your own tabulation environment with the \definetabulate command. 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Cloze Text (text with gaps)
Hello Wolfgang thanks for both \TextGap and \WordGap. That is exactly what I needed! Christian 2013/6/27 Wolfgang Schuster schuster.wolfg...@gmail.com Am 27.06.2013 um 20:53 schrieb Jaroslav Hajtmar hajt...@gyza.cz: Hello Wolfgang. Here is example of other using of your TextGap. There is a problem in some lines? Why linewidth is change? Add “width 0pt” to the \vrule arguments. See also my definition of \WordGap. \def\TextGap[#1]% {\scratchdimen#1\relax \divide\scratchdimen\plusten \dorecurse\plusten {\vrule width \scratchdimen height \linewidth depth \zeropoint\relax \ifnum\recurselevel10 \hskip\zeropoint\relax \fi}} \def\WordGap {\dowithnextbox{\TextGap[\nextboxwd]}\hbox} \starttext a \TextGap[4cm] b \TextGap[4cm] c \TextGap[4cm] d \TextGap[4cm] e My words: \WordGap{My words}. Why is line very thick here? Here is an sentence: \WordGap{Here is an sentence} -- linewidth is OK here. Here is an sentence: \WordGap{Here is an sentence}. And why is problem here again? \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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Cloze Text (text with gaps)
Thanks David I think the first one is a very good idea. But I failed to give the \underbar a color different to the one of the text. Can you help me please? Thanks Christian 2013/6/27 David Rogers davidandrewrog...@gmail.com Christian Prim christian.p...@gmx.ch writes: I wonder if I can typeset a cloze text using context. The gaps (__) must have a given length (say in cm or the length of a given word, given sentence) and must break at the end of a line. \hl[4] is nice but won't do the trick since it won't break. \fillinline and others fill the hole line, but I only want to fill a given size. Are there some ideas how to deal with it? Example: The name of the _ is _ . And now it's time to go to bed. Some more text. I haven't tested these ideas... One possibility: type the answer in white, but give it a coloured \underbar. (You might need to type longer answers, or in a larger font size, to leave enough room for hand writing.) Another: use a \fillinline - you can define the length. -- David ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Cloze Text (text with gaps)
Hi list I wonder if I can typeset a cloze text using context. The gaps (__) must have a given length (say in cm or the length of a given word, given sentence) and must break at the end of a line. \hl[4] is nice but won't do the trick since it won't break. \fillinline and others fill the hole line, but I only want to fill a given size. Are there some ideas how to deal with it? Example: The name of the _ is _ . And now it's time to go to bed. Some more text. Hope you get the point. Thanks in advance Christian PS.: For Latex there is a package: http://tex.stackexchange.com/questions/79689/control-ulines-for-cloze-text ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Output from Context standalone (actual version) has wrong utf-8 encoding
Hi list rendering a very easy formula with greek text in it produces a pdf-document that has not a valid utf-8 string. I use evince for displaying pdfs under ubuntu linux. The document appears correctly on the screen but stops printing after a greek letter in a formula. The error-report says: Internal Error: cairo context error: input string not valid UTF-8 The same document compiled in live.contextgarden.net doesn't produce a mistake and can be printed with evince. I can still print the document correctly using 'lpr name.pdf', so it's not a big problem for me. But I don't know if that could be a problem for someone else. Test-Document: \starttext $3\omega$ \stoptext Tell me, what I can do to help. Thanks Christian ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] Not limited to greek letter
Hi again The next document produces the same mistake as described in my last mail: \starttext $3v$ \stoptext Bye Christian ___ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Output from Context standalone (actual version) has wrong utf-8 encoding
=database system files stop used files system options start commandline options used option currentrun=1 used option fulljobname=./tmp.tex used option input=./tmp.tex used option kindofrun=1 used option maxnofruns=8 used option no-parse-first-line=true system options stop commandline options system options start commandline files used file 1: ./tmp.tex system options stop commandline files mkiv lua stats used config file: selfautoparent:/texmf/web2c/texmfcnf.lua mkiv lua stats used cache path: /home/christian/context/tex/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mkiv lua stats resource resolver: loadtime 0.006 seconds, 0 scans with scantime 0.000 seconds, 0 shared scans, 13 found files, scanned paths: none mkiv lua stats stored bytecode data: 330 modules (0.120 sec), 69 tables (0.000 sec), 399 chunks (0.120 sec) mkiv lua stats cleaned up reserved nodes: 41 nodes, 9 lists of 441 mkiv lua stats node memory usage: 2 glue, 2 penalty, 9 attribute, 28 glue_spec, 3 attribute_list mkiv lua stats node list callback tasks: 6 unique task lists, 6 instances (re)created, 39 calls mkiv lua stats used backend: pdf (backend for directly generating pdf output) mkiv lua stats loaded patterns: en::2, load time: 0.000 mkiv lua stats jobdata time: 0.001 seconds saving, 0.001 seconds loading mkiv lua stats callbacks: 137 direct, 180 indirect, 317 total mkiv lua stats randomizer: resumed with value 0.42518211455326 mkiv lua stats lxml preparation time: 0.000 seconds, 0 nodes, 15 lpath calls, 0 cached calls mkiv lua stats result saved in file: tmp.pdf, compresslevel 3, objectcompreslevel 3 mkiv lua stats loaded fonts: 2 files: latinmodern-math.otf (experimental), lmroman12-regular.otf mkiv lua stats fonts load time: 0.142 seconds mkiv lua stats luatex banner: this is luatex, version beta-0.76.0-2013040516 (tex live 2013/dev)(rev 4627) mkiv lua stats control sequences: 37409 of 65536 + 10 mkiv lua stats current memory usage: 45 MB (ctx: 45 MB) mkiv lua stats runtime: 0.409 seconds, 1 processed pages, 1 shipped pages, 2.445 pages/second 2013/6/17 Aditya Mahajan adit...@umich.edu On 2013-06-17, at 12:05 PM, Christian Prim christian.p...@gmx.ch wrote: Hi list rendering a very easy formula with greek text in it produces a pdf-document that has not a valid utf-8 string. I use evince for displaying pdfs under ubuntu linux. The document appears correctly on the screen but stops printing after a greek letter in a formula. The error-report says: Internal Error: cairo context error: input string not valid UTF-8 How are you compiling the document (mkii or mkiv) Can you attach the actual PDF as well (small attachments are allowed on the list). The same document compiled in live.contextgarden.net doesn't produce a mistake and can be printed with evince. contextgarden uses Mkii rather than 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___ contextgarden.pdf Description: Adobe PDF document standalone.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] Output from Context standalone (actual version) has wrong utf-8 encoding
Hi Hans I used texlive (2012) before standalone. There was never a problem. Same editor, same viewer. With standalone there is a problem just for printing from viewer evince. I can print the very same document with lpr (command-line) without problem. I don't think there is a real problem with the pdf. evince manipulates somehow the pdf-document before sending to printer. There the error occurs. Strange that the output from context in texlive didn't have this problem. Has the output-format changed since last year? Thanks Christian 2013/6/17 Hans Hagen pra...@wxs.nl On 6/17/2013 6:55 PM, Christian Prim wrote: Hi Aditya I use Mkiv both standalone and live.contextgarden.net http://live.contextgarden.net**. Document: \starttext $3v$ \stoptext it's a 푣 i.e. a character with unicode 0x1D463 so it's probably a viewer/editor cut/paste issue Hans --**--**- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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 http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
[NTG-context] \digits get \times instead of \cdot before exponent
Hi, is it possible to change the behaviour of \digits to have \cdot as in http://www.pragma-ade.com/general/magazines/mag-0003.pdf page 2 (table at the bottom) instead of \times as shown in the latest units-mkiv-document http://www.pragma-ade.com/general/manuals/units-mkiv.pdf pages 67? Thanks for your advise Christian Prim Example: \unit{10.5e3 Newton} should produce 10.5\cdot 10^3 N and not 10.5\times 10^3 N (also tested in the latest version at http://live.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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \digits get \times instead of \cdot before exponent
Thanks for the tip Hans, but the kerning in \def\digitstimessymbol{\kern.**2\emwidth\cdot\kern.2\emwidth} should not take place in mathmode, only in textmode. Else the space is too big. Don't know how to deal with that. Christian 2013/5/21 Hans Hagen pra...@wxs.nl On 5/21/2013 11:44 AM, Romain Diss wrote: Le lundi 20 mai 2013, Christian Prim a écrit : is it possible to change the behaviour of \digits to have \cdot as in http://www.pragma-ade.com/**general/magazines/mag-0003.pdfhttp://www.pragma-ade.com/general/magazines/mag-0003.pdfpage 2 (table at the bottom) instead of \times as shown in the latest units-mkiv-document http://www.pragma-ade.com/**general/manuals/units-mkiv.pdfhttp://www.pragma-ade.com/general/manuals/units-mkiv.pdfpages 67? Seems to be hardcoded in phys-dim.mkiv for the moment: l. 173-175 \unexpanded\def\digitspower #1{\times10\phys_digits_**raised{#1}} \unexpanded\def\**digitspowerplus #1{\times10\phys_digits_**raised{\digitsplus#1}} \unexpanded\def\**digitspowerminus #1{\times10\phys_digits_**raised{\digitsminus#1}} ntextgarden.net/) there are several ways we can deal with this: % \def\digitstimessymbol{\**symbol[units][times]} % \definesymbol[units][times][\**times] % \definesymbol[units][times][\**cdots] % \definesymbol[units][times][\**kern.2\emwidth\cdot\kern.2\**emwidth] \def\digitstimessymbol{\times} \def\digitstimessymbol{\cdot} \def\digitstimessymbol{\kern.**2\emwidth\cdot\kern.2\emwidth} \unprotect \unexpanded\def\digitspower #1{\digitstimessymbol10\phys_** digits_raised{#1}} \unexpanded\def\**digitspowerplus #1{\digitstimessymbol10\phys_** digits_raised{\digitsplus#1}} \unexpanded\def\**digitspowerminus #1{\digitstimessymbol10\phys_** digits_raised{\digitsminus#1}} \protect or maybe a key/value in setuptimes .. not sure yet Hans --**--**- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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 http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___
Re: [NTG-context] \digits get \times instead of \cdot before exponent
Now it's perfect! Will this be included in the next version of context? Christian 2013/5/21 Hans Hagen pra...@wxs.nl On 5/21/2013 5:15 PM, Christian Prim wrote: Thanks for the tip Hans, but the kerning in \def\digitstimessymbol{\kern._**_2\emwidth\cdot\kern.2\**emwidth} should not take place in mathmode, only in textmode. Else the space is too big. Don't know how to deal with that. \def\digitstimessymbol{\**mathortext{\cdot}{\kern.2\** emwidth\cdot\kern.2\emwidth}} --**--**- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | voip: 087 875 68 74 | www.pragma-ade.com | 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 http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/**projects/contextrev/http://foundry.supelec.fr/projects/contextrev/ 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://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___