[NTG-context] Re: LuaMetaTeX code

2024-01-19 Thread Henri Menke via ntg-context
On Fri, 2024-01-19 at 13:56 +0530, Shiv Shankar Dayal wrote: > Dear Hans, > > I saw the C code of LuaMetaTeX and I saw a lot of gotos which is not > good > coding practice. These potions of code which have goto should be > refactored. https://xkcd.com/292/ > I am a C programmer, but I know very

[NTG-context] Re: Triaging tikz error: Cannot parse this coordinate

2023-08-09 Thread Henri Menke via ntg-context
ndler for expanding keys before doing assignment to work around exactly these situations: \startscope[shift/.expanded={\p}] No redefinition needed. We could also do \edef or \romannumeral expansion in the shift key in TikZ, but I'm not sure whether that would break someone's code. Cheers, Henri &

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Fri, 2023-01-27 at 11:01 +0100, Hans Hagen via ntg-context wrote: > On 1/27/2023 10:35 AM, Henri Menke via ntg-context wrote: > > > Thanks, this is indeed the workaround that I currently use. > > However, > > the downside is that this has to tokenize the contents of

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Fri, 2023-01-27 at 10:30 +0100, Hans Hagen via ntg-context wrote: > On 1/27/2023 10:13 AM, Henri Menke via ntg-context wrote: > > On Thu, 2023-01-26 at 23:07 +0100, Hans Hagen via ntg-context > > wrote: > > > On 1/26/2023 9:33 PM, Henri Menke via ntg-context w

Re: [NTG-context] protected macro vs protected luacall

