Re: [NTG-context] graphics

2018-12-12 Thread Henri Menke
On 13/12/18 10:39 AM, Alan Braslau wrote: > On Thu, 13 Dec 2018 10:03:40 +1300 > Henri Menke wrote: > >> Sorry, my mistake, the Bessel functions are not a GCC extension but >> POSIX standard functions. >> http://pubs.opengroup.org/onlinepubs/9699919799/functions/j

Re: [NTG-context] graphics

2018-12-13 Thread Henri Menke
On 14/12/18 5:07 AM, luigi scarso wrote: > On Thu, Dec 13, 2018 at 4:45 PM Alan Braslau > wrote: > >> Of course, it is: >> >> double jn(int n,double x); >> >> and >> >> vardef jn(expr n, x) = scantokens(lua("mp.quoted( ffi.C.jn(" & decimal n & >> "," & decimal x & "))")) enddef ; >> >> Alan >> >

[NTG-context] unknown file 'grph-img.lua'

2018-12-17 Thread Henri Menke
Dear devs, In the latest beta building the format fails. resolvers > lua > unknown file 'grph-img.lua' This files seems to have been wrongfully removed. If I restore the file from the previous beta, everything works fine. Please fix! Cheers, Henri __

Re: [NTG-context] columnset vs columns

2018-12-22 Thread Henri Menke
On 23/12/18 7:59 PM, Thangalin wrote: > Minimal example: > > \definepapersize[PaperSize][ > width=400mm, > height=100mm, > ] > > \setuppapersize[PaperSize] \setuplayout[grid=yes] > > \starttext > \startcolumnset[n=3] > \dorecurse{3}{\input knuth} > \stopcolumnset > \stoptext > >

Re: [NTG-context] \quad confusion

2018-12-27 Thread Henri Menke
On 12/27/18 10:43 PM, Floris van Manen wrote: > When trying to typeset, luatex kept complaining about incorrect parameters > for ‘minus’. > There is no \minus command in the source however. > So it turns out that the combination of using \quad with ‘plus’, 'minus', and > some more make the error

Re: [NTG-context] \quad confusion

2018-12-27 Thread Henri Menke
On 12/27/18 11:08 PM, Henri Menke wrote: > On 12/27/18 10:43 PM, Floris van Manen wrote: >> When trying to typeset, luatex kept complaining about incorrect parameters >> for ‘minus’. >> There is no \minus command in the source however. >> So it turns out that the comb

Re: [NTG-context] ! Declared variable conflicts with previous vardef [Metapost]

2019-01-02 Thread Henri Menke
z is a MetaPost intrinsic, something along the lines of vardef z@#=(x@#,y@#) enddef; so you can't use the same name for a pair. Actually you can simply delete the declaration pair z[]; from your file and it will work as intended. If you insist on using your own declaration of z, then y

Re: [NTG-context] Get list of all buffer names from lua

2019-01-07 Thread Henri Menke
On 8/01/19 1:37 PM, Stanislav Sokolenko wrote: > Dear list, > > As the subject line states, I am looking for a means of retrieving a > table of all saved buffer names from lua. A MNWE would looks like: It's not so easy because ConTeXt stores the buffers in a local variable `cache` which is an upv

Re: [NTG-context] Get list of all buffer names from lua

2019-01-07 Thread Henri Menke
On 8/01/19 2:29 PM, Stanislav Sokolenko wrote: > That's perfect, thank you! I did see the cache variable in buff-ini.lua > but didn't realize it was being used as an upvalue in a closure. Is > there a specific reason for using the --debug flag rather than just > loading the debug module directly in

Re: [NTG-context] XML and math

2019-01-10 Thread Henri Menke
On 11/01/19 10:26 AM, Aditya Mahajan wrote: > Hi, > > I have an XML file (which is generated via a program that I have no > control over), which contains elements as follows: > > >     >    height="15px" src="Lab01_eq10401623798909303081.png" width="95px"/> >  

