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
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;
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
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
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
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
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
>
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,
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 =
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}%
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 (
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:
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
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
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
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
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
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
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.
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]
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),
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
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
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?
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
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
-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
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
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
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"
30 matches
Mail list logo