Re: [NTG-context] \dorecurse{}{} problem

2020-09-21 Thread Jairo A. del Rio
Hi, Using ##1 instead of \recurselevel makes it work in this specific case if you want a quick and dirty solution. It seems to be a thing with nesting, as using #1 complains. I'd prefer the solutions as shown by Aditya: constructing tables via Lua, etc. Regards, Jairo El lun., 21 de sep. de

[NTG-context] Add arrow tips to axes in lmt_function

2020-09-19 Thread Jairo A. del Rio
Hi, list! I want to know how to add arrow tips for axes (x, y) to a function. I did the following based on a luametafun example: \starttext \startMPcode{doublefun} draw lmt_function [ xmin=0, xmax=10, xstep=.05, ymin=-2, ymax=2, code="1.5 * math.cosd(240 * math.sqrt(x))",

[NTG-context] Footnote font size equal to main text font size

2020-09-14 Thread Jairo A. del Rio
Hi, list. I've adapted the following example from the mailing list. My aim is to use endnotes for each chapter: \mainlanguage[es] \definehead[footnotetitle][title] \startsetups[chapter:after] \ifcase\rawcountervalue[footnote]\relax \else \startfootnotetitle[title={Notas}]

[NTG-context] About Metapost and patterns, tessellations, fractals, etc.

2020-09-07 Thread Jairo A. del Rio
Hi, list! I have a problem with some graphics in Metapost. I've tried to replicate the Koch curve cited here using ConTeXt: https://en.wikipedia.org/wiki/L-system To my own amusement, the patterns seem to appear. However, when I try with a number from 6, ConTeXt stops doing anything or output

Re: [NTG-context] new upload

2020-08-31 Thread Jairo A. del Rio
Hi, Hans. :) Is there an analogue for display math? Could discretionaries be applicable to math formulas when "split=yes" is enabled, for instance? Thank you in advance. Jairo :) El lun., 31 de ago. de 2020 a la(s) 15:21, Hans Hagen (j.ha...@xs4all.nl) escribió: > Hi, > > In order to keep the

Re: [NTG-context] A dumb question about MetaFun

2020-08-16 Thread Jairo A. del Rio
I found another workaround, but I'm going to try this. Thank you, Keith, and thank you, Taco. Cordially, Jairo :) El dom., 16 de ago. de 2020 3:36 p. m., Taco Hoekwater escribió: > > > > On 16 Aug 2020, at 21:09, Keith McKay wrote: > > > > Jairo > > > > Try > > > > draw unitsquare scaled 1cm

[NTG-context] A dumb question about MetaFun

2020-08-16 Thread Jairo A. del Rio
Hi list! A simple question: is there an equivalent of thetextext for a normal picture (an "image(draw ... ;)")? I want to move the center of a picture to an specific point, like this: \startMPpage draw thetextext("\tttf hello", origin) ; draw unitsquare scaled 1cm; \stopMPpage The "hello" is

[NTG-context] About documented code

2020-08-15 Thread Jairo A. del Rio
Hi list! I have some questions about the template used by module documentation. When I apply context --extra=module t-mymodule.mkvi --autopdf I obtain a nice file, but, among other things, 1) the cover page seems to be a bit... greenish? So I want to know how to customize it, at least at a

Re: [NTG-context] Two questions about color in MetaFun

2020-08-13 Thread Jairo A. del Rio
Using \MPcolor does it for me. Thank you very much, Aditya :) Jairo :) El jue., 13 de ago. de 2020 a la(s) 18:47, Aditya Mahajan (adit...@umich.edu) escribió: > On Thu, 13 Aug 2020, Jairo A. del Rio wrote: > > > Hi, list! I have two questions concerning MetaFun: > > >

[NTG-context] Two questions about color in MetaFun

2020-08-13 Thread Jairo A. del Rio
Hi, list! I have two questions concerning MetaFun: 1st: What is the correct way to pass a ConTeXt named color (e.g. xwi's "maroon") to MetaFun. Using (with \usecolors[xwi] loaded in the preamble): withcolor maroon does not work. I could copy-paste definitions from ConTeXt sources and do e.g.

Re: [NTG-context] new upload

2020-08-09 Thread Jairo A. del Rio
Update: after cleaning the cache, I have the same problem as Pablo. Jairo :) El dom., 9 de ago. de 2020 a la(s) 13:45, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > On my computer mtxrun --generate works, but context --make fails and the > command line outputs: > &g

Re: [NTG-context] new upload

