[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

Re: [NTG-context] midi

2021-02-03 Thread Jairo A. del Rio
Wow, that's great :) Would be nice to have it in the Garden so newcomers see what ConTeXt is able to do. Jairo El mié, 3 de feb. de 2021 a la(s) 14:00, Fabrice L (fabrice.al...@gmail.com) escribió: > Hi, > > Off topic (I hope this is ok), an animation made 100% with ConTeXt / > MetaFun. Several

Re: [NTG-context] Forcing indentation on item groups

2021-02-02 Thread Jairo A. del Rio
Oh, cool. Thank you very much! :D Jairo El mar., 2 de feb. de 2021 11:46 p. m., Wolfgang Schuster < wolfgang.schuster.li...@gmail.com> escribió: > Jairo A. del Rio schrieb am 03.02.2021 um 00:37: > > Hi list. I have the following example: > > > > >

[NTG-context] Forcing indentation on item groups

2021-02-02 Thread Jairo A. del Rio
Hi list. I have the following example: \setupindenting[yes,medium] \starttext \startitemize[n,text][stopper=,lefttext=(,righttext=)] \startitem A\stopitem \startitem B\stopitem \startitem C\stopitem \stopitemize \stoptext The item group doesn't follow indentation. Adding \leavevmode

Re: [NTG-context] font bug in latest from 2021.01.29 19:44?

2021-01-30 Thread Jairo A. del Rio
It is fine again. Thank you a lot, Hans. Jairo :) El vie., 29 de ene. de 2021 5:48 p. m., Pablo Rodriguez escribió: > On 1/29/21 11:24 PM, Hans Hagen wrote: > > On 1/29/2021 9:59 PM, Pablo Rodriguez wrote: > > > >> Could anyone confirm this bug? > > hm, some overload protection side effect ...

Re: [NTG-context] font bug in latest from 2021.01.29 19:44?

2021-01-29 Thread Jairo A. del Rio
Math fonts are broken. In fact, even with compact fonts disabled, math fonts aren't working properly. Jairo El vie, 29 de ene. de 2021 a la(s) 16:18, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > Same here. It compiles well when the math font definition is commentend. > The

Re: [NTG-context] font bug in latest from 2021.01.29 19:44?

2021-01-29 Thread Jairo A. del Rio
Same here. It compiles well when the math font definition is commentend. The error seems to be there: \setfontid \3>mainface-12pt-mm-mr--1 \font_helpers_low_level_define_compact ...ec \empty \let \lastrawfontcall \relax \mutable \letcsname #2\endcsname \relax \else \edef \somefontspec {at

Re: [NTG-context] Hyphenation on digits

2021-01-28 Thread Jairo A. del Rio
Nice. Thank you very much, it works perfectly. :) 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. del Rio wrote: > > Hi, list. > > > > I want to know if ConTeXt provides an option to automaticall

[NTG-context] Hyphenation on digits

