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

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

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

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

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

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

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

[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

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

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

[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

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

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

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

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

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

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

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

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] 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] 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] 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 >&

[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 __

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

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

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] 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] 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] 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] ! 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] \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] \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] 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 > >

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

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-12 Thread Henri Menke
On 13/12/18 9:12 AM, Alan Braslau wrote: > On Thu, 13 Dec 2018 09:02:05 +1300 > Henri Menke wrote: > >> On 13/12/18 8:56 AM, Alan Braslau wrote: >>> On Wed, 12 Dec 2018 20:42:56 +0100 >>> "Mikael P. Sundqvist" wrote: >>>> >>&g

Re: [NTG-context] graphics

2018-12-12 Thread Henri Menke
On 13/12/18 8:56 AM, Alan Braslau wrote: > On Wed, 12 Dec 2018 20:42:56 +0100 > "Mikael P. Sundqvist" wrote: >> >> Thanks, Alan! That looks very promising. I could not make it work, >> though, and I guess that is because I use linux and do not know what >> to change for what. I installed libcerf b

[NTG-context] repo.or.cz/context.git

2018-12-11 Thread Henri Menke
Dear list, There is an online browsable repo with the ConTeXt sources at https://repo.or.cz/context.git It seems to be extremely outdated, the latest commit says beta 2014.02.14 17:07. I know that there is an up-to-date mirror at https://github.com/contextgarden/context-mirror but the Wiki links

Re: [NTG-context] graphics

2018-12-05 Thread Henri Menke
ConTeXt already comes with a full XML parser. SVG is XML. It would be nice if it was possible to render some subset of SVG. On 12/5/18 6:03 AM, Hans Hagen wrote: > Hi, > > As most mechanism are reasonable okay now we can look into what future > versions of ConteXt should provide in terms of funct

Re: [NTG-context] align=end not working