Re: [NTG-context] Processing XML file inside a zip file

2019-01-10 Thread Henri Menke
On 11/01/19 4:42 PM, Aditya Mahajan wrote: > Hi, > > Is it possible to process an XML file inside a zip file without unzipping? > > In particular, I have a program that generates zip files which look like > this: > > The file `filename.zip` contains: > - filename.xml - file_hash1.png > - file_ha

Re: [NTG-context] tikz pgfplots library problem

2019-01-15 Thread Henri Menke
On 1/16/19 9:05 AM, Susanne G. Loeber wrote: > Dear Reader, > > I am creating an image using TikZ PGFplots. When I add > \usetikzlibrary[datavisualization] I get an error. Known bug. Will be fixed in the next release. https://sourceforge.net/p/pgf/bugs/355/ > > A simple example to illustrate

[NTG-context] LuaTeX manual is broken

2019-01-18 Thread Henri Menke
Dear devs, The LuaTeX manual hosted at http://www.pragma-ade.nl/general/manuals/luatex.pdf is broken. All the pages are offset in all the viewers I tested. I tried: - Evince 3.28.4 (uses cairo 1.15.10) - PDF.js 2.0.943 - Foxit 2.4.4.0911 - muPDF 1.12.0 Please fix. Cheers, Henri __

[NTG-context] Minion Pro confuses italic correction

2019-01-20 Thread Henri Menke
Dear list, The Minion Pro font, as distributed with Adobe Reader, confuses the ConTeXt italic correction. The MWE below will fail with luatex warning > node filter: error: ...ext/tex/texmf-context/tex/context/base/mkiv/typo-itc.lua:130: attempt to compare nil with number It's probably the font

[NTG-context] textext with plain MetaFun

2019-01-20 Thread Henri Menke
Dear list, When I process the short MetaFun example beginfig(1) draw textext("MetaFun") ; endfig; end with plain MetaFun, i.e. mpost '&metafun' test.mp the resulting file only contains “unknown”. How can I get the expected output? Cheers, Henri __

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Henri Menke
On 1/21/19 9:29 PM, Hans Hagen wrote: > On 1/21/2019 8:57 AM, Henri Menke wrote: >> Dear list, >> >> When I process the short MetaFun example >> >> beginfig(1) >> draw textext("MetaFun") ; >> endfig; >> end >&

Re: [NTG-context] textext with plain MetaFun

2019-01-21 Thread Henri Menke
On 1/21/19 10:40 PM, luigi scarso wrote: > On Mon, Jan 21, 2019 at 8:57 AM Henri Menke wrote: > >> Dear list, >> >> When I process the short MetaFun example >> >> beginfig(1) >> draw textext("MetaFun") ; >> endfig; >>

Re: [NTG-context] Command \hyphenatedurl{} doesn't work

2019-01-24 Thread Henri Menke
On 25/01/19 10:56 AM, Lars wrote: > Hi there, > > the \hyphenatedurl{} command doesn't seem to work. Only the first line > of the link is clickable and only the first line is being pasted into > the browser, resulting in a 404. I tested Sumatra and Adobe. MWE: \hyphenatedurl does not create a lin

Re: [NTG-context] Color a column (xtable, lua)

2019-01-26 Thread Henri Menke
On 1/27/19 12:08 PM, Fabrice Couvreur wrote: > Hi, > How to color the first column as I did for the first line ? Stolen from Wolfgang's answer on TeX.SX. https://tex.stackexchange.com/a/464771 \definecolor[fondpaille][c=0,m=0,y=0.2,k=0] \startuseMPgraphic {tablebackground} fill OverlayBox wit

Re: [NTG-context] Color a column (xtable, lua)

2019-01-26 Thread Henri Menke
On 1/27/19 12:26 PM, Henri Menke wrote: > On 1/27/19 12:08 PM, Fabrice Couvreur wrote: >> Hi, >> How to color the first column as I did for the first line ? > > Stolen from Wolfgang's answer on TeX.SX. > https://tex.stackexchange.com/a/464771 > You could also ev