2021-01-28 Thread Jairo A. del Rio
Hi, list. I want to know if ConTeXt provides an option to automatically hyphenate/break digits as if they were alphabetic characters. Example, in a narrow page I expect something like that (I've used (-) for an optional hyphen): *π = *3.141592653(-) 58979323846264(-) 33832795028841(-)

Re: [NTG-context] Using \overloaded

2021-01-24 Thread Jairo A. del Rio
Hi, Rik. If it helps, flags are explained in lowlevel-security manual: https://www.pragma-ade.com/general/manuals/lowlevel-security.pdf Jairo :) El dom, 24 de ene. de 2021 a la(s) 16:16, Rik Kabel ( cont...@rik.users.panix.com) escribió: > On 1/24/2021 04:33, Wolfgang Schuster wrote: > > Rik

[NTG-context] m-ipsum broken

2021-01-23 Thread Jairo A. del Rio
Hi, list Compiling m-ipsum yields an error in latest LMTX (2021.01.22 09:41) Jairo ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

Re: [NTG-context] web server

2021-01-22 Thread Jairo A. del Rio
So, is it still broken? Jairo El vie, 22 de ene. de 2021 a la(s) 11:11, Pablo Rodriguez (oi...@gmx.es) escribió: > On 1/22/21 1:46 PM, Hans Hagen wrote: > > Hi, > > > > I'm moving the webserver to another ip address so there can be some > > temnporary hickups (dns and such) > > Many thanks for

Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
El vie, 22 de ene. de 2021 a la(s) 17:39, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 22.01.2021 um 23:14: > > How strange. I guess you don't have your modules installed. In such a > > case, you could install them from modules.co

Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
How strange. I guess you don't have your modules installed. In such a case, you could install them from modules.contextgarden.net and put content under texmf-modules so after mtxrun --generate and context --make examples work. Another possibility is to use \do...empty and such, but it feels odd

Re: [NTG-context] [startstop]

2021-01-22 Thread Jairo A. del Rio
Like this? \usemodule[annotation] %Thanks for this module, Wolfgang \defineannotation[zzz] \define[2]\AnnotationCommand {\doifelse{\placeannotationtitle}{}{}{\hrule\bf\placeannotationtitle\par}#2\blank[10mm]} \setupannotation[zzz] [alternative=command, command=\AnnotationCommand, text=]

[NTG-context] demo-symbols not working with LMTX

2021-01-19 Thread Jairo A. del Rio
Hi, list. I was looking for information about fonts in ConTeXt defined using MetaPost and I found demo-symbols.tex for an Unicode (?) character. However, it doesn't work. While LMTX just doesn't print the symbol, MkIV complains from the Lua side. Has something changed? Jairo

Re: [NTG-context] Getting dimensions in Lua

2021-01-18 Thread Jairo A. del Rio
To be wikified (by me, obviously). Thank you for such a great number of alternatives. Jairo :) El lun, 18 de ene. de 2021 a la(s) 04:45, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 1/18/2021 1:58 AM, Jairo A. del Rio wrote: > > Hi, list. > > > > I want to get some d

Re: [NTG-context] Getting dimensions in Lua

2021-01-18 Thread Jairo A. del Rio
:) El lun, 18 de ene. de 2021 a la(s) 05:02, Taco Hoekwater (t...@bittext.nl) escribió: > > > > On 18 Jan 2021, at 10:45, Hans Hagen wrote: > > > > On 1/18/2021 1:58 AM, Jairo A. del Rio wrote: > >> Hi, list. > >> I want to get some dimensions

[NTG-context] Getting dimensions in Lua

2021-01-17 Thread Jairo A. del Rio
Hi, list. I want to get some dimensions in Lua. See, for instance \starttext \the\dimexpr\availablehsize\relax %say, 426pt \stoptext Is there an equivalent in ConTeXt for Lua, i.e. without passing values from TeX or, at least, using only Lua commands? Thank you in advance. Best wishes,

[NTG-context] Weekdays and others as numbers

2021-01-08 Thread Jairo A. del Rio
ConTeXt has some inbuilt functions for dates. I see that the following \mainlanguage[spanish] \starttext \dayoftheweek{4}{5}{1992} \stoptext gives "lunes" (Monday). How to get a weekday number (2 in this case) instead? Sincerely, Jairo

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread Jairo A. del Rio
't italicise the 'The', only the main name. Is it possible, do you > think, to get the -> operator to work only on, say 'Observer' and not > 'The', and for that matter not on the page number as well? Perhaps not, but > worth asking the question anyway! > > Julian > On 8/1/21 9

Re: [NTG-context] styling part of an index entry

2021-01-07 Thread Jairo A. del Rio
Hi. In latest LMTX (2021.01.07 16:59), your example works as expected: \defineregister[myindex] \defineprocessor[style][style=italic]%Isn't another name available? \starttext In \myindex{style->Observer, The}{\em The Observer} of 31 July 2018 \placemyindex% \stoptext Jairo El jue, 7 de

Re: [NTG-context] Some ligatures don't work in latest LMTX

2021-01-07 Thread Jairo A. del Rio
Oh, yeah. It works again. Thank you very much :) Jairo El jue., 7 de ene. de 2021 10:20 a. m., Hans Hagen escribió: > On 1/7/2021 3:04 PM, Jairo A. del Rio wrote: > > Hmm, it works for Persian because this uses less diacritics than Arabic. > > The following

Re: [NTG-context] Some ligatures don't work in latest LMTX