2018-11-13 Thread Henri Menke
bump On 11/10/18 5:56 AM, Aditya Mahajan wrote: > Hi, > > According to an old thread > (https://mailman.ntg.nl/pipermail/ntg-context/2016/085877.html), the > option `align=end` should align the last line to be flush right. > However, that is not working. The example from that thread: > > \startt

Re: [NTG-context] Table, xtable and lua

2018-11-10 Thread Henri Menke
On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > Hi, > I can not complete the first line of the table with the letters of the > alphabet. > Thank you. > Fabrice > > \starttext > \startlinecorrection[blank] > \startmidaligned > \startluacode > context.startxtable({"align=middle, width=1.25cm"}) >

Re: [NTG-context] Table, xtable and lua

2018-11-10 Thread Henri Menke
On 11/11/18 12:33 PM, Fabrice Couvreur wrote: > Hi, > I can not complete the first line of the table with the letters of the > alphabet. > Thank you. > Fabrice > > \starttext > \startlinecorrection[blank] > \startmidaligned > \startluacode > context.startxtable({"align=middle, width=1.25cm"}) >

Re: [NTG-context] spacing

2018-11-08 Thread Henri Menke
On 9/11/18 11:41 AM, Henning Hraban Ramm wrote: > Thank you, I only tried \usemodule[old-columnsets] before. > > It’s really annoying if ConTeXt proves unreliable time and again. > I’m trying to replace InDesign in my workflows as often as possible, but if I > need to check and rework my environm

[NTG-context] Hardcoded file extensions in typescript

2018-10-24 Thread Henri Menke
Dear devs, Motivated by https://tex.stackexchange.com/questions/456435 I found that the type-imp-source.mkiv typescript hardcodes the .ttf extension for the font files. However, TeX Live distributes those files with the .otf extensions, hence they are not found. Please fix! Cheers, Henri __

[NTG-context] Splitting long floats

2018-10-17 Thread Henri Menke
Dear list, motivated by https://tex.stackexchange.com/questions/455484 I was trying to split a long float across several pages. It also works but instead of the caption I see “there is nothing to split” at the end of the listing. The source file documentation of \splitfloat suggests that this is

Re: [NTG-context] setupitemize (no hanging)

2018-09-29 Thread Henri Menke
On 30/09/18 13:17, Alan Braslau wrote: > Silly question: > > How do I setup itemize so that there be no hanging indent and the symbol is > aligned with the left edge of the text, i.e. not in the margin? (margin or > inmargin or width=-2em puts the symbol in the margin.) Not sure whether I under

Re: [NTG-context] Notation of an arc

2018-09-26 Thread Henri Menke
On 27/09/18 09:15, Fabrice Couvreur wrote: > Hello, > How to improve the notation of an arc ? > Thank you > Fabrice > Use the correct math fence \starttext \m{\overparent{\rm AB}} \stoptext > \starttext >  \m{\overset{\frown}{\rm AB}} > \stoptext > > >

[NTG-context] MetaFun: nofmultipars wrong?

2018-09-24 Thread Henri Menke
Dear list, I used to be under the impression that when you wanted a background frame around a piece of text, you'd use a loop over nofmultipars. However, I realized that even when the contained material breaks across pages, the counter remains 1 on the second page. Another issue is that the frame

[NTG-context] Metafun: Finding intersection between characters

2018-09-22 Thread Henri Menke
Dear list, Challanged by a very old TeX.SX question https://tex.stackexchange.com/questions/180510 I wanted to calculate all the intersection points between two characters. Therefore I ripped off the \showshape macro to load the outlines from the font and convert them to MetaPost paths. Then I t

Re: [NTG-context] how to set the name of outputfile using a value defined in the source

2018-09-21 Thread Henri Menke
On 21/09/18 20:09, J Huisman wrote: > Hi all, > > I'm getting back to using ConTeXt after a couple of years, so I might > be missing something obvious... > > I would like to add an I.D. code to the name of my outputfile, but > since this will be used in an automated environment I would like to >

Re: [NTG-context] MetaFun: How to draw bent paths?

2018-09-18 Thread Henri Menke
On 18/09/18 21:23, Henri Menke wrote: > On 9/18/18 7:57 PM, Hans Hagen wrote: >> On 9/16/2018 10:28 AM, Henri Menke wrote: >>> Dear list, >>> >>> I want to draw paths between points which are bent by a certain angle. >>> The code in the MWE below

Re: [NTG-context] MetaFun: How to draw bent paths?

2018-09-18 Thread Henri Menke
On 9/18/18 7:57 PM, Hans Hagen wrote: > On 9/16/2018 10:28 AM, Henri Menke wrote: >> Dear list, >> >> I want to draw paths between points which are bent by a certain angle. >> The code in the MWE below works well but I was thinking that the expert >> here can sure

Re: [NTG-context] reference manual

2018-09-17 Thread Henri Menke
On 09/17/2018 09:12 PM, Hans van der Meer wrote: > My most recent version of the "ConTeXt reference manual” is Hans Hagen, > Taco Hoekwater September 27, 2013. > Is there a newer edition available? I could not find one in the (beta) > distribution in texmf-context/doc. The ConTeXt reference manual

[NTG-context] MetaFun: How to draw bent paths?

2018-09-16 Thread Henri Menke
Dear list, I want to draw paths between points which are bent by a certain angle. The code in the MWE below works well but I was thinking that the expert here can surely improve it and suggest a nicer syntax. Cheers, Henri --- \startMPpage vardef bend(expr a,b,phi) = a{dir(angle(b-a

Re: [NTG-context] list of figures

2018-09-14 Thread Henri Menke
On 14/09/18 20:50, Andrea Valle wrote: > Dear all, > > I have a very simple question. > > How do I get a list of figures? \starttext \completelist[figure] \startplacefigure[title={S. Reich, {\em Piano Phase}.}] \externalfigure[img/chap01/2][width=\textwidth] \stopplacefigure \stoptext > I

Re: [NTG-context] Construct tables column after column

2018-09-10 Thread Henri Menke
On 09/10/2018 10:47 PM, Jan Willem Flamma wrote: > Dear list members, > > Table are constructed row after row like in the code below: > > Building up a table row after row > \par > \bTABLE > \bTR > \bTC Row 1, Column 1 \eTC > \bTC Row 1, Column 2 \eTC > \eTR > \bTR >

Re: [NTG-context] Tabulate backgroundcolors

2018-09-10 Thread Henri Menke
bump On 09/07/2018 09:58 AM, Henri Menke wrote: > Dear list, > > I'm trying to color the background of “p” cells in tabulate. The MWE > below will fail with the error “Undefined control sequence \IMPOSSIBLE” > but when I enter scrollmode to finish the run, I get a PDF whic

[NTG-context] HTTPS on wiki.contextgarden.net

2018-09-09 Thread Henri Menke
Dear list, The page wiki.contextgarden.net processes personal data. I can make an account there with my real name, and it stores my email address. Due to the GDPR [1], personal information has to be transmitted encrypted to lock out third parties. Could you please enable SSL on the Wiki? Intere

Re: [NTG-context] labeling in meta post

2018-09-06 Thread Henri Menke
On 07/09/18 10:55, Jeong Dal wrote: > Hi, > > What is the difference between {\delta} and \delta? > Former is OK, but the second is not compiled. > > Here is a MWE. > > > \startbuffer[delta] > label.bot(btex ${\delta}$ etex, (1cm,0)); % > %label.bot(btex $\delta$ etex, (3cm,0)); Why not ju

[NTG-context] Tabulate backgroundcolors

2018-09-06 Thread Henri Menke
Dear list, I'm trying to color the background of “p” cells in tabulate. The MWE below will fail with the error “Undefined control sequence \IMPOSSIBLE” but when I enter scrollmode to finish the run, I get a PDF which looks exactly as intended. Looks like it's not \IMPOSSIBLE after all but there

Re: [NTG-context] The definitive guide to ConTeXt MkIV documentation

2018-09-01 Thread Henri Menke
On 02/09/18 15:50, Aditya Mahajan wrote: > On Sun, 2 Sep 2018, Henri Menke wrote: > >> Dear list, >> >> I have written a guide to ConTeXt documentation which summarizes the >> most important resources for the ConTeXt beginner, advanced user, and >> ex

[NTG-context] The definitive guide to ConTeXt MkIV documentation

2018-09-01 Thread Henri Menke
Dear list, I have written a guide to ConTeXt documentation which summarizes the most important resources for the ConTeXt beginner, advanced user, and expert user. You can see it on GitHub: https://github.com/hmenke/context-examples/blob/master/GUIDE.md I have also posted it on TeX.SX for be

Re: [NTG-context] about character expansion

2018-08-29 Thread Henri Menke
See also “8.9 Expansion” in http://www.pragma-ade.nl/general/manuals/fonts-mkiv.pdf \setupfontexpansion [extremehz] [stretch=50,shrink=50,step=.5,vector=default,factor=1] \definefontfeature [default] [default] [expansion=extremehz] \starttext \setupalign[hz] \input{knuth} \stoptext

[NTG-context] definefallbackfamily stopped working for text fonts

2018-08-27 Thread Henri Menke
Dear list, In the latest beta the font fallback using a text font in math mode does not work anymore. The log contains messages like char 𝑐 (U+1D450) in font 'MinionPro-It' with id 8: missing char 𝑎 (U+1D44E) in font 'MinionPro-It' with id 8: missing char 𝑏 (U+1D44F) in font 'MinionPro-It' with

Re: [NTG-context] Use of context in lua

2018-08-14 Thread Henri Menke
On 15/08/18 17:46, Jan U. Hasecke wrote: On 14.08.2018 16:58, Pablo Rodriguez wrote: I rewrote your sample as (xtables are the only tables I know in ConTeXt): \starttext \startlua context.startxtable() context.startxrow() context.startxcell() conte

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-14 Thread Henri Menke
eight]}]     []     [{\externalfigure[dummy][width=\marginwidth,height=\footerheight]}]     \starttext     \dorecurse{10}{\page[dummy]}     \stoptext Le mar. 14 août 2018 à 12:18, Henri Menke <mailto:henrime...@gmail.com>> a écrit : On 14/08/18 22:13, Fabrice Couvreur wrote

Re: [NTG-context] Logo in the margin at the bottom of the page

2018-08-14 Thread Henri Menke
On 14/08/18 22:13, Fabrice Couvreur wrote: Hello, I wish to place a small logo at the bottom of the page. It works almost but it is not very well adjusted. How to cure it ? Thank you. fabrice \showframe \useMPlibrary[dum] \setuplayout   [height=middle,    width=middle,    backspace=2cm,   

[NTG-context] Framed flush bottom

2018-08-14 Thread Henri Menke
Dear list, According to the wiki page for \setupalign "height" Fill the height: press the last line's baseline against the lower boundary. but that doesn't see to work in framed. How can I get the interline space stretched to flush to the bottom? MWE is below. Cheers, Henri --- \startt

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-14 Thread Henri Menke
On 14/08/18 17:29, Pablo Rodriguez wrote: On 08/14/2018 01:46 AM, Henri Menke wrote: On top of that I recommend to use context.date to get the correct formatting according to the current language options: \def\duedate{\ctxlua{ local t = os.date('*t', os.time()+ 10 *

Re: [NTG-context] date calculated with currentdate plus n days

2018-08-13 Thread Henri Menke
On top of that I recommend to use context.date to get the correct formatting according to the current language options: \starttext \def\duedate{\ctxlua{ local t = os.date('*t', os.time()+ 10 * 24 * 3600) context.date{ d = t.day, m = t.month, y = t.year } }} \duedate \stoptext On 14/08/18

Re: [NTG-context] How can I remove a blank leading line from a buffer

2018-08-12 Thread Henri Menke
On 13/08/18 15:18, Rik Kabel wrote: %% How can one remove blank lines at the start of a buffer so that %%   commands that grab a buffer can be used in the same way as, for %%   example, \startparagraph...\stopparagraph, which allow blank %%   lines around the content? %% %% The problem appears

Re: [NTG-context] referencing the equation

2018-08-09 Thread Henri Menke
I usually define my own reference formats, “ineq” for equations, “infig” for figures: \definereferenceformat[ineq][left=(,right=)] \definereferenceformat[infig][left=\labeltext{figure}] \starttext \starttext \placeformula \startformula \startalign \NC a_1 x + b_1 y \NC = c_1 \NR[eq:1] \NC a

Re: [NTG-context] columns unexpected (odd) results

2018-08-01 Thread Henri Menke
Cannot reproduce with TL2018 or latest beta. MWE below: \starttext \startlines Testing 1971-04-26 \startcolumns[n=3] \dorecurse{200}{+ 17271 \rightarrow\ 2018-08-08 } \stopcolumns \stoplines \stoptext On 01/08/18 21:34, Floris van Manen wrote: Has anyone a solution / hint as how to g

Re: [NTG-context] TABLE setups

2018-07-27 Thread Henri Menke
On 07/28/2018 07:38 AM, Henning Hraban Ramm wrote: > Ahoi, > > I need a few different table styles and don’t think it makes sense to setup > them every single time. > > Is there a \defineTABLE[mystyle], and then \setupTABLE[mystyle][...] ? > > Or can I go via setups like \bTABLE[setups=mystyle]

Re: [NTG-context] using both footnotes and endnotes in a document

2018-07-26 Thread Henri Menke
On 27/07/18 12:01, Robert Zydenbos wrote: A puzzle for note specialists: I would like to use both endnotes as well as footnotes in one and the same document, for different kinds of notes. Ideally, I should be able to write something like: - Here is a footnote,\footnote{The footnotes comes

<    1   2   3   4   5   >