2020-08-09 Thread Jairo A. del Rio
On my computer mtxrun --generate works, but context --make fails and the command line outputs: tex error > tex error on line 448 in file lang-ini.mkxl: ! Undefined control sequence \dohyphens ->\hyphenationmode \plusthree l.448 \dohyphens Jairo :) El dom., 9 de

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
Nice, I'm reading results right now. Thank you a lot, Hans. Jairo :) El dom., 9 de ago. de 2020 a la(s) 13:05, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 8/9/2020 8:03 PM, Jairo A. del Rio wrote: > > Oh, thank you a lot, Hans, that's a really cleaner way than mine. One > >

Re: [NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
...@xs4all.nl) escribió: > On 8/9/2020 5:39 PM, Jairo A. del Rio wrote: > > Hi, list! I'm doing the following to scale squares and other stuff in > > MetaPost/MetaFun. Although the following kinda works (maybe I'm just > > lucky with this), I want to know how to do a better piece from

[NTG-context] How to properly pass TeX/Lua data to MetaPost/MetaFun?

2020-08-09 Thread Jairo A. del Rio
Hi, list! I'm doing the following to scale squares and other stuff in MetaPost/MetaFun. Although the following kinda works (maybe I'm just lucky with this), I want to know how to do a better piece from it. I'm concerned with passing data from Lua and TeX to Metapost and better ways to do it in

Re: [NTG-context] Using \applytosplitstringwordspaced and allies

2020-08-09 Thread Jairo A. del Rio
) escribió: > Jairo A. del Rio schrieb am 08.08.2020 um 16:31: > > Thank you very much! Something else happens: > > > > \applytosplitstringwordspaced\somemacro{Content and {\tt typewriter} > > more content} > > > > either ignores braced gro

[NTG-context] context --luatex does not redirect to LuaTeX

2020-08-08 Thread Jairo A. del Rio
Hi again! When context --luatex is used with current version: 2020.08.07 23:37 LuaMetaTeX is still used. --engine=luatex has no effect, either. Is that a bug? Thanks Cordially, Jairo :) ___ If your question is of

Re: [NTG-context] Using \applytosplitstringwordspaced and allies

2020-08-08 Thread Jairo A. del Rio
cument or loaded via Lua, even when context.escape is used. How to keep {\it braced content}? Thank you in advance. Jairo :) El sáb., 8 de ago. de 2020 a la(s) 08:34, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 8/8/2020 12:00 PM, Wolfgang Schuster wrote: > > Jairo A. del Rio schrieb am

[NTG-context] Using \applytosplitstringwordspaced and allies

2020-08-08 Thread Jairo A. del Rio
Hi, list! :D I've found \applytosplitstringwordspaced and many other commands reading on the mailing list and TeX StackExchange. An issue with those is: the following does not work: \applytosplitstringwordspaced\somemacro{\input knuth} It only works with explicit TeX "words". How to circumvent

Re: [NTG-context] teaser

2020-08-07 Thread Jairo A. del Rio
, considering the fact ConTeXt already outperforms LaTeX wrt language support. Regards, Jairo :) El vie., 7 de ago. de 2020 a la(s) 04:37, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 8/7/2020 11:14 AM, Jairo A. del Rio wrote: > > Nice, I've just tested it and it works fine. Thank you, Hans

Re: [NTG-context] teaser

2020-08-07 Thread Jairo A. del Rio
:02, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 8/7/2020 9:59 AM, Jairo A. del Rio wrote: > > The original in English, Ozymandias, by Percy Bysshe Shelley, is public > > domain. I extracted the Spanish and French versions from Wikipedia, > > which use a CC BY-SA 3.

Re: [NTG-context] teaser

2020-08-07 Thread Jairo A. del Rio
The original in English, Ozymandias, by Percy Bysshe Shelley, is public domain. I extracted the Spanish and French versions from Wikipedia, which use a CC BY-SA 3.0 License. El vie., 7 de ago. de 2020 a la(s) 02:50, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 8/7/2020 6:22 AM, Jairo A. del

Re: [NTG-context] teaser

2020-08-06 Thread Jairo A. del Rio
Looks useful for multilingual documents, e.g. interleaved lines or linguistic glosses. The following example worked for me, but I share in case there's a way to do better code from it: \starttext \newbox\spanishbox \newbox\englishbox \newbox\frenchbox \setbox\spanishbox\vbox\bgroup\red\obeylines

Re: [NTG-context] About vertical typesetting in ConTeXt

2020-08-04 Thread Jairo A. del Rio
cific case, but ConTeXt is too cute... Thank you again, Hans. Sincerely, Jairo. El mar., 4 de ago. de 2020 a la(s) 07:52, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 8/4/2020 2:42 PM, Hans Hagen wrote: > > On 8/4/2020 10:32 AM, Jairo A. del Rio wrote: > > > >> http://www.mongol

Re: [NTG-context] About vertical typesetting in ConTeXt

2020-08-04 Thread Jairo A. del Rio
o know about a better solution if ConTeXt offers it so it is accessible to other users. Thank you in advance. Regards, Jairo El mié., 10 de jun. de 2020 a la(s) 03:11, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > I totally ignored this document until now. As it looks really promisi

