[NTG-context] BUG: colour spilling in btxrendering

2024-02-01 Thread Alexandre Christe
Dear list, It seems with one of the latest lmtx this old reported issue (https://www.mail-archive.com/ntg-context@ntg.nl/msg84988.html) is back. MWE: \setupinteraction[state=start,color=red,style=] \setupbtx[aps:cite][alternative=entry] \usebtxdefinitions[aps] \startbuffer [bib]

[NTG-context] Re: Inline math spacing

2023-12-04 Thread Alexandre Christe
Hi Hans, Thanks for your answer. It helps a lot. Would there be a way to only add space when inline math is not followed by punctuation, i.e., when inline math is followed by a space? A. Christe Le 4 déc. 2023 à 14:08 +0100, Hans Hagen , a écrit : > > \setupmathematics[textdistance=.25em plus

[NTG-context] Re: Inline math spacing

2023-12-03 Thread Alexandre Christe
% \enablemathautofencing % more global \enablemathautonumbers % more global % \autofences % more local \usemodule[ipsum] \starttext \ipsum \stoptext And I attach the two files to setup the font. A. Christe Le 3 déc. 2023 à 22:44 +0100, Hans Hagen , a écrit : > On 12/3/2023 10:31 PM, Alexandre Christe wr

[NTG-context] Inline math spacing

2023-12-03 Thread Alexandre Christe
Dear list, I’m facing some strange spacing with inline maths. Sometimes the space is ok (like around the first two fractions), but sometimes it is way too little. Do I miss to configure something? Thanks in advance, A. Christe

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

2023-11-16 Thread Alexandre Christe
Hi Paul, Actually in the assets on Github it’s indicating a Typst extensions, not a ConTeXt one... BR. A. Christe Le 11 nov. 2023 à 18:49 +0100, Paul Mazaitis , a écrit : > > Hello, list! > > I'm working on a ConTeXt language extension for the Nova editor by Panic > software

[NTG-context] Re: Combining python and lua

2023-10-26 Thread Alexandre Christe
quot;sin",  angleVal = a  } end \stopluacode \stoptext In particular, it fails as soon as  \startsympy and \stopsympy are part of the template. Should I protect these? A. Christe Le 25 oct. 2023 à 21:56 +0200, Aditya Mahajan , a écrit : > On Wed, 25 Oct 2023, Alexandre Christe w

[NTG-context] Combining python and lua

2023-10-25 Thread Alexandre Christe
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 trigonometric function leading to sin(pi/4) = 1/2, or

[NTG-context] Re: Equivalent of the \cancel command with conTeXt

2023-08-22 Thread Alexandre Christe
Hi Fabrice, I have this from former exchanges % Cancel command for use in equations. \startuniqueMPgraphic{cross out}  picture cross;  cross := image(draw (0,0)--(1,1); draw (0,1)--(1,0););  draw cross xscaled \overlaywidth yscaled \overlayheight withpen pencircle scaled .8pt ;

[NTG-context] Re: Nested itemize

2023-08-22 Thread Alexandre Christe
}{2}$ \stopitem  \stopalextable  \stopitem \stopitemize \samplefile{ward} \stoptext A. Christe Le 22 août 2023 à 07:12 +0200, Alexandre Christe , a écrit : > It’s true that \vtop{…} does the job for a single line of items, but it > doesn’t in the case there’re multiple (\vtop{})

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
2 + \dfrac{1}{3}$ >     \stopitem >     \startitem >       $7(x + \dfrac{5}{14})^2 + \dfrac{199}{28}$ >     \stopitem >     \startitem >       $-\dfrac{1}{2}(x + 2)^2 + \dfrac{9}{2}$ >     \stopitem >   \stopitemize > } > \stopitemize > > \stoptext > &

[NTG-context] Re: Nested itemize

2023-08-21 Thread Alexandre Christe
\item\godown[-\lineheight] > > \startitemize[a,columns,packed][before={\blank[nowhite]},n=4,right=\),stopper=] > \item bla > \item bla > \item bla > \item bla > \item bla > \item bla > \item bla > \item bla > \stopitemize > \stopitemize > >

Re: [NTG-context] installer

2023-05-07 Thread Alexandre Christe via ntg-context
Hi Otared, I encountered the same issue the other day. Could it be that you run mtxrun from the /bin folder instead of /tex/texmf-YOUR_ARCH/bin/ ? Somehow they seem to be different. Best regards, Alex Le 7 mai 2023 à 17:07 +0200, Otared Kavian via ntg-context , a écrit : > Hi Hans, > >

