Re: [NTG-context] Compile only one new component in a project

2020-05-07 Thread Aditya Mahajan
On Thu, 7 May 2020, Fabrice Couvreur wrote: Hi, Here is part of a project that is starting to be heavy ; when i add a chapter i do context seconde.tex How do I compile only the chapter I just added ? Thank you. Fabrice \startproduct Seconde \environment modules \environment specialite-style \e

Re: [NTG-context] Changing the font size in an environment changes the behavior of a macro

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Fabrice Couvreur wrote: Hi, Sorry to insist but I cannot fix this problem. Thanks for any help. I don't know the answer, but here is a simpler example without pgfplot which fails (different calligraphic C's): \define[1]\cscript{\start\switchtobodyfont[xitsbidi]\m{{\maths

Re: [NTG-context] Placing number in \sqrt

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, cont...@vivaldi.net wrote: Hello Aditya, On 2020-05-04 10:42, Aditya Mahajan wrote: On Mon, 4 May 2020, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3

Re: [NTG-context] Vertical lines in matrices

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Weber, Matthias wrote: I was aware of this. While there is no solution that adds vertical lines into matrices, It should not be too difficult to support "proper" vertical and horizontal lines. It should be possible to just add solid lines relatively easily. With dashed an

Re: [NTG-context] Placing number in \sqrt

2020-05-04 Thread Aditya Mahajan
On Mon, 4 May 2020, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3]{5}$ % (1)   \par   $\sqrt[3~]{5}$ % (2) \stoptext In the first case, the "3" is placed naturally by ConTeXt and plac

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

2020-05-01 Thread Aditya Mahajan
If you or anyone else is going to play around with generating mazes, definitely take a look at http://www.mazesforprogrammers.com/ and the live demos here: https://weblog.jamisbuck.org/2011/2/7/maze-generation-algorithm-recap A nice overview of the relationship with spanning tress (by the same

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

2020-05-01 Thread Aditya Mahajan
On Sat, 2 May 2020, Hans Hagen wrote: On 5/1/2020 11:38 PM, Aditya Mahajan wrote: On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: I've adapted the following code to make mazes in LuaLaTeX and ConTeXt: https://www.rosettacode.org/wiki/Maze_generatio

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

2020-05-01 Thread Aditya Mahajan
On Fri, 1 May 2020, Hans Hagen wrote: On 5/1/2020 6:12 AM, Jairo A. del Rio wrote: 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 nam

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

2020-05-01 Thread Aditya Mahajan
On Fri, 1 May 2020, Jairo A. del Rio wrote: 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: ...xt/tex

Re: [NTG-context] animation using \startuseMPgraphic

2020-04-19 Thread Aditya Mahajan
On Sun, 19 Apr 2020, Jeong Dal wrote: Dear all, I am trying to make an animation using the animation module. But it draws 10 figures instead of creating animation. Is there anything I have to do more? Or, is there a better way to do this? Thank you for reading. Best regards, Dalyoung \star

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

2020-04-18 Thread Aditya Mahajan
On Sun, 19 Apr 2020, Jairo A. del Rio wrote: 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

Re: [NTG-context] Using two versions of ConTeXt

2020-04-17 Thread Aditya Mahajan
On Fri, 17 Apr 2020, Jairo A. del Rio wrote: 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 t

Re: [NTG-context] [LMTX] error updating luametatex

2020-04-16 Thread Aditya Mahajan
On Thu, 16 Apr 2020, kaddour kardio wrote: Pablo yes I meant 'mtxrun'. Hans by googling about my issue I found a commentary by Aditya of the issue on the git repos. Which git repo? I maintain the luametatex AUR for archlinux. So, if the install script asked you to run `mtx-run --generate` i

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-13 Thread Aditya Mahajan
On Mon, 13 Apr 2020, Fabrice Couvreur wrote: Hi, Sorry to restart the discussion, but I have updated my entire system and the problem remains. I used the example of Aditya. Thank you. Fabrice \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot {x}; \stopaxis \stoptikzp

Re: [NTG-context] Fontawesome in lmtx

2020-04-11 Thread Aditya Mahajan
On Fri, 10 Apr 2020, kaddour kardio wrote: Hi, if there any changes in the interface for using symbols? I tried today the example from Aditya's Blog but it shows no symbols: \definetypeface[mainfont][rm][specserif][Linux Libertine O][default] \definetypeface[mainfont][mm][math] [TeX Gyre Pagell

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Aditya Mahajan
On Wed, 8 Apr 2020, Aditya Mahajan wrote: Simpler example: Sorry, pasted the wrong thing: \usemodule[pgfplots] \starttext \starttikzpicture \startaxis \addplot {x}; \stopaxis \stoptikzpicture \stoptext Works with LMTX 2019.12.31 but fails with the most recent LMTX (same error as

Re: [NTG-context] Lmtx + pgfplots compilation error

2020-04-08 Thread Aditya Mahajan
Simpler example: \usemodule[pgfplots] \pgfplotsset{compat=newest} \starttext \starttikzpicture \startaxis [ xlabel=$x$, ylabel={$f(x) = x^2 - x +4$} ] \addplot {x^2 - x +4}; \stopaxis \stoptikzpicture \stoptext Works with LMTX 2019.12.31 but fails with the most recent LMTX

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

2020-04-06 Thread Aditya Mahajan
On Mon, 6 Apr 2020, Jairo A. del Rio wrote: A Metapost alternative would be fine, too. See Chapter 5 of the metafun manual, which describes how anchors and position graphics. Aditya ___ If your question is of i

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

2020-04-06 Thread Aditya Mahajan
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 of what I achieved so far and its output (labelled "Works") and what I actually want, but does not work (labelled "Doesnotwork"). I've tried different commands and combinations

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

2020-04-05 Thread Aditya Mahajan
On Sun, 5 Apr 2020, Jairo A. del Rio wrote: 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: \startpr

Re: [NTG-context] Lua/TeX/METAPOST/textext string issue/puzzle

2020-04-01 Thread Aditya Mahajan
On Wed, 1 Apr 2020, Gerben Wierda wrote: My route is probably to complex anyway, but what can I do for the curly braces to be actually typeset? MkII had a feature called \sometxt http://dl.contextgarden.net/myway/sometxt.pdf I wonder if that still works in MkIV. Aditya _

Re: [NTG-context] Box of certain width (and height?) containing a paragraph of text?

2020-03-30 Thread Aditya Mahajan
Does ConTeXt have a command to create a (non framed) box from a line of text, where the text is typeset as a paragraph inside a box of certain size? You can always fall back to plain tex, but I think that the \framed... interface is nicer: \starttext \vbox{\hsize 3cm \input ward\relax} \stop

Re: [NTG-context] How to calculate the height of text of a certain width?

2020-03-24 Thread Aditya Mahajan
On Tue, 24 Mar 2020, Rudolf Bahr wrote: On Tue, Mar 24, 2020 at 03:56:18PM +0100, Wolfgang Schuster wrote: Rudolf Bahr schrieb am 24.03.2020 um 12:19: > Hello dear All, > > the following MWE works best: > > > \definelayer[LAY] > \starttext > > \setlayerframed[LAY] >[x=0pt,y=20pt] >

Re: [NTG-context] Bug (Lua) ?

2020-03-19 Thread Aditya Mahajan
On Thu, 19 Mar 2020, mf wrote: Il 19/03/20 11:20, Fabrice Couvreur ha scritto: Hi, this file did not pose any problems but today yes. Thank you. Fabrice \starttext \startluacode local letters_1 = { "A", "B", "C", "D", "E", "F", "G", "H", "I", "J" } local letters_2 = { "1", "Année", "1998", "19

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-16 Thread Aditya Mahajan
On Mon, 16 Mar 2020, Gerben Wierda wrote: This worked when I was just doing METAPOST. Now, I am using my lua code to produce the METAPOST code that produces the pictures. And the picture itself is put in a file for METAPOST as follows: File test4-mplib-run-001.mp: % begin graphic: n=0 ; beg

Re: [NTG-context] Can I share METAPOST vardefs over multiple pages?

2020-03-13 Thread Aditya Mahajan
On Fri, 13 Mar 2020, Taco Hoekwater wrote: Hi, On 13 Mar 2020, at 12:53, Gerben Wierda wrote: Suppose I have this code: Can I reuse that varied across follow-up MPPages? Sure, put the vardef inside \startMPinclusions: or \startMPdefinitions ... \stopMPdefinitions (don't remember what

Re: [NTG-context] Second derivative ''

2020-03-05 Thread Aditya Mahajan
On Thu, 5 Mar 2020, Hans Hagen wrote: On 3/4/2020 11:44 PM, Weber, Matthias wrote: Dear List, \starttext \startformula \left(f\right)'' = f'' \stopformula \stoptext has the second apostrophe set too low. This is in MKIV on ConTeXt live as well as in my slightly older version. What is the “

Re: [NTG-context] Space between heading and paragraph in a description

2020-02-18 Thread Aditya Mahajan
On Tue, 18 Feb 2020, Kevin Kenan wrote: On Feb 18, 2020, at 11:50 AM, Wolfgang Schuster wrote: You can always try the list archive, e.g. the same problems was asked last year. https://mailman.ntg.nl/pipermail/ntg-context/2019/094735.html

Re: [NTG-context] mtxrun

2020-02-15 Thread Aditya Mahajan
On Sat, 15 Feb 2020, Floris van Manen wrote: On 15-02-2020 06:40, Rudolf Bahr wrote: I hope this helps you! At least in the case you're using linux. it appears as that many of the files in the two path are sort of identical: ~/data/context $ md5sum bin/mtxrun tex/texmf-linux-64/bin/luametat

Re: [NTG-context] mtxrun

2020-02-14 Thread Aditya Mahajan
On Fri, 14 Feb 2020, Luca Donetti wrote: So I run explicitly the second one: ~/context-lmtx/bin/mtxrun --generate but I got the same error. This is the wrong binary. As Hans said (and also what I wrote in my message) is that you have to run the one in ~/context-lmtx/tex/texmf-linux-64/bin/

Re: [NTG-context] mtxrun

2020-02-11 Thread Aditya Mahajan
On Wed, 12 Feb 2020, Rudolf Bahr wrote: On Tue, Feb 11, 2020 at 01:39:54PM -0500, Aditya Mahajan wrote: What is the output of ~/context-lmtx/tex/texmf-linux-64/bin/mtxrun --generate (please paste the complete output; your previous message did not show if SELFAUTOPARENT was being set

Re: [NTG-context] mtxrun

2020-02-11 Thread Aditya Mahajan
On Tue, 11 Feb 2020, Rudolf Bahr wrote: On Tue, Feb 11, 2020 at 07:38:54PM +0100, Hans Hagen wrote: On 2/11/2020 6:26 PM, Rudolf Bahr wrote: > "whereis mtxrun" gives: > ~/context-lmtx/bin/mtxrun.lua > ~/context-lmtx/bin/mtxrun > ~/context-lmtx/tex/texmf-linux-64/bin/mtxrun.lua >

Re: [NTG-context] mtxrun

2020-02-11 Thread Aditya Mahajan
On Tue, 11 Feb 2020, Rudolf Bahr wrote: On Tue, Feb 11, 2020 at 04:57:15PM +0100, Pablo Rodriguez wrote: On 2/11/20 4:23 PM, Rudolf Bahr wrote: > > How should it be possible to mix mkiv and lmtx, when I install "LuaMetaTeX 2.03.15" > and "ConTeXt 2020.02.10 MKIV beta" in my linux directory "~/

Re: [NTG-context] beta vs current

2020-01-30 Thread Aditya Mahajan
On Thu, 30 Jan 2020, Hans Hagen wrote: Hi, Already for quite some years the 'current' context release is the one that ends up on texlive. The rest of the year we talk about betas and very rarely an alpha release. This distinction no longer makes sense. From now on there will be no alpha, be

Re: [NTG-context] [question] \clipping some data from a pdf

2020-01-30 Thread Aditya Mahajan
On Wed, 29 Jan 2020, Henning Hraban Ramm wrote: Am 2020-01-29 um 00:27 schrieb Floris van Manen : Or does there happen to be some snazzy tool out there to get the coordinates of embedden images within a pdf? In case the "right" size of your image is defined as one of the PDF boxes (MediaBox

Re: [NTG-context] OSFONTDIR defined in texmf.cnf not used

2020-01-08 Thread Aditya Mahajan
On Wed, 8 Jan 2020, Exp wrote: I've put `OSFONTDIR=/usr/share/fonts` in ~/.../texlive/2019/texmf.cnf, but `mtxrun --script fonts --reload` refuses to look it up, even though `kpsewhich --expand-path '$OSFONTDIR'` gives /usr/share/fonts. `export OSFONTDIR=/usr/share/fonts` does work, but doesn't

Re: [NTG-context] Style for captions

2019-12-18 Thread Aditya Mahajan
On Wed, 18 Dec 2019, Otared Kavian wrote: Thanks Aditya! That solve smy issue. However, it is a bit of magic to know that \setupinterlinespace makes also the math font small, even for inline math. The magic bit is not \setupinterlinespace but using \switchtobodyfont[small] instead of \tfx.

Re: [NTG-context] Style for captions

2019-12-18 Thread Aditya Mahajan
On Wed, 18 Dec 2019, Otared Kavian wrote: Hi all, In the example below, I would like to have the style of the figure's caption to be \itx, but the inline formula is set with a larger body font: is it possible to setup the caption of a float so that a smaller size applies also to the math for

Re: [NTG-context] What is the meaning of `\start`

2019-12-02 Thread Aditya Mahajan
On Sun, 1 Dec 2019, denis.maier.li...@mailbox.org wrote: Hi, in some examples I have found `\start` and `\stop`. What are they exactly? Just like `\begingroup` `\endgroup`? Or is there something else? They are equivalent to `\bgroup` and `\egroup`. You can also use `\start[whatever]` to ge

Re: [NTG-context] Watchmode

2019-11-29 Thread Aditya Mahajan
On Fri, 29 Nov 2019, Marco Patzer wrote: On Fri, 29 Nov 2019 11:07:01 +0100 Denis Maier wrote: So that I can it once and ConTeXt will re-typeset a file once there are changes? Idea: file='somefile.tex' while true; do inotifywait --event modify "$file" context --batchmode "$file" done I

Re: [NTG-context] R module

2019-11-24 Thread Aditya Mahajan
On Sun, 24 Nov 2019, luigi scarso wrote: On Sun, Nov 24, 2019 at 4:12 AM Aditya Mahajan wrote: On Sat, 23 Nov 2019, Fabrice L wrote: Thanks for your answer. I did not know about the filter module. I had a look; the module is powerful… but complex to install. Why do you say so? If you are

Re: [NTG-context] R module

2019-11-23 Thread Aditya Mahajan
On Sat, 23 Nov 2019, Fabrice L wrote: Dear Aditya. Le 22 nov. 2019 à 17:49, Aditya Mahajan a écrit : I’m teaching with R this term, and I tried (without success) the R-module (I think the path of R is not found). Having no time to test and find out the problem, I have tried with

Re: [NTG-context] R module

2019-11-22 Thread Aditya Mahajan
I’m teaching with R this term, and I tried (without success) the R-module (I think the path of R is not found). Having no time to test and find out the problem, I have tried with success knitr (with is Rmarkdown code converted to latex-beamer). But I’m missing Context… My understanding is that

Re: [NTG-context] ASCII mode within \footnote

2019-11-07 Thread Aditya Mahajan
On Thu, 7 Nov 2019, Wolfgang Schuster wrote: A way to avoid this problem is to use a slash a path separator instead of the backslash. Another way to get rid of it is to save the path a buffer and print the content of the buffer with the \typeinlinebuffer command. \starttext \startbuffer %APPD

Re: [NTG-context] ASCII mode within \footnote

2019-11-04 Thread Aditya Mahajan
On Mon, 4 Nov 2019, Aditya Mahajan wrote: That should have been: As Hans' mentioned, use: \startasciimode \footnote{\type{%APPDATA%\file.txt}} \stopasciimode Aditya ___ If your question is of interest to o

Re: [NTG-context] ASCII mode within \footnote

2019-11-04 Thread Aditya Mahajan
On Mon, 4 Nov 2019, cont...@vivaldi.net wrote: Hello Aditia, thanks for reaction. I simply want to write "%APPDATA%\file.txt" and the same into the footnote, with ability to use the text "%APPDATA%\file.txt" without any substitution (like "%" -> "\letterpercent") - if possible. My attepmts

Re: [NTG-context] ASCII mode within \footnote

2019-11-02 Thread Aditya Mahajan
On Sat, 2 Nov 2019, cont...@vivaldi.net wrote: Hello, OK, thanks for reaction. One more example - \text instead of ascii mode: \starttext \type{%@$} A\footnote{\type{*\$% }} B\footnote{\type{*\$\% }} \stoptext gives: " *\$ *\$\% " in the footnote. IOW, I cannot simply

Re: [NTG-context] Images run into each other when using side floats

2019-10-30 Thread Aditya Mahajan
On Wed, 30 Oct 2019, Marco Patzer wrote: Hi! Some images run into each other when using floats. The following example illustrates this. The second image (or frame) runs into the side figure frame. How to prevent this? \setupfloat [figure] [default=left] \starttext \samplefile{knuth} \start

Re: [NTG-context] Unexpected symbol with Enumeration

2019-10-16 Thread Aditya Mahajan
On Wed, 16 Oct 2019, Otared Kavian wrote: I use Lucida OT fonts for all my documents, but since I prefer the script fonts from another font I have the following setups for my font: OT: Do you use this to get a less cursive script font? Lucida (like many opentype math fonts) comes with two sty

Re: [NTG-context] Problem inserting image within MP

2019-10-10 Thread Aditya Mahajan
On Thu, 10 Oct 2019, cont...@vivaldi.net wrote: Hello, this is a probably basic question, but the following code doesn't compile: \setupbackgrounds[page][background={Bkg}] \defineoverlay[Bkg][\useMPgraphic{Bkg}] \startuseMPgraphic{Bkg} externalfigure "hacker.png"; \stopuseMPgraphic \s

Re: [NTG-context] passing variables/data between context and lua

2019-10-08 Thread Aditya Mahajan
On Tue, 8 Oct 2019, Rudolf Bahr wrote: On Sun, Oct 06, 2019 at 10:44:12PM +0200, Wolfgang Schuster wrote: While it is true that you're free to choose the name for the keys there are two keys with a special meaning, these two keys are "reset" and "set". The value of the "reset" key is used befo

Re: [NTG-context] MetaPost with Multiple Variable Sections

2019-09-18 Thread Aditya Mahajan
On Wed, 18 Sep 2019, Jeroen wrote: \startMPcode pair a; a := 2cm; You define a to be a pair and then assign it to a number. Metapost is telling you that you cannot do that: (xpart a,ypart a) 56.6929 ! Equation cannot be performed (pair=numeric). ; <*> pair a; a := 2cm; draw fullcircle sc

Re: [NTG-context] Biblatex \crossref equivalent in bibliographies

2019-09-15 Thread Aditya Mahajan
On Wed, 4 Sep 2019, Damien Thiriet wrote: With biblatex I was using crossref to shorten my .bib files, as can be seen in this MWE @periodical{DebatMem2002, title = {Le Débat}, number = {122}, langid = {french}, date = {2002} } @article{ChartiersurRicoeur2002, author = {Roger C

Re: [NTG-context] Sidefloats inside framed

2019-09-14 Thread Aditya Mahajan
On Sun, 15 Sep 2019, Henri Menke wrote: Dear list, Is there a way to get sidefloats working inside a frame? I'm currently designing a conference poster and I'm manually placing blocks using \setlayerframed where inside those blocks I'd like to have sidefloats. MWE is below. You could use ba

Re: [NTG-context] Math \not

2019-09-12 Thread Aditya Mahajan
On Thu, 12 Sep 2019, Atsuhito Kohda wrote: Dear all, \nequiv seems to work both in a math mode and in an ordinary text mode so I'd like to clarify the situation. Is \nequiv defined as a binary operator when used in math mode (that is \math{A\nequiv B})? When I grepped \nequiv in /usr/share/te

Re: [NTG-context] context (lmtx) segfaults on x86_64 linux

2019-09-10 Thread Aditya Mahajan
On Tue, 10 Sep 2019, Hans Hagen wrote: On 9/10/2019 4:11 PM, Vladimir Lomov wrote: Hello, today I updated lmtx and on simple $ context --version I get segfault (in the same time luametatex --version works fine). Running under gdb shows me that the problem might be in one of 'realloc' calls

Re: [NTG-context] metafun 2

2019-09-08 Thread Aditya Mahajan
On Sun, 8 Sep 2019, Otared Kavian wrote: Hi Aditya, I wanted also to point out a typo on that page (two occurrences), namely "ploles" instead of "poles", in the explanations before the actual code. Thanks. Fixed. Aditya ___

Re: [NTG-context] metafun 2

2019-09-08 Thread Aditya Mahajan
On Wed, 14 Aug 2019, Hans Hagen wrote: Hi, In the process of providing an additional (more abstract) interface to some of the old and also new MetaFun code we wonder what kind of features users would like to see. http://www.pragma-ade.com/general/magazines/mag-1104-mkiv.pdf Finally got ar

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-05 Thread Aditya Mahajan
On Thu, 5 Sep 2019, Otared Kavian wrote: Hi Aditya, Thank you for your reply and for the link to your article: your explanations are cristal clear and the solution for me is to use what you explain. There is only one issue remaining, when using your code, that is: \definetextbackground [lef

Re: [NTG-context] Strange pagebreaks in LMTX

2019-09-04 Thread Aditya Mahajan
On Thu, 5 Sep 2019, Otared Kavian wrote: Hi Wolfgang, Thanks for your answer. I tried Hans' suggestion to use \textbackground instead of background: indeed it solves the problem of incorrect page breaks, but it seems that \setuptextbackground « leftframe=on » is not honoured, that is one can

Re: [NTG-context] tikz problem with fontsize

2019-09-01 Thread Aditya Mahajan
On Sat, 31 Aug 2019, Martin Althoff wrote: What to do? Are there other ways to change font size in the Context TikZ? The equivalent of LaTeX's \selectfont{}{} in ConTeXt is \switchtobodyfont[...]. See https://wiki.contextgarden.net/Font_Switching Aditya

Re: [NTG-context] Problem of displaying a date with a macro

2019-08-28 Thread Aditya Mahajan
On Wed, 28 Aug 2019, Fabrice Couvreur wrote: Hello, The date display is incorrect : I get day 28 instead of day 2. Thank you Fabrice \defineframed [headerframed] [frame=off, height=fit, width=fit] \definecolor[ColorA][0.8(white)] \startsetups [headertext] \setupheadertext

Re: [NTG-context] Bug with jobs.file.run?

2019-08-25 Thread Aditya Mahajan
On Sun, 25 Aug 2019, Aditya Mahajan wrote: Hi, I use jobs.file.run in t-filter to cache the results so that the external filters are only run if the content has changed. For some reason, this is not working but I cannot figure out why? Repeating the same steps as t-filter manually works

Re: [NTG-context] Bug with jobs.file.run?

2019-08-25 Thread Aditya Mahajan
Hi, There was a typo in the test file (but it does not change the behavior). I am attaching the correct test file. Aditya On Sat, 24 Aug 2019, Aditya Mahajan wrote: Hi, I use jobs.file.run in t-filter to cache the results so that the external filters are only run if the content has

Re: [NTG-context] Luametatex and modules

2019-08-25 Thread Aditya Mahajan
On Sat, 24 Aug 2019, kaddour kardio wrote: Hi everybody, i have luametatex installed in /opt/luametatex, thanks to the [aur] package maintainer , my question is how do i manage to get my modules working? If you are using the arch linux, install the context-minimals-git package from AUR and th

[NTG-context] Bug with jobs.file.run?

2019-08-24 Thread Aditya Mahajan
Hi, I use jobs.file.run in t-filter to cache the results so that the external filters are only run if the content has changed. For some reason, this is not working but I cannot figure out why? Repeating the same steps as t-filter manually works, but something goes wrong when I use the t-filter

[NTG-context] \date in LMTX

2019-08-17 Thread Aditya Mahajan
Hi, There is a bug with \date in LMTX. \starttext \date[d=10] \stoptext does not change the date. Works okay in MKIV. Thanks, Aditya ___ If your question is of interest to others as well, please add an entry to the

Re: [NTG-context] metafun 2

2019-08-14 Thread Aditya Mahajan
On Wed, 14 Aug 2019, Otared Kavian wrote: Hi Hans, Thank you very much for the new features! I haven't yet read all the mag-1104-mkiv.pdf where you explain some of them, but after modifying one of your examples, I noticed that some funtions get a strange graph, which is probably due to the f

Re: [NTG-context] background problem with layers

2019-07-23 Thread Aditya Mahajan
On Mon, 22 Jul 2019, Wolfgang Schuster wrote: Peter Rolf schrieb am 22.07.2019 um 13:32: Hi, I have a problem with a not printed color background when using layers. Small test file is attached. Below is a simpler example of your problem. The frame disappears when you repeat the layer which c

[NTG-context] noindent vs noindentation in strc-con

2019-07-12 Thread Aditya Mahajan
Hi, Why do all the rendering setups in strc-con.mkvi use \noindent? Can the \noindet be replaced by \noindentation? \noindent has some side effects. For example, consider this recent question on TeX.SE: https://tex.stackexchange.com/questions/499464/context-empty-line-in-enumeration which

Re: [NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-07 Thread Aditya Mahajan
On Sun, 7 Jul 2019, Thangalin wrote: Thank you Aditya. The main.tex file is meant to be reusable for different document styles. By removing \completecontent altogether from the main template, it would preclude a different document from reusing the main.tex template with a table of contents. I'

Re: [NTG-context] Typesetting Markdown – Part 5: Interpolation

2019-07-07 Thread Aditya Mahajan
On Sat, 6 Jul 2019, Thangalin wrote: Hello again! This part of the series describes how to reference *interpolated* strings inside Markdown documents. https://dave.autonoma.ca/blog/2019/07/06/typesetting-markdown-part-5/ There's a section at the end about eliminating the table of contents from

Re: [NTG-context] feature request

2019-07-04 Thread Aditya Mahajan
On Thu, 4 Jul 2019, Atsuhito Kohda wrote: Hi Henri, Thanks for your suggestions, they are very instructive. However, my request is not a smart way of displaying matrices but to know why \bmatrix and \vmatrix are not provided in core part of ConTeXt although \pmatrix is provided already in math-p

Re: [NTG-context] IEEE Citation Style

2019-06-27 Thread Aditya Mahajan
On Thu, 27 Jun 2019, Julian Gompper wrote: Hello everyone, I am currently writing a technical documentation with ConTeXt, and I would like to use the IEEE citation style. I have found this file on github, although it does not seem to work and it was last created in July 2017 ( https://gist

Re: [NTG-context] newlines in return Lua string

2019-06-15 Thread Aditya Mahajan
On Sat, 15 Jun 2019, Hans van der Meer wrote: From\ctxlua{tex.print(hvdm.myluacall("\xmlatt{#1}{argument}"))} Lua returns a string containing newline characters '\n'. In ConTeXt this returned string is printed as one line, the embedded newlines are not honoured. I thought to replace with \

Re: [NTG-context] pretty printers

2019-05-08 Thread Aditya Mahajan
On Wed, 8 May 2019, Tomas Hala wrote: Wed, May 08, 2019 ve 10:14:45PM +0200 Wolfgang Schuster napsal(a): # Tomas Hala schrieb am 08.05.2019 um 21:58: # >Hi all, # > # >according to our wiki, there are pretty printers in ConTeXt # >implemented only for TEX, LUA, XML and MP. # > # >I am searching

Re: [NTG-context] XML xmldoif struggle!

2019-05-02 Thread Aditya Mahajan
On Thu, 2 May 2019, Geert Verhaag wrote: Yes, I got it working! It is somewhat tricky. Trying to understanding the concepts behind all this isn't easy for me, but I'm bashing on. I also find understanding XML processing rules to be complicated. I simply convert the XML to a lua table, and

Re: [NTG-context] placetable and localfootnotes

2019-04-30 Thread Aditya Mahajan
On Tue, 30 Apr 2019, Otared Kavian wrote: Hi Hans, It seems that there is a conflict between \startplacetable and \startlocalfootnotes: in the following example when the latter command (and its \stop counterpart) is commented out the table is placed correctly in the middle, while otherwise t

Re: [NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
On Sun, 28 Apr 2019, Wolfgang Schuster wrote: The problem are these settings in buff-imp-default.mkiv: \setupstartstop   [DefaultSnippet]   [\c!before={\typingparameter\c!before},    \c!after={\typingparameter\c!after},    \c!style={\typingparameter\c!style}] In buff-imp-tex.mkiv these values

[NTG-context] option=tex in setuptyping causes the background to be drawn twice

2019-04-28 Thread Aditya Mahajan
Hi, The following minimal example: \definetextbackground [EXAMPLE] [ location=paragraph, rulethickness=1pt, leftoffset=5em, rightoffset=0mm, ] \setuptyping[option=tex, before=\startEXAMPLE, after=\stopEXAMPLE] \starttext \starttyping A = B + C \stopt

Re: [NTG-context] LMTX and system fonts

2019-04-27 Thread Aditya Mahajan
On Sat, 27 Apr 2019, Pablo Rodriguez wrote: On 4/27/19 7:36 PM, Hans Hagen wrote: On 4/27/2019 6:25 PM, Pablo Rodriguez wrote: [...] It seems as if LMTX couldn’t follow symlinks for directories in Linux. On Windows, I will have to wait some days to have access to a computer with it. I tested

Re: [NTG-context] tikz is not found

2019-04-24 Thread Aditya Mahajan
On Wed, 24 Apr 2019, Wolfgang Schuster wrote: Gour schrieb am 24.04.2019 um 18:57: That I spotted and corrected, but I'm getting another error, I suppose: $ cat mp.tex \starttext Lorem Ipsum… \startMPcode draw ( (0,0)--(1,0)--(0,1)) with color red ; Change "with color" to "withcolor" (no spa

Re: [NTG-context] adjusting tikz pictures

2019-04-24 Thread Aditya Mahajan
On Wed, 24 Apr 2019, Gour wrote: Hello, I believe that using GeoGebra for drawing, exporting to TikZ is the most approachable method for me to be able to create mathematic-related material like exams for the children in the primary school, but need some info how to adjust GeoGebra's TikZ output

[NTG-context] mathalign: specifying distance with glue

2019-04-23 Thread Aditya Mahajan
Hi, amsmath provides an environment `flalign` that flushes the "block" for display math. See page 6 (pdf page 27) of my article on display math in context (https://www.ntg.nl/maps/34/06.pdf) for an example. As shown in that article, I could achieve the same behavior in context mathalign by u

Re: [NTG-context] Formula number misplaced

2019-04-23 Thread Aditya Mahajan
On Tue, 23 Apr 2019, Mikael P. Sundqvist wrote: Yes, but it can also appear when not using TEXpage. When I tried out lmtx on a large file (not using TEXpage), it was there. I was not able to reproduce on a smaller file, though. I could give it another try, if necessary. An example will be usef

Re: [NTG-context] Formula number misplaced

2019-04-23 Thread Aditya Mahajan
On Tue, 23 Apr 2019, Henri Menke wrote: Dear list, The problem I describe does not make itself apparent in all situations, but sometimes the formula number, which is placed by \start...\stopplaceformula, is misplaced and there appears a gap between it and the right margin. The MWE below repro

Re: [NTG-context] Left frame on a block of text

2019-04-20 Thread Aditya Mahajan
On Sat, 20 Apr 2019, Gilles Waeber wrote: Hi, I'm trying to create a style with a left border in the margin. I want the border to start and stop with the text. For the bottom I used framedepth but the bar still goes too far on the top? \showframe \showboxes \defineframedtext[leftbartext][

Re: [NTG-context] Prevent indentation after itemize

2019-04-11 Thread Aditya Mahajan
On Thu, 11 Apr 2019, Procházka Lukáš Ing. wrote: Hello, On Thu, 11 Apr 2019 14:44:39 +0200, Aditya Mahajan wrote: On Thu, 11 Apr 2019, Procházka Lukáš Ing. wrote: ... Great, perfect, thank you! Lukas The wiki page also explains the details of indentation: https://www.contextgarden.net

Re: [NTG-context] Prevent indentation after itemize

2019-04-11 Thread Aditya Mahajan
On Thu, 11 Apr 2019, Procházka Lukáš Ing. wrote: ... Great, perfect, thank you! Lukas The wiki page also explains the details of indentation: https://www.contextgarden.net/Indentation Aditya___ If your question i

Re: [NTG-context] Strange behavior in math mode: < and minus sign give leftarrow

2019-04-10 Thread Aditya Mahajan
On Wed, 10 Apr 2019, Hans Hagen wrote: On 4/10/2019 9:40 AM, Mikael P. Sundqvist wrote: On Wed, Apr 10, 2019 at 9:21 AM Otared Kavian wrote: Hi Hans, While testing old documents with lmtx, I noticed that with recent versions of mkiv, as well as LuaMetaTeX, there is a strange behavior in ma

Re: [NTG-context] Expanding text across two table cells

2019-04-08 Thread Aditya Mahajan
On Mon, 8 Apr 2019, Todd DeVries wrote: Hello, I use a progress note format which contains information that doesn't change much from session to session. Items like date, location, people attending a session. I would like to include two longer items, a diagnostic field and info about guardian

Re: [NTG-context] name of cache used by mkiv and lmtx

2019-04-07 Thread Aditya Mahajan
On Sun, 7 Apr 2019, Hans Hagen wrote: On 4/6/2019 8:49 PM, Aditya Mahajan wrote: On Sat, 6 Apr 2019, Alan Braslau wrote: On Sat, 6 Apr 2019 13:46:57 -0400 (EDT) Aditya Mahajan wrote: Is there a way to avoid that? I can, of course, set different values of TEXMFCACHE for both distributions

Re: [NTG-context] name of cache used by mkiv and lmtx

2019-04-06 Thread Aditya Mahajan
On Sat, 6 Apr 2019, Alan Braslau wrote: On Sat, 6 Apr 2019 13:46:57 -0400 (EDT) Aditya Mahajan wrote: Is there a way to avoid that? I can, of course, set different values of TEXMFCACHE for both distributions, but does it make sense to to use a different hash (5fe67e...) for the two? Why do

[NTG-context] Undefined symbol lua_gettop

2019-04-06 Thread Aditya Mahajan
Hi, I am experimenting with using lua libraries with lmtx. I tried the following: 1. Download the lcomplex library (from http://webserver2.tecgraf.puc-rio.br/~lhf/ftp/lua/ar/lcomplex-100.tar.gz) 2. Untar and modify the Makefile so that LUA_TOPDIR points to the right location (/usr in my ca

[NTG-context] name of cache used by mkiv and lmtx

2019-04-06 Thread Aditya Mahajan
Hi, I am currently using mkiv and lmtx in parallel and noticed that both use the same texmf-cache subdirectory. Running: mtxrun --script cache --list gives mtx-cache | writable path: /home/adityam/texmf-cache/luatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e mtx-cache | mtx

[NTG-context] Archlinux package for luametatex

2019-04-04 Thread Aditya Mahajan
Hi, I create a archlinux AUR for luametatex: https://aur.archlinux.org/packages/luametatex/ Those using archlinux can now use their favorite AUR helper to install luametatex. It installs the files in /opt/luametatex and has the following features: 1. If texlive is installed, a symlink to '/

Re: [NTG-context] beta

2019-04-04 Thread Aditya Mahajan
On Thu, 4 Apr 2019, Hans Hagen wrote: Hi, I uploaded a new beta (as we're now post current again). The lmtx installation is normally also updated in sync but sometimes can be a bit ahead as I myself use that as default. Is there or will there be any difference between context mkiv and luam

Re: [NTG-context] lmtx doesn't search texmf-local

2019-04-02 Thread Aditya Mahajan
On Wed, 3 Apr 2019, Henri Menke wrote: On 3/04/19 10:19 AM, Taco Hoekwater wrote: My guess: drop the '/opt/context-lmtx/bin' from your PATH. That works, thank you. Then install.sh has to be adjusted because it told me to export PATH=/opt/context-lmtx/tex/texmf-linux-64/bin:/opt/context-

Re: [NTG-context] follow up

2019-04-02 Thread Aditya Mahajan
On Mon, 1 Apr 2019, Hans Hagen wrote: Hi, We have worked furiously all day kicking-out extra code, and are pleased to present a lean-and-mean version of luatex with your favorite ConTeXt. Same good taste but only half the calories and a new name: luametatex and ConTeXt LMTX. No more Mk-whate

Re: [NTG-context] Bug when mathmatrix is used inside mathalign

2019-03-27 Thread Aditya Mahajan
On Wed, 27 Mar 2019, Hans Hagen wrote: On 3/27/2019 4:56 PM, Aditya Mahajan wrote: Hi, It was reported on TeX.SE[1] that there is a bug when math matrix is used inside a math align: \starttext \startformula     \startalign[n=2,align={right,left}]     \NC x     \NC = a ~ long

<    1   2   3   4   5   6   7   8   9   10   >