Re: [NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Jairo A. del Rio
Now it works. Thank you very much, Wolfgang! Cordially, Jairo El lun., 3 de ago. de 2020 a la(s) 23:17, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 04.08.2020 um 06:07: > > > The following worked some days ago. No

[NTG-context] Fwd: \emph not working in LMTX (bug?)

2020-08-03 Thread Jairo A. del Rio
-- Forwarded message - De: Jairo A. del Rio Date: lun., 3 de ago. de 2020 a la(s) 23:05 Subject: Re: [NTG-context] \emph not working in LMTX (bug?) To: Wolfgang Schuster The following worked some days ago. Now it crashes: \setuphead[chapter][alternative=middle,textstyle=\cap

[NTG-context] \emph not working in LMTX (bug?)

2020-08-03 Thread Jairo A. del Rio
The following crashes with LMTX (current version: 2020.08.03 14:25): \starttext \emph{Hola} \stoptext Log: \emphasiscorrection ->\ifhmode \ifnum \currentgrouptype =\aligngroupcode \else \expandafter \expandafter \expandafter \font_emphasis_look \fi \fi \egroup \egroup l.2 \emph{Hola} Is

Re: [NTG-context] consistent index entries

2020-08-01 Thread Jairo A. del Rio
Wrt formatting (e.g. \index{\emph{something}}), the garden also mentions processors for MkIV (https://wiki.contextgarden.net/Registers#Processors), so you can wrap them with custom commands, in case it helps. Cordially, Jairo. El sáb., 1 de ago. de 2020 a la(s) 14:01, Jairo A. del Rio

Re: [NTG-context] consistent index entries

2020-08-01 Thread Jairo A. del Rio
Hi, Henning. According to the garden, something like: \def\Ort#1{\index[#1]{\ctxlua{user.Lookup("#1")}}} as long as #1 is capable of being sorted in the normal way, should work. Regards, Jairo El sáb., 1 de ago. de 2020 a la(s) 13:49, Henning Hraban Ramm ( te...@fiee.net) escribió: > > > >

[NTG-context] context --engine=luatex not working

2020-07-23 Thread Jairo A. del Rio
Hi list! Is --engine=luatex working? Has it changed? The switch seems to be ignored with newer ConTeXt distributions, so only LuaMetaTeX is used. Thank you in advance. Jairo :) ___ If your question is of interest to

Re: [NTG-context] french translation of ConTeXt interface - progress (v3)

2020-07-19 Thread Jairo A. del Rio
I guess pdp is "Pied de page". I don't speak French, but it is close enough to Spanish. Maybe we should do a translation to Spanish too. Congratulations for your colossal effort, Garulfo. Jairo :) El dom., 19 de jul. de 2020 11:49 p. m., Aditya Mahajan escribió: > On Sun, 19 Jul 2020, Garulfo

Re: [NTG-context] context --ctx=s-mod not working?

2020-07-15 Thread Jairo A. del Rio
I still get a corrupted file, almost empty as it seems. However, error messages are missing, so something weird is happening. Jairo :) El mié., 15 de jul. de 2020 a la(s) 03:17, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 7/15/2020 9:27 AM, Jairo A. del Rio wrote: > > Hi list! >

[NTG-context] context --ctx=s-mod not working?

2020-07-15 Thread Jairo A. del Rio
Hi list! I've tried context --ctx=s-mod with some files, e.g. t-annotation and I only get corrupted PDF files. Also, when I try with files such as syst-aux.mkiv, I get the following error after a L O T of warnings: \wait tex error > tex error on line 4554 in file syst-aux.mkiv: ? \wait

Re: [NTG-context] What does #+ do?

2020-07-13 Thread Jairo A. del Rio
Hi. Sorry, I meant \def\foo#1#2#3{#1#2#3} and \def\foo#+#+#+{#1#2#3}. Jairo :) El lun., 13 de jul. de 2020 a la(s) 19:08, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > Hi list! > > In evenmore pp. 76-77, concerning LMTX extended macro parsing, the > following ex

[NTG-context] What does #+ do?

2020-07-13 Thread Jairo A. del Rio
Hi list! In evenmore pp. 76-77, concerning LMTX extended macro parsing, the following examples of #0, #+ and #- are given \def\TestA#1#2#3{{(#1)(#2)(#3)}} \def\TestB#1#0#3{(#1)(#2)(#3)} \def\TestC#1#+#3{(#1)(#2)(#3)} \def\TestD#1#-#2{(#1)(#2)} So \TestA1{\red 2}3 \TestB1{\red 2}3 \TestC1{\red

Re: [NTG-context] About alternative=middle in section heads

2020-07-12 Thread Jairo A. del Rio
Oh, I see. Thanks! Jairo :) El dom., 12 de jul. de 2020 a la(s) 22:56, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 12.07.2020 um 22:31: > > I've realized ConTeXt now puts the section label and section number > > above the se