2023-01-27 Thread Henri Menke via ntg-context
On Thu, 2023-01-26 at 23:07 +0100, Hans Hagen via ntg-context wrote: > On 1/26/2023 9:33 PM, Henri Menke via ntg-context wrote: > > \directlua{ > >userdata = userdata or {} > >function userdata.test() > > tex.print("\string\\numexpr 17\string\\relax

[NTG-context] protected macro vs protected luacall

2023-01-26 Thread Henri Menke via ntg-context
\test fails with the following error: ! You can't use `luacall 0' after \the. l.21 \the\test Is this asymmetry between luacalls and regular macros intended? Is there a workaround where I can have a luacall that doesn't expand inside of \edef but still expa

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Henri Menke via ntg-context
\def\pgfmath@catcodes{% \catcode`\==12 % \catcode`\,=12 % \catcode`\|=12 % \catcode`\&=12 % \let~\pgfmath@char@quote }}% {\pgfmath@catcodes "} \bye works in Knuth TeX, so it's likely not our fault. Cheers, Henri > > Thanks, > Aditya >

Re: [NTG-context] Containerized ConTeXt

2022-12-14 Thread Henri Menke via ntg-context
The Island of TeX builds Docker images for ConTeXt weekly. https://gitlab.com/islandoftex/images/context registry.gitlab.com/islandoftex/images/context:lmtx Cheers, Henri On Tue, 2022-12-13 at 20:56 -0800, Thangalin via ntg-context wrote: > Hi again, > > I've added the start of

Re: [NTG-context] Microtipography

2022-05-25 Thread Henri Menke via ntg-context
ding tolerant relaxes that a little bit. Cheers, Henri > > Thanks in advance > Tommaso > _ > __ > If your question is of interest to others as well, please add an > entry to the Wiki! > > maillist :

Re: [NTG-context] Syntax highlighting using LMTX

2021-12-02 Thread Henri Menke via ntg-context
s relatively easy. See, for example, scite-context- > lexer-cpp.lua in the distribution, which is based on the CPP lexer in > scite. I wrote an answer here some time ago. https://tex.stackexchange.com/questions/333508/custom-pretty-printer-in-context Cheers, Henri > > Adit

Re: [NTG-context] Does the ConTeXt distro come with a PDFViewer?

2021-10-09 Thread Henri Menke via ntg-context
On Sat, 2021-10-09 at 18:47 +0200, Hans Hagen via ntg-context wrote: > On 10/9/2021 3:07 PM, Ramkumar KB via ntg-context wrote: > > Hello Community, > > > > If my memory serves me correctly, I might have noticed (in one of the > > presentations during the recent ConTeXt meeting) that the distro >

Re: [NTG-context] running tikz

2021-10-01 Thread Henri Menke via ntg-context
On Thu, 2021-09-30 at 14:52 -0400, Aditya Mahajan via ntg-context wrote: > On Thu, 30 Sep 2021, Henri Menke via ntg-context wrote: > > > On Thu, 2021-09-30 at 11:57 +0200, Alain Delmotte via ntg-context > > wrote: > > > Hi! > > > > > > I would li

Re: [NTG-context] running tikz

2021-09-30 Thread Henri Menke via ntg-context
. https://github.com/pgf-tikz/pgf/issues/990 Cheers, Henri > > Thanks, > > Alain > > %% ConTeXt file > > \usemodule[tikz] > \starttext > We are working on > \starttikzpicture > \draw (-1.

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Henri Menke via ntg-context
> random values generated? Someone who knows? https://tex.stackexchange.com/questions/468466/tikz-graphdrawing-differences-between-luatex-versions Cheers, Henri > > dr. Hans van der Meer > > > > On 23 Aug 2021, at 17:13, Hans Hagen via ntg-context < > > ntg-context

Re: [NTG-context] Curiosity about math.random in LuaTeX

2021-08-23 Thread Henri Menke via ntg-context
general it is a really bad idea to depend on the exact sequence of random numbers. As an alternative you can just pregenerate a list of random numbers and copy that to other documents. Cheers, Henri > > Thank you > Thierry > _

Re: [NTG-context] Unnecessary loading of lm-mono

2021-05-26 Thread Henri Menke
\setbox\scratchbox=\hbox{oeps} \writestatus{debug}{After} \starttext Hello world! \stoptext and in the log you will find debug > Before fonts > beware: no fonts are loaded yet, using 'lm mono' in box debug > After s

[NTG-context] Stack size for arguments too small in LMTX

2021-05-25 Thread Henri Menke
eem to be an issue with LuaTeX, so my guess is that token memory size is larger in LuaTeX. Could you please increase the stack size to make this edge case compile again? This issue was originally reported on the pgfplots bugtracker: https://github.com/pgf-tikz/pgfplots/issues/398 Cheers, He

Re: [NTG-context] Running a couple of context statements in a linux bash shell heredocument?

2021-04-01 Thread Henri Menke
This will work, but only if file_that_does_not_exist (possibly with additional file extensions) does not exist: $ cat <<'EOF' | context file_that_does_not_exist \starttext Hello world! \stoptext EOF Cheers, Henri > If needed, I will deliver a - not yet runnable - minimal example > he

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Henri Menke
On Mon, 2021-01-25 at 16:42 +0100, Henning Hraban Ramm wrote: > Hi, > > did anyone succeed in externalizing TikZ graphics with ConTeXt? The external library is LaTeX-only and that unfortunately won't change because it heavily relies on implementation detail of LaTeX's output routine. > It’s

[NTG-context] Diagnositics in LuaTeX

2020-12-28 Thread Henri Menke
!`. There are probably more silent TeX errors that I currently don't have in mind. Are these things possible in LuaTeX right now or could they be made possible in the future? Kind regards, Henri ___ If your question

[NTG-context] LuaMetaTeX: \hbox dir vs. direction

2020-12-17 Thread Henri Menke
Dear Hans, In LuaMetaTeX the directional syntax for boxes \hbox dir TLT {...} is no longer supported. Currently this is necessary for PGF because certain things like shading have to always be typeset in TLT. Is there a simple workaround? Cheers, Henri See also: https://github.com/pgf

Re: [NTG-context] Why is the textarea not centered by default?

2020-11-05 Thread Henri Menke
On Thu, 2020-11-05 at 11:28 +0100, Sylvain Hubert wrote: > Dear List, > > \starttext \showframe \showsetups \stoptext > > This minimal example without further configuration shows that the default > value for backspace, textwidth and paperwidth are 2.5cm, 15cm, 21cm resp., > which means that

Re: [NTG-context] Adding built-in support for Serbian language

2020-10-30 Thread Henri Menke
ator package: https://gitlab.com/phgsng/transliterator https://modules.contextgarden.net/cgi-bin/module.cgi/ruid=199735311/action=view/id=50 Cheers, Henri ___ If your question is of interest to others as well, please

Re: [NTG-context] Join Foundation to Support ConTeXt for the next 50 Years

2020-10-18 Thread Henri Menke
ctonic is just a thin wrapper around XeTeX. Cheers, Henri > This is just some ideas which I thought might be worthwhile considering. > > Suminda > ___ > If your question is of interest to others as wel

Re: [NTG-context] color problem

2020-10-02 Thread Henri Menke
e example below. > > Is there something wrong with the section settings? How do I get all the > colors right without using a paragraph in between? From experience, this usually works: \prependvalue{starttikzpicture}{\dontleavehmode\forcecolorhack} Cheers, Henri > > \setuphead[chapter] >

[NTG-context] [BUG] \registerexternalfigure doesn't work

2020-08-19 Thread Henri Menke
? \externalfigure[#1][#2][#3]% or \externalfigure[#1][#2,\c!display=,\c!mask=,\c!object=\v!no]% \stopnointerference} I guess this is not intentional and was left over at some point. Could you please fix this? Cheers, Henri

Re: [NTG-context] How to set pdfminorversion in LMTX?

2020-08-10 Thread Henri Menke
On 10/08/20, 01:20, Aditya Mahajan wrote: > Hi, > > How do I set pdfminorversion in LTMX. Both \pdfminorversion and \pdfvariable > minorversion fail with undefined control sequence. Does lpdf.setversion(major, minor) work in LMTX? Cheers, Henri > >

Re: [NTG-context] Checking existence of a macro (control sequence) by Lua

2020-05-28 Thread Henri Menke
local str = { [true] = "defined", [false] = "undefined" } for _, macro in ipairs({ "MyMacro", "MyMac", "bf", "dummy" }) do context(macro .. " is " .. str[token.is_defined(macro)] .. "\\par") end \stopluacode \sto

Re: [NTG-context] PGFPlots does not work with LMTX

2020-04-24 Thread Henri Menke
That has already been reported on the pgfplots bugtracker https://github.com/pgf-tikz/pgfplots/issues/350 and here on the mailing list https://mailman.ntg.nl/pipermail/ntg-context/2020/097514.html Here I quote Aditya's workaround: I have no clue what pgfplotsbinary.data.code.tex does, but

Re: [NTG-context] Cannot build plain format

2020-04-16 Thread Henri Menke
On 16/04/20, 12:35, Hans Hagen wrote: > On 4/16/2020 10:51 AM, Henri Menke wrote: > > Dear list, > > > > I'm trying to build the plain format but it fails with > > > > $ mtxrun --script plain --make > > [...] > > ! I can't find file `lu

[NTG-context] Cannot build plain format

2020-04-16 Thread Henri Menke
ext/luatex/luatex-plain.tex What am I doing wrong? Also another question: Does LMTX come with a plain format? Cheers, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki! mail

Re: [NTG-context] Why does this example from the MetaFun manual not work?

2020-04-09 Thread Henri Menke
It would be really great if you'd stop wasting people's time by not crossposting. Cheers, Henri On 09/04/20, 09:04, Gerben Wierda wrote: > Nobody? > > > On 8 Apr 2020, at 12:20, Gerben Wierda wrote: > > > > I would like to use the result of transparent() straight in

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Henri Menke
MINIMAL working example... Cheers, Henri On 08/04/20, 11:52, Fabrice Couvreur wrote: > Hi Henri, > This file works well with context but does not work with lmtx. > > \usemodule[pgfplots] > \usemodule[pgfpltstable] > \pgfplotsset{compat=newest} > \starttext > \start

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Henri Menke
Hi Fabrice, Could you provide a MWE, or maybe even open an issue on the bugtracker? https://github.com/pgf-tikz/pgfplots/issues Cheers, Henri On 07/04/20, 14:22, Fabrice Couvreur wrote: > Hi Henri, > Thank you for answering me. We're entering an area that I don't really know. I > rep

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-06 Thread Henri Menke
, Henri On 06/04/20, 22:23, Fabrice Couvreur wrote: > Hi, > Still with the idea of using lmtx, I get a compilation error when I use > pgfplots. > Thank you. > Fabrice > > open source > level 9, order 92, name 'pgfp

Re: [NTG-context] Puzzle (for me)

2020-03-31 Thread Henri Menke
Lua and thus mess up METAPOST. > > So, what can I do? To get a double quote in a MetaPost string like this "embedded " double quote" ^ |___ oeps use the ditto variable which expands to a string containing t

Re: [NTG-context] Ignored spacings are ignored

2020-03-18 Thread Henri Menke
. Kind regards, Henri On 17/03/20, 16:52, Hans Hagen wrote: > Hi, > > I forgot to add an example (the \Umathspacingmode will be in the next lmtx > upload, but I'm not sure when that is

[NTG-context] Ignored spacings are ignored

2020-03-17 Thread Henri Menke
/questions/532758 Kind regards, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http

Re: [NTG-context] Only-black emojis in LMTX

2020-03-10 Thread Henri Menke
l/manuals/fonts-mkiv.pdf If you want more help, you have to provide a MWE. Cheers, Henri > > Thanks, > Alejo > > > ___ > If your question is of interest to others as well, please add an entry

Re: [NTG-context] Install Tikz in LMTX tree

2020-03-10 Thread Henri Menke
On 10/03/20, 10:01, Hans Hagen wrote: > On 3/9/2020 10:59 PM, Jorge Manuel wrote: > > > \pgfutil@packageerror #1#2#3->\errhelp {#3}\errmessage {Package #1 > > Error: #2} > > l.11   \pgfutil@packageerror{PGF}{PGF requires etex in extended mode}{} > >                                                

Re: [NTG-context] Second derivative ''

2020-03-04 Thread Henri Menke
Looks like the ligature is broken. \starttext \startformula \left(f\right)'' = f'' \stopformula \startformula \left(f\right)″ = f″ \stopformula \stoptext On 3/5/20 11:44 AM, Weber, Matthias wrote: > Dear List, > > \starttext > \startformula > \left(f\right)'' = f'' > \stopformula > \stoptext

Re: [NTG-context] Third party modules in LMTX

2020-02-13 Thread Henri Menke
On 2/12/20 5:10 PM, jdh wrote: > > > I would like to use Wolfgang's t-letter module, but need some help. > > I found the following instructions: > > "The ConTeXt suite only comes with Taco's t-bib module. If you want to > install a new module, say Wolfgang's t-letter module, you can use > >

Re: [NTG-context] Global \setup has no effect while ad-hoc setting does

2020-02-13 Thread Henri Menke
On 2/14/20 6:30 PM, Wolfgang Schuster wrote: > On Fri, 14 Feb 2020 02:21:03 +0100 > Exp wrote: > >> Dear list, >> >> I want to prevent an overfull hbox caused by an inline typing by making the >> alignment very tolerant, but it didn't work: >> >> ``` >> \setupframedtext[ >> width=broad, >>

Re: [NTG-context] Metapost and TikZ color code equivalent

2020-02-13 Thread Henri Menke
On 2/14/20 10:45 AM, Fabrice Couvreur wrote: > Hi, > How to have the color defined by {yellow!60!black} with Metapost ? \usemodule[tikz] \starttext \startMPcode fill fullsquare scaled 1cm withcolor (.6yellow + black) ; \stopMPcode \starttikzpicture \fill[yellow!60!black] (0,0) rectangle (1,1);

Re: [NTG-context] beta vs current

2020-01-30 Thread Henri Menke
build it and I don't think they are going to just pull binaries into the tree. They are also very cautious with licensing, so unless something is truly open source they won't pull it (e.g. https://ctan.org/pkg/pgf-pie). Cheers, Henri > Aditya > ___

Re: [NTG-context] removing extra margins

2020-01-28 Thread Henri Menke
On 1/29/20 10:09 AM, Pablo Rodriguez wrote: > Dear list, > > I need to add a PDF page, but removing extra margins that it contains. > > A sample would be: > > \setupexternalfigures[location=default] > \starttext > \externalfigure[cow.pdf] > \stoptext > > How could I crop 2ex

Re: [NTG-context] Historic ligatures with lucidaot

2020-01-16 Thread Henri Menke
Positioning mkmkMark to Mark Positioning onumOldstyle Figures smcpSmall Capitals Cheers, Henri > > Best regards: OK > ___ > If your question is of interest to others as well, please add an ent

Re: [NTG-context] BUG: module loading is broken

2020-01-12 Thread Henri Menke
= name -commands.uselibrary { +resolvers.uselibrary { name = name, patterns = patterns[environment], action = action, On 1/13/20 2:19 PM, Henri Menke wrote: > Dear Hans, > > Recent updates to ConTeXt broke my CV. This MWE > > \u

[NTG-context] BUG: module loading is broken

2020-01-12 Thread Henri Menke
/opt/context/tex/texmf-cache mtxrun --generate context --make context test.mkvi Same for LMTX. Cheers, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg

Re: [NTG-context] LMTX for alpine linux (musl)

2020-01-02 Thread Henri Menke
ld want to support? Regular LuaTeX can be built on Alpine 3.1 or newer. See also https://github.com/TeX-Live/luatex/blob/trunk/.travis.yml Cheers, Henri > > Mojca > ___ If your question is of

Re: [NTG-context] Entity to receive donations?

2019-12-26 Thread Henri Menke
On 12/27/19 4:49 PM, Jon Wong wrote: Is there a formal entity for ConTeXt to receive donations? What about receiving earnings? https://group.contextgarden.net/payment.shtml ___ If your question is of interest to

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 3:33 PM, Henri Menke wrote: On 12/23/19 2:30 PM, Rik Kabel wrote: On 12/22/2019 17:40, mf wrote: Il 22/12/19 22:19, Rik Kabel ha scritto: List, Is there a way in ConTeXt to adjust the left-side kern for one character? The cap J in the font I am using is being set too close

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 2:30 PM, Rik Kabel wrote: On 12/22/2019 17:40, mf wrote: Il 22/12/19 22:19, Rik Kabel ha scritto: List, Is there a way in ConTeXt to adjust the left-side kern for one character? The cap J in the font I am using is being set too close to the preceding characters and I would rather

Re: [NTG-context] Adjust kern for one character

2019-12-22 Thread Henri Menke
On 12/23/19 10:19 AM, Rik Kabel wrote: List, Is there a way in ConTeXt to adjust the left-side kern for one character? No, kerns always come in pairs. The cap J in the font I am using is being set too close to the preceding characters and I would rather not insert a thinspace before each.

Re: [NTG-context] Bug: Segmentation fault

2019-12-10 Thread Henri Menke
On 12/11/19 12:23 PM, luigi scarso wrote: On Wed, Dec 11, 2019 at 12:10 AM Hans Hagen wrote: On 12/11/2019 12:03 AM, luigi scarso wrote: On Tue, Dec 10, 2019 at 9:27 PM Henri Menke mailto:henrime...@gmail.com>> wrote: Dear devs, The example below crashes

[NTG-context] Bug: Segmentation fault

2019-12-10 Thread Henri Menke
Dear devs, The example below crashes LuaTeX with a segmentation fault. It is reproducible with LuaTeX 1.10.1 7143 and LuaTeX 1.11.2 7226. To this end I built 7226 from source with --debugopt to get a backtrace, which can be found below as well. Cheers, Henri --- \directlua{token.set_macro

Re: [NTG-context] Eofill extension (Metafun)

2019-12-08 Thread Henri Menke
On 12/9/19 10:02 AM, Fabrice Couvreur wrote: Hello, Is it possible to use the eofill extension in this code ? I tried without success. Thank you. No, eofill is basically just a frontend for the PDF primitive eofill, which works on a single connected path that intersects itself. If that wasn't

Re: [NTG-context] Using ConTeXt with LuaTeX variants

2019-12-04 Thread Henri Menke
On 12/5/19 2:10 PM, Jairo A. del Rio wrote: I want to know if it's possible use HarfTeX/LuaHBTeX with ConTeXt (MKIV), mainly for what can be done with them (the "mode=harf" feature and Lua language features). Although this is pretty easy with LaTeX: \usepackage{harfload}

Re: [NTG-context] Bug: \adjustspacing=1 does not disable expansion

2019-12-04 Thread Henri Menke
routines have broken the paragraph into lines. In this case, line breaks are identical to standard TeX behavior. So maybe just copy this paragraph to the LuaTeX manual. On 12/5/19 1:34 PM, Henri Menke wrote: Possible patch (can be directly used with `git apply') diff --git a/source/texk

Re: [NTG-context] Bug: \adjustspacing=1 does not disable expansion

2019-12-04 Thread Henri Menke
_ratio, paragraph_dir); } else { just_box = hpack(q, cur_width, exactly, paragraph_dir); On 12/5/19 10:04 AM, Henri Menke wrote: Dear devs, The \adjustspacing register is described in the LuaTeX manual as follows: When \adjustspacing has value 2, hz optimi

[NTG-context] Bug: \adjustspacing=1 does not disable expansion

2019-12-04 Thread Henri Menke
linebreak.c but add_to_widths looks innocuous and properly checks the adjust_spacing parameter. Cheers, Henri --- %\input luaotfload.sty \directlua{ fonts.expansions.setups.default.stretch = 2000 fonts.expansions.setups.default.shrink = 2000 } \adjustspacing=1 \font\1="file:lmro

Re: [NTG-context] LuaTeX incompatible with Lua

2019-11-20 Thread Henri Menke
Below I include a suggestion on how to do this sort of version agnostic. Cheers, Henri Live example on Wandbox: https://wandbox.org/permlink/jEn9kNnPB0t5rwjP --- #include #include #include #include #include static int (*lua_os_execute)(lua_State *L) = NULL; static int os_execute

[NTG-context] LuaTeX incompatible with Lua

2019-11-20 Thread Henri Menke
lso retain that. Cheers, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pra

Re: [NTG-context] layers and \llap

2019-11-19 Thread Henri Menke
all the text. > > Everything works fine if the layer with \llap is placed first. > > I guess this might be a bug. Works for me on both Evince and Foxit Reader. I can't test Adobe because I'm on Linux. Try also \dontleavehmode\llap{\ConTeXt} because \llap by itself does not start a par

Re: [NTG-context] developer not verified error

2019-11-18 Thread Henri Menke
boat/tb40-2/tb125koch-harden.pdf > I'm curious if that will work. I don't yet dare to upgrade to Catalina > (in some ways the OS is worse with each new version). I don't use macOS myself, but it seems that the quality of the latest release is absolutely abysmal. https://tyle

Re: [NTG-context] maths simplifying fractions

2019-11-13 Thread Henri Menke
On 11/14/19 12:28 AM, Martin Althoff wrote: > Hi all, I am writing some maths exercises that include simplifying fractions. > For that > reason I would like to cross out some numbers. Unfortunately overstrike > doesn't do the > trick, eg with a 4 the overstrike is practically invisible. > > Is

Re: [NTG-context] Number format with lua

2019-11-09 Thread Henri Menke
ll() context(letter) context.stopxcell() > end > context.stopxrow() > > context.startxrow() > context.startxcell() context("2") context.stopxcell() > context.startxcell({"width=2cm"}) context("Prix (kg)") context.stopxcell() > for i=0,8 do > context.startxcell()

[NTG-context] Where is tex/texmf-context?

2019-10-16 Thread Henri Menke
for the install script broken? Cheers, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context

Re: [NTG-context] Column(set)s & overlapping lines

2019-10-01 Thread Henri Menke
This has been asked many times. Columnsets need grid. \setuplayout[grid=yes] Cheers, Henri On 10/1/19 7:16 PM, Procházka Lukáš Ing. wrote: > Hello, > > I have the following code: > > > \definecolumnset[example][n=3,balancing=no] > \defineco

Re: [NTG-context] circuitikz meters

2019-09-30 Thread Henri Menke
ext \starttikzpicture \draw (0,0)to[ammeter, t=A, i=$i$] ++(3,0); \draw (0,4) to[rmeter, t=V, v>=$v$] ++(3,0) ; \draw (0,2) to[voltmeter, l=$U$] (++3,2); \stoptikzpicture \stoptext Cheers, Henri On 10/1/19 5:07 AM, Martin Althoff wrote: > Hello ... > > I am drawing some simple circuits for an

[NTG-context] SSL certificate expired

2019-09-30 Thread Henri Menke
Dear list, $ curl https://mailman.ntg.nl/ curl: (60) SSL certificate problem: certificate has expired Cheers, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki

Re: [NTG-context] This mailing list is not DKIM (DMARC) compatible

2019-09-16 Thread Henri Menke
I think this is better reported to Mailman. I'm not sure to what extent list administrators have control over DKIM settings. https://gitlab.com/groups/mailman/-/issues On 9/17/19 1:34 AM, Gerben Wierda wrote: > In addition: Lists should keep the From address, the Subject, and the Message  >

[NTG-context] Sidefloats inside framed

2019-09-14 Thread Henri Menke
Dear list, Is there a way to get sidefloats working inside a frame? I'm currently designing a conference poster and I'm manually placing blocks using \setlayerframed where inside those blocks I'd like to have sidefloats. MWE is below. Cheers, Henri --- \starttext \startplacefigure[location

Re: [NTG-context] context (lmtx) segfaults on x86_64 linux

2019-09-10 Thread Henri Menke
same issue and completely wiping the texmf-cache fixes it. > > @Vladimir: If you are using the luametatex package from AUR, then the > texmf-cache is located at $HOME/.cache/luametatex. I'm receiving the

Re: [NTG-context] Pb with tikz, \pdfsavepos and friends

2019-09-10 Thread Henri Menke
es it correctly with lualatex. >> So I would suggest a bug report at https://github.com/pgf-tikz/pgf. > I just assume that Henri deals with it in due time. For some reason TikZ tries to load the pdftex driver when used in ConTeXt in

Re: [NTG-context] Cross references to column numbers

2019-09-09 Thread Henri Menke
Bump On 9/3/19 4:46 AM, Oliver von Criegern wrote: > Dear list members, > > is there any way to get a cross reference to a column in a two column layout? > > At least, I would need to get some value that tells me whether the target is > in the left or in the right column. How to achieve this?

Re: [NTG-context] coloring the logfile

2019-08-29 Thread Henri Menke
On 29/08/19 5:35 PM, Henning Hraban Ramm wrote: > >> Am 2019-08-28 um 21:54 schrieb Hans van der Meer : >> >> Is it possible to force lines written in the log with \writestatus to have >> a specific color? The log can be very substantial and it would be nice to >> have some lines brought to

Re: [NTG-context] The odd semantics of \begincsname

2019-08-17 Thread Henri Menke
On 17/08/19 8:48 PM, Hans Hagen wrote: > On 8/17/2019 9:19 AM, Henri Menke wrote: >> Dear list, >> >> According to the LuaTeX documentation: >> >> “The \begincsname primitive is like \csname but doesn’t create a >> relaxed equivalent when there is

[NTG-context] The odd semantics of \begincsname

2019-08-17 Thread Henri Menke
or not? Cheers, Henri ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl

Re: [NTG-context] metafun 2

2019-08-14 Thread Henri Menke
Dear Hans, I just wanted to ask, will LMTX and MetaFun remain valid implementations of TeX and MetaPost or do we have to expect incompatibilities? Cheers, Henri On 14/08/19 9:54 PM, Hans Hagen wrote: > Hi, > > In the process of providing an additional (more abstract) interface t

Re: [NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
On 8/11/19 10:51 AM, Hans Hagen wrote: > I'll do this (lmtx): > > metapost> use 'textext(.)' instead of 'btex . etex' > metapost> rewrapping btex ... etex at the outer level [[dummy]] > metapost> rewrapping btex ... etex at the outer level [["foo"]] > metapost

[NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
/questions/503773/strange-behaviour-of-the-btex-etex-construct Cheers, Henri --- \starttext \startMPpage def drawtest(expr i) = %i is not used here draw btex dummy etex shifted (0,0); draw btex foo etex shifted (1.5cm,0); draw btex bar etex shifted (3cm,0); enddef; drawtest(5

[NTG-context] Bug in LMTX: Color is lost after linebreak

2019-08-07 Thread Henri Menke
: 2019.07.24 11:31 mtx-context | main context file: /opt/context-lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkxl mtx-context | current version: 2019.08.02 19:50 Cheers, Henri --- \starttext \startstandardmakeup[align=middle] \tfd\setupinterlinespace \color[middlegray]{% Why

Re: [NTG-context] font switching commands

2019-07-18 Thread Henri Menke
so on (or \bfa for bold etc.). Generally, you want to use them very sparingly and only in setup code. Your document content should not contain any explicit size switches. Cheers, Henri > Is the above explanation obsolete or is additional setup necessary? > I'd like to know what is the real

Re: [NTG-context] Side figure bug in mkiv?

2019-07-18 Thread Henri Menke
On 19/07/19 9:36 AM, Duncan Hothersall wrote: > On Thu, 18 Jul 2019 at 22:30, Henri Menke wrote: > >> >> Your formatting obscures the problem because compiling this example >> works fine. I think you are starting a new paragraph before {\bf ...}. >>

Re: [NTG-context] Side figure bug in mkiv?

2019-07-18 Thread Henri Menke
t's worth, the MKIV way to switch to bold face is \bold{text} instead of {\bf text} but it also doesn't fix your problem because neither of the two start a new paragraph before the first letter and therefore \the\everypar is still inside a

Re: [NTG-context] Strange error updatng LMTX

2019-07-10 Thread Henri Menke
\c!compressdistance is defined in strc-lnt.mkvi which is loaded *after* strc-flt.mkvi (where it is used) in context.mkiv. This has to be fixed by Hans. Cheers, Henri On 11/07/19 2:45 PM, Andres Conrado wrote: > When updating my LMTX installation today, I got this: > > tex error

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
™, but after all ConTeXt is not LaTeX. Cheers, Henri On 4/07/19 5:18 PM, Atsuhito Kohda wrote: > Hi Henri, > Thanks for your suggestions, they are very instructive. > However, my request is not a smart way of displaying matrices > but to know why \bmatrix and \vmatrix are not provid

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > I've used LaTeX quite a long time but recently I begin to use ConTeXt too. > So I'm very sorry if the following is well-known issue. > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > (ma-cb-en.pdf). And I notice it is

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
On 3/07/19 6:00 PM, Atsuhito Kohda wrote: > I've used LaTeX quite a long time but recently I begin to use ConTeXt too. > So I'm very sorry if the following is well-known issue. > > I find an example of \pmatrix in p.21 of "ConTeXt Mark IV an excursion" > (ma-cb-en.pdf). And I notice it is

Re: [NTG-context] [OT] rasperry 4

2019-06-25 Thread Henri Menke
On 25/06/2019, 09:15:43, luigi scarso wrote: > On Tue, Jun 25, 2019 at 12:15 AM Henri Menke wrote: > > > On 25/06/19 12:30 AM, luigi scarso wrote: > > > just seen > > > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/ > > > > > > I

Re: [NTG-context] [OT] rasperry 4

2019-06-24 Thread Henri Menke
On 25/06/19 12:30 AM, luigi scarso wrote: > just seen > https://www.raspberrypi.org/products/raspberry-pi-4-model-b/ > > I would like to know your impressions Does it still need proprietary binary blobs in the kernel? Probably yes, so it is as useless as all the models before because it can

Re: [NTG-context] Old version of luatex for alpine linux (musl)

2019-06-08 Thread Henri Menke
ion was OK, but an error occurred >> while compiling the file: >> > >> > Eeeem, my fault, sorry. I did not update LuaTeX for musl as it comes >> > from another source >> >> Can you please try again if it works now? >> >> Thanks to Henr

Re: [NTG-context] Remove italics from bibliography list

2019-05-17 Thread Henri Menke
You asked the same question on TeX.SX but also without MWE, so I have no idea what is going on. The MWE below works. Cheers, Henri --- \usebtxdefinitions[apa] \usebtxdataset[default][samples.bib] \definebtxrendering[default][apa] \setupbtx [apa:list:title:book] [style=] \starttext

Re: [NTG-context] Styles

2019-05-16 Thread Henri Menke
On 5/16/19 9:16 PM, Dmitry Starostin wrote: > 1. If I need square brackets in apa instead of parentheses, is there an > easy switch? For example \setupbtx [apa:cite:authornum] [left=,right=] > > 2. There was a suggestion to write one's own style. But where can one look > in the standalone

Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-16 Thread Henri Menke
a_k$ \[ \sum\nolimits_{k=1}^{n} a_k \] \end{document} Cheers, Henri > -Eric > > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist :

Re: [NTG-context] Inline math with \int and \sum exhibits nonstandard behaviour

2019-05-12 Thread Henri Menke
}_^{m} where you are using \sum\nolimits_{k=1}^{n} Cheers, Henri On 11/05/19 7:42 AM, Eric Scmidt wrote: > Hello everyone! > So, I have some inline math in my document,and it's looking too big or > "airy"; a > bit like when \nolimits is specified in display mode b

Re: [NTG-context] adjusting tikz pictures

2019-04-25 Thread Henri Menke
On 26/04/19 1:29 AM, Mojca Miklavec wrote: > On Wed, 24 Apr 2019 at 12:51, Gour wrote: >> >> Hello, >> >> I believe that using GeoGebra for drawing, exporting to TikZ is the most >> approachable method for me to be able to create mathematic-related >> material like exams for the children in the

[NTG-context] Formula number misplaced

2019-04-23 Thread Henri Menke
and lmtx. It can be "fixed", however, by replacing \start...\stopTEXpage by \start...\stoptext, so this might not represent the most generic incarnation. Cheers, Henri --- \startTEXpage \samplefile{ward} Thus \startplaceformula \startformula \int_a^b f(x) \, \diff x = F(b) - F(a) . \s

Re: [NTG-context] Strange behavior with \usetikzlibrary [matrix]

2019-04-18 Thread Henri Menke
On 4/18/19 10:22 PM, Fabrice Couvreur wrote: > Hi Henry, > This has no effect, the problem is the same. ConTeXt ver: 2019.04.16 08:54 MKIV beta PDF is attached. > Fabrice > > Le jeu. 18 avr. 2019 à 12:17, Henri Menke a écrit : > >> In ConTeXt the ampersand is no

  1   2   3   4   5   >