2021-01-07 Thread Jairo A. del Rio
/Islam/quran-short-phrases-and-verses.php بِسْمِ اللَّـهِ الرَّحْمَـٰنِ الرَّحِيمِ \stoptext Hi, Hans. Could you please check this out? It works for MKIV, but in LMTX vowels are misplaced. Thank you in advance. Jairo El jue, 7 de ene. de 2021 a la(s) 08:48, Jairo A. del Rio ( jairoadelr...@gmail.com

Re: [NTG-context] Some ligatures don't work in latest LMTX

2021-01-07 Thread Jairo A. del Rio
I didn't test it, but I could with some Iranian song lyrics as I did last time... Jairo El jue, 7 de ene. de 2021 a la(s) 01:33, escribió: > Hi > > Does that work now? > > Best, > > Denis > > > > *Von:* ntg-context *Im Auftrag von *Jairo A. > del Rio >

Re: [NTG-context] Randomize order of blocks

2021-01-06 Thread Jairo A. del Rio
a > \stopbuffer > > \dorecurse{6}{\blank[medium]{\bf Exercise #1.} > \getbuffer[test-derivatives] > } > > \stoptext > > %% end shuffled list of exercises > > > > On 6 Jan 2021, at 09:41, Otared Kavian wrote: > > > > Hi Jairo, > > &g

[NTG-context] Randomize order of blocks

2021-01-05 Thread Jairo A. del Rio
Hi, list. Some time ago I realized ConTeXt has "blocks" which allow one to make quizzes, exams and related with ease. However, I want to know if there's an option to randomize their order when printed. Thank you in advance. Jairo

Re: [NTG-context] SILE typesetter and other projects

2021-01-03 Thread Jairo A. del Rio
Probably the false equivalence TeX = LaTeX which is common to see in many forums and sites on the web: TeX is said not to be able to do X just because LaTeX can't. It's upsetting. groff looks interesting, tho. Jairo El dom., 3 de ene. de 2021 12:20 p. m., Andres Conrado Montoya <

Re: [NTG-context] Ducks in ConTeXt

2021-01-02 Thread Jairo A. del Rio
El jue, 31 de dic. de 2020 a la(s) 07:17, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 24.12.2020 um 15:18: > > Hi everyone! > > > > I've recently ported TikZducks to ConTeXt and finally removed TIkZ > > along the way.

[NTG-context] About \includeMPgraphic and local presets

2021-01-01 Thread Jairo A. del Rio
Hi, list! I've read elsewhere \MPrawvar allows a preset to be applied outside \start...\stopuseMPgraphic. \startuseMPgraphic{hi} draw fullcircle scaled \MPrawvar{hi}{u}; \stopuseMPgraphic \setupMPvariables[hi][u=1cm] \startMPcode \includeMPgraphic{hi} \stopMPcode However,

Re: [NTG-context] About xdecimal

2020-12-28 Thread Jairo A. del Rio
iro A. del Rio wrote: > > Hi, list. > > > > I've tried using the xdecimal library included with LuaMetaTeX and I > > have some remarks: > > > > 1. Shifts are decimal, not binary: 145 >> 1 gives 14. > > this is how decnumber defines shift: digit

[NTG-context] About xdecimal

2020-12-28 Thread Jairo A. del Rio
Hi, list. I've tried using the xdecimal library included with LuaMetaTeX and I have some remarks: 1. Shifts are decimal, not binary: 145 >> 1 gives 14. 2. Integer division (//) is not implemented. Is that by design? 3. Following 2, what would be the way to handle integer division, remainder...

[NTG-context] Questions concerning interfaces (and a feature request)

2020-12-28 Thread Jairo A. del Rio
Hi, Hans and list. I want to know two things. 1. If the "option/content" pair could be enabled for hashes and arrays in interfaces.definecommand: \starttext \startluacode interfaces.definecommand{ name = "acommand", --This doesn't work --arguments = {"content", "array"}, arguments =

[NTG-context] Check if two paths intersect in Metafun

2020-12-25 Thread Jairo A. del Rio
Hi, list. I've got a question about paths and intersections. The following: \starttext \startMPpage path p[]; p[1] = fullcircle scaled 2cm; p[2] = unitsquare shifted (4cm,6cm); if (known (p[1] intersectionpoint p[2])): draw textext("yes"); else: draw textext("no"); fi;

Re: [NTG-context] Ducks in ConTeXt

2020-12-24 Thread Jairo A. del Rio
El jue, 24 de dic. de 2020 a la(s) 10:53, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 12/24/2020 3:18 PM, Jairo A. del Rio wrote: > > Hi everyone! > > > > I've recently ported TikZducks to ConTeXt and finally removed TIkZ along > > the way. So a new module was cr

[NTG-context] Ducks in ConTeXt

2020-12-24 Thread Jairo A. del Rio
Hi everyone! I've recently ported TikZducks to ConTeXt and finally removed TIkZ along the way. So a new module was created. The module is called "metaducks" (lol) and it's essentially a \useMPgraphic{...} with a lot of options, most of them ported from TikZducks. For those not familiar with the

Re: [NTG-context] cow-font

2020-12-23 Thread Jairo A. del Rio
Oh, I've just noticed that. How cute is that! ❤️ Thank you for the remark. Cordially, Jairo El mié, 23 de dic. de 2020 a la(s) 04:22, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 23.12.2020 um 09:15: > > Using the Dutch name &quo

  1   2   3   >