Re: [NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Jairo A. del Rio
El dom., 12 de jul. de 2020 a la(s) 16:20, Hans Hagen (j.ha...@xs4all.nl) escribió: > You get a list of defined color names in 'xwi' with: > > attributes.colors.setlist("xwi") > Nice, it works! I note the first method only works when \usecolors[xwi] is present; otherwise, it prints an

[NTG-context] About alternative=middle in section heads

2020-07-12 Thread Jairo A. del Rio
I've realized ConTeXt now puts the section label and section number above the section title whe alternative=middle is set. How to disable this behavior so one can have a section label and number next to a centered section title? Thank you in advance. Sincerely, Jairo :)

[NTG-context] Iterate over color scheme in ConTeXt/Lua

2020-07-12 Thread Jairo A. del Rio
Hi, list. I've got a question about color schemes in ConTeXt What if want to access the entire list of, say, xwi: for k,v in pairs(xwi_list) do --Supposing xwi_list is contains xwi colors (whatever action I want) end So far I'm manually setting colors from colo-imp-xwi.mkiv, but I suspect

Re: [NTG-context] error after Linux upgrade

2020-07-10 Thread Jairo A. del Rio
Hi, jbf If your path is set correctly (as well as TEXROOT and OSFONTDIR), you probably need to do the following first: mtxrun --generate context --make using either the TeXLive option or a standalone installation. AFAIK you only need to do manual setting if you want to use the standalone;

Re: [NTG-context] Minimum METAPOST code produces problematic PDF

2020-07-07 Thread Jairo A. del Rio
Evince and Okular (Linux) open the PDF output without warnings nor issues. Jairo :) El mar., 7 de jul. de 2020 a la(s) 17:50, Gerben Wierda ( gerben.wie...@rna.nl) escribió: > The following code: > > \startMPpage[instance=doublefun] > draw (0,0)--(100,0) dashed withdots; > \stopMPpage > >

Re: [NTG-context] About xstring and ConTeXt

2020-07-07 Thread Jairo A. del Rio
). Jairo :D El mar., 7 de jul. de 2020 a la(s) 16:31, Phelype Oleinik ( phe.h...@gmail.com) escribió: > On Tue, Jul 7, 2020 at 6:21 PM Jairo A. del Rio > wrote: > > > > Thank, Wolfgang! Both methods work, but both fail with the following > example: > > > > \pushmac

Re: [NTG-context] About xstring and ConTeXt

2020-07-07 Thread Jairo A. del Rio
Thank, Wolfgang! Both methods work, but both fail with the following example: \pushmacro\unexpanded \let\unexpanded\normalunexpanded \input xstring \popmacro\unexpanded \starttext \StrGobbleLeft{bcdef}{4} \stoptext The log says: tex error > tex error on line 6 in file ./tests.tex: ! This can't

Re: [NTG-context] About xstring and ConTeXt

2020-07-07 Thread Jairo A. del Rio
anded > \input xstring.tex > \let\unexpanded\protected > but the internals of the package will probably be comprimised by the > misuse of (ConTeXt) \unexpanded. > > Phelype > > On Tue, Jul 7, 2020 at 3:40 PM Jairo A. del Rio > wrote: > > > > Reading about

[NTG-context] About xstring and ConTeXt

2020-07-07 Thread Jairo A. del Rio
Reading about macro bundles meant to be generic (format agnostic), some of them work in plain/LaTeX, but crash when loaded on ConTeXt. The following happens with xstring.tex tex error > tex error on line 372 in file xstring.tex: ! Illegal parameter number in definition of \xs_reserved_C 1

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Jairo A. del Rio
Now it works! Thank you so much, Wolfgang! Jairo :) El lun., 6 de jul. de 2020 a la(s) 13:48, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Pablo Rodriguez schrieb am 06.07.2020 um 20:04: > > On 7/6/20 3:58 PM, Jairo A. del Rio wrote: > >> So, cannot I

Re: [NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-06 Thread Jairo A. del Rio
the interaction works fine. > > Best regards: Otared K. > > > On 6 Jul 2020, at 01:15, Jairo A. del Rio > wrote: > > > > The following: > > > > > \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] > > > \defineenume

[NTG-context] Bad interaction between \setupinteraction and \defineenumeration

2020-07-05 Thread Jairo A. del Rio
The following: \setupinteraction[state=start,focus=standard,color=black,contrastcolor=black] \defineenumeration[proposition][alternative=top,text=Proposición,headalign=middle,numberconversion=R,headstyle=\WORDS,style=\emph,referenceprefix=prop] \starttext \startproposition[1]

