[NTG-context] Passing colors to Metafun and TeX's bitmapimage macros

2021-09-01 Thread Jairo A. del Rio via ntg-context
Hi, list! I want to know if there's a handy way to pass predefined colors, either RGB or CMYK, e.g. those in svg or crayola, to Metafun's bitmapimage. Say, something like: \startMPpage % svg's gold definition draw bitmapimage(2, 2, "ffd700 ffd700 ffd700 00") scaled 3cm; \stopMPpage using

[NTG-context] Metafun's utflen not working in certain contexts

2021-10-03 Thread Jairo A. del Rio via ntg-context
Hi, list. The following works for MkIV, but not LMTX (adapted from here: https://tex.stackexchange.com/questions/617597/how-can-i-use-luas-string-len-inside-a-metapost-function ): \startMPinclusions vardef MotMystere(expr taille, speciale, index) = save avant,apres,case; numeric avant,apres;

Re: [NTG-context] Metafun's utflen not working in certain contexts

2021-10-05 Thread Jairo A. del Rio via ntg-context
Nice, thanks. Jairo El lun, 4 de oct. de 2021 a la(s) 13:23, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 10/3/2021 9:28 PM, Jairo A. del Rio via ntg-context wrote: > > Hi, list. The following works for MkIV, but not LMTX (adapted from here: > > > https://tex.stackexchange.co

Re: [NTG-context] Getting Textadept to open pdf?

2021-09-26 Thread Jairo A. del Rio via ntg-context
Hi. Maybe there's an easier way to do it without changing any file or via mtxrun's command line, but the following is what I do: In l-pdfview.lua (mkiv folder, lines from 38) PDF view options are available. I've added ['evince']= [[evince "%filename%"]] -- My favorite viewer And then, after

Re: [NTG-context] Getting Textadept to open pdf?

2021-09-26 Thread Jairo A. del Rio via ntg-context
El dom, 26 de sep. de 2021 a la(s) 22:29, jbf (roma83...@gmail.com) escribió: > Hmm. I'm not using evince (could, I suppose) but I see that in the file > you mention there is already: > > ['okular']= [[okular --unique "%filename%"]], and I have already > adapted the init.lua file in

[NTG-context] Primes too high in New Computer Modern

2021-12-06 Thread Jairo A. del Rio via ntg-context
Hi, list. See the following: \starttext $\alpha'$ {\switchtobodyfont[newcomputermodern]$\alpha'$} \stoptext Thank you in advance. Best regards, Jairo ___ If your question is of interest to others as well, please

Re: [NTG-context] Getting ONE, TWO... for chapters

2022-01-01 Thread Jairo A. del Rio via ntg-context
El sáb, 1 ene 2022 a la(s) 15:37, jbf via ntg-context (ntg-context@ntg.nl) escribió: > Am typesetting a book that has 'STUDY ONE', 'STUDY TWO' etc. in place of > CHAPTER ONE, etc. I have no difficulty getting 'STUDY' with > \setuplabeltext[chapter=STUDY~], and I can achieve 'STUDY One' with the >

Re: [NTG-context] upload

2021-12-24 Thread Jairo A. del Rio via ntg-context
Hi, Hans. In Ubuntu 20.04: resolvers > lua > loading file '/home/coragyps/lmtx/tex/texmf-context/tex/context/base/mkxl/node-cmp.lmt' succeeded fatal error: storage cannot be marked Jairo El vie, 24 dic 2021 a la(s) 13:45, Hans Hagen via ntg-context ( ntg-context@ntg.nl) escribió: > Hi,

Re: [NTG-context] Checking for a macro in a string without expanding it

2021-11-16 Thread Jairo A. del Rio via ntg-context
If I understand it correctly, you may need something like this...? % Protection is key \protected\def\inner[#1]{\empty} % \outer is (or was) already defined in \CONTEXT % Please use another name \def\Outer{\inner[123] and \inner[some text] etc.} \startluacode local implement =

Re: [NTG-context] Macro for a comma separated list of authors

2021-11-24 Thread Jairo A. del Rio via ntg-context
Hola. Maybe you need \commalistsentence? \def\Autores{% {Luis David Gómez-Méndez, Ph. D.}, {Adriana del Pilar Pulido-Villamarín, M. Sc.}, {Rubiela Castañeda-Salazar, M. Sc.}, {Juan Carlos Ulloa-Rubiano, Ph. D.}, {Adriana Matiz-Villamil, M. Sc.}, {Fidson Juarismy Vesga-Pérez, Ph. D}%

Re: [NTG-context] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Jairo A. del Rio via ntg-context
Nice. Looks interesting and, if I understand correctly, entries are open-ended, which turns out to be useful to customize dictionaries. It would be a profitable addition! Thank you very much. Regards, Jairo El vie, 26 de nov. de 2021 a la(s) 08:16, Hans Hagen via ntg-context (

[NTG-context] Concerning dictionaries. glossaries and related in ConTeXt

2021-11-26 Thread Jairo A. del Rio via ntg-context
Hi, list. I want to know how I should handle alphabetically sorted data in ConTeXt. So far, I'm abusing registers in order to get simple glossaries, but I prefer to manage data with tools such as JabRef rather than manually typing entries inside a document. I attach an example of what I achieved:

Re: [NTG-context] getting number from context.figurewidth

2021-10-27 Thread Jairo A. del Rio via ntg-context
Hi, Pablo. I have no idea of what you need to do, but in grph-inc.lua you find the following (line 709): implement { name = "figurestatus", actions = { get, context }, arguments = { "'status'", "string", "string" } } So that \figureheight calls this function via \clf_figurestatus and, in

Re: [NTG-context] Romanization of ancient greek

2021-10-26 Thread Jairo A. del Rio via ntg-context
Ugly hack: add this before loading transliterator: \startluacode unicode = unicode and unicode or _G \stopluacode I get the following output: kakon anagkē, all' udemia anagkē zēn meta anagkēs I hope this helps. I also think you should mail Philipp so that he fixes it (the Lua code looks pretty

[NTG-context] Concerning \installparameterhashhandler and family

2021-11-09 Thread Jairo A. del Rio via ntg-context
Hi. Reading at mult-aux.mkxl, I've seen command handlers define, among others, \installparameterhashhandler, However, in files such as those related with symbol management, only \installparameterhandler and \installsetuphandler are. When writing basic modules, sometimes only the "raw" macros

Re: [NTG-context] Hyphenation on digits

2021-11-03 Thread Jairo A. del Rio via ntg-context
Hi again. I've noticed \hyphenateddigits fails with alphabetical symbols, e.g. with hexadecimal numbers. Maybe there's a better solution, but something like --From phys-dim.lua actions = function(filler, digits) digits = gsub(digits,"(%d)","%1\\digitsbreak ") --space added. Would a

Re: [NTG-context] upload

2021-12-05 Thread Jairo A. del Rio via ntg-context
Hi, Hans. I've got a question. Negative steps are treated as positive: \starttext \expandedloop 10 0 -2 {\the\currentloopiterator\ } \stoptext gives 0 2 4 6 8 10 Is this expected behavior? If so, it would be fine to have something more alike to MetaPost's "for ... step ... until" loop. Thank

Re: [NTG-context] [DKIM] Primes too high in New Computer Modern

2021-12-07 Thread Jairo A. del Rio via ntg-context
slightly less bold)? > > > On Tue, Dec 7, 2021 at 9:45 AM Hans Hagen via ntg-context > wrote: > > > > On 12/7/2021 2:39 AM, Jairo A. del Rio via ntg-context wrote: > > > Hi, list. See the following: > > > > > > \starttext > > > $\alp

[NTG-context] Using ConTeXt Lua libraries

2021-07-28 Thread Jairo A. del Rio via ntg-context
Hi everyone! I want to know the proper way to load ConTeXt Lua modules/libraries *en masse*. such as those listed in cld-mkiv, without actual typesetting in order to write some scripts. I thought about creating a .cld file with no output, but I suspect there's a better way. Thanks in advance.

[NTG-context] Harfbuzz plugin and colors

2022-02-13 Thread Jairo A. del Rio via ntg-context
Hi, list! I've tested the Harfbuzz plugin in ConTeXt and it works nicely for most cases. However, color doesn't seem to work. Is this intended? I know this plugin won't be supported, but I'll be fine with pointers to solve this issue. Thanks in advance. \usemodule[fonts-plugins]

[NTG-context] Engine mismatch in Windows 8.1 (32 bits)

2022-01-21 Thread Jairo A. del Rio via ntg-context
Hi everyone! I've just installed ConTeXt on an old machine running Windows 8.1 (x86) and I've noticed the format is regenerated each time I process a file. It can be read on the log (third line): warning: engine mismatch (luv: This is LuaMetaTeX 2.09.36 <> bin: This is LuaMetaTeX 2.09.34),

Re: [NTG-context] Sudoku module

2022-07-18 Thread Jairo A. del Rio via ntg-context
Hi. Sorry. I didn't see your message and I had forgotten the very existence of the module. I'll check it later (final exam weeks for me) so that it works with MkIV and LMTX properly again. By the way, thanks for the interest. Best regards Jairo El lun., 18 de jul. de 2022 10:00 a. m., Otared

[NTG-context] Interaction broken for formulas in LMTX

2022-07-14 Thread Jairo A. del Rio via ntg-context
Hi, list! Sorry, I don't have a MWE, but it looks like interactive references for formulas (via \in) are not working after the update. I mean, labels are fine, but they do nothing when clicked. References for tables and figures are fine, though. Best regards, Jairo

[NTG-context] Textadept no longer supported?

2022-08-26 Thread Jairo A. del Rio via ntg-context
Hi, list. Last time I installed my ConTeXt distribution from scratch, I've noticed Textadept files are no longer in the distribution. I've tried SciTE but it's broken in Ubuntu as code highlighting just doesn't work. Has something changed? Is it possible to get those files from an older version?

Re: [NTG-context] Textadept no longer supported?

2022-08-26 Thread Jairo A. del Rio via ntg-context
Sorry for the noise. I found Textadept files in the GitHub repo. However, it would be nice to have them in the distribution. Have a nice day. Cordially, Jairo El vie, 26 ago 2022 a la(s) 19:01, Jairo A. del Rio (jairoadelr...@gmail.com) escribió: > Hi, list. > > Last time I installed my

Re: [NTG-context] update

2023-04-26 Thread Jairo A. del Rio via ntg-context
Hi, Hans. The following happens with the last update: loading > ConTeXt Node Macros / Page Building resolvers > lua > unknown file 'node-pag.lua' error loading file: node-pag.lua (aborting) Indeed, the file is missing in the distribution (there's only node-pag.mkxl). Regards El

Re: [NTG-context] update

2023-04-26 Thread Jairo A. del Rio via ntg-context
-04-26 19:54, Jairo A. del Rio via ntg-context wrote: > > Hi, Hans. The following happens with the last update: > > > > loading > ConTeXt Node Macros / Page Building > > resolvers > lua > unknown file 'node-pag.lua' > > > > error loading fil

Re: [NTG-context] Module authors: please update your metadata

2023-05-15 Thread Jairo A. del Rio via ntg-context
Hi, Hraban. I updated the sudoku module to remove the top redundant folder and added LICENSE, README, and VERSION files. What should I do if I want my module in CTAN? I asked two years ago and it was told to me synchronization with ConTeXt was automatic. Any comments? Thanks in advance. Best

Re: [NTG-context] Module authors: please update your metadata

2023-05-15 Thread Jairo A. del Rio via ntg-context
El lun, 15 may 2023 a la(s) 11:45, Henning Hraban Ramm via ntg-context ( ntg-context@ntg.nl) escribió: > Am 15.05.23 um 17:51 schrieb Jairo A. del Rio via ntg-context: > > Hi, Hraban. I updated the sudoku module to remove the top redundant > > folder and added LICENSE, README, an

[NTG-context] Replacer based on function rathen than tables

2023-05-18 Thread Jairo A. del Rio via ntg-context
Hi, list. There's lang-rep.mkxl and lang-tra.mkxl in the distribution which allows replacing a list of words and applying transliteration, respectively. Both are based on tables. I want to know if there's a way to use a function instead, say local function nice(str) return str .. " is nice"