[NTG-context] Re: Mikael’s missing math manual

2024-03-18 Thread Aditya Mahajan
On Mon, 18 Mar 2024, Mikael Sundqvist wrote: > > One participant tested some math alignment examples from an older paper > > by Aditya and found them working in her current LMTX installation but > > not in COW – I know it runs an older version, but Aditya’s article was > > even older… > > There

[NTG-context] Re: PDF, runner, and TikZ patches

2024-03-14 Thread Aditya Mahajan
On Thu, 14 Mar 2024, Jim wrote: > Max (et al), > > were you hoping the ConTeXt distribution would ship its own > pgfutil-context.def, or were you hoping that someone could convince Henri > to put the RGB change in? We can patch some of the definitions of pgfutil-context.def in m-tikz if really

[NTG-context] Re: has the statistical charts module a new home?

2024-03-11 Thread Aditya Mahajan
On Mon, 11 Mar 2024, Henning Hraban Ramm wrote: > Hi Tomáš et al., > > the site https://akela.mendelu.cz/~thala/statcharts/ and actually the whole > server disappeared. > > Is there a new download location for the charts module? There is a version on internet archive:

[NTG-context] Re: Strange error at lxml-mms.lmt:749

2024-02-25 Thread Aditya Mahajan
On Sun, 25 Feb 2024, Andres Conrado Montoya wrote: > Another remark: It seems this behavior is consistent: if I comment out the > last equation before the one I told you before, again the next formula > works fine, Would it be possible to create a reproducible example? Aditya

[NTG-context] Re: An announcement of my new book.

2024-02-15 Thread Aditya Mahajan
On Thu, 15 Feb 2024, Mikael Sundqvist wrote: > Hi, > > This small example from BachoTeX 2023 could perhaps be useful for > someone: https://github.com/mpsmath/stepbystep For tutorials, I had played around with using a git repo as a tutorial:

[NTG-context] Re: \starttable questions

2024-01-26 Thread Aditya Mahajan
On Thu, 25 Jan 2024, Jim wrote: > The nice thing about your setup above is that it is nice and structured. > But if a table calls for some row, column or cell to be treated > differently, I guess I am in for some more reading. You can do: \setupTABLE[2][3] to select the formatting for row 3 and

[NTG-context] Re: \starttable questions

2024-01-25 Thread Aditya Mahajan
On Thu, 25 Jan 2024, Jim wrote: > On Thu, Jan 25, 2024 at 17:30 (+0100), Aditya Mahajan wrote: > > > I haven't looked at starttable in well over a decade, but I did document > > some of it: > > > https://www.tug.org/TUGboat/Articles/tb28-3/tb90mahajan.pdf >

[NTG-context] Re: \starttable questions

2024-01-25 Thread Aditya Mahajan
On Thu, 25 Jan 2024, Jim wrote: > In a recent answer on this list, Mikael helped someone by pointing out the > \HF[...] command. The \HF command is not listed in the \starttable wiki page. > > Q2: Is \HF[] documented anywhere? If so, can someone point me to that/those > document(s)? > >

[NTG-context] Re: Caching Metafun images and VIM Syntax highlighted code

2024-01-24 Thread Aditya Mahajan
On Wed, 24 Jan 2024, Shiv Shankar Dayal wrote: > Perhaps Aditya Mahajan can tell me how can I cache code snippets. Invoking > VIM will have heavy penalty on highlighting the code otherwise. Have you tried the vim module: https://github.com/adityam/filter/blob/dev/vim-README.md C

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Aditya Mahajan
On Fri, 19 Jan 2024, Hans Hagen via ntg-context wrote: > On 1/19/2024 12:34 AM, Aditya Mahajan wrote: > > On Thu, 18 Jan 2024, Hans Hagen wrote: > > > >> Of course we'll never be as fast as (pure) plain tex (no layers added) or > >> latex (which often is

[NTG-context] Re: Why LuaMetaTex is so slow?

2024-01-18 Thread Aditya Mahajan
On Thu, 18 Jan 2024, Hans Hagen wrote: > Of course we'll never be as fast as (pure) plain tex (no layers added) or > latex (which often is advocated as faster than context). I was curious, so did a quick experiment: typeset \input knuth 500 times. Here are the results: pdflatex: 547 pages/sec

[NTG-context] Re: Linebreak in formual

2024-01-15 Thread Aditya Mahajan
On Mon, 15 Jan 2024, Mikael Sundqvist wrote: > Hi, > > you can try something like > > \sum_{\mstack{k=0, k\equiv p + 1 (\mtext{mod }2)}}^{p -1} > > but it will not be too pretty with such a large sub-index to the sum. There is also \sum_{\startsubstack \NC a \NR \NC b \NR \stopsubstack}

[NTG-context] Re: Looking for itemize help

2024-01-15 Thread Aditya Mahajan
On Mon, 15 Jan 2024, Jim wrote: > Thoughts? \startitemize[nowhite, after] . . . \stopitemize See: https://adityam.github.io/context-blog/post/spacing-in-itemize/ Aditya ___ If your question is of interest to

[NTG-context] Re: Do we have a geometry library for Metafun?

2024-01-12 Thread Aditya Mahajan
On Fri, 12 Jan 2024, Shiv Shankar Dayal wrote: > Do we have a geometry library for common operations like finding tangents, > perpendiculars, circumcircle, orthocenters and such? No library that I know of, but drawing tangents (and therefore, perpendiculars) is straight-forward:

[NTG-context] Re: Question to a formular

2024-01-05 Thread Aditya Mahajan
On Fri, 5 Jan 2024, Ursula Hermann wrote: > Dear list, > > > I have this formular, but no idea , how to write it in Context. This is a > formular with factorial. > > > 0! := 1 > (n + 1)! := (n + 1) n! > > Can someone help me please? \starttext \startformula \startalign \NC 0! \NC

[NTG-context] Re: Status of Asymptote

2023-12-30 Thread Aditya Mahajan
On Sun, 31 Dec 2023, Shiv Shankar Dayal wrote: > It would be nice to either support Metapost 3D or Asymptote. Right now I > generate images separately and embed them in PDF using externalfigure command > which works but I have to maintain all the graphics separately. It is possible to obtain

[NTG-context] Re: increase vertical between underbrace and equation

2023-12-18 Thread Aditya Mahajan
On Mon, 18 Dec 2023, Aditya Mahajan wrote: > On Mon, 18 Dec 2023, Dean Hung wrote: > > > The documentation on underbrace (and overbrace, underbracket, etc...) in > > the ContextGarden wiki seems to be very limited, and I was not able to find > > any user-supplied

[NTG-context] Re: increase vertical between underbrace and equation

2023-12-18 Thread Aditya Mahajan
On Mon, 18 Dec 2023, Dean Hung wrote: > Hi ConText friends, > > I am trying to increase the vertical distance between the underbrace and > the part of the equation above the underbrace. > > \startformula > \underbrace{x+y+z}_{\blank[1cm]\mathrm{my text here}} > \stopformula > > I've tried

[NTG-context] Re: error with definestartstop and startmode

2023-12-18 Thread Aditya Mahajan
On Sun, 17 Dec 2023, Wolfgang Schuster wrote: > Peter Münster schrieb am 17.12.2023 um 10:09: > > On Sat, Dec 16 2023, Hans Hagen via ntg-context wrote: > > > >> \usemodule[abbreviations-logos] > >> \defineblock [H] [before=\startcolor[blue],after=\stopcolor] > >> \keepblocks[H] > > Thanks for

[NTG-context] Re: Fractions (was \placefigure[location=here...] problem)

2023-12-09 Thread Aditya Mahajan
On Sat, 9 Dec 2023, Wolfgang Schuster wrote: > \starttext > > \startlines > \type{\frac{1}{3}}: \m{\frac{1}{3}} > \type{\xfrac{1}{3}}: \m{\xfrac{1}{3}} > \type{\xxfrac{1}{3}}: \m{\xxfrac{1}{3}} > \type{\tfrac{1}{3}}: \m{\tfrac{1}{3}} > \type{\sfrac{1}{3}}: \m{\sfrac{1}{3}} > \type{\frac{1}{3}}:

[NTG-context] Re: multipage metapost output from ConTeXt

2023-11-27 Thread Aditya Mahajan
On Mon, 27 Nov 2023, Fabrice L wrote: > Hi, > > It is fun fact very easy to do. You just use \startMPpage (…) \stopMPpage > multiple times. Here is an example which build an animation of a particle > moving according to a Brownian motion. A very similar option is to pass a variable to a

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Aditya Mahajan
On Wed, 22 Nov 2023, Wolfgang Schuster wrote: > Hans van der Meer schrieb am 22.11.2023 um 21:22: > > The problem persists. Here the new logfile. > > 1. What is the version of your Luametatex binary? > >     luametatex --version >     This is LuaMetaTeX, Version 2.10.11 For me, it is the same:

[NTG-context] Re: externalfigure crashed

2023-11-22 Thread Aditya Mahajan
On Wed, 22 Nov 2023, Wolfgang Schuster wrote: > Hans van der Meer via ntg-context schrieb am 22.11.2023 um 20:55: > > When \externalfigure could not find the file it used to graciously place a > > rectangle kindly telling the user that the file has not been found. > > But now, however, it seems

[NTG-context] Re: It works after a few changes but ..

2023-11-17 Thread Aditya Mahajan
On Fri, 17 Nov 2023, Ursula Hermann wrote: > Dear List, > After a few changes i have here an example: > It works, but what I wanted to know is why are there > > round brackets after writing \starttheroem if i compile it. > Should be without round brackets. Are you looking for something like

[NTG-context] Re: ConTeXt support for Nova text editor (MacOS)

2023-11-11 Thread Aditya Mahajan
On Sat, 11 Nov 2023, Paul Mazaitis wrote: I don't use MacOS, but ... > (As an aside, this extension uses an updated version of the ConTeXt > tree-sitter parser [https://github.com/pmazaitis/tree-sitter-context] that > can now recognize (most) environments and use them to parse out the document

[NTG-context] Re: Example is not working

2023-11-03 Thread Aditya Mahajan
On Fri, 3 Nov 2023, Ursula Hermann wrote: > Dear List, > i hope somone can help me. \starttext ... \stoptext is missing! > This litte example is from the wiki, i wanted to try \placeformula \starttext > \placeformula[formula:aformula] > \startformula > y=x^2 > \stopformula > \placeformula >

[NTG-context] Re: typearea

2023-11-01 Thread Aditya Mahajan
On Sun, 29 Oct 2023, Henning Hraban Ramm wrote: > Am 29.10.23 um 11:37 schrieb Thomas Meyer: > > Hi, > > I'm new to ConTeXt and try to use the module typearea > > (https://modules.contextgarden.net/cgi-bin/module.cgi/action=find/name=typearea). > > But the example doesn't work: > > The module is

[NTG-context] Re: Combining python and lua

2023-10-25 Thread Aditya Mahajan
On Wed, 25 Oct 2023, Alexandre Christe wrote: > Dear list, > > I’d like to know the best approach to make this a bit more usable. I’m trying > to typeset a table with sin/cos/tan values. I’d like to be able to convert > the angles in degrees into radians (with math notation) and to compute the

[NTG-context] Re: numbered itemize list item label alignment

2023-10-15 Thread Aditya Mahajan
On Sun, 15 Oct 2023, Wolfgang Schuster wrote: > Csikos Bela schrieb am 15.10.2023 um 15:51: > > Hello: > > > > I would like to make a long numbered itemize list, where the numbers > > increase up to three digits. > > I would like the numbered labels aligned to the right and the widest > > label's

[NTG-context] Re: bibliography questions

2023-10-03 Thread Aditya Mahajan
On Tue, 3 Oct 2023, Henning Hraban Ramm wrote: > For my ConTeXt book, I thought it would make sense, and I would jump through > some hoops just to use the system, but > – most sources that I want to list are never quoted (method=dataset) > – I would need to define my own rendering, e.g. don’t

[NTG-context] formula alignment for mathalign

2023-09-28 Thread Aditya Mahajan
Hi, The `align` parameter of `\setupformulas` is ignored in mathalign. Consider the following MWE: \setupformulas[align=flushleft,leftmargin=2em] \starttext \startformula A = B \stopformula vs \startformula \startalign \NC A \NC B \NR \NC A \NC B \NR \stopalign \stopformula \stoptext

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Aditya Mahajan
On Thu, 21 Sep 2023, Mikael Sundqvist wrote: > Nice with offset=auto. It is not clear to me what the intent/meaning > is of the original example, but one can also try the 23DC (can extend > as \overparent):

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Aditya Mahajan
On Thu, 21 Sep 2023, Hans Hagen wrote: > a teaser for Aditya: > > \definemathstackers[toprel][top][mathclass=\mathrelationcode] > \definemathstackers[topbin][top][mathclass=\mathbinarycode] > > \definemathextensible[toprel][frownedupon]["2322] > \definemathextensible[topbin][frowned]["2322]

[NTG-context] Re: stackrel in context?

2023-09-21 Thread Aditya Mahajan
On Thu, 21 Sep 2023, Xavier B. wrote: > Hi, > > I want to write: > > $0,00\stackrel{\smallfrown}{4}$ > > like latex > [https://tex.stackexchange.com/questions/39225/differences-between-stackrel-and-stackbin] > > but context LMTX does not recognize stackrel > > What can I do? \stackrel is

[NTG-context] Different behavior of \clf_lastypos vs \clf_lastxpos

2023-09-16 Thread Aditya Mahajan
Hi, I am trying to debug an unexpected behavior with tikz reported on tex.se: https://tex.stackexchange.com/q/696136/323 The attached file shows what is going wrong (without using tikz). For some reason, there is an extra \relax written to file after `\the\numexp\clf_lastypos\relax` (there is

[NTG-context] Re: Tikz calendar problem.

2023-09-05 Thread Aditya Mahajan
On Mon, 4 Sep 2023, Fabrice L wrote: > Dear list, > > I have a problem with tikzCalendar on a recent installation. This minimal > example : > > 8< > > \usemodule[tikz] > \usetikzlibrary[calendar] > > \starttext > This should works: > \blank > \tikz \calendar[dates=2000-01-01 to

[NTG-context] Re: An error which is not in .log file

2023-08-16 Thread Aditya Mahajan
On Wed, 16 Aug 2023, Wolfgang Schuster wrote: > 3. \starttikzpicure doesn't allow arguments which results in font error > messages (char ... missing). This is an error in the ConTeXt version of the > \starttikzpicture command and should be fixed. Looking at m-tikz.mkxl, \starttikzpicture should

[NTG-context] Re: Very strange error:

2023-08-15 Thread Aditya Mahajan
On Mon, 14 Aug 2023, Xavier B. wrote: > > Can you show the text (and commands) which appears on line 540 (plus a > > few lines before/after line 540) of your document. > > > I attach the dev.log and dev-error.log. Is it enough? You should show a *complete* context source document that generates

[NTG-context] Re: Link from a PDF to a reference of an embedded PDF

2023-07-24 Thread Aditya Mahajan
On Mon, 24 Jul 2023, Gerion Entrup wrote: > Hi Pablo, > > > not sure I’m getting your point right. > > Thank you for the detailed answer. > But I fear, I have not expressed myself precise enough. > The solution that you described does not directly fit to my setting. > I'll try to rephrase.

[NTG-context] Re: About Pgfplot.-

2023-07-22 Thread Aditya Mahajan
On Sat, 22 Jul 2023, Freddy Omar López Quintero wrote: > I’m trying to reproduce the example in https://wiki.contextgarden.net/Pgfplot > and I’m getting this error: That example is a little hard to test because you need to download a bunch of data files to test it, but pgfplots is working in

[NTG-context] Re: context-on-web broken

2023-07-07 Thread Aditya Mahajan
On Mon, 26 Jun 2023, Hans Hagen via ntg-context wrote: > On 6/26/2023 7:53 PM, Aditya Mahajan via ntg-context wrote: > > On Mon, 26 Jun 2023, Miguel Diaz via ntg-context wrote: > > > >> indeed it is a simple simulation of overleaf (for latex). > > > > FWI

[NTG-context] Arch linux package for context lmtx

2023-07-05 Thread Aditya Mahajan
Hi, I maintained a AUR (Arch User Repository) package for context lmtx which was called luametatex. Arch recently introduced an official extra package for luametatex (the binary) called ... well ... luametatex, which means that my package has a name conflict with the official package and

[NTG-context] Re: MP setup for a progress bar

2023-07-05 Thread Aditya Mahajan
On Tue, 4 Jul 2023, Henning Hraban Ramm wrote: > Thanks to Taco, Robbert and Jules for their work! > > > I used the downtime to setup a presentation style with a progress bar in the > footer. But I get the same (first page) graphics on all pages, and the footer > background appears under the

Re: [NTG-context] context-on-web broken

2023-06-26 Thread Aditya Mahajan via ntg-context
On Mon, 26 Jun 2023, Miguel Diaz via ntg-context wrote: > indeed it is a simple simulation of overleaf (for latex). FWIW, context works on overleaf as well! Simply create a `latexmkrc` file with the following content: ``` $pdflatex="context --synctex=1 --result=output %S; cp output.log

Re: [NTG-context] TiKz with LMTX

2023-06-09 Thread Aditya Mahajan via ntg-context
On Fri, 9 Jun 2023, Hans Hagen via ntg-context wrote: > On 6/9/2023 5:57 AM, Aditya Mahajan via ntg-context wrote: > > On Thu, 8 Jun 2023, Jigé via ntg-context wrote: > > > >> Thanks a lot Aditya. > >> > >> The very simple TikZ example with the

Re: [NTG-context] TiKz with LMTX

2023-06-08 Thread Aditya Mahajan via ntg-context
On Thu, 8 Jun 2023, Jigé via ntg-context wrote: > Thanks a lot Aditya. > > The very simple TikZ example with the cross works. > The more complex example with the trigonometric circle from the pgf manual, > quoted in https://wiki.contextgarden.net/TikZ , does not compile > unless you also

Re: [NTG-context] TiKz with LMTX

2023-06-05 Thread Aditya Mahajan via ntg-context
On Mon, 5 Jun 2023, Aditya Mahajan via ntg-context wrote: > On Sun, 4 Jun 2023, Jigé via ntg-context wrote: > > > > $ mkdir ~/.local/share/context > > $ cd ~/.local/share/context > > $ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip > > $ un

Re: [NTG-context] TiKz with LMTX

2023-06-05 Thread Aditya Mahajan via ntg-context
On Sun, 4 Jun 2023, Jigé via ntg-context wrote: > $ mkdir ~/.local/share/context > $ cd ~/.local/share/context > $ wget https://lmtx.pragma-ade.com/install-lmtx/context-linux-64.zip > $ unzip context-linux-64.zip > $ sh install.sh > $ rm context-linux-64.zip > $ cd ~/.local/share/context/tex > $

Re: [NTG-context] Moving up a Figure

2023-06-05 Thread Aditya Mahajan via ntg-context
On Mon, 5 Jun 2023, Alan Braslau via ntg-context wrote: > On 05/06/23 05/06/23, 00:08, Mikael Sundqvist via ntg-context wrote: > > On Mon, Jun 5, 2023 at 4:03 AM Jeroen via ntg-context > > wrote: > >> Not fully, it indeed moves up the figure but a little too much. Is there a > >> more granular

Re: [NTG-context] Super slow installation

2023-05-30 Thread Aditya Mahajan via ntg-context
On Tue, 30 May 2023, Thangalin via ntg-context wrote: > FWIW, I'm seeing the same slow down issue from three different machines: > >1. My personal computer in Vancouver BC. >2. A work computer on Vancouver Island (Victoria BC) >3. Microsoft ADO servers (presumably in Seattle WA). >

Re: [NTG-context] module installer: unknown script 'install-modules.lua' or 'mtx-install-modules.lua'

2023-05-24 Thread Aditya Mahajan via ntg-context
On Wed, 24 May 2023, Denis Maier via ntg-context wrote: > I've just tested with a couple of other scripts... > > Doesn't matter which one I try to call: > Mtxrun --script XYZ > > will always results in the equivalent error message, e.g.: > mtxrun | unknown script 'interface.lua' or

Re: [NTG-context] Inline framed verbatim text

2023-05-19 Thread Aditya Mahajan via ntg-context
On Fri, 19 May 2023, Jeroen via ntg-context wrote: > Many thanks. Is there a proper way to add some space (a couple of pt or em) > to the left and the right of the text itself so the frame does not get so > close to the text? \framed[loffset=0.2ex, roffset=0.2ex]{...} Also see:

Re: [NTG-context] upload

2023-05-05 Thread Aditya Mahajan via ntg-context
On Fri, 5 May 2023, Hans Hagen via ntg-context wrote: > Hi, > > I uploaded a version that provides > > mtxrun --script install-tikz > > that when run in the tex root (.../tex) will fetch some tikz stuff from ctan > and puts is in texmf-modules. After installing it wipes the files that make

Re: [NTG-context] tikz + lmtx

2023-05-04 Thread Aditya Mahajan via ntg-context
On Thu, 4 May 2023, Hans Hagen via ntg-context wrote: > On 4/28/2023 6:08 AM, Aditya Mahajan via ntg-context wrote: > > Hi all, > > > > For a few months now, all features of tikz have not been working with LMTX. > > After help from Hans and a bit of trial and erro

[NTG-context] Units for volts and Ohms

2023-05-02 Thread Aditya Mahajan via ntg-context
Hi, As I was testing circuitikz, I realized that the following don't work: \unit{1V} \unit{100 kΩ} In phys-dim.lmt, we need to change line 467: v = "volt", to V = "volt", and perhaps add (not sure if lua allows utf variable names) Ω = "ohm",

Re: [NTG-context] tikz + lmtx

2023-05-01 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Aditya Mahajan via ntg-context wrote: > On Fri, 28 Apr 2023, Ulrike Fischer via ntg-context wrote: > > > Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via > > ntg-context: > > > > > Circuitikz still doesn't wo

Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Floris van Manen via ntg-context wrote: > > > On 28/04/2023 16:25, Aditya Mahajan via ntg-context wrote: > > These are already part of the distribution. Just one caveat: you need to use > > > > \usemodule[tikz] > > \usemodule[pgfplots] >

Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Ulrike Fischer via ntg-context wrote: > Am Fri, 28 Apr 2023 01:01:23 -0400 (EDT) schrieb Aditya Mahajan via > ntg-context: > > > Circuitikz still doesn't work. Even loading the module fails. > > It works for me on texlive 2023 with your new

Re: [NTG-context] tikz + lmtx

2023-04-28 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Gavin wrote: > Hi fellow Tik-Z users, > > Tik-Z, including circuitikz, is working for me after adding two files from > Hans to a slightly older version of ConTeXt (ver: 2023.02.07 19:06 LMTX fmt: > 2023.3.14). I do not know if these files are of any use with the current

Re: [NTG-context] tikz + lmtx

2023-04-27 Thread Aditya Mahajan via ntg-context
On Fri, 28 Apr 2023, Aditya Mahajan via ntg-context wrote: > Hi all, > > For a few months now, all features of tikz have not been working with LMTX. > After help from Hans and a bit of trial and error, I think that figured out > what was going wrong with the catcodes i

[NTG-context] tikz + lmtx

2023-04-27 Thread Aditya Mahajan via ntg-context
Hi all, For a few months now, all features of tikz have not been working with LMTX. After help from Hans and a bit of trial and error, I think that figured out what was going wrong with the catcodes in m-tikz: Since the texcatcodes are different from what tikz expects, the catcodes have to be

Re: [NTG-context] update

2023-04-26 Thread Aditya Mahajan via ntg-context
On Wed, 26 Apr 2023, lynx--- via ntg-context wrote: > Re: performing update(s) > > New to conTeXt, have not performed a specific update prior to this. > > My conTeXt installation is part of TeXlive-2023 (under Linux OS). Will > the updates to ConTeXt be handled by tlmgr ? No. Usually,

Re: [NTG-context] Filter Module with Openscad

2023-04-26 Thread Aditya Mahajan via ntg-context
On Wed, 26 Apr 2023, Jeroen via ntg-context wrote: > I am using OpenSCAD to create drawings with the filter module with the > following MWE: > > \usemodule[filter] > \defineexternalfilter[openscad] > [filtercommand={/context/openscad/openscad -o \externalfilteroutputfile}, >

Re: [NTG-context] Idea for a shared repository.

2023-04-25 Thread Aditya Mahajan via ntg-context
On Tue, 25 Apr 2023, Pawel Urbanski via ntg-context wrote: > What about creating a repository called: 'templates' or 'resources' - we can > figure out the exact name later. Why not use the wiki for such documents? For fonts, there is already a wiki page collecting typescripts:

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-18 Thread Aditya Mahajan via ntg-context
On Mon, 17 Apr 2023, Hans Hagen via ntg-context wrote: > On 4/17/2023 7:06 AM, Aditya Mahajan via ntg-context wrote: > > On Sun, 16 Apr 2023, Aditya Mahajan via ntg-context wrote: > > > >> On Sat, 15 Apr 2023, J

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-16 Thread Aditya Mahajan via ntg-context
On Sun, 16 Apr 2023, Aditya Mahajan via ntg-context wrote: > On Sat, 15 Apr 2023, Jim via ntg-context wrote: > > > % > > > > \setupindenting[medium,yes] > > \setupitemize[indentnext=

Re: [NTG-context] \setupitemize[indentnext=auto] broken?

2023-04-16 Thread Aditya Mahajan via ntg-context
On Sat, 15 Apr 2023, Jim via ntg-context wrote: > In the wiki page https://wiki.contextgarden.net/Indentation there is the > following example: > > % > > \setupindenting[medium,yes] > \setupitemize[indentnext=auto] > >

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
On Wed, 12 Apr 2023, Gavin via ntg-context wrote: > Hi Aditya, > > > Have you tried using feynmp (the metapost macros) directly instead of the > > LaTeX wrapper? Can you create an example that works with metapost but fails > > in ConTeXt? > > No, I’m not sure how to do that. I looked at the

Re: [NTG-context] Feynman Diagrams

2023-04-12 Thread Aditya Mahajan via ntg-context
On Wed, 12 Apr 2023, Gavin via ntg-context wrote: > Hi Hans, Alan, Mikael, and other Feynman fans, > > I do think Alan's node module could do a good job with this. > > > It would be nice to have a not too complicated syntax, but maybe just have > > some of the > > "shapes" of paths available.

Re: [NTG-context] /usr/bin/env texlua no such file or directory; ~/context/tex is not a valid TEXROOT path; no file plain.tex

2023-04-10 Thread Aditya Mahajan via ntg-context
On Mon, 10 Apr 2023, Carlos via ntg-context wrote: > I'm just following some of the standalone installation instructions > as per the wiki alongside a TeX Live installation, but there are a > few things that don't add up or I can't seem to add them up :). > > first, while I was trying to

Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-31 Thread Aditya Mahajan via ntg-context
On Fri, 31 Mar 2023, Hans Hagen via ntg-context wrote: > On 3/30/2023 11:56 PM, Xavier B. via ntg-context wrote: > > Thanks, Max, for finding the problem. It is related to two more bugs: > > https://github.com/pgf-tikz/pgf/issues/990 > > and > > https://github.com/pgf-tikz/pgf/issues/958 > > > >

Re: [NTG-context] tikz error upgrading to texlive version (artix)

2023-03-30 Thread Aditya Mahajan via ntg-context
On Thu, 30 Mar 2023, Xavier B. via ntg-context wrote: > Thanks, Max, for finding the problem. It is related to two more bugs: > https://github.com/pgf-tikz/pgf/issues/990 > and > https://github.com/pgf-tikz/pgf/issues/958 > > Perhaps Hans or other people could help tikz staff to do the pending

Re: [NTG-context] Description together with itemize, luametatex

2023-03-06 Thread Aditya Mahajan via ntg-context
On Mon, 6 Mar 2023, Gerion Entrup via ntg-context wrote: > Hi, > > I'm trying to use a description environment in conjunction with an > itemize with the latest luametatex. Is this supposed to work? > > Here is an MWE: > ``` > \definedescription[desc][headstyle=bold] > > \starttext > Foo > >

Re: [NTG-context] Visual highlighted text with title, mix of enumeration and framedtext

2023-03-06 Thread Aditya Mahajan via ntg-context
On Mon, 6 Mar 2023, Henning Hraban Ramm via ntg-context wrote: > Am 06.03.23 um 12:19 schrieb Gerion Entrup via ntg-context: > > I want to typeset a "Good to know" section that is visually highlighted > > and can spawn across multiple pages. > > > > In LaTeX this would be possible with the

Re: [NTG-context] Aaligned numbers in a matrix?

2023-02-26 Thread Aditya Mahajan via ntg-context
On Mon, 27 Feb 2023, Bruce Horrocks via ntg-context wrote: > I'm using the following MWE to produce a matrix: > > \definemathmatrix[bmatrix] > [matrix:brackets] > [simplecommand=bmatrix] > \starttext > $ a \rightarrow > \bmatrix{1, 2, 3, 4; >2, 1, 4, 3; >3,-4,

Re: [NTG-context] Math issue

2023-02-16 Thread Aditya Mahajan via ntg-context
On Thu, 16 Feb 2023, Willi Egger via ntg-context wrote: > Hi math gurus, > > I should typeset a couple of simple math formulae. However I do not get the > desired result. I attach my output as pdf. > > 1. Why is the \times 12 in the denominator although the fraction is grouped? > — I tried

Re: [NTG-context] autospacing and colonequals (was Lucida-1.901 (2023-01-21) available)

2023-01-27 Thread Aditya Mahajan via ntg-context
On Fri, 27 Jan 2023, Hans Hagen via ntg-context wrote: > On 1/27/2023 6:26 PM, Otared Kavian via ntg-context wrote: > > Hi Hans, > > > > Thank you for the hint: indeed > > \setupmathematics[collapsing=2] > > does exactly what I was looking for… > > > > Now, like many others, I am just waiting

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-24 Thread Aditya Mahajan via ntg-context
On Mon, 16 Jan 2023, Aditya Mahajan via ntg-context wrote: > On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote: > > > make sure to get rid of the t-tikz modules > > Tested again. Downloaded the latest context and pgf.tds.zip from ctan. Unizip > pgf by using 'u

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-17 Thread Aditya Mahajan via ntg-context
On Mon, 16 Jan 2023, Aditya Mahajan via ntg-context wrote: > On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote: > > > make sure to get rid of the t-tikz modules > > Tested again. Downloaded the latest context and pgf.tds.zip from ctan. Unizip > pgf by using 'u

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Aditya Mahajan via ntg-context
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote: > make sure to get rid of the t-tikz modules Tested again. Downloaded the latest context and pgf.tds.zip from ctan. Unizip pgf by using 'unzip -x "**/t-*.*" so that no t- modules from tikz are unzipped but still get the following error on

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Aditya Mahajan via ntg-context
On Mon, 16 Jan 2023, Henri Menke via ntg-context wrote: > On Mon, 2023-01-16 at 11:56 -0500, Aditya Mahajan wrote: > > > > On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote: > > > > > just load tikz first so that the right loader helpers are ther

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-16 Thread Aditya Mahajan via ntg-context
On Mon, 16 Jan 2023, Hans Hagen via ntg-context wrote: > just load tikz first so that the right loader helpers are there > > \usemodule[tikz] > \usemodule[pgfplots] > > \starttext > Hello > \stoptext > > seems to work here I did a fresh install of context and downloaded the latest version of

Re: [NTG-context] pgfplots module wrecks in latest

2023-01-15 Thread Aditya Mahajan via ntg-context
On Fri, 30 Dec 2022, Hans Hagen via ntg-context wrote: > On 12/30/2022 12:40 AM, Gavin via ntg-context wrote: > > Hi List, > > > > The TikZ related module “pgfplots” is causing a fatal error in the latest > > ConTeXt. Here is a MWE: > > > > > > \usemodule[tikz] > > \usemodule[pgfplots]

Re: [NTG-context] Why does \doifsomething think there is content?

2023-01-15 Thread Aditya Mahajan via ntg-context
On Sun, 15 Jan 2023, Joel via ntg-context wrote: > I am creating a book that presents readers with a list of recommended > materials. > If materials are listed, then its displayed under the \subject{Materials} > heading in a simple itemized list. > I'm using \doifsomething{} to check if any

Re: [NTG-context] Command line arguments on context project

2022-12-19 Thread Aditya Mahajan via ntg-context
On Sun, 18 Dec 2022, Alan Braslau via ntg-context wrote: > On Fri, 16 Dec 2022 16:14:33 + > Jethro Djan via ntg-context wrote: > > > 2. How do I get CoTeXt to recognise the ref.bib file when I run the > > components not the product? > > > > For context, I don’t want the references printed

Re: [NTG-context] \externalfigure problem with displaying external images via https://live.contextgarden.net

2022-12-05 Thread Aditya Mahajan via ntg-context
On Mon, 5 Dec 2022, Jaroslav Hajtmar via ntg-context wrote: > Does anyone know what the problem might be? Why online ConTeXt is not read my > PDF file and on other side read another PDF file? What does onlineConText not > like? > I need to get my application for printing archive certificates

Re: [NTG-context] annotated equations

2022-11-18 Thread Aditya Mahajan via ntg-context
On Thu, 17 Nov 2022, Henning Hraban Ramm via ntg-context wrote: > Here’s an interesting example for annotated equations, done with LaTeX/TikZ: > https://mastodon.social/@sibin/109349703357749846 > > I guess something similar is possible with node anchors in ConTeXt/MetaPost? Yes, this is

Re: [NTG-context] Create the values of a sequence with Lua

2022-10-31 Thread Aditya Mahajan via ntg-context
On Mon, 31 Oct 2022, Fabrice Couvreur via ntg-context wrote: > Hi, > The idea is to fill the array with the sequence defined by > p(0) = 0.3 and p(n + 1) = 0.3 + 0.7*p(n) > The problem is that I don't really master Lua but I will learn when I have > some time! > Thanks for your help. > Fabrice

Re: [NTG-context] What to do when ConTeXt not revealing the error details?

2022-10-30 Thread Aditya Mahajan via ntg-context
On Mon, 31 Oct 2022, Joel via ntg-context wrote: > I found what it was, a % in the text preventing a \stopitemize to close a > list. Thanks! --Joel mtxrun concheck filename is very useful in such situations. Aditya

Re: [NTG-context] new upload

2022-10-17 Thread Aditya Mahajan via ntg-context
On Mon, 17 Oct 2022, Hans Hagen via ntg-context wrote: > On 10/17/2022 3:38 AM, Aditya Mahajan via ntg-context wrote: > > On Sun, 16 Oct 2022, Mikael Sundqvist via ntg-context wrote: > > > >> Hi, > >> > >> On Sun, Oct 16, 2022 at 6:07 PM

Re: [NTG-context] new upload

2022-10-16 Thread Aditya Mahajan via ntg-context
On Sun, 16 Oct 2022, Mikael Sundqvist via ntg-context wrote: > Hi, > > On Sun, Oct 16, 2022 at 6:07 PM Aditya Mahajan via ntg-context > wrote: > > > > On Fri, 14 Oct 2022, Hans Hagen via ntg-context wrote: > > > > > Hi, > > > > > > I up

Re: [NTG-context] new upload

2022-10-16 Thread Aditya Mahajan via ntg-context
On Fri, 14 Oct 2022, Hans Hagen via ntg-context wrote: > Hi, > > I uploaded a new version. Apart from a few fixes / extensions already > mentioned here (or known to those who wanted it) the main changes are in > the math goodie files (work in progress, we will clean them up later) as > part

Re: [NTG-context] LMTX generates PDFs with non-working fonts on real printers

2022-10-11 Thread Aditya Mahajan via ntg-context
On Tue, 11 Oct 2022, Leah Neukirchen via ntg-context wrote: > Hans Hagen via ntg-context writes: > > Once we're confident that we can catch it Leah (who does the low level > > introspective testing with viewers, printers and tools) likely will > > report on it and there will be a test file for

Re: [NTG-context] Math alignment question

2022-09-23 Thread Aditya Mahajan via ntg-context
On Thu, 22 Sep 2022, Jeong Dal via ntg-context wrote: > Dear Mikael and Hans, > > Recently, you introdued the new command “\alignhere, \breakhere, \skiphere” > which works fine. > > Since I usually use the following code that is adopted from My > Way(Mathalign.pdf), I’d like to know that

Re: [NTG-context] Merging two lua tables

2022-08-29 Thread Aditya Mahajan via ntg-context
On Mon, 29 Aug 2022, Hans Hagen via ntg-context wrote: > On 8/29/2022 2:20 PM, Aditya Mahajan via ntg-context wrote: > > Hi, > > > > How do I merge two lua tables? I believe that table.merge or table.merged > should do the trick, but I cannot figure out how to use them. &

Re: [NTG-context] Merging two lua tables

2022-08-29 Thread Aditya Mahajan via ntg-context
On Mon, 29 Aug 2022, Aditya Mahajan via ntg-context wrote: > Hi, > > How do I merge two lua tables? I believe that table.merge or table.merged > should do the trick, but I cannot figure out how to use them. > > ``` > local t1 = { 1, 2 } > local t2 = { 8, 9 } > &g

[NTG-context] Merging two lua tables

2022-08-29 Thread Aditya Mahajan via ntg-context
Hi, How do I merge two lua tables? I believe that table.merge or table.merged should do the trick, but I cannot figure out how to use them. ``` local t1 = { 1, 2 } local t2 = { 8, 9 } local m1 = {} table.merge(m1,t1, t2) table.print(m1) local m2 = table.merged(t1, t2) table.print(m2) ```

Re: [NTG-context] How can I make a Gentoo Linux package for ConTeXt LMTX?

2022-08-23 Thread Aditya Mahajan via ntg-context
On Mon, 22 Aug 2022, amano.kenji via ntg-context wrote: > Wuh. That's a bit complex. If you are packaging any flavor of TeX, you need to understand TDS (TeX Directory Structure): https://tug.org/tds/ ConTeXt distributions are TDS compatible, but simplify certain aspects. Essentially,

Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Aditya Mahajan via ntg-context
On Tue, 23 Aug 2022, Pablo Rodriguez via ntg-context wrote: > On 8/23/22 17:27, Aditya Mahajan via ntg-context wrote: > > [...] > > For a more low-level interface to finding the number of pages, see: > > > > https://adityam.github.io/context-blog/post/include-mul

Re: [NTG-context] Clipping multiple PDFs

2022-08-23 Thread Aditya Mahajan via ntg-context
On Mon, 22 Aug 2022, Jethro Djan via ntg-context wrote: >  > Thanks for the solution Pablo. It works well. > > I wanted to add more pdfs (which also has many pages) and found it was easier > for me to reason in the lua side of things. This is what I have at the moment: > > \starttext >

  1   2   3   4   5   6   7   8   9   10   >