[NTG-context] Fwd: Radicals are broken (again)

2020-07-05 Thread Jairo A. del Rio
I broke my own installation some hours ago and I fixed it. My sincere apologies for any inconvenience. Jairo :) -- Forwarded message - De: Jairo A. del Rio Date: dom., 5 de jul. de 2020 a la(s) 16:06 Subject: Radicals are broken (again) To: mailing list for ConTeXt users

[NTG-context] Radicals are broken (again)

2020-07-05 Thread Jairo A. del Rio
The following gives wrong outputs both in LuaTeX and LuaMetaTeX: \starttext $\sqrt{3}$ \stoptext The beta date is 2020.7.5. Thank you very much. Jairo :) ___ If your question is of interest to others as well,

Re: [NTG-context] LMTX and soft links (Linux)

2020-07-05 Thread Jairo A. del Rio
Indeed, it works. A fast "cp -rs" solved it. Anyways, I'd rather prefer a less "manual" method. Thank you very much, Pablo. Jairo :) El dom., 5 de jul. de 2020 a la(s) 14:52, Pablo Rodriguez (oi...@gmx.es) escribió: > On 7/5/20 9:14 PM, Jairo A. del Rio wrote: >

[NTG-context] LMTX and soft links (Linux)

2020-07-05 Thread Jairo A. del Rio
I'm using both LMTX from the ConTeXt standalone installation and a TeX Live installation. Since I'm using binaries from the standalone (and added LMTX to path, etc.), I created soft links in texmf-modules via ln -s /usr/local/texlive/2020/texmf-dist/tex ~/lmtx/tex/texmf-modules/tex and similar

[NTG-context] About some deprecated commands

2020-07-05 Thread Jairo A. del Rio
Hi, list! I've realized the following commands commented in https://wiki.contextgarden.net/System_Macros/Expansion_Control no longer work in LMTX: \@EA \@EAEAEA \@EAEAEAEAEAEA One just could copy them from syst-aux.mkiv, but anyways. Should it be mentioned on the Wiki or something like that?

Re: [NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-30 Thread Jairo A. del Rio
> There is a manual about math but it's not complete > If you mean math-mkiv, it doesn't shed lights about fractions. I'm seeing it's more illustrating about subjects as integrals and other stuff, tho. Reading the mailing list, I realized there's a simplecommand key for matrices, among other nice

Re: [NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-29 Thread Jairo A. del Rio
n a manual; the Garden doesn't say a lot about it). Thank you very much. Sincerely, Jairo :) El lun., 29 de jun. de 2020 a la(s) 09:51, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 6/28/2020 6:06 PM, Jairo A. del Rio wrote: > > |Hi list! I've tried adapting the following code for co

Re: [NTG-context] Commands with arguments before in ConTeXt

2020-06-29 Thread Jairo A. del Rio
main_control(void) > > is the one that does all the heavy lifting (using a dispatch table). > > Taco > > > On 29 Jun 2020, at 12:15, Jairo A. del Rio > wrote: > > > > Hans, after your explanation I'm actually curious now about details, but > my knowledge i

Re: [NTG-context] Commands with arguments before in ConTeXt

2020-06-29 Thread Jairo A. del Rio
onTeXt way of doing things so I can play with the suggestion made by Luigi. Regards, Jairo :) El lun., 29 de jun. de 2020 a la(s) 08:27, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 6/29/2020 12:21 PM, Jairo A. del Rio wrote: > > Wouldn't it be slow for larger documents? I will try anyway. By

Re: [NTG-context] Commands with arguments before in ConTeXt

2020-06-29 Thread Jairo A. del Rio
very much. Jairo :) El lun., 29 de jun. de 2020 a la(s) 02:50, luigi scarso ( luigi.sca...@gmail.com) escribió: > > > On Sun, Jun 28, 2020 at 10:48 PM Jairo A. del Rio > wrote: > >> I've read the following is not possible in TeX >> >> \def#1\macro{blabla#1}

Re: [NTG-context] Commands with arguments before in ConTeXt

2020-06-29 Thread Jairo A. del Rio
, at least I know why that feature isn't supported. I'll be thankful for any references. Thank you very much. Jairo :) El lun., 29 de jun. de 2020 a la(s) 02:28, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 6/28/2020 10:48 PM, Jairo A. del Rio wrote: > > I've read the following is not possib

[NTG-context] Commands with arguments before in ConTeXt

2020-06-28 Thread Jairo A. del Rio
I've read the following is not possible in TeX \def#1\macro{blabla#1} where arguments come before. The only partial exceptions are commands like \atop or \over, which are in fact primitives. Is there a way to do this in ConTeXt? Could it be a feature request for LuaMetaTeX? I've seen Hans

[NTG-context] Fwd: Continued fractions in ConTeXt

