[NTG-context] How to implement word corrections

2023-12-27 Thread Jairo A. del Rio
Hi, list! I'm writing a small module to print word corrections, e.g., things like "irregardless" > "regardless"or "alverja" > "arveja" ('pea' in Spanish) with overstrikes and underlines, but I want feedback to make a module in the ConTeXt fashion. I hope the PDF attached explains better what I

[NTG-context] Re: Score sums and references

2023-12-13 Thread Jairo A. del Rio
Cool. It works once \startlines ... \stoplines is removed. Thank you very much! Jairo El mié, 13 dic 2023 a la(s) 3:40 a.m., Hans Hagen (j.ha...@xs4all.nl) escribió: > On 12/13/2023 4:05 AM, Jairo A. del Rio wrote: > > Hi, dear list. Is there a proper "ConTeXt way"

[NTG-context] Score sums and references

2023-12-12 Thread Jairo A. del Rio
Hi, dear list. Is there a proper "ConTeXt way" to do the following? \integerdef\lmao=0 \starttext Sum: \in[trick] % 10 from the result below +1\advance\lmao\plusone +2\advance\lmao\plustwo +3\advance\lmao\plusthree +4\advance\lmao\plusfour \normalexpanded{\reference[trick]{\the\lmao}} % 10

[NTG-context] Buffer and \input content as input for \processtokens, etc.

2023-12-06 Thread Jairo A. del Rio
Hi, list! My question is just like that: how do I pass buffers or \input content to \processtokens. What I have done so far: \tolerant\protected\def\foo#={\ifparameter#1\or\oof{#1}\fi} \protected\def\oof#1{<#1>} \startbuffer[ofo] % Output: Ths not a anymore! Th{i{s {is} not a {question}

[NTG-context] Bug or feature? \numexpression and hashes

2023-09-04 Thread Jairo A. del Rio
Hi, list. The following fails with a "Missing number, treated as zero" error prompt: \starttext \expandedrepeat2{\expandedrepeat2{\the\numexpression#I+#P\relax\ }} \stoptext OTOH, \numexpr works seamlessly. Tested on ConTeXt 2023.09.03 19:03. Thanks in advance. Best regards, Jairo

[NTG-context] Building luametatex with Lua symbols exposed

2023-08-30 Thread Jairo A. del Rio
Hi, beloved list. Since sources are in the distribution, I've tried compiling luametatex by setting LMT_STRIP in CMakeLists.txt to 0, yet the resulting binary still warns about undefined symbols, such as lua_gettop, when an external library is loaded in Lua. Any ideas on how to solve it? Thank you

[NTG-context] Re: issue with current latest (2023.07.28 20:04)

2023-07-29 Thread Jairo A. del Rio
El sáb, 29 jul 2023 a la(s) 02:50, Pablo Rodriguez (oi...@gmx.es) escribió: > Dear list, > > trying to generate the format for current latest (2023.07.28 20:04), I > get this error message: > > tex error > tex error on line 280 in file lang-lab.mkxl: Control > sequence expected instead of

[NTG-context] Text item groups

2023-07-15 Thread Jairo A. del Rio
Hi, list! I want to know how to make numbers in text item groups run along with text (for instance, wrt indentation) regardless of their position in text. In the following example: \setupindenting[yes,medium] \starttext \startitemize[a,text][textdistance=none] \startitem

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

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

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

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

[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
--space added. Would a "\relax " do better? digits = gsub(digits,"\\-$",filler) context(digits) end would fix it. Best regards, Jairo El jue, 28 de ene. de 2021 a la(s) 09:00, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 1/28/2021 12:50 PM, Jairo A.

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

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

[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] Getting Textadept to open pdf?

2021-09-26 Thread Jairo A. del Rio via ntg-context
-- faster and more complete I haven't edited textadept settings btw, so it works for me with --autopdf alone. > Julian > > > On 27/9/21 1:06 pm, Jairo A. del Rio wrote: > > Hi. Maybe there's an easier way to do it without changing any file or via > mtxrun's command line, but the fo

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

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

Re: [NTG-context] reusableMPgraphic

2021-07-15 Thread Jairo A. del Rio
Hi, list! Is this already fixed in a new upload? I'm compiling old documents and having the same problem as Thomas, although Wolfgang's comment fixes it nicely. Cordially, Jairo El lun, 12 de jul. de 2021 a la(s) 11:18, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Thomas

Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
It works again! Thank you very much Jairo El jue, 24 de jun. de 2021 a la(s) 17:23, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 6/24/2021 11:58 PM, Jairo A. del Rio wrote: > > > > > > El jue, 24 de jun. de 2021 a la(s) 16:55, Hans Hagen (j.ha...@xs4all.nl > >

Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
El jue, 24 de jun. de 2021 a la(s) 16:55, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 6/24/2021 11:47 PM, Jairo A. del Rio wrote: > > > > > > El jue, 24 de jun. de 2021 a la(s) 16:42, Hans Hagen (j.ha...@xs4all.nl > > <mailto:j.ha...@xs4all.nl>) escribió:

Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
El jue, 24 de jun. de 2021 a la(s) 16:42, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 6/24/2021 11:35 PM, Jairo A. del Rio wrote: > > > > > > El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen (j.ha...@xs4all.nl > > <mailto:j.ha...@xs4all.nl>) escribió:

Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
El jue, 24 de jun. de 2021 a la(s) 16:30, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 6/24/2021 11:20 PM, Jairo A. del Rio wrote: > > It prints: > > > > uname -m rb > hm, that is a real last resort attempt to determine what system it is > running on (we try to avoid

Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
) escribió: > On 6/24/2021 11:02 PM, Jairo A. del Rio wrote: > > When I try to install ConTeXt with install.sh (Linux 64 bit), the > > following happens: > > > > lua error : function call: /home/coragyps/lmtx/bin/mtxrun.lua:299: bad > > argument #2 to 'popen' (inval

Re: [NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
It prints: uname -m rb Jairo El jue, 24 de jun. de 2021 a la(s) 16:14, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 6/24/2021 11:02 PM, Jairo A. del Rio wrote: > > When I try to install ConTeXt with install.sh (Linux 64 bit), the > > following happens: > > > > lua e

[NTG-context] Install script not working

2021-06-24 Thread Jairo A. del Rio
When I try to install ConTeXt with install.sh (Linux 64 bit), the following happens: lua error : function call: /home/coragyps/lmtx/bin/mtxrun.lua:299: bad argument #2 to 'popen' (invalid mode) cp: no se puede efectuar `stat' sobre '/home/coragyps/lmtx/tex/texmf-linux-64/bin/mtxrun': No existe el

Re: [NTG-context] \startstaticMPfigure not producing .pdf or .mp.md5 files

2021-05-30 Thread Jairo A. del Rio
It seems \startstarticMPfigure ... \stopstaticMPfigure is now a wrapper for reusable MP graphics, so auxiliary files are no longer generated. I don't think this counts as an answer but you could use \typesetbuffer and \startMPpage ... \stopMPpage instead. Two auxiliary PDF files with funny names

Re: [NTG-context] ctxlua percentage format escape

2021-05-29 Thread Jairo A. del Rio
Hi, Adam. There are some ways to do it. I'm sure there are many more, but I don't remember them right now. Hi, Hans. There's a bug (?) in syst-lua.lua related to \expression in MkIV (xmath and xcomplex aren't defined). Please fix that %Temporary hack for MkIV %Only use it in case \expression

Re: [NTG-context] mathfun

2021-05-23 Thread Jairo A. del Rio
loaded. Jairo El dom, 23 de may. de 2021 a la(s) 09:35, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 5/23/2021 3:45 PM, Jairo A. del Rio wrote: > > El dom, 23 de may. de 2021 a la(s) 04:51, Hans Hagen (j.ha...@xs4all.nl > > <mailto:j.ha...@xs4all.nl>) escribió: > &

Re: [NTG-context] mathfun

2021-05-23 Thread Jairo A. del Rio
El dom, 23 de may. de 2021 a la(s) 04:51, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 5/22/2021 11:34 PM, Jairo A. del Rio wrote: > > Hi. Is \thewithproperty documented elsewhere? Is this a new primitive? > > It looks interesting. > In the case of the \sin trick particular

Re: [NTG-context] mathfun

2021-05-22 Thread Jairo A. del Rio
Hi. Is \thewithproperty documented elsewhere? Is this a new primitive? It looks interesting. Jairo El vie, 21 de may. de 2021 a la(s) 08:15, Hans Hagen (j.ha...@xs4all.nl) escribió: > Hi, > > > I uploaded an lmtx update (only m-mathfun added). > > Attached a short description of this (windy

Re: [NTG-context] Trouble constructing a drawer rail with MP

2021-05-21 Thread Jairo A. del Rio
Hi! Do p[102] := (origin--dir(194)*10mm) shifted Pkt[1]; and p[103] := (origin--dir(166)*10mm) shifted Pkt[2]; do what you need? Jairo El vie, 21 de may. de 2021 a la(s) 05:57, Willi Egger (cont...@boede.nl) escribió: > Hello MP Gurus! > > I wanted to make a technical drawing. However the

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-13 Thread Jairo A. del Rio
und (page 5, > bachotex-2017-emoji.pdf). > > I also do not get a white background with LibreOfiice. > > > I'd wait for Hans to fix it, as I don't really understand font management in ConTeXt... Jairo > Adam > > On Fri, May 14, 2021 at 12:51 AM Jairo A. del Rio > w

Re: [NTG-context] NotoColorEmoji - loca table not found

2021-05-13 Thread Jairo A. del Rio
In ConTeXt LMTX this works just fine (try mtxrun --generate and context --make first): \definefontfeature[Emoji][default][sbix=yes] \starttext \definedfont[file:NotoColorEmoji.ttf*Emoji]\char"1F91D \stoptext However, when one tries to convert it with ImageMagick the following happens:

[NTG-context] Fwd: Fuzzy lines

2021-05-12 Thread Jairo A. del Rio
-- Forwarded message - De: Jairo A. del Rio Date: mié, 12 de may. de 2021 a la(s) 14:08 Subject: Re: [NTG-context] Fuzzy lines To: mailing list for ConTeXt users El mié, 12 de may. de 2021 a la(s) 13:03, Henning Hraban Ramm ( te...@fiee.net) escribió: > Hi Jairo, > &

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Jairo A. del Rio
For simple pens, you may define your own (section 9.7 of MetaPost manual). For complicated strokes, something along these lines could be useful as a starting point (I'm not taking cyclic paths in consideration, btw). I did something similar with duck footprints some weeks ago: %Sorry for the ugly

[NTG-context] \char not working with private unicodes

2021-05-11 Thread Jairo A. del Rio
Hi, list! Following this thread: https://tex.stackexchange.com/questions/596610/how-to-use-luatex-with-large-unicode-codepoint, I tried to replicate it in ConTeXt. Both LMTX and LMTX fail to display the right symbol and, as it's discussed in the linked page, there's an offset by 14. Is this

[NTG-context] \prime is too high

2021-05-08 Thread Jairo A. del Rio
The following: \starttext $s''$ %or $s^{\prime}$ \stoptext gives a too high symbol in ConTeXt LMTX 2021.05.06 23:35. ConTeXt MkIV isn't affected for such an issue. Jairo ___ If your question is of interest to others

Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-27 Thread Jairo A. del Rio
: > On 4/26/2021 9:59 AM, Jairo A. del Rio wrote: > > > > > > El lun, 26 de abr. de 2021 a la(s) 01:49, Hans Hagen (j.ha...@xs4all.nl > > <mailto:j.ha...@xs4all.nl>) escribió: > > > > On 4/26/2021 6:59 AM, Jairo A. del Rio wrote: > >

Re: [NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-26 Thread Jairo A. del Rio
El lun, 26 de abr. de 2021 a la(s) 01:49, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 4/26/2021 6:59 AM, Jairo A. del Rio wrote: > > The following: > > > > \starttext > > > > \startMPinitializations > > > > input cmarrows; > > > > setup

[NTG-context] Conflict between MetaPost (LMTX) and cmarrows

2021-04-25 Thread Jairo A. del Rio
The following: \starttext \startMPinitializations input cmarrows; setup_cmarrows(arrow_name = "texarrow"; parameter_file = "cmr6.mf"; macro_name = "nicearrow"); \stopMPinitializations \startMPpage nicearrow (origin -- (1cm*left)); \stopMPpage \stoptext compiles perfectly with ConTeXt

Re: [NTG-context] Fwd: Corrupt PDF files with LMTX?

2021-04-25 Thread Jairo A. del Rio
Thank you a lot for the fix! Regards, Jairo El sáb, 24 de abr. de 2021 a la(s) 11:18, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 4/24/2021 3:05 PM, Jairo A. del Rio wrote: > > gives > > > > Error: stream Length incorrect. > >

[NTG-context] Fwd: Corrupt PDF files with LMTX?

2021-04-24 Thread Jairo A. del Rio
-- Forwarded message - De: Jairo A. del Rio Date: sáb, 24 de abr. de 2021 a la(s) 08:05 Subject: Re: [NTG-context] Corrupt PDF files with LMTX? To: Hans Hagen The following: \starttext \startMPpage fill fullcircle scaled 1cm withcolor red \stopMPpage \stoptext gives

[NTG-context] Corrupt PDF files with LMTX?

2021-04-24 Thread Jairo A. del Rio
Hi, list! When I try to convert a PDF generated by ConTeXt LMTX to PNG using ImageMagick's convert the following happens: Error: stream Length incorrect. Output may be incorrect. Error: An error occurred while reading an XREF table. The file has been

Re: [NTG-context] \processassignmentlist inside a \setup... or related

2021-04-20 Thread Jairo A. del Rio
, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 4/20/2021 4:23 AM, Jairo A. del Rio wrote: > > Hi, list! I hope my example shows clearly enough what I intend to do: > > > > \startluacode > > > > userdata = userdata or {} > > > > userdata.mydata = {} &

[NTG-context] \processassignmentlist inside a \setup... or related

2021-04-19 Thread Jairo A. del Rio
Hi, list! I hope my example shows clearly enough what I intend to do: \startluacode userdata = userdata or {} userdata.mydata = {} local function registermydata(data,...) table.insert(userdata.mydata, data) end interfaces.implement{ name = "registermydata", arguments = "2 strings",

Re: [NTG-context] Sorting items in Lua

2021-04-18 Thread Jairo A. del Rio
Oh, yes, I've just found it. Thanks! Jairo El dom, 18 de abr. de 2021 a la(s) 10:52, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 4/18/2021 4:21 PM, Jairo A. del Rio wrote: > > > Also, as registers allow to set a language for sorting, I want to know > > how to do the sam

[NTG-context] Sorting items in Lua

2021-04-18 Thread Jairo A. del Rio
Hi, list. I want to know how to use ConTeXt sorters, as those used in registers, in Lua. Like this: \starttext \startluacode --Spanish local list = {"ñandú", "perrera", "zócalo", "árnica"} --What's "sortingfunction"? context(table.concat(sortingfunction(list)," ")) \stopluacode \stoptext

Re: [NTG-context] A Metafun-Problem

2021-04-12 Thread Jairo A. del Rio
Is this what you need? If so, change unitsquare by fullsquare. Jairo El lun, 12 de abr. de 2021 a la(s) 16:06, Willi Egger (cont...@boede.nl) escribió: > Hi > > can somebody tell me why I do not get a trapezoid with bottom angles of > 120 degrees? > > Please try the attached minimal example. >

[NTG-context] Sudoku module

2021-04-12 Thread Jairo A. del Rio
Hi, list! I've just finished a minimal module for sudoku puzzles based on Peter Norvig's algorithm. The module and examples are in the link below: https://github.com/JairoAdelRio/context-sudoku My port is a sorta literal translation of Python's version, so improvements are to be done. As always,

[NTG-context] Issue with \handletokens\with and Lua-defined macros

2021-03-29 Thread Jairo A. del Rio
Hi list! See the following example: \startluacode userdata = userdata or {} --Toy example --My actual function receives an argument, but the problem remains the same userdata.myfunction = function() return "343327959841638047651959775267761420323" ..

Re: [NTG-context] Writing to .tuc directly from Lua

2021-03-24 Thread Jairo A. del Rio
El mié, 24 de mar. de 2021 a la(s) 16:47, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 3/24/2021 6:33 PM, Jairo A. del Rio wrote: > > Hi, Hans. Here's my (miserably failing) attempt: > > > > \definedataset[nicedata] > > > > \starttext > > > >

Re: [NTG-context] Writing to .tuc directly from Lua

2021-03-24 Thread Jairo A. del Rio
: > On Wed, 24 Mar 2021, Jairo A. del Rio wrote: > > > Hi, Hans. Here's my (miserably failing) attempt: > > > > \definedataset[nicedata] > > > > \starttext > > > > \startluacode > > > > local name = "nicedata" > > > &

Re: [NTG-context] Writing to .tuc directly from Lua

2021-03-24 Thread Jairo A. del Rio
itions are met, so the compilation is twice as slow, the opposite result of what I meant to do. How do I fix that? Jairo El mié, 24 de mar. de 2021 a la(s) 01:38, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 3/24/2021 5:20 AM, Jairo A. del Rio wrote: > > Thank you very much. It's usefu

Re: [NTG-context] Writing to .tuc directly from Lua

2021-03-23 Thread Jairo A. del Rio
Jairo A. del Rio wrote: > > > Hi, list. I read about this: > > > > https://www.mail-archive.com/ntg-context@ntg.nl/msg60217.html > > > > But I want to know how to pass data to the .tuc file directly from Lua. I > > think about some complex strings are calculat

[NTG-context] Writing to .tuc directly from Lua

2021-03-23 Thread Jairo A. del Rio
Hi, list. I read about this: https://www.mail-archive.com/ntg-context@ntg.nl/msg60217.html But I want to know how to pass data to the .tuc file directly from Lua. I think about some complex strings are calculations which are done in each pass and slow down the whole compilation process.

Re: [NTG-context] Problems with new ConTeXt in Linux

2021-03-20 Thread Jairo A. del Rio
Thank you very much. For the moment, it solves the problem. Jairo El sáb, 20 de mar. de 2021 a la(s) 08:41, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 20.03.2021 um 14:21: > > I deleted the .tma files. I'm still having the same issue

Re: [NTG-context] Problems with new ConTeXt in Linux

2021-03-20 Thread Jairo A. del Rio
I deleted the .tma files. I'm still having the same issue. Jairo El sáb, 20 de mar. de 2021 a la(s) 06:00, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 3/20/2021 8:13 AM, Jairo A. del Rio wrote: > > When I update to ConTeXt LMTX version 2021.03.20 01:07, the following > > happen

[NTG-context] Problems with new ConTeXt in Linux

2021-03-20 Thread Jairo A. del Rio
When I update to ConTeXt LMTX version 2021.03.20 01:07, the following happens during format generation: tex error > tex error on line 25 in file spac-hor.mkxl: Undefined control sequence \bitwiseflip \normalizelinemode \flattendiscretionariescode So, what is happening here? Jairo

[NTG-context] \underbar and co. not working properly in MkIV

2021-03-10 Thread Jairo A. del Rio
Hi, list. The following works well in LMTX, but it applies underlining to the next dash sign when compiled with MkIV: \starttext %\overbar{foo}-bar \underbar{foo}-bar \stoptext I've found a workaround for it, but I want to know about the reason for such a strange behavior. Thanks beforehand.

Re: [NTG-context] \showcolor broken in LMTX

2021-02-27 Thread Jairo A. del Rio
Thank you for the fix. Best regards, Jairo :) El vie, 26 de feb. de 2021 a la(s) 07:53, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 2/26/2021 12:16 AM, Jairo A. del Rio wrote: > > Hi, list. The following example fails in LMTX, but it works in MkIV: > > > > \starttext\sh

Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Jairo A. del Rio
Wow, both \maxaligned and "paragraph" are new (and useful) to me. Thank you again. Jairo El vie, 26 de feb. de 2021 a la(s) 17:24, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 26.02.2021 um 23:09: > > Nice, but it also a

Re: [NTG-context] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Jairo A. del Rio
( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 26.02.2021 um 22:38: > > Hi list. > > > > Is there an interface for \hbox to via framed? I think it's not > > the ConTeXt spirit to do something like > > > > \framed[offset=0cm]{\hbox to 10

[NTG-context] \hbox to ... equivalent in ConTeXt (\framed)

2021-02-26 Thread Jairo A. del Rio
Hi list. Is there an interface for \hbox to via framed? I think it's not the ConTeXt spirit to do something like \framed[offset=0cm]{\hbox to 10cm{Uno dos tres}} where spacing is stretched so all the available space is filled, so I want to know about a better way. Thank you beforehand.

[NTG-context] \showcolor broken in LMTX

2021-02-25 Thread Jairo A. del Rio
Hi, list. The following example fails in LMTX, but it works in MkIV: \starttext\showcolor[svg]\stoptext LMTX complains about a s-colors-run file not found Best regards, Jairo ___ If your question is of interest to

Re: [NTG-context] Arbitrary equation tags... again

2021-02-23 Thread Jairo A. del Rio
is now visible \stoptext However, one has to manually write a label and a title independently, so I'm not sure that's a clean solution... Best regards, Jairo El lun, 22 de feb. de 2021 a la(s) 23:28, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > Hi again. The following doesn't w

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
Rio ( jairoadelr...@gmail.com) escribió: > Oh, dumb me, sorry for the noise and thank you very much. Not every day is > a good one, sorry again. > > Jairo. > > El lun, 22 de feb. de 2021 a la(s) 08:51, Hans Hagen (j.ha...@xs4all.nl) > escribió: > >> On 2/22/2021 2

Re: [NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
Oh, dumb me, sorry for the noise and thank you very much. Not every day is a good one, sorry again. Jairo. El lun, 22 de feb. de 2021 a la(s) 08:51, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 2/22/2021 2:05 PM, Jairo A. del Rio wrote: > > Hi. list. > > Is it possible to assi

[NTG-context] Arbitrary equation tags... again

2021-02-22 Thread Jairo A. del Rio
Hi. list. Is it possible to assign an arbitrary equation tag in ConTeXt? I've seen solutions here; https://tex.stackexchange.com/questions/400257/tag-equation-in-context-with-arbitrary-text but none of them works as expected (either the formula counter is still incrementing with arbitrary

Re: [NTG-context] Are positional graphics still working?

2021-02-17 Thread Jairo A. del Rio
It works fine now. Thank you a lot for the fix. Cordially, Jairo :) El mié, 17 de feb. de 2021 a la(s) 06:09, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 2/17/2021 12:18 AM, Jairo A. del Rio wrote: > > I've copied the following example from the ConTeXt archive: > > > >

[NTG-context] Are positional graphics still working?

2021-02-16 Thread Jairo A. del Rio
I've copied the following example from the ConTeXt archive: \defineoverlay[frames][\positionoverlay{frames}] \setupbackgrounds[text][background=frames] \startMPpositiongraphic{frame} if unknown context_apos : input mp-apos.mpiv ; fi ; \MPgetposboxes{\MPvar{self}}{\MPanchorid} if nofposboxes

Re: [NTG-context] Loop?

2021-02-12 Thread Jairo A. del Rio
(a...@ugr.es) escribió: > Hi Jairo: > > On Fri, Feb 12, 2021 at 01:50:58PM -0500, Jairo A. del Rio wrote: > > > Hi, Ángel. Like this? > > > \def\mylist{Fulano,Mengano,Sutano} > > \def\mycommand#1{#1\blank{\red Something here}\blank} > > \starttext > > \process

Re: [NTG-context] Loop?

2021-02-12 Thread Jairo A. del Rio
) escribió: > Jairo A. del Rio schrieb am 12.02.2021 um 19:50: > > Hi, Ángel. Like this? > > > > \def\mylist{Fulano,Mengano,Sutano} > > > > \def\mycommand#1{#1\blank{\red Something here}\blank} > > > > \starttext > > > >

Re: [NTG-context] Loop?

2021-02-12 Thread Jairo A. del Rio
Oops, it's "zutano". Sorry for the typo. Jairo :) El vie, 12 de feb. de 2021 a la(s) 13:50, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > Hi, Ángel. Like this? > > \def\mylist{Fulano,Mengano,Sutano} > > \def\mycommand#1{#1\blank{\red Something he

Re: [NTG-context] Loop?

2021-02-12 Thread Jairo A. del Rio
Hi, Ángel. Like this? \def\mylist{Fulano,Mengano,Sutano} \def\mycommand#1{#1\blank{\red Something here}\blank} \starttext \processcommacommand[\mylist]\mycommand \stoptext There are better ways to deal with data in ConTeXt, but it's basically that way, I think. Jairo El vie, 12 de feb.

Re: [NTG-context] SVG fonts not working properly

2021-02-06 Thread Jairo A. del Rio
Ah, sorry. I'll try again. Jairo El sáb., 6 de feb. de 2021 3:45 p. m., Hans Hagen escribió: > On 2/6/2021 3:08 AM, Jairo A. del Rio wrote: > > svg=fixdepth breaks, with or without the patch. > > > > fatal lua error: > > > > > > run callback [6]: [st

Re: [NTG-context] SVG fonts not working properly

2021-02-05 Thread Jairo A. del Rio
nction <...mtx/tex/texmf-context/tex/context/base/mkiv/luat-run.lua:54> Jairo El vie, 5 de feb. de 2021 a la(s) 17:02, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 2/5/2021 6:29 PM, Jairo A. del Rio wrote: > > The following examples doesn't work as expected: > > > >

[NTG-context] SVG fonts not working properly

2021-02-05 Thread Jairo A. del Rio
The following examples doesn't work as expected: \definefontfeature[emojis][default,color:svg][script=latn,language=dflt] \definefont[gilbert][file:Gilbert-ColorBoldPreview5*emojis @ 13bp] \starttext {\gilbert abcdefghijklmnpqrstuvwxyz} \stoptext Letters are displayed correctly, but

Re: [NTG-context] composing commands

2021-02-05 Thread Jairo A. del Rio
I agree with the optional alternative. If LuaMetaTeX goes (c)leaner, it can get rid of obsolete constructions made for a pre-Unicode world. Some are already angry with primitives gone and I think that's positive, but it's only my opinion. Jairo :) El vie., 5 de feb. de 2021 11:38 a. m., Hans

Re: [NTG-context] midi

2021-02-03 Thread Jairo A. del Rio
I've found this: https://www.pjb.com.au/comp/lua/MIDI.html https://github.com/PedroAlvesV/LuaMidi Both of them are pure Lua modules. Considering how easy is to write bindings for Lua code in ConTeXt, MIDI interfacing doesn't sound so surreal, after all. I'd do it as I'm doing it for the maze

  1   2   3   >