Re: [NTG-context] new uplaod

2023-04-17 Thread Alexandre Christe via ntg-context
Dear list, In case someone else stumbles upon this issue, the following code works. MWE: \autofences \starttext $\left]-\infty; a\right[$ \stoptext Best regards, Alex Le 22 sept. 2022 à 12:59 +0200, Alexandre Christe , a écrit : > Hi Hans, > > Thanks a lot for the example. It wo

Re: [NTG-context] upload

2023-04-14 Thread Alexandre Christe via ntg-context
Sorry, \setupmathematics[ucgreek=normal] does the job. Nothing to do with the last upload. Le 14 avr. 2023 à 17:16 +0200, Alexandre Christe , a écrit : > Dear Hans, > > In the latest upload, I see that uppercase greek letters in the math > environment are displayed in italic. Is

Re: [NTG-context] upload

2023-04-14 Thread Alexandre Christe via ntg-context
Dear Hans, In the latest upload, I see that uppercase greek letters in the math environment are displayed in italic. Is there a way to force them to appear as upright letters instead? Thanks in advance, Alex Le 11 avr. 2023 à 23:08 +0200, Hans Hagen via ntg-context , a écrit : > Hi, > > I

[NTG-context] Text editors

2023-03-26 Thread Alexandre Christe via ntg-context
Dear ConTeXt users, I'm wondering what kind of typesetting system / syntax highlighting / completion you're using. I've been using myself the simple_Context package for SublimeText which I scavenged a while ago before it was made unavailable (I wanted to attach but it's too big for the list).

Re: [NTG-context] Building fomula

2023-03-25 Thread Alexandre Christe via ntg-context
Hi Willi, A dead simple solution would be \starttext \startformula {\frac{47 \times 62}{44 \times 56}} \times {12} \qquad \rm{or} \qquad {{\frac{47 \times 62 \times 12}{44 \timess 56}}=14.2 \rm kilo} \stopformula \stoptext Le sam. 25 mars 2023 à 18:09, Willi Egger via ntg-context <

Re: [NTG-context] bug $\vec{}$

2023-01-20 Thread Alexandre Christe via ntg-context
el > > On Fri, Jan 20, 2023 at 2:45 PM Alexandre Christe via ntg-context > wrote: > > > > I confirm the behavior. > > > > Also possibly linked is that the spacing around $\overrightarrow{k}$ > seems pretty weird, so atm there is no fallback solution. > &g

Re: [NTG-context] bug $\vec{}$

2023-01-20 Thread Alexandre Christe via ntg-context
I confirm the behavior. Also possibly linked is that the spacing around $\overrightarrow{k}$ seems pretty weird, so atm there is no fallback solution. Le ven. 20 janv. 2023 à 14:37, Alan Braslau via ntg-context < ntg-context@ntg.nl> a écrit : > MWE: > > \starttext > > $\vec{k}$ > > \stoptext