2020-06-28 Thread Jairo A. del Rio
Hi list! I've tried adapting the following code for continued fractions: %https://tex.stackexchange.com/questions/73195/how-to-typeset-a-continued-fraction-in-the-following-format \documentclass{article}\usepackage{amsmath} \begin{document}\newcommand*{\cofrac}[2]{% {%

Re: [NTG-context] Footnotes in math mode

2020-06-28 Thread Jairo A. del Rio
It's "subscribe nodigest", right? Sorry for the inconveniences Jairo :) El dom., 28 de jun. de 2020 a la(s) 06:11, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 28.06.2020 um 12:54: > > Hi list! I want to know how to pro

[NTG-context] Footnotes in math mode

2020-06-28 Thread Jairo A. del Rio
Hi list! I want to know how to properly use footnotes in math mode. The following: \starttext \startformula \int_{a}^{b} f(x) d x=\lim _{h=0}\left[\int_{a}^{c-h} f(x) d x+\int_{c+h}^{b} f(x) d x\right] \startfootnote Footnote \stopfootnote \stopformula \stoptext doesn't complain but it doesn't

[NTG-context] Macros which scan subscripts/superscripts in ConTeXt

2020-06-25 Thread Jairo A. del Rio
Hi, list! I've seen the following in Stack Exchange: https://tex.stackexchange.com/questions/503208/define-macro-that-scans-ahead-for-super-and-or-subscript-absorbs-them-and-mo The answer is: \documentclass{article}\usepackage{amsmath}\usepackage{xparse} \NewDocumentCommand{\mymathsym}{e{^_}}{%

[NTG-context] More funny numbers

2020-06-11 Thread Jairo A. del Rio
Hi everyone! The following example shows that numerators of fractions inside math alignment environments appear with a funny size: \startTEXpage \startformula \startmathalignment[n=1,align=middle] \NC \frac{1351}{780}>\sqrt{3}>\frac{265}{153}, 3013 \frac{3}{4}>\sqrt{9082321}, \quad 1838

[NTG-context] Draft Watermark of Garden gives unexpected results

2020-06-11 Thread Jairo A. del Rio
The following example of using layers doesn't works as expected in ConTeXt https://wiki.contextgarden.net/Draft_Watermark The watermark is partially outside the page, whereas the Wiki result is more "centered". Is that an intended behaviour? Additionally, how to center an element in a layer

[NTG-context] Funny radicals in LMTX

2020-06-11 Thread Jairo A. del Rio
Hi list! Nesting radicals in LMTX give a funny font size compared with LuaTeX, which gives the correct output. I cleaned the cache, just in case. I attach code and outputs. Thank you in advance. \startTEXpage \startformula a_{2n} = \sqrt{2-\sqrt{4-a_{2n}}} \stopformula \stopTEXpage Jairo :D

[NTG-context] About vertical typesetting in ConTeXt

2020-06-09 Thread Jairo A. del Rio
Hi list! I'm curious about vertical typesetting in ConTeXt. As far as I know, LuaTeX supports four text directions, but LTL is broken for Manchu script (letters are displayed unjoined in LTL mode) and LuaMetaTeX does not support vertical directions anymore, at least as primitives. I found the

[NTG-context] Two issues with respect to sections in ConTeXt

2020-06-04 Thread Jairo A. del Rio
First: I made the following question wrt swapping section labels and section numbers: https://tex.stackexchange.com/questions/547761/how-to-swap-section-labels-and-section-numbers-in-context What I tried to do is the following section structure 1. Chapter (Name of chapter) 1. 2 Section (Name

[NTG-context] Two questions concerning numerals in ConTeXt

2020-06-01 Thread Jairo A. del Rio
Hi, everybody. I expect you to be safe. I found the following issues. *First. *The following gives wrong results for Spanish numbers \mainlanguage[es] \starttext \convertnumber{words}{100} %Prints "ciento" instead of "cien" \convertnumber{words}{200} %Prints "dos millón" instead of "dos

[NTG-context] Math delimiters across math alignment environments

2020-05-29 Thread Jairo A. del Rio
Hi dear list! I have a question about the use of delimiters. There are commands as \left ... \right which allow delimiters of variable size, but they are usually asymmetrical. AFAIK, ConTeXt has mechanisms of the form \definemathfence[something][something][command=yes]. My question is: is it

[NTG-context] About the use of command handlers

2020-05-28 Thread Jairo A. del Rio
Hello list! I was reading the following: https://wiki.contextgarden.net/Style_Alternatives I wanted to figure out how to make a simple module. However, there's a point in the example below which I don't understand % macros=mkvi \startmodule[look] \unprotect \writestatus{loading}{ConTeXt User

[NTG-context] About Latex compatibility module

2020-05-23 Thread Jairo A. del Rio
Hi everyone! I was reading some old posts on TeX.SX about LaTeX support on ConTeXt and I found the following: https://web.archive.org/web/20110822085249/https://modules.contextgarden.net/LaTeX However, not only the module seems to be deprecated, but there's no more info about the module now

[NTG-context] List of language-specific hyphenation commands

2020-05-22 Thread Jairo A. del Rio
Hi everybody! I've read about some commands which allow hyphenation according to an specific language in ConTeXt, e.g. \french{word} for French hyphenation in a text the main language of which is Spanish, English, etc. Unlike \language[code], I couldn't find any extensive list of those commands,

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
Pablo pointed out the bug in Evince. Sorry too. I've used another PDF viewer and SVG color displays correctly. Thanks. El mié., 20 de may. de 2020 a la(s) 16:32, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > Info from \luatexbanner > > For ConTeXt (LuaTeX): This is LuaTeX

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
Info from \luatexbanner For ConTeXt (LuaTeX): This is LuaTeX, Version 1.13.0 (TeX Live 2021/dev) For ConTeXt (LMTX): This is LuaMetaTeX, Version 2.06.03 El mié., 20 de may. de 2020 a la(s) 16:25, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 5/20/2020 10:26 PM, Jairo A. del Rio wrote: > &

Re: [NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
On 5/20/2020 9:31 PM, Pablo Rodriguez wrote: > > On 5/20/20 12:26 PM, Jairo A. del Rio wrote: > >> [...] > >> Only Twemoji Mozilla and Segoe UI Emoji worked for me, so, what am I > >> doing wrong? > > > > Hi Jairo, > > > > using latest

[NTG-context] Emoji color fonts not working on LMTX/Context MKIV

2020-05-20 Thread Jairo A. del Rio
I've tried the following from the manuals and adapted some code to see if it works: 1. \definefontfeature[svg][svg=yes] \definefontsynonym[Emoji][file:emojionecolor-svginot.ttf*default,svg] \definesymbol[bug][\getglyphdirect{Emoji}{\char"1F41B}] \starttext \symbol[bug] \stoptext The emoji has no

[NTG-context] LMTX not working in Windows 10

2020-05-18 Thread Jairo A. del Rio
Hi everyone! I've tried installing LMTX on Windows 10 (x64) (I use Ubuntu, but my PC isn't available now). Whatever. When I try to execute context.exe the following appears: ! Parameters must be numbered consecutively. 0 l.214 \def\gobbleoneargument #0

[NTG-context] .so libraries not working with LMTX

2020-05-01 Thread Jairo A. del Rio
I've tried using some C libraries for Lua in LuaTeX: http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ They work (both LuaLaTeX and ConTeXt), but when LMTX is used, the following message appears (an example with MAPM): token call, execute:

[NTG-context] supp-ran.lua makes code unable to work in ConTeXt

2020-04-30 Thread Jairo A. del Rio
I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generation#Lua I defined a modified version to make content visible to TeX and I saved in a file named maze.lua: function make_maze_tex(w, h, m) w = w or 16 h = h or 8 local map =

[NTG-context] PGFPlots does not work with LMTX

2020-04-24 Thread Jairo A. del Rio
I'm testing LMTX with documents I've written for ConTeXt MKIV. I've copied the third party module folder from ConTeXt and some of them work like a charm (t-vim, TikZ, etc.). Nonetheless, I find PGFPlots just doesn't work. I've tried with the minimal example: \usemodule[pgfplots] \starttext Hola

[NTG-context] Text editors don't execute ConTeXt standalone

2020-04-23 Thread Jairo A. del Rio
I've recently installed the ConTeXt standalone following the instructions listed below: https://www.contextgarden.net/Ubuntu However, commands as "context" and "mtxrun" only work when executed from terminal. When I specify these commands in a text editor (TeXstudio, Textadept), they just don't

[NTG-context] Fwd: Adding optional enumeration text to framed enumeration header

2020-04-18 Thread Jairo A. del Rio
Sorry, I resend my question because I forgot the subject -- Forwarded message - De: Jairo A. del Rio Date: sáb., 18 de abr. de 2020 a la(s) 23:53 Subject: To: mailing list for ConTeXt users I've seen the following solution in Stack Exchange to add referenceable enumeration

[NTG-context] (no subject)

2020-04-18 Thread Jairo A. del Rio
I've seen the following solution in Stack Exchange to add referenceable enumeration labels to a framed enumeration environment: https://tex.stackexchange.com/questions/438588/context-and-metafun-framed-enumeration-with-counter-as-part-of-overlay It uses \wrappedcurrentconstruction. However, it

Re: [NTG-context] "Remember picture" does not work (again)

2020-04-17 Thread Jairo A. del Rio
Sorry, I tested again and it worked. Thank you very much. El mar., 7 de abr. de 2020 a la(s) 06:18, Jairo A. del Rio ( jairoadelr...@gmail.com) escribió: > It does not work. I get the following error message: > > You can't use `the character 6' after \the > > > l.1 6 > &

[NTG-context] Using two versions of ConTeXt

2020-04-17 Thread Jairo A. del Rio
Hi everyone! I'm using the ConTeXt version packaged with TeX Live 2020 and recently I have downloaded LMTX. Both of them work, but when I call "context" from terminal, I compile with the TeX Live version, whereas I have to use a fully specified path to get LMTX output. Is there a way to call both

Re: [NTG-context] "Remember picture" does not work (again)

2020-04-07 Thread Jairo A. del Rio
\relax \setbox #1\emptybox \global ... ... l.22 \stoptext El mar., 7 de abr. de 2020 a la(s) 02:32, Hans Hagen (j.ha...@xs4all.nl) escribió: > On 4/7/2020 4:07 AM, Jairo A. del Rio wrote: > > I've tried using the fix in > > https://tex.stackexchange.com/a/492197/193767 in

[NTG-context] "Remember picture" does not work (again)

2020-04-06 Thread Jairo A. del Rio
I've tried using the fix in https://tex.stackexchange.com/a/492197/193767 in order to make TikX's remember picture feature usable, Code below, just in case: \unprotect% This fixes the present

Re: [NTG-context] Fwd: Using Lua files in project structure

2020-04-06 Thread Jairo A. del Rio
This worked for me. Thank you very much. El lun., 6 de abr. de 2020 a la(s) 11:11, Aditya Mahajan (adit...@umich.edu) escribió: > > On Mon, 6 Apr 2020, Jairo A. del Rio wrote: > > > > Well, I'll be more specific. I attach a zip file showing a minimal > example > >

[NTG-context] Fwd: Using Lua files in project structure

2020-04-06 Thread Jairo A. del Rio
-- Forwarded message - De: Jairo A. del Rio Date: lun., 6 de abr. de 2020 a la(s) 08:58 Subject: Re: [NTG-context] Using Lua files in project structure To: Wolfgang Schuster Well, I'll be more specific. I attach a zip file showing a minimal example of what I achieved so far

Re: [NTG-context] Using Lua files in project structure

2020-04-05 Thread Jairo A. del Rio
project. El dom., 5 de abr. de 2020 a la(s) 09:28, Wolfgang Schuster ( wolfgang.schuster.li...@gmail.com) escribió: > Jairo A. del Rio schrieb am 05.04.2020 um 15:00: > > I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua > > libraries and bindings (defining

[NTG-context] Using Lua files in project structure

2020-04-05 Thread Jairo A. del Rio
I'm writing a project in ConTeXt MKIV and I want to load some (pure) Lua libraries and bindings (defining \ctxlua and the like). For instance, I have the file foo.lua with some macros and I want to use them in my project. Something like this: \startproject project %\component foo.lua %This does

[NTG-context] Item group parentheses

2019-12-26 Thread Jairo A. del Rio
I'm defining item groups in ConTeXt and I find the following issue: combining the "text" parameter with others automatically disables "left" and "right" keys, so numbers always appear enclosed in parentheses. %What I expect: %I. This ain't right %What I get: %(I) This ain't right

[NTG-context] Using ConTeXt with LuaTeX variants

2019-12-05 Thread Jairo A. del Rio
Hi. How do I build the format? I try context --make ANd nothing special happens. How do I set up the new engine. Thank you in advance. ___ If your question is of interest to others as well, please add an entry to the

[NTG-context] Using ConTeXt with LuaTeX variants

2019-12-04 Thread Jairo A. del Rio
I want to know if it's possible use HarfTeX/LuaHBTeX with ConTeXt (MKIV), mainly for what can be done with them (the "mode=harf" feature and Lua language features). Although this is pretty easy with LaTeX: \usepackage{harfload} \setmainfont{font}[RawFeature={mode=harf}] I have no idea of how to

[NTG-context] Sectionwise page range in ConTeXt TOC

2019-10-12 Thread Jairo A. del Rio
I know ConTeXt TOC is quite customizable. However, I don't figure out how to include a page range next to section labels. For instance, something like that: 1. Chapter . . . 1 - 4 1.1 Section . . . 1 - 3 1.2 Section . . . 3 - 4 2. Chapter . . . 4 - 7 I've seen a LaTeX implementation here:

[NTG-context] Unexpected behavior of subsection labels

2019-10-06 Thread Jairo A. del Rio
I tried the following \setuphead[chapter][align=middle,header=empty,footer=empty] \setuphead[section][align=middle,number=no] \setuphead[subsection][align=middle,number=yes,sectionsegments=subsection,conversion=g] \mainlanguage[spanish]