[NTG-context] \setbreakpoints[compound] inserts spurious hyphen

2019-01-28 Thread Henri Menke
Dear list, When \setbreakpoints is set to the method compound, it inserts a spurious hyphen on the next line, see MWE below. This was falsely reported as an issue with the btx system on TeX.SX. https://tex.stackexchange.com/q/472041 Cheers, Henri --- \setupbodyfont[palatino,14pt] \setbreakpoin

Re: [NTG-context] New logo proposal

2019-01-31 Thread Henri Menke
Dear Paul, Personally I really like your logo design, but there is one thing that bothers me a lot, which is the non-free font. Could it perhaps be replaced by a free font, e.g. Fetamont? https://www.ctan.org/pkg/fetamont Cheers, Henri On 29/01/19 12:18 PM, Paul Schalck wrote: > Dear ConTeXt us

[NTG-context] Restarting with different engine fails

2019-02-01 Thread Henri Menke
Dear list, ConTeXt allows to select the engine in the preamble with a “magic comment”. The preamble is parsed and the engine restarted with new options. The following MWE fails in the latest beta % engine=luajittex \starttext Fail \stoptext with the error message texmf-context/scripts/context

Re: [NTG-context] Show the letters of the alphabet with a loop (Metapost)

2019-02-02 Thread Henri Menke
On 2/2/19 10:47 PM, Fabrice Couvreur wrote: > The idea is to display the first 25 letters of the alphabet. The code below > shows the letter a to show what I want to do. > Thank you. > Fabrice Use char and ASCII. \starttext \startMPcode for i=0 upto 3 : for j=0 upto 3 : draw un

Re: [NTG-context] Show the letters of the alphabet with a loop (Metapost)

2019-02-02 Thread Henri Menke
ndfor ; endfor ; \stopMPcode \stoptext > Thank you. > Fabrice > > Le sam. 2 févr. 2019 à 11:16, Henri Menke a écrit : > >> On 2/2/19 10:47 PM, Fabrice Couvreur wrote: >> > The idea is to display the first 25 letters of the alphabet. The code >> below >> >

Re: [NTG-context] Show the letters of the alphabet with a loop (Metapost)

2019-02-03 Thread Henri Menke
withcolor white randomized (1,1,1) ; endfor ; endfor ; \stopMPcode \stoptext > Thank you. > Fabrice > > Le dim. 3 févr. 2019 à 10:12, Fabrice Couvreur > a écrit : > >> Hi Henry >> Thank you for everything. >> Fabrice >> >> Le sam. 2 fév

[NTG-context] How to query fonts.handlers

2019-02-05 Thread Henri Menke
-- P.S.: I have posted the same question on the LuaTeX list, but with a different MWE. Forwarded Message Subject: How to query fonts.handlers Date: Mon, 4 Feb 2019 15:00:12 +1300 From: Henri Menke To: LuaTeX discussion. Dear list, I am trying to access extra kerning that I

Re: [NTG-context] text flowing around images

2019-02-05 Thread Henri Menke
For LaTeX there is a tool called fig2sty which can take an XFig figure and transform it into a LaTeX sty file. Maybe you could adapt it to ConTeXt. https://www.ctan.org/pkg/fig2sty On 6/02/19 9:38 AM, Henning Hraban Ramm wrote: > No hints? > > If it’s not possible, I must redo the whole layout

Re: [NTG-context] How to query fonts.handlers

2019-02-05 Thread Henri Menke
ers.otf.getkern(tfmdata,t,e,kind) end context(kern / tfmdata.parameters.factor) % 500 } \stoptext On 6/02/19 9:27 AM, Henri Menke wrote: > Dear list, > > I am trying to access extra kerning that I have defined using > fonts.handlers.otf.addfeature. Even though I query the ke

Re: [NTG-context] interactive tests with AcroJS

2019-02-11 Thread Henri Menke
On 12/02/19 8:16 AM, Pablo Rodriguez wrote: > Dear list, > > is there any way that I can generate PDF document with ConTeXt > containing a test with questions and multiple-choice answers and that > the user can check the right and wrong answers (using AcroJS)? http://www.pragma-ade.nl/general/man

Re: [NTG-context] Minion Pro confuses italic correction

2019-02-12 Thread Henri Menke
Bump On 21/01/19 3:41 PM, Henri Menke wrote: > Dear list, > > The Minion Pro font, as distributed with Adobe Reader, confuses the > ConTeXt italic correction. The MWE below will fail with > > luatex warning > node filter: error: > ...ext/tex/texmf-context/tex/contex

Re: [NTG-context] Minion Pro confuses italic correction

2019-02-12 Thread Henri Menke
I just saw it was fixed. Sorry for the noise. On 13/02/19 4:43 PM, Henri Menke wrote: > Bump > > On 21/01/19 3:41 PM, Henri Menke wrote: >> Dear list, >> >> The Minion Pro font, as distributed with Adobe Reader, confuses the >> ConTeXt italic correcti

Re: [NTG-context] Define color with calculations

2019-02-17 Thread Henri Menke
Use Lua. \def\eval#1{\ctxlua{% local context = context local _ENV = math context(#1) }} \definecolor[mycolor][r=\eval{0.5*0.7}] \starttext \color[mycolor]{Hello!} \stoptext On 18/02/19 4:37 PM, Mohammad Hossein Bateni wrote: > Hi, > > When I use definecolor, (how) can I use co

Re: [NTG-context] Define color with calculations

2019-02-18 Thread Henri Menke
On 19/02/19 10:33 AM, Wolfgang Schuster wrote: > Mohammad Hossein Bateni schrieb am 18.02.19 um 04:37: >> Hi, >> >> When I use definecolor, (how) can I use computations in setting the >> value of a component?  Something like the following... >> >> \definecolor[mycolor][r=0.5*0.7] > > \starttext >

[NTG-context] \mathematics might be missing \everymathematics

2019-02-19 Thread Henri Menke
Dear Hans, In the following example I want to locally set lcgreek=normal but it is not picked up because the attribute is not propagated. When I enter \everymathematics manually it works fine. Is this by design or is this a bug? MWE below. Cheers, Henri --- \starttext The greek letter shoul

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-22 Thread Henri Menke
I can confirm. My workaround which predates the stylealternative mechanism also stopped working, so there must be an issue on the level of font feature selection. \definefontfeature [math-text] [math-text] [ss04=yes] \definefontfeature [math-script] [math-script] [ss04

Re: [NTG-context] \setupmathematics with stylealternative not working

2019-02-24 Thread Henri Menke
On 2/24/19 10:23 PM, Mikael P. Sundqvist wrote: > On Sat, Feb 23, 2019 at 8:17 AM Mikael P. Sundqvist wrote: >> >> On Fri, Feb 22, 2019 at 7:25 PM Hans Hagen wrote: >> > >> > On 2/22/2019 9:24 AM, Henri Menke wrote: >> > > I can confirm. My w

Re: [NTG-context] em-dash ligature is converted to en-dash in the generic fontloader

2019-02-25 Thread Henri Menke
On 26/02/19 3:55 AM, Ulrike Fischer wrote: > Am Sat, 23 Feb 2019 17:11:12 +0100 schrieb Hans Hagen: > >> because followed by -- is pretty obscure ... a replace could be >> seen as --- and when hyphenated as - -- and such ... it's about time >> that texies start using the proper unicode symbols

Re: [NTG-context] em-dash ligature is converted to en-dash in the generic fontloader

2019-02-25 Thread Henri Menke
On 26/02/19 3:55 AM, Ulrike Fischer wrote: > Am Sat, 23 Feb 2019 17:11:12 +0100 schrieb Hans Hagen: > >> because followed by -- is pretty obscure ... a replace could be >> seen as --- and when hyphenated as - -- and such ... it's about time >> that texies start using the proper unicode symbol

Re: [NTG-context] \mathematics might be missing \everymathematics

2019-02-25 Thread Henri Menke
Bump On 19/02/19 10:02 PM, Henri Menke wrote: > Dear Hans, > > In the following example I want to locally set lcgreek=normal but it is > not picked up because the attribute is not propagated. When I enter > \everymathematics manually it works fine. Is this by design or is thi

[NTG-context] horizontal headalternatives ignore indentnext

2019-02-27 Thread Henri Menke
Dear list, If I choose the headalternative to be of horizontal type, e.g. “text”, the head placement will ignore the indentnext option. This can be traced back to the \strc_rendering_stop_placement macro where there is a check \ifconditional\headisdisplay \useindentnextparameter\headpara

[NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread Henri Menke
Dear list, I just installed TeX Live 2019 pretest and running context --make fails with error in callback: ...xlive/2019/texmf-dist/tex/context/base/mkiv/luat-cod.lua:194: attempt to call a nil value (upvalue 'isfile') This can easily be fixed by replacing in luat-cod.lua local isfile

Re: [NTG-context] TeX Live 2019: attempt to call a nil value (upvalue 'isfile')

2019-02-28 Thread Henri Menke
Hm, it looks like the macro code hasn't been updated from 2018 yet, because after fixing isfile it crashes when trying to load the old pdfe library. Cheers, Henri On 1/03/19 12:14 PM, Henri Menke wrote: > Dear list, > > I just installed TeX Live 2019 pretest and running contex

[NTG-context] Spurious space in \startnarrower

2019-03-05 Thread Henri Menke
Patch for the core file is attached. Cheers, Henri diff --git a/tex/context/base/mkiv/spac-hor.mkiv b/tex/context/base/mkiv/spac-hor.mkiv index 32b7f06fb..24c7c7893 100644 --- a/tex/context/base/mkiv/spac-hor.mkiv +++ b/tex/context/base/mkiv/spac-hor.mkiv @@ -717,7 +717,7 @@ \global\s_spac_nar

[NTG-context] Empty \margintext causes Lua error

2019-03-06 Thread Henri Menke
Dear list, MWE: \starttext \margintext{} \stoptext Error: ...ext/tex/texmf-context/tex/context/base/mkiv/node-nut.lua:736: table index is nil Please fix. Cheers, Henri ___ If your question is of interest to other

[NTG-context] Can't use MetaFun with mplib anymore

2019-03-13 Thread Henri Menke
Dear list, Something has changed in MetaFun and it can no longer be used in plain LuaTeX, with neither of luatex test.tex mtxrun --script plain test.tex This is the error: >> LUATEXFUNCTIONALITY >> "mp.print(LUATEXFUNCTIONALITY)" ! Equation cannot be performed (numeric=stri

Re: [NTG-context] Can't use MetaFun with mplib anymore

2019-03-14 Thread Henri Menke
On 3/14/19 8:49 PM, Hans Hagen wrote: > On 3/14/2019 5:56 AM, Henri Menke wrote: >> >> Dear list, >> >> Something has changed in MetaFun and it can no longer be used in plain >> LuaTeX, >> with neither of >> >> luatex test.tex >>   

Re: [NTG-context] Spurious space in \startnarrower

2019-03-31 Thread Henri Menke
I see that the patch has been applied in current, but could you please also apply it in beta (which is what I and probably most others use daily)? Cheers, Henri On 6/03/19 12:12 PM, Henri Menke wrote: > Patch for the core file is attached. > > Chee

Re: [NTG-context] Spurious space in \startnarrower

2019-03-31 Thread Henri Menke
On 1/04/19 9:22 AM, Hans Hagen wrote: > On 3/31/2019 10:13 PM, Henri Menke wrote: >> I see that the patch has been applied in current, but could you please also >> apply it in beta (which is what I and probably most others use daily)? > some time next week we continue with betas

Re: [NTG-context] lmtx

2019-04-02 Thread Henri Menke
On 2/04/19 10:05 PM, Hans Hagen wrote: > Hi, > > So, for those who hesitate to check out lmtx, here is some information. > > - In order to achieve long term stability context will use a lean and > mean variant of luatex (although for now context will keep running on > luatex too; i might drop

Re: [NTG-context] lmtx

2019-04-02 Thread Henri Menke
On 3/04/19 9:19 AM, Hans Hagen wrote: > On 4/2/2019 10:11 PM, Henri Menke wrote: >> >> >> On 2/04/19 10:05 PM, Hans Hagen wrote: >>> Hi, >>> >>> So, for those who hesitate to check out lmtx, here is some information. >>> >>> - I

[NTG-context] lmtx doesn't search texmf-local

2019-04-02 Thread Henri Menke
Dear list, I have installed LMTX into /opt/context-lmtx/ and placed my favourite fonts into /opt/context-lmtx/tex/texmf-local/ as I also did in ConTeXt standalone. I would expect LMTX to find the newly installed otf files after regenerating the file tree but that is not the case, see my terminal

Re: [NTG-context] lmtx doesn't search texmf-local

2019-04-02 Thread Henri Menke
mtx/tex/texmf-linux-64/bin:... Cheers, Henri > > Best wishes, > Taco > >>> Op 2 apr. 2019 om 23:02 heeft Hans Hagen het volgende >>> geschreven: >>> >>> On 4/2/2019 10:46 PM, Henri Menke wrote: >>>

[NTG-context] How to update LMTX?

2019-04-04 Thread Henri Menke
Dear list, With ConTeXt standalone there was an easy way to update the install script and the distrivution using rsync -ptv rsync://contextgarden.net/minimals/setup/first-setup.sh . sh ./first-setup.sh --context=latest --engine=luatex --modules=all --fonts=all For LMTX it seems that I h

Re: [NTG-context] How to update LMTX?

2019-04-04 Thread Henri Menke
Apr 2019 09:27:15 +1300 > Henri Menke wrote: > >> Dear list, >> >> With ConTeXt standalone there was an easy way to update the install script >> and >> the distrivution using >> >> rsync -ptv rsync://contextgarden.net/minimals/setup/first-setu

Re: [NTG-context] Undefined symbol lua_gettop

2019-04-06 Thread Henri Menke
On 4/7/19 6:02 AM, Aditya Mahajan wrote: > Hi, > > I am experimenting with using lua libraries with lmtx. I tried the > following: > > 1. Download the lcomplex library (from > http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ar/lcomplex-100.tar.gz) > > 2. Untar and modify the Makefile so that L

[NTG-context] Adjust kerning with superscript

2019-04-15 Thread Henri Menke
Dear list, I am unhappy with how some fonts kern particular subscripts. For example in the default Latin Modern, subscripts to the Greek capital gamma could use some negative kerning. Because I can't (and don't want to) fix the font, I thought that I could patch the font on-the-fly in ConTeXt.

Re: [NTG-context] Adjust kerning with superscript

2019-04-15 Thread Henri Menke
On 15/04/19 9:06 PM, Hans Hagen wrote: > On 4/15/2019 9:50 AM, Henri Menke wrote: >> Dear list, >> >> I am unhappy with how some fonts kern particular subscripts. For example in >> the default Latin Modern, subscripts to the Greek capital gamma could use >> som

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

2019-04-18 Thread Henri Menke
In ConTeXt the ampersand is not an alignment character but has catcode 12 by default. Use the "ampersand replacement" option. \usemodule[tikz] \usetikzlibrary[matrix,decorations.pathreplacing, calc, positioning,fit] \starttext \starttikzpicture[>=stealth,thick,baseline, every right delimiter/.ap

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 not an

[NTG-context] Formula number misplaced

2019-04-23 Thread Henri Menke
Dear list, The problem I describe does not make itself apparent in all situations, but sometimes the formula number, which is placed by \start...\stopplaceformula, is misplaced and there appears a gap between it and the right margin. The MWE below reproduces the problem in the latest beta and lm

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 pri

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

2019-05-12 Thread Henri Menke
To me the following two MWEs look pretty much the same: \setupbodyfont[10pt] % same font size as LaTeX \starttext $\sum_{k=1}^{n} a_k$ \startformula \sum\nolimits_{k=1}^{n} a_k \stopformula \stoptext \documentclass{article} \begin{document} $\sum_{k=1}^{n} a_k$ \[ \sum\nolimits_{k=1}^{n} a_k \]

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

2019-05-15 Thread Henri Menke
On 16/05/19 7:46 AM, Eric Scmidt wrote: > Thank for your efforts to help me. This time I used the exact code snippet > you > wrote, but the results for inline math is still not what I would like to have > since I do see a clear difference in the limits placement. Please see this > image > whe

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 Co

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 \no

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

2019-06-08 Thread Henri Menke
On 6/8/19 7:02 PM, Martin Hasoň wrote: > Dear Mojca, > > musl LuaTeX binary is out of date again: > > This is LuaTeX, Version 1.09.2 (TeX Live 2019/dev) (INITEX) > system commands enabled. > (/usr/share/tex/texmf-context/tex/context/base/mkiv/cont-en.mkiv > (/usr/share/tex/texmf-context/tex/con

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 only

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 wou

Re: [NTG-context] feature request

2019-07-02 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 defin

Re: [NTG-context] feature request

2019-07-02 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 defin

Re: [NTG-context] feature request

2019-07-03 Thread Henri Menke
; > BTW, I constantly convert Beamer documents into ConTeXt's > simpleslide documents recently and it is very convenient > if I can use \pmatrix{a&b\cr c&d\cr} style because it is similar > to LaTeX documents. > > 2019年7月3日(水) 15:42 Henri Menke : > >> >&

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 > tex erro

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

2019-07-18 Thread Henri Menke
On 19/07/19 3:18 AM, Duncan Hothersall wrote: > I think I have identified a bug in the side figure mechanism which is > demonstrated by the minimal example below. The {\bf …} construct causes the > para in which it appears to stop behaving properly with the side figure, and > the text overflows.

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 ...}. >> That is a we

Re: [NTG-context] font switching commands

2019-07-18 Thread Henri Menke
On 19/07/19 11:45 AM, Atsuhito Kohda wrote: > Hi all > "Manuals-ConTeXt wiki" provides us very important and useful > information and we find cont-eni.pdf in "overview". In the manual, > font switching commands \vi, \vii, \viii, \ix, \x, \xi, \xii are > explained in p.113 but it seems they don't w

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

2019-08-07 Thread Henri Menke
Dear devs, there seems to be a bug in LMTX. In the MWE below, the letter right after the linebreak is black instead of gray. I'm using the latest beta. mtx-context | main context file: /opt/context-lmtx/tex/texmf-context/tex/context/base/mkiv/context.mkiv mtx-context | current version:

[NTG-context] Wrong MetaPost text output

2019-08-11 Thread Henri Menke
Dear devs, There seems to be a bug in the MetaPost integration of ConTeXt. The MWE below should produce three different labels “dummy foo bar” but instead produces “bar bar bar”. The same example works correctly in plain MetaPost. Originally reported on https://tex.stackexchange.com/quest

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

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 to > some of the

[NTG-context] The odd semantics of \begincsname

2019-08-17 Thread Henri Menke
Dear list, According to the LuaTeX documentation: “The \begincsname primitive is like \csname but doesn’t create a relaxed equivalent when there is no such name.” I thought it would be possible to use this fact to skip the \relax-ed definition when \def-ining a new control sequence, but

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

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 a

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] Pb with tikz, \pdfsavepos and friends

2019-09-10 Thread Henri Menke
On 9/11/19 7:45 AM, Hans Hagen wrote: > On 9/10/2019 9:28 PM, Ulrike Fischer wrote: >> Am Tue, 10 Sep 2019 20:04:58 +0200 schrieb Hans Hagen: >> I checked the pgf versions in my ConTeXt installations from 20180913 and 20190909, they are the same : 3.0.1. So I suppose that the change come

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

2019-09-10 Thread Henri Menke
On 9/11/19 3:50 AM, Aditya Mahajan wrote: > On Tue, 10 Sep 2019, Hans Hagen wrote: > >> On 9/10/2019 4:11 PM, Vladimir Lomov wrote: >>> Hello, >>> today I updated lmtx and on simple >>> >>>$ context --version >>> >>> I get segfault (in the same time luametatex --version works fine). >>> Runnin

[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] 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  > total

[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! mai

Re: [NTG-context] circuitikz meters

2019-09-30 Thread Henri Menke
Circuitikz uses \textbf inside, which is a LaTeX macro. Unfortunately, this is hardcoded within the ammeter and voltmeter nodes, so you can't easily change it. Instead you can simply provide a macro that does the correct thing. \usemodule[circuitikz] \let\textbf\bold % <--- \starttext \starttikz

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

2019-09-30 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] > \definecolumnsetspan[wide][n=2] > > \setupexternalfigures

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

2019-10-16 Thread Henri Menke
Dear list, Today I wanted to use ConTeXt MkIV instead of LMTX but when I ran context, I obtained the error mtxrun | unknown script 'context.lua' or 'mtx-context.lua' so I went to the installation directory /opt/context to check and noticed that tex/textmf-context was missing. I tho

Re: [NTG-context] Number format with lua

2019-11-09 Thread Henri Menke
On 11/9/19 10:38 PM, Fabrice Couvreur wrote: > Hi, > In the table below, how to have numbers with only three decimals ? > Thank you. > Fabrice > > \starttext > \startluacode > local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } > local letters_2 = { "1", "Année", "1998", "1999",

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 t

Re: [NTG-context] developer not verified error

2019-11-18 Thread Henri Menke
On 11/17/19 5:09 AM, Mojca Miklavec wrote> First I thought that we would have troubles with the binaries as soon > as GateKeeper was introduced (not sure which macOS version started > causing troubles), but somehow there were none, which at least came as > a pleasant surprise to me. Maybe this has

Re: [NTG-context] layers and \llap

2019-11-19 Thread Henri Menke
On 11/20/19 3:16 AM, Pablo Rodriguez wrote: > Hi Hans, > > this comes from a previous message about an issue with \llap and layers. > > Here is the sample: > > \defineviewerlayer[print][state=stop,printable=yes] > \defineviewerlayer[view][state=start,printable=no] > > \starttext >

[NTG-context] LuaTeX incompatible with Lua

2019-11-20 Thread Henri Menke
Dear list, The following Lua script behaves differently when executed in Lua vs. LuaTeX. print(os.execute("date")) It seems that the definition of os_execute in loslibext.c was copied over from Lua 5.1 and not adapted to newer versions. $ lua5.1 test.lua 0 $ lua5.2 test.lua

Re: [NTG-context] LuaTeX incompatible with Lua

2019-11-20 Thread Henri Menke
uot;execute"); return 1; } int main(void) { lua_State *L = luaL_newstate(); luaL_openlibs(L); luaopen_oslibext(L); if (luaL_dostring(L, "os.execute([[date]])") != 0) { fprintf(stderr, "%s", lua_tostring(L, -1)); lua_pop(L, 1); }

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

2019-12-04 Thread Henri Menke
Dear devs, The \adjustspacing register is described in the LuaTeX manual as follows: When \adjustspacing has value 2, hz optimization will be applied to glyphs and kerns. When the value is 3, only glyphs will be treated. A value smaller than 2 disables this feature. However, setting \

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

2019-12-04 Thread Henri Menke
xpand_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 optimizat

<    1   2   3   4   5   >