Re: [NTG-context] Weird error when using \startformula inside lua

2021-09-11 Thread Aditya Mahajan via ntg-context
On Sat, 11 Sep 2021, Hans Hagen wrote: > On 9/11/2021 5:11 AM, Aditya Mahajan via ntg-context wrote: > > I sometimes define lua functions for showing out worked out calculations. > > The following minimal example shows that > > > >context([[\startformula ... \st

[NTG-context] Weird error when using \startformula inside lua

2021-09-10 Thread Aditya Mahajan via ntg-context
I sometimes define lua functions for showing out worked out calculations. The following minimal example shows that context([[\startformula ... \stopformula]]) fails in LMTX with an error message: tex error > tex error on line 3 in file ./test.tex: Undefined control sequence

Re: [NTG-context] Use MetaPost to distort images?

2021-09-05 Thread Aditya Mahajan via ntg-context
On Sun, 5 Sep 2021, Henning Hraban Ramm via ntg-context wrote: > > > Am 05.09.2021 um 10:10 schrieb Hans Hagen : > >> BTW, here’s my script: > >> Here are some results: > > > > Did you try that with the filter module? It would make it more portable > > I completely forgot I could do that (and

Re: [NTG-context] getting line numbers

2021-09-03 Thread Aditya Mahajan via ntg-context
On Fri, 3 Sep 2021, Thierry Horsin via ntg-context wrote: > Hi everybody > > Is there a way to have an automatic access to the current line number of a > specific place inside a tex file ? To be more precise, here is what I would > like to do. Also look at the filter module.

Re: [NTG-context] problem with MkIV/TeXlive/TEXMFCACHE

2021-08-30 Thread Aditya Mahajan via ntg-context
On Mon, 30 Aug 2021, Rainer J.H. Brandt via ntg-context wrote: > But, as I said, my texmf.cnf sets TEXMFCACHE to $TEXMFSYSVAR;$TEXMFVAR, > and TEXMFSYSVAR is /var/opt/texlive. Why is that ignored? mtxrun (and context MKIV and LMTX) do not read texmf.cnf rather read values from contextcnf.lua

Re: [NTG-context] lmtx update/t-vim (again)

2021-08-24 Thread Aditya Mahajan via ntg-context
On Mon, 23 Aug 2021, Aditya Mahajan via ntg-context wrote: > On Mon, 23 Aug 2021, Benjamin Buchmuller via ntg-context wrote: > > > This is the setup I have been using, but I'm unsure if the problem could be > > related to the other problem I had. (Not scaled to a MWE, but sho

Re: [NTG-context] numbered exercises

2021-08-24 Thread Aditya Mahajan via ntg-context
On Tue, 24 Aug 2021, Henning Hraban Ramm via ntg-context wrote: > > Am 24.08.2021 um 21:17 schrieb Wolfgang Schuster via ntg-context > > : > > > > Henning Hraban Ramm via ntg-context schrieb am 24.08.2021 um 20:31: > >> Hi, I’m typesetting a textbook that contains numbered and indented > >>

Re: [NTG-context] lmtx update/t-vim (again)

2021-08-23 Thread Aditya Mahajan via ntg-context
On Mon, 23 Aug 2021, Benjamin Buchmuller via ntg-context wrote: > This is the setup I have been using, but I'm unsure if the problem could be > related to the other problem I had. (Not scaled to a MWE, but short enough.) > I figured the issue by removing some of the lines. I get the same

Re: [NTG-context] lmtx update

2021-08-19 Thread Aditya Mahajan via ntg-context
On Thu, 19 Aug 2021, Hans Hagen via ntg-context wrote: > Hi, > > Here are the highlights of todays update: > > - somewhat more compact tuc files, not for all documents, but it can > accumulate; also less memory used then; i could bring down an extreme > 2000 page 5 column doc tuc file down to

Re: [NTG-context] Size of root symbol

2021-08-18 Thread Aditya Mahajan via ntg-context
On Wed, 18 Aug 2021, Bruce Horrocks via ntg-context wrote: > Is there a simple way to get both root signs in this MWE to be the same size? > > \starttext > \startformula > \sqrt[3]{4n} \ne \sqrt[3] {n} > \stopformula > \stoptext Make the quantities whose roots are being taken to be of the same

Re: [NTG-context] Progressively encouraging page/column breaks at \blank with penalties

2021-08-14 Thread Aditya Mahajan via ntg-context
On Sun, 15 Aug 2021, Joey McCollum via ntg-context wrote: > Hi, > > I'm trying to implement a section break marker in a grid layout. At a > section break, two lines of space should separate the subsequent segments > of text (just plain paragraphs, in this case), and a symbol (in the example >

Re: [NTG-context] new upload/issue with t-vim?

2021-08-13 Thread Aditya Mahajan via ntg-context
On Mon, 9 Aug 2021, Hans Hagen wrote: > On 8/8/2021 11:53 PM, Aditya Mahajan via ntg-context wrote: > > On Sun, 8 Aug 2021, Hans Hagen via ntg-context wrote: > > > > > On 8/8/2021 1:13 PM, Benjamin Buchmuller via ntg-context wrote: > > > > I'm not

Re: [NTG-context] nil from TeX to Lua

2021-08-09 Thread Aditya Mahajan via ntg-context
On Mon, 9 Aug 2021, Hans van der Meer via ntg-context wrote: > In the TeX to Lua interface with > > \def\Macro#1{\directlua{luafunction("#1")}} > > the transfer from TeX to Lua is by string. However what to do at the Lua end > when calling \Macro{}? > As I understand it, then on the Lua side

Re: [NTG-context] new upload/issue with t-vim?

2021-08-08 Thread Aditya Mahajan via ntg-context
On Sun, 8 Aug 2021, Hans Hagen via ntg-context wrote: > On 8/8/2021 1:13 PM, Benjamin Buchmuller via ntg-context wrote: > > I'm not sure if it's related to this latest: > > > > ConTeXt ver: 2021.08.07 22:53 LMTX fmt: 2021.8.8 int: english/english > > > > or a previous one, but with this one:

Re: [NTG-context] new upload

2021-08-07 Thread Aditya Mahajan via ntg-context
On Sat, 7 Aug 2021, Hans Hagen via ntg-context wrote: > Hi, > > I did a new upload. Attached is a document describing a new cheap (lmtx only) > feature. It's probably not that useful for most users, because it is meant for > somewhat extreme situations. but you never know. How is this different

Re: [NTG-context] How to check if buffer or block has content

2021-08-02 Thread Aditya Mahajan via ntg-context
On Mon, 2 Aug 2021, Benjamin Buchmuller via ntg-context wrote: > Hi, > > How can I check if a buffer or block has content (or is empty) before a > \useblocks or \getbuffer statement? > > I would like to typeset a headline only if the buffer/block has been used in > a particular section and

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-26 Thread Aditya Mahajan via ntg-context
On Mon, 26 Jul 2021, Gavin via ntg-context wrote: > 2) While I’m having good luck with paths, colors are causing trouble. In the > data set the color information is in strings with French names of the color, > like “rouge.” If I hand this string to MetaPost, MetaPost doesn’t expand it > into a

Re: [NTG-context] Modules under LMTX, was Re: Use of lettrine module in LMTX

2021-07-25 Thread Aditya Mahajan
On Sun, 25 Jul 2021, Rik Kabel wrote: > Perhaps a list of modules known to run correctly with LMTX is called > for, and perhaps a classification of modules to indicate which ConTeXt > versions each supports, and a way to download a distribution-appropriate > subset. For some of my modules, I

Re: [NTG-context] MP boxes: boxjoin not recognized?

2021-07-22 Thread Aditya Mahajan
On Wed, 21 Jul 2021, Hans Hagen wrote: > On 7/21/2021 12:29 PM, Rudd, Kevin wrote: > > Hi--- > > > > All of my figures that use MP boxes are now failing. It looks like > > "boxjoin" (from the MP "boxes" macros) is not being recognized. Also, > > apparently unrelated, I wonder if the

Re: [NTG-context] Math cases

2021-07-22 Thread Aditya Mahajan
On Thu, 22 Jul 2021, Jack Hill wrote: > Dear list, > > I'm using ConTeXt version 2021.07.22 19:16 and the following code > typesets both columns in math mode > > \starttext > \startformula > \delta_{ij} = > \startcases > \NC 1 \NC if i = j \NR > \NC 0 \NC otherwise \NR > \stopcases >

Re: [NTG-context] mp-geo Metapost package with ConTeXt

2021-07-15 Thread Aditya Mahajan
On Thu, 15 Jul 2021, Hans Hagen wrote: > On 7/14/2021 4:43 PM, Gavin wrote: > > Hello ConTeXters, > > > > I’d like to use the mp-geo Metapost package with ConTeXt to draw simple > globes viewed from various directions. The package is here: > > > >

Re: [NTG-context] weekend upload

2021-07-12 Thread Aditya Mahajan
On Tue, 13 Jul 2021, Jeong Dal wrote: > Dear Aditya, > > Thank you for your code and an explanation. > > > Let's assume that the last MPpage was a \startuseMPgraphic{boxes} > > \stopuseMPgraphic. Suppose I wanted to use these pictures in a > > presentation. On the first slide, I can use

Re: [NTG-context] weekend upload

2021-07-11 Thread Aditya Mahajan
On Sun, 11 Jul 2021, Bruce Horrocks wrote: > > On 9 Jul 2021, at 17:29, Hans Hagen wrote: > > > > This weekend upload has something new for metapost animation lovers: > > Forgive my ignorance but what exactly am I supposed to be seeing here? I run > the example and get two rows of ten boxes.

Re: [NTG-context] weekend upload

2021-07-09 Thread Aditya Mahajan
On Fri, 9 Jul 2021, Hans Hagen wrote: > Hi, > > This weekend upload has something new for metapost animation lovers: > > \starttext > > \startuseMPgraphic{demo} > stacking := 6; > fill fullcircle scaled 10cm > withcolor "red" ; >% stacking := 3; > stacking := 9; >

Re: [NTG-context] Proper ligatures in Malayalam

2021-07-07 Thread Aditya Mahajan
On Tue, 6 Jul 2021, Ajith R wrote: > Hi, > > I am running Debian 10 and context --version returns > > mtx-context | ConTeXt Process Management 1.02 > mtx-context | > mtx-context | main context > file: /usr/share/texmf/tex/context/base/mkiv/context.mkiv > mtx-context | current

Re: [NTG-context] names of cached images

2021-07-02 Thread Aditya Mahajan
On Fri, 2 Jul 2021, Jano Kula wrote: > Hello again, > > likely a bug and one question. Using this code with lmtx: > > \starttext > \externalfigure[mill][width=40mm,cache=./first,conversion=gray.pdf] % > mill... > \externalfigure[mill][width=40mm,cache=.,conversion=gray.pdf] % >

Re: [NTG-context] Rolling out a pandoc-context publication workflow in an organization

2021-07-02 Thread Aditya Mahajan
On Fri, 2 Jul 2021, Jan U. Hasecke wrote: > > Dear Hans, > > thanks for the hint to the repo. I remember that it was mentiooned before. > > Am 02.07.21 um 10:42 schrieb Hans Hagen: > > official    : https://bitbucket.org/phg/context-mirror/src/beta/ There is also github:

Re: [NTG-context] Proper ligatures in Malayalam

2021-07-01 Thread Aditya Mahajan
On Thu, 1 Jul 2021, Ajith R wrote: > Hi Pablo, > > I am not sure if my previous mail was delivered or not. > I didn't get the correct ligatures even after copy pasting the code you > provided (incluing the feature "malayalam-two"). In such cases, it is always useful to include the output of

Re: [NTG-context] Rolling out a pandoc-context publication workflow in an organization

2021-07-01 Thread Aditya Mahajan
On Thu, 1 Jul 2021, Taco Hoekwater wrote: > Hi, > > > On 1 Jul 2021, at 08:02, Jan U. Hasecke wrote: > > > > I come up with the idea of an "organizational context distribution" that > > has all requirements preinstalled. That could look like this: > > I would put the whole context

Re: [NTG-context] Different authorconversion for citation alternatives and bibliographic entries

2021-06-30 Thread Aditya Mahajan
On Wed, 30 Jun 2021, Ágoston Volcz wrote: > Hi there, > > My university has special requirements for the theses I submit. > Layout, fonts etc. are pretty straightforward to set up in ConTeXt. > The one part I'm struggling with is citations / bibliography. > I have to use the german citation

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
On Wed, 23 Jun 2021, Aditya Mahajan wrote: > On Thu, 24 Jun 2021, Jeong Dal wrote: > > > Now, I am trying to do the same thing using \startuseMPgraphic, but I don’t > > the correct result yet. > > Using \startuseMPgraphic, and \dorecurse, the code is simpler.

Re: [NTG-context] Delivering the value of a variable in MetaFun to ConTeXt

2021-06-23 Thread Aditya Mahajan
On Thu, 24 Jun 2021, Jeong Dal wrote: > Dear Hans, > > Your code works fine. > > > \starttext > > > > \startMPcode > >numeric maxCount; > >maxCount := 10; > >setglobalmacro("MyMacro",decial maxCount); > >setglobalcount("MyCount",maxCount); > > \stopMPcode > > > > > >

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-23 Thread Aditya Mahajan
On Thu, 24 Jun 2021, Jeong Dal wrote: > Now, I am trying to do the same thing using \startuseMPgraphic, but I don’t > the correct result yet. > Using \startuseMPgraphic, and \dorecurse, the code is simpler. But, it seems > to me that \startanimation … \stopanimation is not working with >

Re: [NTG-context] simplifying repeated macro calls in metafun

2021-06-20 Thread Aditya Mahajan
On Mon, 21 Jun 2021, Jeong Dal wrote: > > Hi, > > I defined a macro definition in metafun, and draw figures using > \startbuffer[] … \stopbuffer and \processMPbuffer[]. > As you see in the attached code, the same macro definition is used repeatedly > by changing the numeric argument. > Is

Re: [NTG-context] A not so short introduction to ConTeXt - French version - progress report.

2021-06-16 Thread Aditya Mahajan
On Wed, 16 Jun 2021, Garulfo wrote: > Hi all, Joaquín > > I hope your are doing well. > > To keep you informed of my progress on the French version of "a not so > short introduction to ConTeXt", I am done for part I, and II, and I am > starting with Part III... Thanks. The visual style does

Re: [NTG-context] randomizer line-breaking

2021-06-08 Thread Aditya Mahajan
On Tue, 8 Jun 2021, Steffen Wolfrum wrote: > > > > Am 08.06.2021 um 15:30 schrieb Hans Hagen : > > > > On 6/8/2021 3:15 PM, Steffen Wolfrum wrote: > > > >> perhaps I incidently use a command that utilizes random... what could this > >> be? > > mwe http://texfaq.org/FAQ-minxampl

Re: [NTG-context] new upload

2021-05-31 Thread Aditya Mahajan
On Mon, 31 May 2021, Hans Hagen wrote: > On 5/31/2021 6:50 PM, Aditya Mahajan wrote: > > On Mon, 31 May 2021, Hans Hagen wrote: > > > > > Hi, > > > > > > I uploaded a new lmtx version. This time a new mechanism. > > > &

Re: [NTG-context] new upload

2021-05-31 Thread Aditya Mahajan
On Mon, 31 May 2021, Hans Hagen wrote: > Hi, > > I uploaded a new lmtx version. This time a new mechanism. This is very interesting...I haven't played around with it, but is it the case that \markanchor does not do alignment and so can completely replace the old \hpos{...} class of macros?

Re: [NTG-context] BibTeX inproceedings entries not rendered correctly in APA style

2021-05-28 Thread Aditya Mahajan
On Fri, 28 May 2021, Alan Braslau wrote: > On Thu, 27 May 2021 20:21:55 - (UTC) > Nicola wrote: > > > Thank you all for the precious comments. > > > > The current LMTX appears to have almost fixed my issue, except that > > inproceedings entries without a publisher have the text "Author" >

Re: [NTG-context] t-vim module: no highlighting for custom filetypes

2021-05-28 Thread Aditya Mahajan
On Thu, 27 May 2021, Nicola wrote: > On 2021-05-27, Aditya Mahajan wrote: > > On Thu, 27 May 2021, Nicola wrote: > > > >> On 2021-05-24, Aditya Mahajan wrote: > >> > On Fri, 21 May 2021, Nicola wrote: > >> > > >> >> I have

Re: [NTG-context] t-vim module: no highlighting for custom filetypes

2021-05-27 Thread Aditya Mahajan
On Thu, 27 May 2021, Nicola wrote: > On 2021-05-24, Aditya Mahajan wrote: > > On Fri, 21 May 2021, Nicola wrote: > > > >> I have only a minor annoyance: I have just noticed that -- is typeset as > >> an en-dash in LMTX (but not in MKI

Re: [NTG-context] Define new symbol by stitching two symbols together

2021-05-24 Thread Aditya Mahajan
On Sun, 23 May 2021, Hans Hagen wrote: > On 5/22/2021 8:23 PM, Nicola wrote: > > I would like to define new symbols by stitching together existing > > glyphs. This is what I have come up so far: > > > > \define[1]\Transition{-\!\![#1]\!\!\rightarrow} > > \starttext > >

Re: [NTG-context] t-vim module: no highlighting for custom filetypes

2021-05-24 Thread Aditya Mahajan
On Fri, 21 May 2021, Nicola wrote: > I have only a minor annoyance: I have just noticed that -- is typeset as > an en-dash in LMTX (but not in MKIV, as documented). Could you look into > that? Fixed in the new release. Aditya

Re: [NTG-context] t-vim module: no highlighting for custom filetypes

2021-05-23 Thread Aditya Mahajan
On Sun, 23 May 2021, Hans Hagen wrote: > On 5/22/2021 6:15 PM, Aditya Mahajan wrote: > > On Sat, 22 May 2021, Hans Hagen wrote: > > > > > On 5/21/2021 9:37 PM, Nicola wrote: > > > > > > I have only a minor annoyance: I have just noticed that -

Re: [NTG-context] Unwanted upright math in MkIV

2021-05-23 Thread Aditya Mahajan
On Sun, 23 May 2021, Gavin wrote: > Hello, > > I’m using ConTeXt with MacOS. The current version of MkIV produces upright > math rather than italic. MWE: > > \starttext > \m{f = \beta} > \stoptext Works correctly here. What does context --version say?

Re: [NTG-context] t-vim module: no highlighting for custom filetypes

2021-05-22 Thread Aditya Mahajan
On Sat, 22 May 2021, Hans Hagen wrote: > On 5/21/2021 9:37 PM, Nicola wrote: > > I have only a minor annoyance: I have just noticed that -- is typeset as > > an en-dash in LMTX (but not in MKIV, as documented). Could you look into > > that? > > best is that the module uses: > >

Re: [NTG-context] mathfun

2021-05-21 Thread Aditya Mahajan
On Fri, 21 May 2021, Otared Kavian wrote: > By the way, what does > > \complexexpr{123 + new(456,789)} > > mean? Haven't look at the code yet, but I'd guess `new(a,b) = a + bi`. Aditya ___ If your question

Re: [NTG-context] mathfun

2021-05-21 Thread Aditya Mahajan
On Fri, 21 May 2021, Hans Hagen wrote: > I uploaded an lmtx update (only m-mathfun added). > > Attached a short description of this (windy stormy friday afternoon) math > experiment. The question is, what similar features using this trickery come to > mind. Personally, I can see occasionally

Re: [NTG-context] t-vim module: no highlighting for custom filetypes

2021-05-21 Thread Aditya Mahajan
says: --clean Skip loading plugins and shada (viminfo) file. So, in vim, the --clean option also skips vimrc while in nvim it does not. Looking at my git log, I see that I added --clean option for nvim: commit b907543d9f6b2185185f3674035987f47bf91381 Author: Aditya Mahajan

Re: [NTG-context] Color problem

2021-05-20 Thread Aditya Mahajan
On Thu, 20 May 2021, Rik Kabel wrote: > Consider the following example: > >\define \HighlightColor {red} Why not just use: \definecolor[HighlightColor][red] and then use color=HighlightColor, etc. >\definehighlight[RED][color=\HighlightColor] >

Re: [NTG-context] Hand Style Sketching in Metapost

2021-05-20 Thread Aditya Mahajan
. Aditya hatch.pdf Description: Adobe PDF document hatch.tex Description: TeX document %D \module %D [ file=mp-sketch.mp %Dversion=2021.05.13 %D title=\CONTEXT\ \METAPOST\ graphics, %D subtitle=Sketch drawing, %D author=Aditya Mahajan, %D date=\curren

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
On Thu, 13 May 2021, Henning Hraban Ramm wrote: > My test file also includes the noise overlay after Jairo’s suggestions. Maybe > you want to implement that, too? > At the moment it still doesn’t respect the pen size, and the number of > patterns per path is fixed. I am not sure if simply

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
On Thu, 13 May 2021, Henning Hraban Ramm wrote: > > > Am 13.05.2021 um 18:36 schrieb Aditya Mahajan : > > > >> Now I want to draw that path several times. > >> > >> If I understand it right, I can’t put that into "sketchdraw" because th

Re: [NTG-context] Fuzzy lines

2021-05-13 Thread Aditya Mahajan
On Thu, 13 May 2021, Henning Hraban Ramm wrote: > > > Am 11.05.2021 um 18:02 schrieb Aditya Mahajan : > > > > Look at this old code on how hide such code behind a macro to have a clean > > interface: > > > > https://github.com/adityam/mp-sketch/blob/ma

Re: [NTG-context] Fuzzy lines

2021-05-11 Thread Aditya Mahajan
On Tue, 11 May 2021, Jairo A. del Rio wrote: > 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

Re: [NTG-context] Include PDF pages

2021-05-11 Thread Aditya Mahajan
On Tue, 11 May 2021, denis.ma...@ub.unibe.ch wrote: > > Von: ntg-context Im Auftrag von MANUEL > > GONZALEZ SUAREZ > > Gesendet: Dienstag, 11. Mai 2021 09:30 > > An: Context > > Betreff: [NTG-context] Include PDF pages > > > > Hello everybody: > > > > > > My query is as follows: in LaTeX

Re: [NTG-context] Update setpath to set the path

2021-05-10 Thread Aditya Mahajan
On Sun, 9 May 2021, Thangalin wrote: > Thoughts on updating the setpath.bat file to persist setting the path? > > Here's an updated version that sets the system environment variable while > preserving the existing unexpanded PATH value: > > [] > > The reason for this change is because the

Re: [NTG-context] Bug in \framed and \inframed

2021-05-06 Thread Aditya Mahajan
On Thu, 6 May 2021, Johann Birnick wrote: > There is a bug with \framed and related commands: If this is the first object > in > a line, a linebreak is inserted! See the following example: > > > \starttext > > > This

Re: [NTG-context] Style options and setupinterlinespace

2021-04-26 Thread Aditya Mahajan
On Mon, 26 Apr 2021, denis.ma...@ub.unibe.ch wrote: > Wikified, as per Aditya's suggestion. I expanded on the description to make it clearer (hopefully). However, as I was testing, I realized that the remark about math font sizes ("These quick font switches [...] do not change the bodyfont, so

Re: [NTG-context] Style options and setupinterlinespace

2021-04-26 Thread Aditya Mahajan
> Von: Maier, Denis Christian (UB) > Gesendet: Donnerstag, 22. April 2021 15:15 > An: 'mailing list for ConTeXt users' > Betreff: Style options and setupinterlinespace > > Hi, > > the wiki (https://wiki.contextgarden.net/Font_Switching) currently says: > > > > These quick font switches are

Re: [NTG-context] Set luatex cache directory path

2021-04-06 Thread Aditya Mahajan
On Tue, 6 Apr 2021, Thangalin wrote: > Thanks Aditya. > > What do you think of changing the default luatex-cache directory to the > system's temporary directory? Consider: > >- The $HOME directory is sacrosanct (4784 people agree: >

Re: [NTG-context] Set luatex cache directory path

2021-04-06 Thread Aditya Mahajan
On Mon, 5 Apr 2021, Thangalin wrote: > Peter Münster once asked: > > > What should I do please, to prevent ConTeXt from creating > $HOME/luatex-cache? > > I'd like to do the same: > > $ cd $HOME > $ ls luatex-cache > ls: cannot access 'luatex-cache': No such file or directory > $ context

Re: [NTG-context] Running a couple of context statements in a linux bash shell heredocument?

2021-04-01 Thread Aditya Mahajan
On Thu, 1 Apr 2021, Henri Menke wrote: > On Thu, 2021-04-01 at 16:23 +0200, Alexander Rosenstock wrote: > > Hi all, > > > > is it possible running a couple of context statements as a > > heredocument integrated in a - for example linux bash - shellscript? > > Do you have any experience or idea

Re: [NTG-context] metafun / patterns

2021-03-25 Thread Aditya Mahajan
On Thu, 25 Mar 2021, Hans Hagen wrote: > Hi, > > As I'm still in metafun (and svg) mode I decided to support patterns > (that are already supported at the tex end) also in metafun. As there > has never been demands I suppose it's not that interesting but it sort > of fits in. > > There are

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

2021-03-23 Thread Aditya Mahajan
On Tue, 23 Mar 2021, 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 calculations which are done in each

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
On Sun, 21 Mar 2021, Hans Hagen wrote: > On 3/20/2021 10:03 PM, Aditya Mahajan wrote: > > On Sat, 20 Mar 2021, Hans Hagen wrote: > > > > > > > > > > I wonder if we could have an environment, say \startluatemplate ... > > > > \stopluatempl

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
On Sat, 20 Mar 2021, Hans Hagen wrote: > > > > I wonder if we could have an environment, say \startluatemplate ... > > \stopluatemplate, which is evaluated on the fly rather than when loading a > > file. > > define 'evaluated on the fly' Consider the following example: \enablemode[A]

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
On Sat, 20 Mar 2021, Hans Hagen wrote: > On 3/20/2021 4:00 PM, Christoph Reller wrote: > > On Sat, Mar 20, 2021 at 12:12 PM Hans Hagen > <mailto:j.ha...@xs4all.nl>> wrote: > > > > On 3/20/2021 8:24 AM, Aditya Mahajan wrote: > > > O

Re: [NTG-context] Typing within doifmode leads to error

2021-03-20 Thread Aditya Mahajan
On Sat, 20 Mar 2021, Christoph Reller wrote: > Of course we can do this in lua: > > if tex.modes["A"] and not tex.modes{"B"] then > ... > end ... which means that you can use that at the context end as well (old feature). Save the following as test.mkix (or add "% macros=mkix" as the first

Re: [NTG-context] Typing within doifmode leads to error

2021-03-18 Thread Aditya Mahajan
On Fri, 19 Mar 2021, Christoph Reller wrote: > Hi, > > Consider the following MWE: > > \definetyping[T] > \definemode[mode][yes] > \starttext > \doifmode{mode}{% > \startT > Bla > \stopT} > \stoptext > > Compilation with the currently latest ConTeXt LMTX (ver: 2021.03.17 17:46 > LMTX

Re: [NTG-context] Math: Nested Cases?

2021-03-18 Thread Aditya Mahajan
On Thu, 18 Mar 2021, Weber, Matthias wrote: > Hello, > > Is it possible to nest cases in math, like so: In principle, it should be. But we never tested this and I suspect that there is some macro which doesn't get initialized correctly in nested cases. > \starttext > \startformula > x= >

Re: [NTG-context] lmt_outline

2021-03-10 Thread Aditya Mahajan
On Wed, 10 Mar 2021, Mohammad Hossein Bateni wrote: > Hello, > > Hans said he's in the metapost mode now :) > > I have used lmt_outline in the following example and it is really an > improvement over the previous outline "effect" because one can set the > fillcolor and drawcolor separately.

[NTG-context] Incorrect css reference in exported html file

2021-02-27 Thread Aditya Mahajan
Hi, This message is prompted by a bug report for t-vim (https://github.com/adityam/filter/issues/43), but the issue is more general. Whenever, `cssfile` in `\setupexport` points to a file now in $PWD, the reference to the file in the exported CSS is incorrect: Consider the following directory

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

2021-02-26 Thread Aditya Mahajan
On Fri, 26 Feb 2021, Jairo A. del Rio wrote: > 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}} \framed[width=10cm]{} and \framed[height=3cm, width=10cm]{...} if

Re: [NTG-context] How to reduce the inter-item space

2021-02-26 Thread Aditya Mahajan
On Fri, 26 Feb 2021, Alain Delmotte wrote: > > Thanks, that answered all my requirements. This post illustrates the effect of each keyword for spacing: https://adityam.github.io/context-blog/post/spacing-in-itemize/ > I suppose that the rule "not mixing keywords and assignment in the same >

Re: [NTG-context] tikzpicture in margin

2021-02-14 Thread Aditya Mahajan
On Sun, 14 Feb 2021, Jigé wrote: > Hi all. > > I'm trying to place a TikZ picture in the margin. > Here is a small example: > > \usemodule[tikz] > \setuplayout[backspace=4cm, topspace=2cm, height=middle] > \starttext > \input{lorem} > \margintext{I have discovered a truly >            

Re: [NTG-context] midi

2021-02-03 Thread Aditya Mahajan
On Wed, 3 Feb 2021, Fabrice L wrote: > Le 3 févr. 2021 à 19:41, Hans Hagen a écrit : > > > > On 2/3/2021 9:33 PM, Jairo A. del Rio wrote: > >> Wow, that's great :) > > > > Whow indeed! > > Thanks a lot for your nice words ! Hans, all your covers have been very > inspirational to me.. ! I use

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-30 Thread Aditya Mahajan
On Sat, 30 Jan 2021, Henning Hraban Ramm wrote: > >> If I use \starttikz[name=example], I get > >> "JOBNAME-temp-tikzThick-example.tmp". > >> I’d like to get something like "COMPONENTNAME-##-example.tmp" or a path > >> like "COMPONENTNAME/example_##.tmp". > >> Is there a configuration hook in

Re: [NTG-context] filter module / externalizing TikZ graphics

2021-01-29 Thread Aditya Mahajan
On Thu, 28 Jan 2021, Henning Hraban Ramm wrote: > Still working on that. > I hope you can help me here, Aditya! > I’ll add these issues to the tracker of t-filter, if it makes sense. > > > Testing with: ConTeXt ver: 2021.01.24 16:07 LMTX fmt: 2021.1.25 > > The setup below works, but only

Re: [NTG-context] externalizing TikZ graphics

2021-01-25 Thread Aditya Mahajan
On Mon, 25 Jan 2021, Henning Hraban Ramm wrote: > > > Am 25.01.2021 um 17:31 schrieb Hans Hagen : > > > >> If nobody has better advice, I’ll try to come up with a filter setup. That > >> would mean we’d avoid the tikz module, every TikZ diagram will get written > >> to a buffer of

Re: [NTG-context] Floating object in text - Spacing

2021-01-15 Thread Aditya Mahajan
On Sat, 16 Jan 2021, Johann Birnick wrote: > Consider the following example: > > \setupexternalfigures[location=default] > \starttext > \placefigure[right,none]{}{\externalfigure[hacker.jpg][scale=518]} > \samplefile{lorem} > \stoptext > > What bothers me is the top spacing. There is space to

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

2021-01-07 Thread Aditya Mahajan
On Fri, 8 Jan 2021, jbf wrote: > Very useful!  And I'll be on the lookout for a newspaper called The Onion :-) > one that I presume would bring you to tears. Oh, it does: https://www.theonion.com/ Aditya___ If your

Re: [NTG-context] LuaTeX and PDF.js

2021-01-07 Thread Aditya Mahajan
On Fri, 8 Jan 2021, Hans Hagen wrote: > On 1/8/2021 12:39 AM, Vedran Miletić wrote: > > > It's whatever ConTeXt standalone has. I don't have any extra Lua installed: > > --credits should mention the lua version > > > Should I see it on non-HiDPI as well? Because it seems it's there. > >

Re: [NTG-context] MP reflectedabout broken?

2021-01-04 Thread Aditya Mahajan
On Mon, 4 Jan 2021, Damien Thiriet wrote: > Hi, > > I updated ConTeXt yesterday and went through > troubles with reflectedabout. > > This snippet of code > > \starttext > \startMPpage > path p[]; > p1:= unitcircle scaled 10; > p2:= p1 reflectedabout ((15u,-15u),(15u,15)); > draw p1; > draw p2;

Re: [NTG-context] A not so short introduction to ConTeXt Mark IV

2021-01-04 Thread Aditya Mahajan
On Sun, 3 Jan 2021, Joaquín Ataz López wrote: > Hello to all: > > Two months ago I informed to the list that I had written an introduction > in Spanish to ConTeXt Mark IV. This interested several people, and in > order to increase their potential audience, a member of this list > (native

Re: [NTG-context] Math align not working

2021-01-01 Thread Aditya Mahajan
On Fri, 1 Jan 2021, Hans Hagen wrote: > On 1/1/2021 8:21 AM, Aditya Mahajan wrote: > > \startformula \startalign[m=2,distance=8em,n=5, > > align={right,middle,middle,middle,left, right,middle,middle,middle,left}] > > \NC 0 \NC < \NC 2x + 5y \NC < \NC 10 > > \NC 4

Re: [NTG-context] Math align not working

2020-12-31 Thread Aditya Mahajan
On Wed, 30 Dec 2020, Johann Birnick wrote: > Okay, but I think it's a bug, because as you see in the linked pdf it worked > the > simple way some years ago... Yes, something has changed internally. Earlier, if you used: \startalign[align={right,left}, n=4] ... \stopalign then the alignment

Re: [NTG-context] drop shadows with metapost/ metafun

2020-12-31 Thread Aditya Mahajan
On Fri, 1 Jan 2021, Aditya Mahajan wrote: > On Tue, 29 Dec 2020, Garulfo wrote: > > > Which process would you advice to add « drop shadows » to any kind of > > metafun / metapost figures like: > > > Actually, all this seems long and tedious, and contrasts with the

Re: [NTG-context] drop shadows with metapost/ metafun

2020-12-31 Thread Aditya Mahajan
On Tue, 29 Dec 2020, Garulfo wrote: > Which process would you advice to add « drop shadows » to any kind of metafun > / metapost figures like: > picture p; > p := textext("MetaPost is fun!") shifted (10cm,10cm); > > My current understanding of the required steps : > > > 1- fill p with the

Re: [NTG-context] prevent error page

2020-12-31 Thread Aditya Mahajan
On Thu, 31 Dec 2020, Johann Birnick wrote: > Hi there, > > in my setup I constantly have a pdf viewer open showing the output of context. > When I recompile the viewer updates. > > Now if there is an error, the document fails to compile, of course. Previously > the pdf file just remainded

Re: [NTG-context] xrightarrow specific size issue

2020-12-31 Thread Aditya Mahajan
On Thu, 31 Dec 2020, Johann Birnick wrote: > Hi there, > > \starttext > $\xrightarrow[50pt]$ > \stoptext > > doesn't work. But it should, right? In the manual > > \starttext > $\xrightarrow[50]$ > \stoptext > > is shown, but that doesn't work either. The syntax is: \xrightarrow{top} or

Re: [NTG-context] underbrace spacing

2020-12-31 Thread Aditya Mahajan
On Thu, 31 Dec 2020, Johann Birnick wrote: > Hi there, > > if I do > > \starttext > $4 \underbrace{+ 3}_{\text{because of lorem} + 2}$ > \stoptext > > then the spacing gets really big because of the long. How can I prevent this? > > (in LaTeX one can use \mathcal or so and that works) Do you

Re: [NTG-context] Polar pgfplots seems to be broken

2020-12-20 Thread Aditya Mahajan
On Sun, 20 Dec 2020, Gavin wrote: > Hello, > > I’m drawing solar system diagrams using the pgfplots module, but the polar > library seem to be broken. It looks like it is calling something with a > \begin{axis}... command. Here is the error message for a short document, > included below. > >

Re: [NTG-context] LMTX MetaFun SVG trouble, a portion of the SVG is cut of in the PDF

2020-12-17 Thread Aditya Mahajan
On Thu, 17 Dec 2020, Neven Sajko wrote: > Hello all, > > I am completely new to TeX, ConTeXt, MetaPost, etc. (Except for some > MathJax snippets and the like.) > > I am using Aditya's LMTX package from AUR on Archlinux. > > I have some SVGs (generated by the Julia Gadfly package) that >

Re: [NTG-context] Metafun: is it possible to redefine dotlabel to draw a square ?

2020-12-10 Thread Aditya Mahajan
On Thu, 10 Dec 2020, Hans Hagen wrote: > > dotlabel uses a pen to draw the dot, and I am not sure why it uses that > > rather > > than a path. Here is a (to me) simpler definition, where you can change the > > shape: > > just look in the pdf ... in your case the dot is a n point path while >

Re: [NTG-context] Metafun: is it possible to redefine dotlabel to draw a square ?

2020-12-10 Thread Aditya Mahajan
On Thu, 10 Dec 2020, Otared Kavian wrote: > Hi Aditya, > Thank you very much ! > That's great indeed, you gave me an elegant solution. > > One more question, in order for me to understand a little more: when defining > a new dotlabel as you do, might it not conflict with the internal

Re: [NTG-context] Metafun: is it possible to redefine dotlabel to draw a square ?

2020-12-10 Thread Aditya Mahajan
On Thu, 10 Dec 2020, Otared Kavian wrote: > Hi all, > > In Metafun when representing a point I woul dlike to have some dots > represented by a square (or even by another scalable symbol): for instance in > the following I would like the dot at the point B to be a square: > > \starttext >

Re: [NTG-context] Automatically setting the value of list key in annotation module

2020-12-09 Thread Aditya Mahajan
On Wed, 9 Dec 2020, Wolfgang Schuster wrote: > > Actually, I cannot figure out how \writetolist works. According to > https://wiki.contextgarden.net/Command/writetolist, the 2nd argument is the > "number". But, for some reason, the list number doesn't show in placelist: > > > > > >

Re: [NTG-context] Metafun: how to draw a straight line past the end points

2020-12-09 Thread Aditya Mahajan
On Wed, 9 Dec 2020, Otared Kavian wrote: > Hi Aditya, > > Thanks for the alternative method, which comes handy if one wishes to extend > the straight line by a different amount at either end: > > \starttext > \startMPcode >z1 = (1cm,3cm) ; >z2 = (5cm, 9cm) ; >z3 = 1cm * dir(angle

Re: [NTG-context] Metafun: how to draw a straight line past the end points

2020-12-09 Thread Aditya Mahajan
On Wed, 9 Dec 2020, Otared Kavian wrote: > Thanks a lot ! Indeed that does the job, which shows how wonderful Metafun is > ! Or, if you want to use high school algebra: \starttext \startMPcode z1 = (1cm,3cm) ; z2 = (5cm, 9cm) ; z3 = 1cm * dir(angle (z2 - z1)) shifted z2; draw

  1   2   3   4   5   6   7   8   9   10   >