Re: [NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Thank you so much Alan, that was exactly what I was looking for. Le ven. 20 janv. 2023 à 01:56, Alan Braslau a écrit : > On Thu, 19 Jan 2023 22:40:13 +0100 > Alexandre Christe via ntg-context wrote: > > > def labelT(expr pos)(text t) = > > ... > > enddef;

[NTG-context] Meta(post)/(fun) macro with label position

2023-01-19 Thread Alexandre Christe via ntg-context
Dear list, Is there a way in a Meta(post)/(fun) macro to specify the label position as an argument? def labelT(expr pos)(text t) = ... enddef; Thanks a lot in advance, Alex ___ If your question is of interest to

Re: [NTG-context] MP figure continuation

2023-01-06 Thread Alexandre Christe via ntg-context
Aye, thanks Mikael and Gavin. Hard 2023 re-start... Le ven. 6 janv. 2023 à 15:58, Gavin a écrit : > Hi Alex, > > > Is there a way to "continue" an MP figure? Like keeping the axes, etc. > and just adding code to the figure? > > Buffers might be what you want. From the MetaFun manual: > > >

[NTG-context] MP figure continuation

2023-01-06 Thread Alexandre Christe via ntg-context
Dear list, Is there a way to "continue" an MP figure? Like keeping the axes, etc. and just adding code to the figure? Maybe I missed something, otherwise I'd find it super useful. Thanks in advance and happy new year, Alex

Re: [NTG-context] Mathematical MetaFun Mania

2022-12-18 Thread Alexandre Christe via ntg-context
Hi Hans, On osx-64 I'm not getting a single connector printed when compiling anchor-002.tex. I've attached the log in case. Am I doing something wrong on my end? Le ven. 16 déc. 2022 à 17:56, Hans Hagen via ntg-context a écrit : > On 12/15/2022 10:54 PM, Otared Kavian via ntg-context wrote: >

[NTG-context] Margin figure in itemize

2022-11-21 Thread Alexandre Christe via ntg-context
Dear list, With the following MWE I end up with big gaps between margin figures in an itemized list. Is there a way to remove that space in the text and place the figures in the margin one below the other the best one can? \setuppagenumbering [alternative=doublesided, location=margin]

[NTG-context] Defineenumeration head offset

2022-11-07 Thread Alexandre Christe via ntg-context
Dear list, Is there a trick to not apply the leftoffset to the header of a defineenumeration? MWE: \definetextbackground [textFrameEx] [ frame=off, framecolor=darkgreen, rulethickness=2ex, background=, location=paragraph, leftoffset=2.25ex, rightoffset=2.25ex,

Re: [NTG-context] Math alignment problem

2022-09-22 Thread Alexandre Christe via ntg-context
Hi Jan-Erik, One way I came across searching the mailing list is the following: \starttext \startitemize [a,columns,joinedup] [n=3,grid=line] \item $ 56 + 2 \cdot 3 $ \item $ 5-(7) $ \item $ \frac{21}{7} $ \stopitemize \stoptext Could be that there is a *better* way. Le jeu. 22 sept. 2022 à

Re: [NTG-context] new uplaod

2022-09-22 Thread Alexandre Christe via ntg-context
... By the way, if I define in the preamble \autofences, is there a command to disable it locally? Would be very helpful to deal with the above situations. Best regards, Alex Le dim. 11 sept. 2022 à 20:42, Hans Hagen via ntg-context < ntg-context@ntg.nl> a écrit : > On 9/10/2022 9:45 AM, Alexandre Ch

Re: [NTG-context] new uplaod

2022-09-10 Thread Alexandre Christe via ntg-context
Hi Hans, Will \mvert and \mid also be included in the \autofence logic? It would be quite useful. Le jeu. 25 août 2022 à 18:18, Hans Hagen via ntg-context a écrit : > Hi, > > I uploaded a new lmtx. Again some updated math of which details will be > revealed later. Apart from some details we

Re: [NTG-context] Issue with setupMPvariables

2022-09-03 Thread Alexandre Christe via ntg-context
Thanks Hans! For sake of completeness a MWE is attached, in case someone needs it one day. Le sam. 3 sept. 2022 à 20:10, Hans Hagen via ntg-context a écrit : > On 9/3/2022 6:48 PM, Alexandre Christe via ntg-context wrote: > > Dear all, > > > > I'm trying to reuse som

[NTG-context] Issue with setupMPvariables

2022-09-03 Thread Alexandre Christe via ntg-context
Dear all, I'm trying to reuse some MP code for several custom enumeration. However I can't make the overall setup work, needless to say different border colors for each enumeration though setupMPvariables. What am I missing? MWE: see attachment testColorParagraphs.tex Description: TeX

[NTG-context] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
Hmmm it seems the trick lies in adding \setupfloats [freeregion=no] ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] Question about text backgrounds

2022-09-03 Thread Alexandre Christe via ntg-context
Hi, I just came across nofmultipars (which is great for splitting frames across pages, unlike a simple framed). Is there an equivalent for floats? The MWE would contain \startuseMPgraphic{mp:textFrame} begingroup; path p ; for i = 1 upto nofmultipars : p := (ulcorner multipars[i]) -- (llcorner

[NTG-context] Nested itemize

2022-09-02 Thread Alexandre Christe via ntg-context
Dear all, I'm struggling to setup a nested itemize with no blank line and several columns. What I mean is something like 1. a) bla c) bla b) bla d) bla The following MWE is my starting point \starttext \startitemize[n] \item \blank[-line] \startitemize[a,horizontal,two] [margin=2cm]

[NTG-context] New math additional requirement for font definitions

2022-07-13 Thread Alexandre Christe via ntg-context
Dear list, I've come across that the new math (which by the way looks really nice) requires some additional properties to be set in the font definition. If I take the example file provided by Mikael and add the following lines \usetypescriptfile[alegreya] \setupbodyfont[alegreya,11pt] It fails

Re: [NTG-context] Custom type-imp file creating empty lines

2022-05-11 Thread Alexandre Christe via ntg-context
Hi Pablo, Thank you so much. That was indeed the issue! Le mer. 11 mai 2022 à 19:14, Pablo Rodriguez via ntg-context < ntg-context@ntg.nl> a écrit : > On 5/11/22 18:42, Alexandre Christe via ntg-context wrote: > > Dear list, > > > > I've played a bit with a custom typ

[NTG-context] Custom type-imp file creating empty lines

2022-05-11 Thread Alexandre Christe via ntg-context
Dear list, I've played a bit with a custom type-imp file (partly inspired from the wiki https://wiki.contextgarden.net/Alegreya_Typescript). However, the file I ended up with seems to create some empty lines at the beginning of the document (if I use the default or another font this vanishes, so

Re: [NTG-context] upload

2022-05-09 Thread Alexandre Christe via ntg-context
Sorry for spamming again, but I've underlooked the message from śrīrāma who mentioned a workaround: use only lowercase letters in the . Then it works. I think this bib issue could be downgraded to a low priority. Le lun. 9 mai 2022 à 18:17, Hans Hagen via ntg-context a écrit : > On 5/9/2022

Re: [NTG-context] upload

2022-05-09 Thread Alexandre Christe via ntg-context
Sadly I have to report the bibliography is still broken. Could someone else confirm? It's an unfortunate timing since I need to hand in some report really soon. Le lun. 9 mai 2022 à 17:56, mf via ntg-context a écrit : > I'm downloading it and I see a lot of mkii files and even some Ruby files.

Re: [NTG-context] new upload

2022-04-21 Thread Alexandre Christe via ntg-context
Hi Hans, While the typesetting issue in Metafun disappeared, another popped up in the bibliography. For an entry with \usebtxdefinitions[apa], it is printing ": [author: Robert L. Boylestad] [date-added: 2022-04-15 14:43:59 +0200] [date-modified: 2022-04-15 14:45:15 +0200] [edition: 13e]

[NTG-context] Linespacing modified across document

2022-01-22 Thread Alexandre Christe via ntg-context
Dear list, I've noticed that in my document the linespacing (verified with \the\baselineskip) is not consistent across the whole document. In the first section, it's fine (no maths). Later on, it gets increased by some amount, which tends to depend on what kind of mathematics are in between, so

Re: [NTG-context] new upload

2022-01-15 Thread Alexandre Christe via ntg-context
Just came across a weird behavior with the latest upload. The following doesn't print as it should \startformula 4^{2x} - 4^x - 25 = 0 \stopformula I don't think it's normal (I see the spacing to make room for anything that comes after the first character in the exposant, but it is not printed).

[NTG-context] Status of Asymptote

2021-12-06 Thread Alexandre Christe via ntg-context
Dear all, I'd like to know what is the status of Asymptote in Context. To my knowledge, metapost/metafun only support 2D (except with the additional libraries from Roegel, which would have to be cleaned up a bit). Otherwise, what shall be used for 3D drawings in Context? TikZ? Something else?

[NTG-context] Sum and mathalignment

2021-11-30 Thread Alexandre Christe via ntg-context
Dear list, [image: image.png] What I've done is to play with mathalignment and \framed. Here is a MWE: \starttext \defineoverlay[midrule][{\blackrule[height=.02cm,width=5.5cm]}] \framed[frame=off,background=midrule,boffset=.65cm]{\startformula

[NTG-context] Neste itemize in table (or vice-versa?)

2021-11-20 Thread Alexandre Christe via ntg-context
Dear all, I'm trying something out in LMTX, which is to combine itemize with a table. Application could be to put a question and the answer in the next column. A minimal example would be: \starttext \startitemize [a] [right=),stopper=] \bTABLE[frame=off] \setupTABLE[column][1]

[NTG-context] Math font tips and tricks

2021-11-06 Thread Alexandre Christe via ntg-context
Dear all, I'd like to know how best to work with font features regarding adaptations of math fonts. For example, let's assume I'd like to use Minion Pro also for math typesetting. I've referred myself to this page of the Wiki https://wiki.contextgarden.net/Command/definefontfallback. I have

[NTG-context] undefined command in current latest

2021-10-11 Thread Alexandre Christe via ntg-context
Update: after updating Context again today the issue is gone. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl /

[NTG-context] undefined command in current latest

2021-10-11 Thread Alexandre Christe via ntg-context
Indeed I can report similar issues with \getmarking after updating to the latest version of Context. Did something change regarding its definition / use recently? context -version mtx-context | ConTeXt Process Management 1.04 mtx-context | mtx-context | main context file: