Re: [NTG-context] Off topic: Does a 'free for commercial use' flared-sans font exist in the world?
Hi, On Fri, Jun 16, 2023 at 6:36 PM Gerben Wierda via ntg-context wrote: > > I know this is off topic, but I suspect this community is actually one of the > best places to find an answer. > > I really like Optima, and what I really like about it is the 'flared style'. > > But I would like to move to a flared-sans font that gives me more licensing > freedom. I haven't been able to find one after extensive searching. The only > one who were reasonably priced (not free) were the URW Classico ones in Adobe > Creative Cloud, but those can only be used in Adobe programs like InDesign > (and not TeX). > > I found some flared-sans fonts, but not one with at least regular, italic, > bold, and bold-italic. > > Is there really not a single flared-sans font that is really free (so also > for commercial use) to use out there? > Maybe you like libertinus sans (linux biolinum)? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Fallbacks in text font interfere with math accents
Hi, On Sat, Jun 10, 2023 at 10:06 AM Henning Hraban Ramm via ntg-context wrote: > > Hi, this is probably for Hans & Mikael, but maybe someone else has a hint: > > If I set a fallback for my body font to catch all missing characters, > some math accents get replaced by small bold uppercase characters (I > found hat by K and ring by T so far). > > I tried [fallbacks=] for math to no avail. > > My example uses Cambria, but it’s the same with other fonts. > > (BTW, in \bar{b} with Libertinus, the bar looks too high.) I leave the font fallbacks to Hans or somebody else, but for the \bar one can argue that the "305 glyph in Libertinus Math sits too high. This is adjusted for in the goodie file in the next upload. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Moving up a Figure
Hi, 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 method? Not that I know of, but maybe {right,halfline} will do? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TiKz with LMTX
Hi Floris, On Sun, Jun 4, 2023 at 11:59 PM Floris van Manen via ntg-context wrote: > > > > On 04/06/2023 18:18, Hans Hagen via ntg-context wrote: > > can you try with > > > > -- "source/generic/**", > > > > in > > > >mtx-install-imp-tikz.lua > > > > (comment line 25) > > > does not make a difference here. For whatever it is worth, I just tried to install tikz with mtxrun --script install-modules --install tikz and then your example in your first mail did compile here (and gave a cross, and that looks right from the source). /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Moving up a Figure
Hi, On Sat, Jun 3, 2023 at 6:36 PM Jeroen via ntg-context wrote: > > With the following example, the figure is placed a little lower than the > first text line. The top of the figure is at about the middle of the first > line. Is there a way to move-up the figure slightly to align it with the top > of the text line? > > \useMPlibrary[dum] > > \starttext > > \startplacefigure > [number=no, >location=right] > \externalfigure[dummy] > \stopplacefigure > > \samplefile{tufte} > > \stoptext Maybe location={right,high} is what you look for? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Mailing list problems
Hi! See https://tex.stackexchange.com/q/687020/52406. The OP there cannot subscribe. Looking at the web archive, it indeed seems to be missing several emails: https://www.mail-archive.com/ntg-context@ntg.nl/ I do not know who handles this, but... Ping! /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How to really force figure to appear "here"?
Hi, On Sun, May 21, 2023 at 3:48 AM Joel via ntg-context wrote: > > I have been using \placefigure[here, force] to place some graphics, but its > instead showing other text from the next section, then the picture. In > testing, this is causing readers to be confused, as they expect to see a > picture, but its somehow appearing two pages later. I don't care it it > requires a huge blank area on the page before it, how can I make it so any > text after \placefigure[here, force] doesn't appear before the figure? > > --Joel You submit no example, but with the one I tried, \placefigure[force] seems to place the figure at the place where it is called. Doesn't that work for you? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] This is rmally done by loading special math fonts into the math family slots.
On Tue, May 9, 2023 at 4:20 PM Carlos via ntg-context wrote: > > > > Hello list > > the whole error message I get is > > tex error > tex error on line 90 in file ./atestinminion-context.mkiv: > Math error: parameter 'operatorsize' with id 8 in style 0 is not set > > \m_operator_text > \endgroup \Ustopmathmode > \m_operator_text > \stopforceddisplaymath > \egroup \ifcase \c_strc_formulas_frame_mode \else > \strc_math_number_check_offsets \fi \ifcase \c_strc_formulas_frame_mode > \strc_math_number_check \or \strc_math_number_check_outside \else > \strc_math_number_check_inside \fi \str > \m_operator_text > \endgroup \strc_formulas_endstrut \stopinnermath > \afterdisplayspace \egroup > \m_operator_text > \strc_formulas_place_number \strc_formulas_flush_number \dostarttagged > \t!formulacontent \empty \dotagregisterformula \c_strc_formulas_n \csname > \e!stop \formulaparameter \c!alternative \v!formula \endcsname > \dostoptagged \dostoptagged \nonoindentati > > \stopformula > > \startformula > \int_{\infty} > >> \stopformula > > Sorry, but I can't typeset math unless various parameters have been set. This > is > normally done by loading special math fonts into the math family slots. Your > font > set is lacking at least the parameter mentioned earlier. > > What parameter is this referring to here? Looks like you might not have the Minion math font. Did you buy it? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] new units
Hi Michael, On Sun, May 7, 2023 at 4:43 AM Michael Urban via ntg-context wrote: > > If you are going to introduce new units, you should at least include the > Potrzebie, invented by teenager Donald Knuth and published in the humor > magazine Mad Magazine #33. The system is based on the thickness of Mad > Magazine #26, equal to 2.2633484517438173216473 mm. > See the Wikipedia entry for 'potrzebie' for more information, or search for > suitable images. > > Honestly, I don't know how Knuth resisted putting this in plain TeX. It is already there for a while, as dk. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] define math function with \, inside
Hi, On Mon, May 1, 2023 at 5:27 PM Stefan Haller via ntg-context wrote: > > Hi all, > > I wanted to define a custom math function (similar to log etc.) for > argmax. However, I wanted to have a small space between "arg" and "max" > and limits should work properly. I am using a up-to-date LMTX installation. > > Without the first constraint it's easy: > > > % old way: > > \definemathcommand[argmax][limop]{\mfunction[argmax]} > > % new way, discoverd by looking into math-def.mkxl > > \definemathfunction[argmax] > > However, both methods do not work if I want to have "arg\,max" printed > (error about \endcsname missing). With mkiv the first method works and > can also be found in the wiki[1]. > > What's the current way to define such a custom math function? > > Thanks! > Stefan > > [1]: https://wiki.contextgarden.net/Math/functions This works here (but maybe there should be a simpler way): \definemathfunction [argmax] [mathlimits=auto] \setupmathlabeltext [en] [argmax=arg\sixperemspace max] \startTEXpage[offset=1ts] \im{ \argmax_{a\in A} f(a) } \blank[big] \dm{ \argmax_{a\in A} f(a) } \stopTEXpage /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Reminder: regular online meet-up
Hi all, On Wed, Apr 12, 2023 at 1:40 PM Hans Hagen via ntg-context wrote: > > On 4/12/2023 1:35 PM, Henning Hraban Ramm via ntg-context wrote: > > Reminder: This is in less than 2 hours. > > > > I’m sick and can’t participate this time. > > > > Hraban > we can shift it one week as I have to go mid afternoon > > Hans Does this mean that there is a meeting today? (In about 43 minutes from now.) /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] upload
Hi, On Fri, Apr 14, 2023 at 5:40 PM Alexandre Christe via ntg-context wrote: > > Sorry, \setupmathematics[ucgreek=normal] does the job. Nothing to do with the > last upload. Yes, but I think the default has been normal (upright), and when I test with a minimal document here, it is still upright. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Feynman Diagrams
Hi, On Wed, Apr 12, 2023 at 1:41 PM Hans Hagen via ntg-context wrote: > > On 4/12/2023 5:45 AM, Gavin via ntg-context wrote: > > Hi List, > > > > I’m looking for a way to include Feynman diagrams in my ConTeXt documents. > > I’ve used feynMF/feynMP and TikZ-feynman with LaTeX in the past, but it > > doesn’t look like either works directly with ConTeXt. My diagrams are > > pretty basic (example below). Does anyone have a ConTeXt solution they > > like? If not, I’ll add it to my list of summer MetaPost projects. > Maybe Alan's node module can do the work, > > Hans > We were looking a bit at other feynman packages. It would be nice to have a not too complicated syntax, but maybe just have some of the "shapes" of paths available. So, which ones are actually needed? /Mikael (after discussing with Hans) ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How to use noto sans math font?
Hi all, On Thu, Apr 6, 2023 at 9:44 AM Mikael Sundqvist wrote: > > I will have to check, but a bit later. Meeting with my student soon. > > /Mikael (who did not run the output from ChatGPT. Looked to me as if it was > the wrong way to give flags to shutdown anyways...) Sorry for that, I thought I was answering Hans, and tried to answer two mails in one. I don't know how the font is supposed to be used. I looked into it, and found that these alphabets (I only give the first entry) are indeed sans serif. 0041: an uppercase sans serif A 0061 a lowercase sans serif a 0391 an uppercase sans serif Alpha 03B1 a lowercase sans serif alpha For the rest of the alphabets, it seems to me (but I might have missed something) that the font follows the usual pattern, with for example the lowercase italic alphabet (starting with 1D44E for lowercase italic a), with serifs. It has some arabic glyphs. I have not compared to see if they are the same as the ones from Xits. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How to use noto sans math font?
I will have to check, but a bit later. Meeting with my student soon. /Mikael (who did not run the output from ChatGPT. Looked to me as if it was the wrong way to give flags to shutdown anyways...) Den tors 6 apr. 2023 09:07Hans Hagen via ntg-context skrev: > On 4/6/2023 6:59 AM, Mikael Sundqvist via ntg-context wrote: > > Hi, > > > > On Thu, Apr 6, 2023 at 2:56 AM Li Yanrui (李延瑞) via ntg-context > > wrote: > >> > >> > >> > >> Mikael Sundqvist via ntg-context 于2023年4月5日周三 > 18:26写道: > >>> > >>> Hi, > >>> > >>> No intend to be complete or so (not by computer either, so could not > look into it), it was just for a test a while back. But it could serve as a > start. > >>> > >>> /Mikael > >> > >> > >> Hi Mikael, > >> > >> Thanks for your reply. I used the typescript you provided but still get > the error as below > >> > >>Math error: parameter 'supshiftup' with id 51 in style 2 is not set > > > > OK. I see the link to google fonts above. I am not sure they have the > > latest version. There were lots of fixes in this font recently (in > > particular I think a math table was added, so that the font really is > > identified as a math font, but I might be wrong about that). The one I > > used was downloaded from > > > > https://github.com/notofonts/math/releases/tag/NotoSansMath-v2.539 > > > > and that still seems to be the latest. I now compiled my file again, > > and still no error here. > Wondering. I didn't check but why start with a sans math and not a serif > ... are the sans alphabets replaced by a serif? > > Hans > > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How to use noto sans math font?
Hi, On Thu, Apr 6, 2023 at 2:56 AM Li Yanrui (李延瑞) via ntg-context wrote: > > > > Mikael Sundqvist via ntg-context 于2023年4月5日周三 18:26写道: >> >> Hi, >> >> No intend to be complete or so (not by computer either, so could not look >> into it), it was just for a test a while back. But it could serve as a start. >> >> /Mikael > > > Hi Mikael, > > Thanks for your reply. I used the typescript you provided but still get the > error as below > > Math error: parameter 'supshiftup' with id 51 in style 2 is not set OK. I see the link to google fonts above. I am not sure they have the latest version. There were lots of fixes in this font recently (in particular I think a math table was added, so that the font really is identified as a math font, but I might be wrong about that). The one I used was downloaded from https://github.com/notofonts/math/releases/tag/NotoSansMath-v2.539 and that still seems to be the latest. I now compiled my file again, and still no error here. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How to use noto sans math font?
Hi, No intend to be complete or so (not by computer either, so could not look into it), it was just for a test a while back. But it could serve as a start. /Mikael Den ons 5 apr. 2023 12:07Li Yanrui (李延瑞) via ntg-context skrev: > Hi, > > I try to use the Noto Sans Math fnt which can be downloaded from > https://fonts.google.com/noto/specimen/Noto+Sans+Math > > But I use it like the following > > \definefontfamily[myfonts][rm][latin modern roman] > \definefontfamily[myfonts][mm][noto sans math] > \setupbodyfont[myfonts,rm,12pt] > \starttext > Test Noto Sasn Math Fonts > \startformula > a^2 \quad \sqrt{a} > \stopformula > \stoptext > > I get the errors `Math error: parameter 'supshiftup' with id 51 in style 0 > is not set'. > > Is there some method to solve it? > > > -- > Best regards, > > Li Yanrui > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > type-imp-noto.mkiv Description: Binary data 230320-2.mkxl Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
Hi, On Sun, Apr 2, 2023 at 11:29 AM luigi scarso via ntg-context wrote: > > > > On Sun, 2 Apr 2023 at 10:35, luigi scarso wrote: >> >> >> >> On Sat, 1 Apr 2023 at 10:28, Hans Hagen via ntg-context >> wrote: >>> >>> Hi, >>> >> >> As a side note (it's 2 april now) >> the concrete font of the pdf is not rendered well both on web and t on >> win/linux desktop . >> No surprise, I did some experiments with mflua years ago and my results >> had the same problem. > > > getting old... the pdf doesn't look so bad as I was used to remember > https://meeting.contextgarden.net/2017/talks/2017-09-14-luigi-mflua/slides.pdf > > So yes , it's the instance of the variable font. Oh, that looks like a very nice talk, I wish I had been there. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] update / punctuation / math
Hi, On Sun, Apr 2, 2023 at 10:35 AM luigi scarso via ntg-context wrote: > > > > On Sat, 1 Apr 2023 at 10:28, Hans Hagen via ntg-context > wrote: >> >> Hi, >> > > As a side note (it's 2 april now) > the concrete font of the pdf is not rendered well both on web and t on > win/linux desktop . > No surprise, I did some experiments with mflua years ago and my results > had the same problem. > Is it a known issue? If you talk about the math font, I do not see what you mean. Daniel has worked a lot on his fonts, and they now work well. If you talk about the text font, Hans changed the concrete typescript so that it uses the variable "mono" Latin modern instead of the concrete text font that comes from Computer modern unicode. But the font is also boldened slightly, and perhaps that is what causes your problem (It did look weird on my phone for half a second or so before it "got normal"). In okular I see no problems. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \definemathfence broken in latest
Hi, I think command=yes was changed into define=yes. /Mikael Den sön 26 mars 2023 04:31Gavin via ntg-context skrev: > Hi List, > > The command \definemathfence seems to not be working as it did in other > recent LMTX. MWE: > > \definemathfence[abs][bar][command=yes] > > \starttext > \startformula > \abs{v} = \frac{1.32}{1.41} = 0.935 > \stopformula > \stoptext > > This causes an error, complaining that \abs is undefined. However, workes > fine with > > ConTeXt ver: 2023.02.07 19:06 LMTX fmt: 2023.3.14 int: english/english > > Should I be doing this differently? > > Gavin > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Printing problem
Hi! On Fri, Mar 17, 2023 at 7:15 PM Pablo Rodriguez via ntg-context wrote: > > On 3/16/23 12:49, Mikael Sundqvist via ntg-context wrote: > > [...] > > So, a request: If you have an easy access to a printer, can you print > > this page and report back if all of it comes out, or what is > > happening? > > Hi Mikael, > > a friend printed the file on a Canon 4235i (from Windows 10 with Acrobat > Reader DC), there were no printing problems and the result is > high-quality output (as I would expect from many ConTeXt-generated > documents). > > Just in case it might help, > > Pablo Thanks to all who tested. In the end I was not able to reproduce the problem when printing from another computer that runs linux. I can only reproduce when printing from the built-in pdf viewer in Chrome OS. It only seems to happen when extensibles are "converted" into type3 snippets (so that one can copy a big parentheses that has pieces and get the correct unicode character, for example). This can be disabled with \disabledirectives[math.extensibles] and I can use that when printing from this computer. I should probably report somehow to Google, but that seems less clear how to do, if possible. Thanks again! /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
[NTG-context] Printing problem
Hi all, I have had some printing problems lately, and it is not perfectly clear to me (or to Hans, we have discussed this a bit) whether it is the printer that has a lack of memory or if the pdf files are somehow corrupted. It might have to do with type3 fonts. I attach a pdf file that does not print on our printer at work. Or well, it prints almost all of the page, but stops at the word "negativa" (or was it "egenvärden", I do not have the printout here right now). Then the printer also prints an error report about some "offending command". So, a request: If you have an easy access to a printer, can you print this page and report back if all of it comes out, or what is happening? Thanks /Mikael dugga.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Table
Hi Uschi, On Mon, Mar 13, 2023 at 1:03 PM Ursula Hermann via ntg-context < ntg-context@ntg.nl> wrote: > I’d like to do a Table lik this one > > [image: enter image description here] > > I have no example. How can I do that? > > > > Many thanks > > Uschi > There are probably better ways, but this seems to give something like what you look for: \starttext \setupTABLE[c][align=middle] \setupTABLE[c][odd][width=2em] \setupTABLE[c][even][width=1mm] \setupTABLE[r][2][height=1mm] \setupTABLE[c][1][leftframe=off] \setupTABLE[c][5][rightframe=off] \bTABLE \bTR \bTD 1 \eTD \bTD \eTD \bTD 2 \eTD \bTD \eTD \bTD 3 \eTD \eTR \bTR \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \bTD \eTD \eTR \bTR \bTD 4 \eTD \bTD \eTD \bTD 5 \eTD \bTD \eTD \bTD 6 \eTD \eTR \bTR \bTD 7 \eTD \bTD \eTD \bTD 8 \eTD \bTD \eTD \bTD 9 \eTD \eTR \eTABLE \stoptext /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Math Formula Alignment
Hi, On Sat, Feb 18, 2023 at 3:01 PM Lutz Haseloff via ntg-context wrote: > > Hi Hans, hi all, > > the alignment of formulas seems broken: > > \setuppapersize[A5] > \starttext > \setuplayout[textwidth=8cm] > \setupformulas[align=left] > \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=middle] > \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=right] > \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=left] > \placeformula \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=middle] > \placeformula \startformula c^2 = a^2 + b^2 \stopformula > \setupformulas[align=right] > \placeformula \startformula c^2 = a^2 + b^2 \stopformula > \stoptext > > All formulas are centered with ConTeXt ver: 2023.02.14 17:44 LMTX > > Greetings Lutz Indeed, but align=flushleft and align=flushright seems to work. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Makeup and page numbering increment
Hi, and welcome back! On Wed, Feb 15, 2023 at 11:42 AM Alex Leray via ntg-context wrote: > > Dear Context users, > > I'm new to this mailing-list. I've decided to use Context for two > separate publications. My previous experience with Context was almost 10 > years ago and it seems like the resources on Context have greatly > expanded. So thank you all! > > There is a little thing that I can't figure out though... In one of my > document I have makeup pages. But inserting them result in wrong page > numbering of subsequent pages. It appears that makeups do not increment > page numbers. > > Is this a feature? How could re-establish the right page number for the > rest of the document? > > Thank you in advance, > > Alex Can you show a small example of this behavior? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Lucida-1.901 (2023-01-21) available
On Wed, Jan 25, 2023 at 11:02 AM Otared Kavian via ntg-context wrote: > > Hi, > > Thanks Hraban for the information and the link to the article by Hans and > Mikael about the math fonts in Lucida. > > I very much appreciated that article: one sees how the handling of almost > impercebtile details in ConTeXt make us to adhere to and love LuaMetaTeX… So > a great thank you to Hans and Mikael for all this work! > > Regarding the details of vertical alignment in math, I wonder whether the > column « : » in front of the equal sign « = », in the combination « := » > (used to define for instance a new variable) should be alos centered around > the math axis, as explained in the article. For instance in the following > example > > \setupbodyfont[lucidaot,12pt] > \starttext > \startformula > f(x) := -(u|x) := - \langle u, x \rangle > \stopformula > \stopformula > \startformula > f : A \longrightarrow B > \stopformula > \stoptext > > it seems to me that the lower dot (or square…) in the semicolumn of the first > formula (in front of the equal sign) is lower than in the second formula. > > Best regards: Otared Thank you for the kind words, Otared, Regarding the colons (and other symbols with "dots"), I would say it is still not optimal in Lucida (and difficult to make it "consistent", there are too many symbols that are at the moment different). But in your example you can use \colonequals and \colon if you prefer. They are centered around the math axis. Best, Mikael \setupbodyfont[lucidaot,12pt] \starttext \startformula f(x) := -(u|x) \colonequals - \langle u, x \rangle \stopformula \startformula f : A \longrightarrow B \breakhere f \colon A \longrightarrow B \stopformula \startformula \mathaxisbelow := \colonequals : \colon \stopformula \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Change in \vec behavior
On Sun, Jan 22, 2023 at 9:21 AM Jean-Philippe Rey via ntg-context wrote: > > Hello, > > Does anyone have some insight on this issue? > > Thanks, > > > Le 18 déc. 2022 à 19:37, Jean-Philippe Rey via ntg-context > a écrit : > > Hello, > > As I usually do at the end of each year, I upgraded my ConTeXt installation. > I noticed a change in \vec behavior which doesn't extend the arrow anymore. > Here is my example: > > \starttext > Engine: \texenginename\ \texengineversion > > \ConTeXt: \contextversionnumber > > \type{$\vec{AB}$} : $\vec{AB}$ > \stoptext > > The result with the latest ConTeXt version: > > > > and with the version from a year ago: > > > > I am aware that I could use \overrightarrow, but I prefer the shape and > position of the \vec arrow, especially with single letters. > > > What is the rationale for the change in \vec? Is there a way to get the > previous behavior back? > > Thanks, There was a similar thread the other day. \definemathtopaccent[top:stretch][vec]["20D7] seems to work as a temporary solution. Does it give what you expect? I think there will be an update in the next few days. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] bug $\vec{}$
I think there is a change going on, try with \definemathtopaccent[top:stretch][vec]["20D7] for the moment. Does it look OK? /Mikael 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. > > > > Le ven. 20 janv. 2023 à 14:37, Alan Braslau via ntg-context > a écrit : >> >> MWE: >> >> \starttext >> >> $\vec{k}$ >> >> \stoptext >> >> places the arrow *before* the symbol "k", latest download. >> >> Alan >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> https://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : https://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : https://contextgarden.net >> ___ > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] MP figure continuation
On Fri, Jan 6, 2023 at 3:43 PM Alexandre Christe via ntg-context wrote: > > 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 Hi Alex, Maybe there are other ways, but one can use \includeMPgraphic. One simple example given below. /Mikael \starttext \startuseMPgraphic{vanderwaerdenbas} u:=3cm ; def vdwbas(expr x) = abs(x-round x) enddef ; def vdw(expr n,x) = if n = 0: vdwbas(x) else: vdwbas(x*pow(4,n))/pow(4,n) fi enddef ; path xaxis, yaxis ; xaxis = ((-1.1,0)--(1.1,0)) scaled u ; yaxis = ((0,-0.1)--(0,0.6)) scaled u ; drawarrow xaxis withpen pencircle scaled 0.25 ; drawarrow yaxis withpen pencircle scaled 0.25 ; \stopuseMPgraphic \startuseMPgraphic{vanderwaerden0} \includeMPgraphic{vanderwaerdenbas} draw function(1,"x","vdw(0,x)",epsed(-1),epsed(1),1/1000) scaled u ; \stopuseMPgraphic \startuseMPgraphic{vanderwaerden1} \includeMPgraphic{vanderwaerdenbas} draw function(1,"x","vdw(1,x)",epsed(-1),epsed(1),1/1000) scaled u ; \stopuseMPgraphic \startuseMPgraphic{vanderwaerden2} \includeMPgraphic{vanderwaerdenbas} draw function(1,"x","vdw(2,x)",epsed(-1),epsed(1),1/1000) scaled u ; \stopuseMPgraphic \startuseMPgraphic{vanderwaerden3} \includeMPgraphic{vanderwaerdenbas} draw function(1,"x","vdw(3,x)",epsed(-1),epsed(1),1/1000) scaled u ; \stopuseMPgraphic \startuseMPgraphic{vanderwaerden01} \includeMPgraphic{vanderwaerdenbas} draw function(1,"x","vdw(1,x)+vdw(0,x)",epsed(-1),epsed(1),1/1000) scaled u ; \stopuseMPgraphic \startuseMPgraphic{vanderwaerden012} \includeMPgraphic{vanderwaerdenbas} draw function(1,"x","vdw(2,x)+vdw(1,x)+vdw(0,x)",epsed(-1),epsed(1),1/1000) scaled u ; \stopuseMPgraphic \startuseMPgraphic{vanderwaerden0123} \includeMPgraphic{vanderwaerdenbas} draw function(1,"x","vdw(3,x)+vdw(2,x)+vdw(1,x)+vdw(0,x)",epsed(-1),epsed(1),1/1000) scaled u ; \stopuseMPgraphic \startplacefigure[reference=fig:vdw] \startcombination[nx=2,ny=4] {\useMPgraphic{vanderwaerden0}} {(a)} {\useMPgraphic{vanderwaerden0}} {(b)} {\useMPgraphic{vanderwaerden1}} {(c)} {\useMPgraphic{vanderwaerden01}} {(d)} {\useMPgraphic{vanderwaerden2}} {(e)} {\useMPgraphic{vanderwaerden012}} {(f)} {\useMPgraphic{vanderwaerden3}} {(g)} {\useMPgraphic{vanderwaerden0123}}{(h)} \stopcombination \stopplacefigure \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Math bug (maybe) - prime
On Wed, Dec 28, 2022 at 5:58 AM Alan Braslau via ntg-context wrote: > > On Wed, 28 Dec 2022 00:27:39 +0100 > Hans Hagen via ntg-context wrote: > > > What you can do is: > > > > $\primed{a}^2$ > > > > which basically makes the prime an operation .. a small price to pay > > for more robust handling of primes (also across fonts) > > I anticipated that (unicode) prime is a pain to handle, given that > different fonts present it differently. > > $\primed{a}...$ is a very readable and reasonable solution (unlike > \mathord{}, which seems to be a messy fix). I will learn and use that. > > Thank you! > > Alan > > P.S. inverting the order of the "exponents", if prime is some sort of > exponent, was a surprising result. Alan, Note that the 2 sits higher in \primed{a}^2 than it does in (a')^2. For readability, I really prefer the version with parentheses. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Sans Math fonts, for example Computer Modern Bright
Hi, Not by the computer, but you can try \setupbodyfont[kpfonts-sans,ss] I do not think we have tested it so much, so don't hesitate to come with suggestions on how to improve. Best, Mikael Den ons 21 dec. 2022 15:38Oliver Sieber via ntg-context skrev: > Hi there > > I am particularly looking for a sans serif font for math and text. I am > asking, since I spent a lot of time on this subject. I used Fira Math, but > it is extremely buggy and in my opinion to bold and the different font > weights are definitely in beta status. > > Is it possible to use the Computer Modern Bright font from LaTex? > > Best regards > > Oli > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Seems to be a bug with \definelayout
On Sat, Dec 10, 2022 at 9:17 PM peter.hopcroft--- via ntg-context wrote: > > Yes Pablo, that does fix it. I'm sorry, I misunderstood your first reply. > Peter There was a request (by you?) some days ago on stackexchange about altering layout on say "six pages from here" (One can now do \definelayout[+6][height=16cm]). Maybe something got changed regarding the reset when one does \definelayout[n] to alter the nth page? I will double check with Hans. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] \hpos in math - Half solved
Hi, On Thu, Dec 8, 2022 at 1:07 AM Gavin via ntg-context wrote: > > Hi Hans and Mikael, > > This is amazing! Mikael's example works for me. I will start using these > tools in my project, and I’ll tell you how it goes. Very good that it works and that it gets tested! > It might be a couple weeks, because the physics is also quite challenging. Haha, I can imagine that the spinors are even more challenging. Good luck! /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] TEXpage cropping math
Hi, One usually need an offset. Try try \startTEXpage[offset=1sp] /Mikael On Mon, Dec 5, 2022 at 1:39 PM Gavin via ntg-context wrote: > > Hi List > > I’m having trouble with \startTEXpage cropping off tops and bottoms of > equations. For example. > > \startTEXpage > $E_1$ > \stopTEXpage > > Produces: > > Any suggestions? > > Gavin___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Bug in math alignment
Hi, On Wed, Nov 2, 2022 at 9:19 PM Otared Kavian via ntg-context wrote: > > Dear Jeong, > > Thanks for testing my example, and pointing to the solution using \dm (which > I didn’t know…). > I think the correct behaviour of math alignments should avoid using > additional commands such as \dm. > > We’ll see what Hans and Mikael say. > > Best regards: OK > > On 2 Nov 2022, at 12:53, Jeong Dal via ntg-context wrote: > > Dear Otared, > > > I think there is an issue with the size of math fonts in \frac when used in > math alignments, as it is is shown in the following example. > > > I confirm what you said. > > However, if I use \dm{} instead of \displaystyle as following, then the > output is correct. > > \placeformula > \startformula > \startalignedcases > \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR > \NC \dm{\frac{\partial u}{\partial {\bi n}}} > \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR > \stopalignedcases > \stopformula > or this (with\type{\displaystyle} added) > \placeformula > \startformula > \startalignedcases > \NC - \Delta u \NC = 0 \NC \qquad\text{in }\, \Omega \NR > \NC \dm{\frac{\partial u}{\partial {\bi n}}} > \NC = V u + \phi \NC \qquad\text{on }\, \partial\Omega. \NR > \stopalignedcases > \stopformula > > In this example, it is OK to use \dm inside of \startformula … \stopformula. > I am not sure that it is what Hans and Mikael want. > > Thanks, > > Best regards, > > Dalyoung > > I think in this case it is better to use a mathsimplealign instead of a matrix. \definemathsimplealign[pdeproblem][ left={\startmathfenced[cases]}, right=\stopmathfenced, align={1:right,2:left,3:left}, strut=yes, ] \definemathsimplealign[collected][ left={\startmathfenced[sesac]}, right=\stopmathfenced, align={1:right,2:left,3:left}, strut=yes, ] \starttext \placeformula \startformula \startpdeproblem \NC - \Delta u \NC = 0 \NC \qquad\text{in } \Omega \NR \NC \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC \qquad\text{on } \partial\Omega \NR \stoppdeproblem \stopformula \placeformula \startformula \startcollected \NC - \Delta u \NC = 0 \NC \qquad\text{in } \Omega \NR \NC \frac{\partial u}{\partial {\bi n}} \NC = V u + \phi \NC \qquad\text{on } \partial\Omega \NR \stopcollected \stopformula \stoptext Best, Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Backgrounds has changed in latest lmtx
On Sun, Oct 23, 2022 at 4:00 PM Thomas A. Schmitz via ntg-context wrote: > > On 10/23/22 15:51, Hans Hagen wrote: > > there was another fix yesterday (already uploaded) > > > > Hans > > Ah sorry, I missed that! It runs with my test file now, thanks! But my > real file dies with this error: > > fatal lua error: > > registered function call [1141]: > ...x/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg:61: attempt > to index a nil value (global 'presets') > stack traceback: > ...x/tex/texmf-context/tex/context/fonts/mkiv/xits-math.lfg:61: > in main chunk > [C]: in function 'dofile' > ...mtx/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:78: > in function <...mtx/tex/texmf-context/tex/context/base/mkiv/good-ini.lua:68> > (...tail calls...) > > mtx-context | fatal error: return code: 1 > > which appears to be related to the new math code? > > All best > > Thomas It works here. Are you sure that you updated to the latest? (There was a few updates lately) /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] new upload
On Mon, Oct 17, 2022 at 8:43 AM Otared Kavian via ntg-context wrote: > > Hi Mikael, Hi Otared, > > I use Lucida in my documents and did not notice any problem with the > integrals and other large operators. > Do you mean in the future I have to update to a new version of Lucida (and > pay again…) or will future versions of LuaMetaTeX handle correctly large > operators typeset in Lucida ? In Lucida the integrals have almost been at the right place. See the attached screenshot. To the left, the unfixed Lucida (first aligned at the base line, and then centered around the math axis). To the right, the same with fixed Lucida. In the eulernova example that Aditya shows, the difference is much bigger. The fixoldschool tweak fixes it, but it is of course better if it gets fixed in the font. Regarding the Lucida fonts: When you bought them you should have got some login information. That should still work, and you should be able to upgrade your fonts when released. I don't know how they (TUG) do releases, though, if they send out information to all people who bought the font. Hans and I are only involved in the fixing. /Mikael PS There are some other glyphs in Lucida that will be fixed. The <, >, \oiint and \oiiint (displayed versions of the integrals). If you add them (and, say also a = close to the < and >) to a document, and use \showglyphs you will see why. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] new upload
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 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 of improving the rendering of math. > > Something is wrong with the placement of limits around an integral with > NeoEuler: > > \usetypescriptfile[euler] > > \definetypeface[mainfont][rm][specserif][CharisSil][default] > \definetypeface[mainfont][mm][math] [eulernova][default] > \definetypeface[mainfont][tt][mono] [dejavu][default] [rscale=0.8, > features=none] > \setupbodyfont[mainfont,10pt] > > \starttext > \startTEXpage[offset=1mm] > $\displaystyle \int_{0}^{1} f(x) dx$ > \stopTEXpage > \stoptext > > gives the attached result. This is because the integral "sits wrong" in its boundingbox. Almost all fonts have the glyph centered around the math axis, but there are a few that doesn't. In euler-math.lfg, add the tweak { tweak = "fixoldschool", }, In fact, we have not updated the euler goodie file for a while it seems. I think there are more things that can be improved. Hopefully before next release. It can also be mentioned that some fonts (Daniel Flipo was quick to fix concrete, erewhon and kpfonts) was fixed recently regarding this, and it is reported on and fixed in development of Lucida. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] About macro numberstriped ()
Hi, On Sun, Oct 2, 2022 at 3:26 PM Hans Hagen via ntg-context wrote: > > On 10/2/2022 3:13 PM, Fabrice Couvreur via ntg-context wrote: > > Ok, it works very well. Without wanting to insist, how to have the same > > hatching with two different figures ? > see upcoming mail from Mikael Oh, OK, here it goes. Hans will probably rename things if he adds this. \startMPpage[offset=1dk] vardef Stripe(expr p, a, d) = save thestripe ; picture thestripe ; thestripe := nullpicture ; save diag ; numeric diag ; diag := 0.55*( abs((urcorner boundingbox p) - (llcorner boundingbox p)) ) ; thestripe := image ( draw (-diag,0) -- (diag, 0) && for i = d step d until diag: (-diag, i) -- (diag, i) && (-diag,-i) -- (diag,-i) && endfor nocycle withpen currentpen ; ) ; thestripe := thestripe shifted center boundingbox p ; thestripe := thestripe rotatedaround(center boundingbox p, a) ; clip thestripe to p ; thestripe enddef ; path p ; p := fullcircle scaled 3cm && (unitsquare scaled 2cm shifted (4cm,4cm)) && cycle ; fill p withcolor darkred ; draw Stripe(p,30,.2cm) withcolor darkgreen ; path q ; q := fullsquare randomized 0.3 scaled 3cm yshifted 5cm ; fill q withcolor yellow ; draw Stripe(q,70,.3cm) withcolor red ; draw Stripe(p && q && cycle, -20, .5cm) withcolor "orange" ; draw p ; draw q ; \stopMPpage /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] About macro numberstriped ()
Hi, Is this what you are looking for? On Sat, Oct 1, 2022 at 7:43 PM Fabrice Couvreur via ntg-context wrote: > > Hi Hans, > When the rectangles are not identical, how to have the same type of hatching > in both ? > Thanks. > Fabrice > > > \starttext > \startlinecorrection[blank] > \startmidaligned > \switchtobodyfont[9pt] > \startMPcode > path p, q, r, b ; > p := unitsquare xyscaled (4cm,4cm) ; > z[0] = (2cm,0cm) ; > z[1] = (2cm,4cm) ; > z[2] = (0cm,2cm) ; > q := llcorner p--z[0]--z[1]--z[2]--cycle ; > r := unitsquare xyscaled (1cm,1cm) shifted(0,3cm) ; > b := unitsquare xyscaled (3cm,3cm) shifted(1cm,0) ; > draw r anglestriped (1,45,2) withcolor cyan; draw b anglestriped (1,45,2) withcolor cyan; > >draw p; >draw b; >draw r; > > label.llft("D", p) ; > label.lrt("C", p) ; > label.ulft("A", p) ; > label.urt("B", p) ; > label.urt("P", lrcorner r) ; > label.lft("Q", llcorner r) ; > label.top("M", urcorner r) ; > > \stopMPcode > \stopmidaligned > \stoplinecorrection > \stoptext > > /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Math alignment question
On Fri, Sep 23, 2022 at 8:46 PM Aditya Mahajan via ntg-context wrote: > > 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 there is a way to use > > “\alignhere, \breakhere, \skiphere” for the case below? > > > > \startformula\startalign > > \NC A \NC = 3 \NR > > \NC B \NC = 5 \NR > > \stopalign\stopformula > > The way I see it is that the current implementation is that it is way to > break a _single_ long equation to multiple lines. For multiple equations, you > still need to use the \startalign method. > Indeed, that is the case. These formulas are done for single chain equations. The example given above consists of two formulas, and the new broken formula type simply does not fit. You can play with more than one \alignhere, but they will only set new align points. I think \startalign ... \stopalign is the way to go there. If it is cumbersome to type all the \NC and \NR one could in principle thing of similar input as for the simple matrices. Your example then would become \startalign A, = 3; B, = 5; \stopalign /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] lmt_outline not rendering properly
On Thu, Sep 22, 2022 at 11:15 AM Jacob Kauffmann via ntg-context wrote: > > Dear list, > > attached is an example taken from the luametafun manual. > The letter o looks odd. When I compile the manual the examples in section 4 > look also bad (different font; page 10 attached). > It seems like the paths miss one point. > > This is with the latest version 2022.09.11 20:44. > > Cheers, > Jacob Hi, I do not see this in the (just a bit) newer version I have locally, so I think it was fixed during the meeting last week. Hopefully it will work in the next upload. (Sometime next week) /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Latest ConTeXt won't "--make"
Hi, On Wed, Sep 14, 2022 at 8:43 AM Max Chernoff via ntg-context wrote: > > Hi all, > > I've just updated to the latest ConTeXt, but I'm unable to make the > format: > >$ context --make >resolvers | resolving | configuration files already identified >resolvers | resolving | loading configuration file > 'selfautoparent:/texmf/web2c/texmfcnf.lua' >[...] >resolvers | formats | using tex source file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl' >resolvers | formats | using lua stub file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt' >resolvers | formats | changing to format path > '/home/max/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex' >resolvers | formats | executing runner 'make luametatex format': > /opt/context/tex/texmf-linux-64/bin/luametatex --ini > --lua=/opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt > /opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl >This is LuaMetaTeX, Version 2.09.62 (INITEX) >[...] >resolvers > lua > loading file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-spa.lmt' succeeded >resolvers > lua > loading file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-fnt.lmt' succeeded >resolvers > lua > loading file > '/opt/context/tex/texmf-context/tex/context/base/mkxl/math-pre.lmt' succeeded >tex error > tex error on line 559 in file math-ini.mkxl: Undefined > control sequence \undefined > > > +\removeitaliccorrectionclassoptioncode > > >The control sequence at the end of the top line of your error message was > never >\def'ed. You can just continue as I'll forget about whatever was undefined. >resolvers | formats | >resolvers | formats | binary path : > /opt/context/tex/texmf-linux-64/bin >resolvers | formats | format path : > /home/max/luametatex-cache/context/5fe67e0bfe781ce0dde776fb1556f32e/formats/luametatex >resolvers | formats | luatex engine: luametatex >resolvers | formats | lua startup file : > /opt/context/tex/texmf-context/tex/context/base/mkxl/luat-cod.lmt >resolvers | formats | context file : > /opt/context/tex/texmf-context/tex/context/base/mkxl/cont-en.mkxl >resolvers | formats | run time : 0.573 seconds >resolvers | formats | return value : error >resolvers | formats | >system | total runtime: 0.610 seconds of 0.647 seconds > > Commenting out line 559 of math-ini.mkxl fixes the issue. > > Thanks, > -- Max I don't see this problem with the latest. Moreover, I think the version of luametatex was pushed to 2.10, so there might be a mis-match in your case. I hope it helps. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How do I write a digital book that can become a physical book without a lot of modifications?
On Sat, Sep 10, 2022 at 2:43 PM amano.kenji via ntg-context wrote: > > A digital book doesn't need to be double-sided. > > But, a physical book can be double-sided. > > Double-sidedness may require adjusting contents in many places. > > How can I write a digital book that doesn't have to be heavily modified in > order to become a physical book? I want almost no modification at all. I think you can use modes: https://wiki.contextgarden.net/Modes. Simply do different setups in different modes. Then choose the mode at compilation time. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Quick way to proofread / check index entries?
Den sön 4 sep. 2022 08:59Richard Mahoney via ntg-context skrev: > Bruce, > > Did something of the sort a while back: redefined the index command to > something short, in capitals; then adjusted the syntax highlighting to pick > up the code. This was for emacs + auctex, so it was just a case of > adjusting one of the stock auctex files. I think Scite may let one do > something similar. > > Richard > > > -- > *T* +6433121699 *M* +64210640216 > rmaho...@indica-et-buddhica.org > https://indica-et-buddhica.org/ > > *Indica et Buddhica* > Littledene Bay Road Oxford NZ > NZBN: 9429041761809 > > > - Original message - > From: Bruce Horrocks via ntg-context > To: ntg-context mailing list > Cc: Bruce Horrocks > Subject: [NTG-context] Quick way to proofread / check index entries? > Date: Sunday, 4 September 2022 06:51 > > My own fault for not thinking head :-) but I have a largeish text with a > lot of \index{...} entries. To make life easier for the proofreader I would > like to temporarily redefine \index to wrap it or replace it with something > that will highlight indexed items in the text where they occur, e.g. change > their colour. > > I could do this with a global find and replace (across many files) to > replace \index with \MyIndex, say, and then define a \MyIndex that > understands the various parameter options but this is a hassle. Before I do > this, is there anything already pre-built? > > The ultimate aim is to enable a proofreader to see each indexed term where > it appears in order to judge whether the term deserves to be in the index > at all. (Working backwards from the index itself is possible but clicking a > page number, trying to find the term on the page, then reading the context > to make a decision is quite hard work - much easier to read through and > deal with the terms as they appear.) > > — > Bruce Horrocks > Hampshire, UK > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > > > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > > ___ > Not by the computer, so cannot test, but I found these in an old document of mine: \enabletrackers[nodes.destinations] \enabletrackers[nodes.references] \usemodule[references-show] I hope it helps. /Mikael > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] How to make a reference go to an exact point of a section on a page?
On Thu, Sep 1, 2022 at 2:37 PM amano.kenji via ntg-context wrote: > > I just created a reference to a \section with \in. > > Clicking the \in reference doesn't go to the \section, but to the page that > has the \section. > > Does ConTeXt lack the ability to go to an exact point of a numbered element > on a page? > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ I think \setupinteraction[focus=standard] is what you need. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] underbar aligns badly
On Wed, Aug 31, 2022 at 9:45 AM Jan Ulrich Hasecke via ntg-context wrote: > > Am Wed, Aug 31, 2022 at 09:30:33AM +0200 schrieb juh+ntg-context--- via > ntg-context: > > Now in node-rul.mkxl I have this: > > > > \protected\def\node_rules_direct#1% > > {\groupedcommand > > {\dontleavehmode % this should not be needed but it is in \bTD > > {\node_rules_set{#1}% > > {\relax\barparameter\c!right}} > > > > And it seems to work. > > Argh, I applied the patch to the wrong lmtx version. > > With current version: 2022.08.25 19:21 I still get an indent, when I > only insert the % after \node_rules_set{#1}. > > I fear I missed the point. > > juh Here that worked, so I suspect you did not regenerate afterwards? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] underbar aligns badly
Hi, On Wed, Aug 31, 2022 at 8:32 AM juh+ntg-context--- via ntg-context wrote: > > Dear Hans, > > thanks a lot, but... > > Am 27.08.22 um 08:54 schrieb Hans Hagen via ntg-context: > > On 8/27/2022 8:46 AM, Jan Ulrich Hasecke via ntg-context wrote: > >> Hi all, > >> > >> can nobody confirm this bug? > > in: > > > > \protected\def\node_rules_direct#1% > >{\groupedcommand > > {\dontleavehmode % this should not be needed but it is in \bTD > >\node_rules_set{#1}% > > > > add a % after that line and remake the format > > > sorry I don't find the right file to do this. I don't find this code in > any file. > > juh grep gave me that it is in node-rul.mkxl around line 96. I hope it helps. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] C with macron
Hi, On Wed, Aug 24, 2022 at 2:23 AM Thangalin via ntg-context wrote: > > Hi again, > > Re: https://tex.stackexchange.com/q/364024/2148 > > How do you typeset a C with a macron below? > > \starttext > M\withmacron{c}Anulty > \stoptext > > Thank you. It seems that you can use "0331 for this: Mc\char"0331 Anulty There also is a built-in command \buildtextmacron: M\buildtextmacron{c}Anulty (Not sure if it uses the "0331.) This does not give any "fancy" raised c̱ though. Maybe someone else has better ideas. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] underbrace under matrix
On Fri, Aug 5, 2022 at 2:01 AM Jethro Djan via ntg-context wrote: > > Hello, > > I want to get underbraces under matrices in a math alignment environment. > I’ve reproduced my problem here: > > \definemathmatrix >[pmatrix] >[left={\left(\,},right={\,\right)}] > > \starttext > \placeformula[-]\startformula\startmathalignment >\NC\ >A \NC=\underbrace{ >\startpmatrix > \NC 5\NC 5\NR > \NC -1\NC 7\NR >\stoppmatrix}\NR >\NC\NC=\underbrace{ >\startpmatrix > \NC 2\NC 1\NR > \NC 4\NC 2\NR > \stoppmatrix}\NR > \stopmathalignment\stopformula > \stoptext > > How can I achieve this? > > Jethro Hi Jethro, Temporary workaround: use the simplecommand. \definemathmatrix[pmatrix][matrix:parentheses][ simplecommand=pmatrix, ] \starttext % \placeformula[-] \startformula \startalign \NC A \NC = \underbrace{\pmatrix{5,5;-1,7}}_{B} \NR \NC\NC = \underbrace{\pmatrix{2,1;4,2}}_{C} \NR \stopalign \stopformula % \placeformula[-] \startformula A \alignhere= \underbrace{\pmatrix{5,5;-1,7}}_{B} \breakhere = \underbrace{\pmatrix{2,1;4,2}}_{C} \stopformula \stoptext But the code you were using should in principle also work. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Cron /var/www/aanhet.net/context/bin/cron/context-mirror
On Sun, Jul 24, 2022 at 1:01 PM Cron Daemon via ntg-context wrote: > > receiving incremental file list > ./ > ctan.lsr > document-2.htm > download-1.htm > download-2.htm > logo-ade.png > logo-cts.png > logo-pod.png > rss.xml > show-fil.pdf > context/latest/ > context/latest/cont-mpd.zip > context/latest/cont-ppc.zip > context/latest/cont-sci.zip > context/latest/cont-tmf.zip > context/latest/cont-tst.tar.xz > general/manuals/ > general/manuals/luametatex.pdf > > sent 98,702 bytes received 21,728,319 bytes 3,968,549.27 bytes/sec > total size is 450,928,426 speedup is 20.66 > > > Running archiver: > > New dir: /var/www/aanhet.net/context//htdocs/archives/context-2022-07-24.13 > 133269181 > /var/www/aanhet.net/context//htdocs/archives/context-2022-07-24.13/latest > 126745317 > /var/www/aanhet.net/context//htdocs/archives/context-2022-07-24.13/current > 18956262 > /var/www/aanhet.net/context//htdocs/archives/context-2022-07-24.13/alpha > 126707516 > /var/www/aanhet.net/context//htdocs/archives/context-2022-07-24.13/beta > 405682372 > /var/www/aanhet.net/context//htdocs/archives/context-2022-07-24.13 > 405682372 total > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / > https://www.ntg.nl/mailman/listinfo/ntg-context > webpage : https://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : https://contextgarden.net > ___ Dear list, I just noticed that Hans made a new release (thanks Taco for these cron'd emails!). I attach to this email somemoreformulas.tex, with some additional examples to the previous ones, with tests/examples on issues people had with the previous release. If there still are problems, please tell! I finally shamelessly provide a link to the slides of the talk on math in ConTeXt at tug that I just gave: https://www.maths.lth.se/matematiklth/personal/mickep/mps-tug.pdf. I guess there will be a video available in due time, (check https://tug.org/tug2022/). /Mikael somemoreformulas.tex Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] Bug in placeformula
On Tue, Jul 12, 2022 at 6:34 PM Otared Kavian via ntg-context wrote: > > Dear Hans, dear Mikael, > > In my experiments with the new math engine, I noticed that there is an issue > with \placeformula when one sets the location of the numbers on the left: the > number is one line above the formula. Here is a minimal example: > > % begin bug-placeformula-left.tex > \setupformulas[location=left] > > \starttext > > \placeformula > \startformula > a^2 + b^2 = c^2. > \stopformula > > \stoptext > % end bug-placeformula-left.tex > > Moreover, in some environments (such as enumerations) the bug destroys > completely the flow of text but I could not set up a minimal example to send > you. > > Best regards: Otared Thanks for reporting! We must have missed this one while testing. It should be fixed. If you for the moment can live without splitting, then this seems to give you the formula number where expected: \placeformula \startformula[location=left,split=no,numberlocation=overlay] a^2 + b^2 = c^2. \stopformula (or put the keys in \setupformula) I hope it helps. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://www.ntg.nl/mailman/listinfo/ntg-context webpage : https://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : https://contextgarden.net ___
Re: [NTG-context] MetaPost cutdraw
Hi, On Wed, Jul 6, 2022 at 11:29 AM Henning Hraban Ramm via ntg-context wrote: > > Am 06.07.22 um 09:15 schrieb Hans Hagen via ntg-context: > > On 7/6/2022 7:10 AM, Aditya Mahajan via ntg-context wrote: > >> On Wed, 6 Jul 2022, Henning Hraban Ramm via ntg-context wrote: > >> > >>> Hi, I’m trying to understand MetaPost better. > >>> > >>> I’d like to draw a fat line that’s cut at its end points. > >> > >> You mean like linecap = butt? > > Yes, but that doesn’t behave differently. > > > > \startMPpage[offset=5mm] > > path p; > > > > p := origin -- (7cm,0); > > > > interim linecap := squared; > > > > draw p withpen ((pensquare) scaled 5mm) withcolor red ; > > draw envelope ((pensquare) scaled 5mm) of p withcolor > > green ; > > draw envelope ((pensquare rotated eps) scaled 5mm) of p withcolor > > blue ; > > \stopMPpage > > > > (there is an "ontarget" chapter about envelopes; mikael and i spent > > quite some time figuring out a few things but in the end conclused that > > mp des the right thing given the strategy it folows but it definitely > > has side effects) > > Thank you for the insight, but does that mean I can’t get my “butt > capped” lines and I must shorten the lines by half the pen size? > > Hraban > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Hraban, with the new upload you can do \startMPpage[offset=1dk] pickup pencircle scaled 4 ; path p ; p := origin -- (20,0) ; draw p withcolor darkyellow ; draw p yshifted 5 withlinecap butt withcolor darkred ; draw p yshifted -5 withlinecap squared withcolor darkgreen ; for i within currentpicture : drawpoints pathpart i withpen pencircle scaled 1 ; endfor ; \stopMPpage That is, you can set linecap for each draw. I hope it helps. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] upload
On Wed, Jul 6, 2022 at 10:10 PM Hans Hagen via ntg-context wrote: > > Hi, > > We're pleased to announce the first official release of the new math > code. We're talking of: > > -- a reworked math engine (which happened stepwise so some already > trickled into previous uploads) > > -- settling on one model for display math but with alignment variants as > well as improving inline math (e.g. wrt linebreaks) > > -- redoing bit of the (sub) numbering > > -- improving the alignment features (the traditional one and the > text/page mode one) > > -- fixing the math font using all kind of tweaks in the goodie file > > -- providing means to annotate formulas > > -- we ditched support for \over simply because it is too fragile wrt > spacing (one can \usemodule[oldmath] to get it back > > -- we might move some more alien stuff to m-oldmath in due time > > We paid a lot of attention to details of positioning, sizing and spacing > of glyphs. We do have some documents in the making that describe this > (some are in the ontarget namespace) and the second half of this year we > use for writing a math manual (Mikael) and updating the luametatex > manual (Hans). For sure we will run into unforseen issues, come up with > additional things and try to please users who have demands. There are > 'hidden' features that will be revealed stepwise. > > An example of some usage will be posted next. > > The pragma-ade.com domain is still in transfer but the nl one should > work fine. There is now also a https://www.luametatex.org that might be > get some more than there is now (when i find it useful but best to have > the domain for the ctx group). > > Mikael & Hans > > (on behalf of the CMS) Hi, Attached is a file with some example formulas and comments that might be of help. /Mikael someformulas.tex Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Numbering in mathalignment not working
On Wed, May 25, 2022 at 5:35 AM Luis Montgomery via ntg-context wrote: > > Same issue with > > \placeformula > \startformula > \startalign[number=auto] > \NC A_1 x + B_1 y + C_1\NC = 0 \NR[+] > \NC A_2 x + B_2 y + C_2\NC = 0 \NR[+] > \stopalign > \stopformula > > > and with all the wiki examples on \startmathalignment > (https://wiki.contextgarden.net/Command/_startmathalignment). > > L. Montgomery > > El dom, 22 may 2022 a las 0:14, śrīrāma via ntg-context > () escribió: >> >> On 5/19/22 2:04 PM śrīrāma wrote: >> > Hi, >> > >> > [I am on version 2022.05.11 11:36] >> > >> > I think either a bug might have crept into one of the recent uploads or >> > there is some change in behaviour – numbering of statements inside >> > mathalignment blocks is not working: only one statement is numbered even if >> > multiple are requested. >> > >> > The following example does not produce the expected result >> > both the equations should be numbered when only the first one is – >> > >> > \starttext >> > >> > \placeformula >> > \startformula >> > \startmathalignment >> > \NC a \NC = b \NR[eq:one] >> > \NC c \NC = d \NR[eq:two] >> > \stopmathalignment >> > \stopformula >> > >> > \stoptext >> > >> > Also the [+] options and the second optional argument of \NR does not work >> > as expected. Has its behaviour changed? >> > [...] >> >> Hi, >> >> Sorry to bother you all during a weekend but I am wondering if anyone has any >> workaround for the issue I have asked about above: while updating LMTX I >> unwittingly replaced my previous version without retaining a copy. Now I am >> stuck with documents without equation numbers. >> >> As stated above the following MWE demonstrates the issue: only the first >> equation is numbered (while both should be) >> >> \placeformula >> \startformula >> \startmathalignment >> \NC a \NC = b \NR[eq:one] >> \NC c \NC = d \NR[eq:two] >> \stopmathalignment >> \stopformula >> I tried to look into math-ini and math-ali but to no avail. >> >> Thanks, >> Sreeram >> >> Sreeram >> It has been fixed, but we have to wait for the next upload. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to add margin around standalone MetaPost?
Hi, Not sure if I understand the problem correctly. You could try \starttext \startMPpage[offset=3pt] ahlength := 20; linejoin := mitered; drawarrow origin--(40,0) withpen pencircle scaled 5; \stopMPpage \startMPpage[offset=1cm] ahlength := 20; linejoin := mitered; drawarrow origin--(40,0) withpen pencircle scaled 5; \stopMPpage \stoptext Compile with context. /Mikael On Fri, May 20, 2022 at 7:07 PM Bruce Horrocks via ntg-context wrote: > > The arrow looks fine to me in ConTeXt ver: 2022.01.10 08:36 LMTX. (See > attached PDF) > > > On 20 May 2022, at 17:56, Vincent Hennebert via ntg-context > > wrote: > > > > Take the following MetaPost file: > > > > beginfig(0) > > ahlength := 20; > > linejoin := mitered; > > drawarrow origin--(40,0) withpen pencircle scaled 5; > > endfig; > > > > Render it into PDF with ConTeXt. Witness the cut out ends of the arrow. > > How to fix that? > > > > Being able to add some margin would be a solution, which may be > > desirable anyway in some cases. Is that possible? > > > > Thanks, > > Vincent > > — > Bruce Horrocks > Hampshire, UK > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] upload
On Mon, May 9, 2022 at 6:16 PM Alexandre Christe via ntg-context wrote: > > 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. > I can confirm that there is a problem. But in the example below it goes away if I uncomment the \usebtxdefinitions[aps]. /Mikael \startbuffer[bib] @ELECTRONIC{hh2010, author = {Hans Hagen}, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } \stopbuffer \usebtxdataset[bib.buffer] % \usebtxdefinitions[aps] \starttext \cite[hh2010] \placelistofpublications \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] how to choose a font variant "book" / LMTX
On Wed, May 4, 2022 at 6:44 PM Heinrich Paeßens via ntg-context wrote: > > Hi there > I have a quick question: > > I was successful to install and use a new font in LMTX (New Computer Modern). > All good except that I’d like to use the »Book« variant instead of the > »Regular« variant (NewCM10-Book.otf vs NewCM10-Regular.otf). Trying many ways > but the right one. > > please advise, > can I define something similar like \bf for bold — maybe \bk for book? > > … all I get is > > hp@mbp16 ~ % pdffonts page1.pdf > name type encoding emb > sub uni object ID > - --- > --- --- - > CRBMBE+NewCM10-Regular CID Type 0C Identity-H yes > yes yes 1 0 > > my definitions are: > > \definefontfamily [newCM] [rm] [newcomputermodern10] > \definefontfamily [newCM] [ss] [newcomputermodernsans10] > \definefontfamily [newCM] [tt] [newcomputermodernmono10] [scale=0.85, > features=none] > \definefontfamily [newCM] [mm] [newcomputermodernmath] > \setupbodyfont[newCM, rm, 10pt] > > Many thanks > Heinrich Hi! \setupbodyfont[newcomputermodern-book,10pt] works here. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Font too small with a macro
Hi, be careful with spacing. Try \protected\def\Exp{\normal exp} \startformula \exp x = \Exp x. \stopformula If you need more math functions, you can try (here for arsinh): \definemathcommand[arsinh][nolop]{\mfunction{arsinh}} Best, Mikael On Sat, Apr 23, 2022 at 5:03 PM Günter Kolousek via ntg-context wrote: > > > Hi, > > if I replace your definition of exp by > > \protected\def\exp{\normal exp} > > it works well (at least on my installation of lmtx), but > I'm just a beginner in using context... > > Best, > Günter > > > Mikael Sundqvist via ntg-context @ 2022-04-23 15:27 +02: > > > On Sat, Apr 23, 2022 at 12:11 PM Fabrice Couvreur via > > ntg-context > > wrote: > >> > >> Hello, > >> If I compile with context the expected result is correct but > >> with lmtx the font under the square root is smaller. > >> Thank you > >> Fabrice > >> > >> \protected\def\exp{\text{\normal exp}} > >> > >> \starttext > >> \startformula > >>\sqrt{\exp(x)}=\exp\left(\frac{x}{2}\right). > >> \stopformula > >> \stoptext > > > > Hi, > > > > without your redefinition of \exp it looks fine (exp is already > > defined). Does that solve your problem, or are you doing > > something > > else, and this exp was just an example? > > > > Best, Mikael > > ___ > > If your question is of interest to others as well, please add an > > entry to the Wiki! > > > > maillist : ntg-context@ntg.nl / > > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > ___ > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Font too small with a macro
On Sat, Apr 23, 2022 at 12:11 PM Fabrice Couvreur via ntg-context wrote: > > Hello, > If I compile with context the expected result is correct but with lmtx the > font under the square root is smaller. > Thank you > Fabrice > > \protected\def\exp{\text{\normal exp}} > > \starttext > \startformula >\sqrt{\exp(x)}=\exp\left(\frac{x}{2}\right). > \stopformula > \stoptext Hi, without your redefinition of \exp it looks fine (exp is already defined). Does that solve your problem, or are you doing something else, and this exp was just an example? Best, Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Need some hints to fix my standalon installation
On Wed, Apr 20, 2022 at 5:03 PM Pablo Rodriguez via ntg-context wrote: > > On 4/20/22 12:34, Christoph Hintermüller via ntg-context wrote: > > Hi > > Have updated my standalone installation from one of the 2020 releases > > to the latest one running > > > > ./first-setup.sh --context=latest --modules=all > > Hi Christoph, > > sorry for the obvious suggestion «post facto»: never update ConTeXt > without a backup first. > > > [...] > > Therefore i have the following questions > > - would it help to sacrifice the updated standalone installation and > >do a fresh install > > I don’t think it would work, since it only works with LuaMetaTeX. > > I got the same results (in Windows [because I cannot make it work in > Linux]) with LuaTeX 1.15 (the one that comes with ConTeXt LMTX). > > My suggestion would be a fresh install (in a different directory, no > need to remove anything) of ConTeXt LMTX. > > > - What else i would have to check and probably fix to make the math > >working as expected > > Math is being improved in ConTeXt these days. It might be a bug. > > I wonder whether Mikael or Hans could review your issue. > > Just in case it might help, > > Pablo > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ The strange thing with fractions seems to be due to the parameter FractionNumeratorDisplayStyleShiftUp in lm.lfg. If you always set it to 600, it seems to work also for luatex. (This will be fixed.) Another thing: Instead of using \over, I suggest that you use \frac (less surprises). Something like: \starttext \startformula a=b + 1 \stopformula \startformula a = \frac{ b + \mu }{ c } \stopformula \startformula a = \frac{\frac{ b + \mu }{ c } + e}{ d + i } \stopformula \stoptext /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math functions not typeset inside MetaPost
On Tue, Apr 19, 2022 at 3:59 PM śrīrāma via ntg-context wrote: > > Hi Hans, > > [I am sending this again since the previous mails regarding were sent during > the weekend]. > > I am on the most recent upload of LMTX [2022.04.15 20:20]. However, when I try > to use math functions inside MetaPost strings, the function is not typeset > correctly. Please consider the following MWE: > > \starttext > \startMPcode > draw textext("\m{\max_i x_i}"); > \stopMPcode > \stoptext > > which produces the output attached here as an image. Instead of the mfunction > maxᵢ xᵢ > some form of the string mathfunctionhandlelabel is typeset. > > I tried to inspect \math_function_handle_label [math-ini] and also mp-mlib and > mlib-pps but could not figure out what is going wrong. I wonder if there is a > backslash missing somewhere. I am a little worried since I use MetaFun in > conjunction with maths and could not figure out what the issue is. > > Please see the original post by Dalyoung here: > https://mailman.ntg.nl/pipermail/ntg-context/2022/105462.html > > Please advise. > > Thank you, > > Sreeram___ Thanks, this will be fixed in the next upload (that will take place soon as far as I've heard). Best regards, Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] upload
On Tue, Mar 29, 2022 at 6:37 AM Otared Kavian wrote: > > Hi Mikael, Hi Otared, > > Thanks for your explanation and the example you sent about > \definemathsimplealign (I didn’t get immediately that « sesac » in the > command \startmathfenced[sesac] means « cases » in reverse or mirrored… I > guess this is a wise and humourous choice by Hans :-) ). I guess so too :) > > Regarding \startcases, it seems that it is still not possible to number each > equation, but I may be overlooking something. I’ll try a few examples and > will let you know, as well as Hans. Hm, but a cases environment does not provide several formulas. This is just one formula: \startformula |x|= \startcases \NC x \NC x>0\NR \NC 0 \NC x=0\NR \NC -x \NC x<0\NR \stopcases \stopformula and as such should have (at most) one equation number, right? Only Hans knows if it is (easily) doable to add the possibility to add numbers to each three lines. By the way, thanks for testing and commenting! /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] upload
On Mon, Mar 28, 2022 at 11:23 PM Otared Kavian wrote: > > Hi Hans, > > Thank you for the new upload and the improvements you mention about the > handling of math stuff. Thanks also to Mikael for the follow up of these > matters. > > I noticed that in math mode the command \cal does not work anymore and one > has to use \mathcal. > However in almost all of my documents I use Lucida Bright OT, and in some > occasions I replace its calligraphic letters by the slots from Asana Math > with the following definitions: > > \definefallbackfamily[myfont][math][Asana Math] > [range={uppercasescript,lowercasescript}] > > % lucida font > \definefontfamily[myfont][serif][Lucida Bright OT] > \definefontfamily[myfont][math][LucidaBrightMathOT] > \definefontfamily[myfont][sans][LucidaSansOT] > \definefontfamily[myfont][mono][LucidaSansTypewriterOT] > > \setupbodyfont[myfont,9pt] > > It seems that with the changes made recently the above definitions must be > modified in order to have Asana Math show up. > > So, I am asking for help from Mikael in this regard… Hi Otared, At the moment I don't know how one can use the fallback system with calligraphic/script fonts. Let me explain in a few sentences what we changed. Now we have \mathcal and \mathscr. If the font has both a chancery alphabet and a roundhand alphabet, the goodie file is coded so that \mathcal points to chancery and \mathscr to roundhand. This is the case for Lucida. So, maybe you could try to do \setupbodyfont[lucidadk] and then try \mathscr out. Other fonts that have both variants are stixtwo and xits. The rest have only either chancery style or roundhand style, and there you will get what it has. About \cal I don't know. > > Also, it would be nice to have a few explanations about the new stuff in math > alignments. I think the new math alignments are still work in progress. One thing that happens will probably go unnoticed, and that is the spacing. Hans is playing a lot with the new atoms, and right now he is playing(?) with construction atoms, ghosts and fences. There is one new type of alignments, called simplealignments. We can use them for example to collect some equations with a brace (and give the collection one number). /Mikael \setupbodyfont[lucidadk] \definemathsimplealign[collecteqequations][ left={\startmathfenced[sesac]}, right=\stopmathfenced, align={1:right,2:left}, ] \starttext %\showmakeup[mathglue] ${\mathcal ABC}$ and ${\mathscr ABC}$ \placeformula \startformula \startcollecteqequations \NC x \NC = r\sin\theta\cos\phi\NR \NC y \NC = r\sin\theta\sin\phi \NR \NC z \NC = r\cos\theta \NR \stopcollecteqequations \stopformula \stoptext 220328-5.pdf Description: Adobe PDF document ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] new upload
Hi! On Mon, Mar 14, 2022 at 9:01 AM Hans Hagen via ntg-context wrote: > > On 3/13/2022 7:58 PM, Rik Kabel via ntg-context wrote: > > > With regard to math fonts, I notice that the goodies file for Libertinus > > expects version 6.8 of the font, but the current version (since February > > 2021) is 7.040, and much work appears to have gone into the math font. > > the main issue with math font is in 'unfortunate' glyph dimensions and > we doubt that these will change over time (as fonts are supposed to be > stable); adding shapes is another matter > > > Two questions, then: > > > > 1. Is Libertinus Math considered a "useful" math font? > > Mikael knows .. I never used libertinus (and am an unlike candidate; i > mostly use cambria, pagella, dejavu, lucida) I think it could be useful, yes (I like the look of the libertinus font, in particular in combination with the biolinum font; it is probably worth trying to get the math font to work as well as possible). I think there were some problems with accents and such, but not too big. I think you could try to use it and see what you think. > > > 2. How does the goodies mechanism work when the expected version > > differs from the found version? > > we check the version number in the font file (a bit of fuzzyness due to > the way version numbers ar ento standardized); comparing internals would > be an option but also a waste of time i think > > > (I understand that keeping up with evolving fonts is somewhere between > > difficult and impossible.) > > which is why we want to freeze on versions ... an update to another > version then becomes explicit; of course we can also consider having > multiple instances of a font but then we also need to set up a repository > > > I also note that the typescript for libertinus is quite old and does not > > reflect the semibold variants that have been available for some time. I > > prefer them to the bold variants, and my own typescript for libertinus > > does incorporate them. I am happy to share it if anyone wants it. > We cannot suddenly change the 'default', but we can have additional > choices in the file for semi versions (some more fonts have that). You > can send your typesctipt file to Mikael and me and we can have a look. > > (Not sure if I should update libertinus now. Sometimes fonts change too > much, like for instance ebgaramond did, and one can get rather different > output.) > > Hans I put it on my todo-list to download the new version and to run some test files. I could also mention here that in the upload Hans did some days ago, most changes are "behind the scenes", so the user should not really write their code differently. One exception: In integrals, texers have usually a \, in front of the differential. Now there is a differential class, and the macro \dd will give a differential d, with (hopefully) correct spacing. Thus, write for example \int_0^1 f(x)\dd x. If you find any strange distances between atoms, please mail me examples. With the introduction of new classes, there are many new pairs, and perhaps not all of them are setup "correct". /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] mathalignment not working (? again ?)
On Wed, Mar 2, 2022 at 2:33 AM śrīrāma via ntg-context wrote: > > Hi, > > While setting some rather large set of equations in a document I could not > achieve proper alignment of columns in mathalignment. Below is a demonstrative > example: > > \starttext > \placeformula > \startformula > \startmathalignment[n=7,align={right,left,right,left,right,left,right}] > \NC x_1 \NC + \NC x_2 \NC + \NC 6x_3 \NC = \NC 170, \NR > \NC 3x_1 \NC - \NC 110x_2 \NC - \NC x_3 \NC = \NC 4, \NR > \NC 14x_1 \NC + \NC 13x_2 \NC + \NC 10x_3 \NC = \NC 25. \NR > \stopmathalignment > \stopformula > > \startformula \startmathalignment[align={left,right}] > \NC \sin^2 x + \cos^2 x \NC = 1 \NR > \NC e^{iπ} \NC = -1 \NR > \stopmathalignment \stopformula > \stoptext > > The first example is from the wiki and the second one is just something I > wrote > as an example. Compiling the above, I see that the equations are not aligned > as requested. There was an earlier discussion on this here: > https://www.mail-archive.com/ntg-context@ntg.nl/msg97115.html > > However, I have: > mtx-context | current version: 2022.01.21 20:13 > where I have verified that the fix therein is present (in math-ali.mkxl). > > Have I gone wrong somewhere ? > > Thanks, > Sreeram Hi! No, you have not gone wrong, but syntax has changed a bit. This works now: \starttext \placeformula \startformula \startmathalignment[n=7,align={1:right,2:left,3:right,4:left,5:right,6:left,7:right}] \NC x_1 \NC + \NC x_2 \NC + \NC 6x_3 \NC = \NC 170, \NR \NC 3x_1 \NC - \NC 110x_2 \NC - \NC x_3 \NC = \NC 4, \NR \NC 14x_1 \NC + \NC 13x_2 \NC + \NC 10x_3 \NC = \NC 25. \NR \stopmathalignment \stopformula \stoptext This was done while changing alignments in matrices (and thus also in alignments, it seems). You can now do align=all:right for example to get all columns in a matrix right-aligned. Hans: since people like to use right/left/right/left/ when typesetting systems of equations... maybe one could add odd:right and even:left as well? /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] shapepar for ConTeXt
On Mon, Feb 14, 2022 at 12:29 PM Peter Münster via ntg-context wrote: > > Hi, > > Is there something like shapepar (LaTeX-package) for ConTeXt? > I would like to do the same as "\heartpar{text}" (see > http://mirrors.ctan.org/macros/latex/contrib/shapepar/shapepar.pdf > page 9) with ConTeXt. > > TIA for any hints, > -- >Peter Not a heart example, but since I guess you really want an answer today: see around page 272 of https://www.pragma-ade.com/general/manuals/metafun-p.pdf for a way to do this in MetaFun. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Suggestions for more math classes?
Dear all, While discussing spacing in math with Hans, we have come to the conclusion that to have better control and cleaner code there might be a good idea to have more math classes than the usual ones in TeX (ord, op, bin, rel, open, close, punct, inner (and some that we need not to think about)). So far, Hans has implemented frac and rad for fractions and radicals. The fractions has been a funny construction, being put inside empty delimiters, and so surrounded by the \nulldelimiterspace (which has been set to 1.2pt, independent of font size). Now we have better control of the spacing around fractions. Hans has opened up (even in the code) for the addition of more classes. The overall aim is to have a more coherent and logical way of typing math, without manual adding of (arbitrary) spaces every now and then. For example, we have always written \int f(x)\, dx to have a thin space between the closing parenthesis and the d in integrals. There will (most likely) be a differential class. Since the d might occur in other places in a formula with integrals, one cannot just simply give the letter d the differential class, and we are currently discussing the correct way for the user to type it. If you have suggestions, please let us hear! Some further suggestions by Hans are (see below for two more) 13 imaginary 14 differential 15 exponential 16 function Q1: Do you have any further suggestions on new classes (or comments on these)? It might be good to think about situations where you have felt that you need to insert manual spaces such as \, or \! to obtain a better result. I give one contribution: I asked a colleague to look in his TeX files for manual spaces, and he came up with several \, (usually before the d in integrals) but also with \!. This \! occurred mostly in fencing situations to have the exponent come a bit closer to the closing parenthesis. \left( \frac{x}{2} \right)^{\! k+2n} I have seen this in many places before, so no originality is claimed. Two more classes that we thought of are under and over. Say that we have a\overbar{bc}d. Should the spacing between a and the \overbar{bc} and the spacing between \overbar{bc} and d always be tight? If so, these might just be ord, and no new class needed (although one could argue for adding the classes now, set them up as ord, and thus being able to configure them according to taste/need). Q2: Do you have any real examples of constructions with \overbar, \underbar, \overbrace, ... or if you have any strong opinion, please raise your voice! /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] How to setupbtx to get short citations?
On Sun, Jan 9, 2022 at 11:56 PM Mikael Sundqvist wrote: > > Hi, > > In the example below I can do \cite[short][hh2010] to get the citation > in the short format. But I thought that would also be the standard > with \setupbtx[aps][alternative=short] (so that I can write > \cite[hh2010] instead). What do I miss? (Except for the fact that I > should probably define my own btx style as a copy of aps instead of > setting the aps up...) > > /Mikael > > \startbuffer[bib] > @ELECTRONIC{hh2010, > author = {Hans Hagen}, > year = {2010}, > title = {Metafun. \CONTEXT\ mkiv}, > url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, > } > \stopbuffer > > \usebtxdataset[bib.buffer] > > \usebtxdefinitions[aps] > > \setupbtxrendering[aps][ > sorttype=short, > numbering=short, > ] > > \setupbtxlist[aps][ > width=fit, > distance=0.5em, > interaction=start, > ] > > \setupbtx[aps][ > alternative=short, > ] > > > \starttext > > \cite[hh2010] > > \placelistofpublications > > \stoptext It should be \setupbtx[aps:cite][ alternative=short, ] Sorry for the noise. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] How to setupbtx to get short citations?
Hi, In the example below I can do \cite[short][hh2010] to get the citation in the short format. But I thought that would also be the standard with \setupbtx[aps][alternative=short] (so that I can write \cite[hh2010] instead). What do I miss? (Except for the fact that I should probably define my own btx style as a copy of aps instead of setting the aps up...) /Mikael \startbuffer[bib] @ELECTRONIC{hh2010, author = {Hans Hagen}, year = {2010}, title = {Metafun. \CONTEXT\ mkiv}, url = {http://www.pragma-ade.nl/general/manuals/metafun-s.pdf}, } \stopbuffer \usebtxdataset[bib.buffer] \usebtxdefinitions[aps] \setupbtxrendering[aps][ sorttype=short, numbering=short, ] \setupbtxlist[aps][ width=fit, distance=0.5em, interaction=start, ] \setupbtx[aps][ alternative=short, ] \starttext \cite[hh2010] \placelistofpublications \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Align table (framed) top
Oh, I should have thought of that. Thanks (again) Wolfgang! /Mikael On Tue, Jan 4, 2022 at 5:22 PM Wolfgang Schuster wrote: > > Mikael Sundqvist via ntg-context schrieb am 04.01.2022 um 13:21: > > Oh, thanks! > > > > I can simply wrap my table in a framed environment, then. If it is > > still possible to solve without the surrounding framed I'm interested > > to hear how. > > You have to put the table in a box to change the vertical position. > > \starttext > > a\tbox{\bTABLE \bTR \bTD xxx\par yyy \eTD \eTR \eTABLE}b > > \stoptext > > Wolfgang > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Align table (framed) top
Oh, thanks! I can simply wrap my table in a framed environment, then. If it is still possible to solve without the surrounding framed I'm interested to hear how. /Mikael On Tue, Jan 4, 2022 at 12:12 PM kauśika wrote: > > On Tuesday, January 4, 2022 4:24:22 PM IST Mikael Sundqvist via ntg-context > wrote: > > What is the correct way to get the last line, "The last foo", > > to automatically be placed below the second table? > > There is only one table in your example. > > > I still want the first line of the table to align vertically with the text > > Bar. > > If you don't need a table, the following achieves the same: > > \starttext > Foofoo > > Bar > \framed[width=2cm,align=normal,location=top]{this is a long sentence}\par > The last foo > \stoptext > > Best, > kauśika > > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Align table (framed) top
Hi, This is probably simple, but I cannot combine the right keys to get it to work. What is the correct way to get the last line, "The last foo", to automatically be placed below the second table? I still want the first line of the table to align vertically with the text Bar. /Mikael \starttext Foofoo Bar\bTABLE[width=2cm,location=top] \bTR \bTD This is a long sentence \eTD \eTR \eTABLE The last foo \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Two questions on enumerations/indentation
Thank you for that! This certainly gives me an italic Remark and an upright 1. I feel a bit uneasy about adding the style to the text key, but if there is no other way out... I do not get the head indented with your code. /Mikael Den fre 31 dec. 2021 00:26fv leung via ntg-context skrev: > Can solve with > > > \defineenumeration[remark][ > alternative=serried, > width=fit, > text={{\it Remark}}, > headstyle=\tf, > indenting={first,medium}, > %headcommand=\groupedcommand{\hskip 1em}{}, > ] > > > Mikael Sundqvist via ntg-context 於 2021年12月31日 週五 > 上午4:55寫道: > >> Hi, >> >> I have two questions: >> >> 1) What is the correct way to indent the first line of a (serried) >> enumeration? In the example below, I can use headcommand, but then I >> do not know what I should replace "1em" below to fit the medium >> indenting. >> >> 2) I miss a numberstyle. What is the correct way to (in the example >> below) get Remark in italic and the number upright? >> >> /Mikael >> >> \defineenumeration[remark][ >> alternative=serried, >> width=fit, >> text=Remark, >> headstyle=italic, >> indenting={yes,medium}, >> %headcommand=\groupedcommand{\hskip 1em}{}, >> ] >> >> \starttext >> >> \samplefile{tufte} >> >> \startremark >> This line should be indented. The next line should not be indented. I >> wonder how we can fix that. >> >> This line is fine and is here for comparison. >> \stopremark >> >> \samplefile{tufte} >> >> \stoptext >> >> ___ >> If your question is of interest to others as well, please add an entry to >> the Wiki! >> >> maillist : ntg-context@ntg.nl / >> http://www.ntg.nl/mailman/listinfo/ntg-context >> webpage : http://www.pragma-ade.nl / http://context.aanhet.net >> archive : https://bitbucket.org/phg/context-mirror/commits/ >> wiki : http://contextgarden.net >> >> ___ >> > > ___ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > ___ > ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Two questions on enumerations/indentation
Hi, I have two questions: 1) What is the correct way to indent the first line of a (serried) enumeration? In the example below, I can use headcommand, but then I do not know what I should replace "1em" below to fit the medium indenting. 2) I miss a numberstyle. What is the correct way to (in the example below) get Remark in italic and the number upright? /Mikael \defineenumeration[remark][ alternative=serried, width=fit, text=Remark, headstyle=italic, indenting={yes,medium}, %headcommand=\groupedcommand{\hskip 1em}{}, ] \starttext \samplefile{tufte} \startremark This line should be indented. The next line should not be indented. I wonder how we can fix that. This line is fine and is here for comparison. \stopremark \samplefile{tufte} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] MP: problem connecting paths.
Hi, I will try again. What if you do newcircleA := newcircleA scrutinized 2; after your definition of newcircleA? /Mikael On Mon, Dec 20, 2021 at 3:45 PM Fabrice L wrote: > > Thanks Mikael, > > Le 20 déc. 2021 à 02:21, Mikael Sundqvist via ntg-context > a écrit : > > Hi, > > would it be an option for you to do > > newcircleA := circleA cutbefore P1 cutafter P2 -- cycle ; > > In that case you avoid extra points. > > > You are right, in this simple case, your solution avoid the problem, and is > applicable in some of my cases (I have to rethink the code). Thanks for the > proposition ! > But in others cases this is not possible (I think). Imagine I wish to do a « > partial moon » from the two circles in my minimal example (see bottom right > of the attached pdf): > > > newcircleA := circleA cutbefore P1 cutafter P2 .. reverse(circleB cutbefore > P1 cutafter P2) .. cycle; > > I need 10 points to define the shape, but as my connections are duplicated, I > have 12 points. > > The solution (I thought) would be to use the « & » operator : > newcircleA := circleA cutbefore P1 cutafter P2 & reverse(circleB cutbefore P1 > cutafter P2) & cycle ; > > But this does not work (same reason as before: "! Paths don't touch; `&' will > be changed to `..'."). > > The compete minimal code (if somebody wants to plus with it) is here : > > % ——— > \startMPpage > path circleA , circleB ; > pair P[]; > defaultscale := 0.4 ; > > circleA := fullcircle scaled 1in randomized 3 ; > circleB := fullcircle scaled 1in randomized 3 shifted(0.3in,0.3in) ; > > draw circleA withcolor blue ; > draw circleB withcolor red ; > > P[1] := circleA intersectionpoint circleB ; > dotlabel.lft("$P_1$",P[1]) ; > dotlabel.rt("$\blue\tfx P_0^A$",point 0 of circleA) ; > P[2] := reverse(circleA) intersectionpoint circleB ; > dotlabel.rt("$P_2$",P[2]) ; > dotlabel.rt("$\red\tfx P_0^B$",point 0 of circleB) ; > > path newcircleA , newcircleB ; > % newcircleA := (circleA cutbefore P1 cutafter P2 ) & (P2 -- P1) & cycle ; > % previous line gives an error : > % "! Paths don't touch; `&' will be changed to `..'." > newcircleA := circleA cutbefore P1 cutafter P2 -- (P2 -- P1) -- cycle ; > newcircleA := newcircleA xshifted 2in ; > draw newcircleA withcolor darkgreen ; > > newcircleB := (circleB cutafter P1) -- (P1 -- P2) -- (circleB cutbefore P2 ) > & cycle ; > newcircleB := newcircleB xshifted 2in ; > draw newcircleB withcolor black ; > drawpoints newcircleA ; drawpointlabels newcircleA ; > > % Mikael solution > newcircleA := circleA cutbefore P1 cutafter P2 -- cycle ; > newcircleA := newcircleA yshifted -1.5in ; > draw newcircleA withcolor darkgreen ; > drawpoints newcircleA ; drawpointlabels newcircleA ; > > % partial moon > newcircleA := circleA cutbefore P1 cutafter P2 > .. reverse(circleB cutbefore P1 cutafter P2) .. cycle; > % & (reverse(circleB) cutbefore P2 cutafter P1) & cycle; > newcircleA := newcircleA shifted(2in,-1.5in) ; > draw newcircleA withcolor magenta ; > drawpoints newcircleA ; drawpointlabels newcircleA ; > > \stopMPpage > % ——— > > Thanks for any help ! > Fabrice. > > > /Mikael > > On Mon, Dec 20, 2021 at 5:30 AM Fabrice L via ntg-context > wrote: > > > Dear list, > > I have a problem connecting path with the operator « & » (page 16 Metafun > manual). The problem is illustrated by the code (and the joined PDF) which > follows. > > I draw random cycled forms (left part of the figure) and when they interact, > they are modified to « fit together » (right part of the figure) . When > building these new forms, I connect paths (usually two or three depending on > position 0 of the path); the last point a path is the same as the first point > of the next path ; for exemple, to modify the blue circle, named « circleA », > I take the circle A from P1 to P2, then a segment from P2 to P1 and cycle to > have a closed path. So I should be able to do : > > newcircleA := circleA cutbefore P1 cutafter P2 & (P2 -- P1) & cycle ; > > The « & » operator is supposed to work (if I understand correctly) in this > case, but I have this error message : > > "! Paths don't touch; `&' will be changed to `..’." > > Which I do not understand since the paths « touch ». There was a similar > question last year, without a clear answer (« > METAPOST subpath rounding issue > »https://www.mail-archive.com/ntg-context@ntg.nl/msg94294.html). > > A solution is to ignore the repeating points : > newcircleA :
Re: [NTG-context] MP: problem connecting paths.
Hi, would it be an option for you to do newcircleA := circleA cutbefore P1 cutafter P2 -- cycle ; In that case you avoid extra points. /Mikael On Mon, Dec 20, 2021 at 5:30 AM Fabrice L via ntg-context wrote: > > Dear list, > > I have a problem connecting path with the operator « & » (page 16 Metafun > manual). The problem is illustrated by the code (and the joined PDF) which > follows. > > I draw random cycled forms (left part of the figure) and when they interact, > they are modified to « fit together » (right part of the figure) . When > building these new forms, I connect paths (usually two or three depending on > position 0 of the path); the last point a path is the same as the first point > of the next path ; for exemple, to modify the blue circle, named « circleA », > I take the circle A from P1 to P2, then a segment from P2 to P1 and cycle to > have a closed path. So I should be able to do : > > newcircleA := circleA cutbefore P1 cutafter P2 & (P2 -- P1) & cycle ; > > The « & » operator is supposed to work (if I understand correctly) in this > case, but I have this error message : > > "! Paths don't touch; `&' will be changed to `..’." > > Which I do not understand since the paths « touch ». There was a similar > question last year, without a clear answer (« > METAPOST subpath rounding issue > »https://www.mail-archive.com/ntg-context@ntg.nl/msg94294.html). > > A solution is to ignore the repeating points : > newcircleA := circleA cutbefore P1 cutafter P2 -- (P2 -- P1) -- cycle ; > but this new shape has 9 points instead of 7. The problem is that I do these > operations a number of times, and the length of a path (in the number of > points) is increasing and cause trouble when I look for intersections with > others shapes. > > Here is the MWE: > > \startMPpage > path circleA , circleB ; > pair P[]; > > circleA := fullcircle scaled 1in randomized 3 ; > circleB := fullcircle scaled 1in randomized 3 shifted(0.3in,0.3in) ; > > draw circleA withcolor blue ; > draw circleB withcolor red ; > > P[1] := circleA intersectionpoint circleB ; > dotlabel.lft("$P_1$",P[1]) ; > dotlabel.rt("$\blue\tfx P_0^A$",point 0 of circleA) ; > P[2] := reverse(circleA) intersectionpoint circleB ; > dotlabel.rt("$P_2$",P[2]) ; > dotlabel.rt("$\red\tfx P_0^B$",point 0 of circleB) ; > > path newcircleA , newcircleB ; > % newcircleA := circleA cutbefore P1 cutafter P2 & (P2 -- P1) & cycle ; > % previous line gives an error : > % "! Paths don't touch; `&' will be changed to `..'." > newcircleA := circleA cutbefore P1 cutafter P2 -- (P2 -- P1) -- cycle ; > newcircleA := newcircleA xshifted 2in ; > draw newcircleA withcolor darkgreen ; > > newcircleB := (circleB cutafter P1) -- (P1 -- P2) -- (circleB cutbefore P2 ) > & cycle ; > newcircleB := newcircleB xshifted 2in ; > draw newcircleB withcolor black ; > drawpoints newcircleA ; drawpointlabels newcircleA ; > > \stopMPpage > > > > > I would appreciate any help ! Thanks ! > Fabrice. > > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Extra shift with ornament
On Fri, Dec 17, 2021 at 10:05 AM Hans Hagen wrote: > > On 12/17/2021 6:40 AM, Mikael Sundqvist via ntg-context wrote: > > Hi, > > > > When using an ornament on a \startframedtext \stoptextframed the frame > > is shifted just a little bit. Can one get rid of that shift? MWE > > below. > > > > /Mikael > > > > \defineornament[MyOrn][ > >corner={right,bottom}, > >location={right,top}, > >alternative=b, > >][ > >frame=off, > >] > > > > \showframe > > > > \starttext > > \startframedtext[width=\textwidth,height=2cm]foo\stopframedtext > > > > \MyOrn{bar}{\startframedtext[width=\textwidth,height=2cm]foo\stopframedtext} > > \stoptext > framedtext is more for text flow so you get some interferences > > \MyOrn >{bar} >{\framed > [offset=overlay, > align=normal, > width=\textwidth, > height=2cm]{foo}} > > works but maybe you want this instead: > > \defineoverlay >[MyOrn] >[\MyOrn > {\framedtextparameter{MyTitle}} > {\novrule width \overlaywidth height \overlayheight}] > > \defineframedtext >[MyText] >[background=MyOrn,width=\textwidth,height=2cm] > > \startMyText[MyTitle={oeps}] > foo > \stopMyText > > Hans > > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - Thanks, Hans! You indeed knew what I wanted. /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Extra shift with ornament
Hi, When using an ornament on a \startframedtext \stoptextframed the frame is shifted just a little bit. Can one get rid of that shift? MWE below. /Mikael \defineornament[MyOrn][ corner={right,bottom}, location={right,top}, alternative=b, ][ frame=off, ] \showframe \starttext \startframedtext[width=\textwidth,height=2cm]foo\stopframedtext \MyOrn{bar}{\startframedtext[width=\textwidth,height=2cm]foo\stopframedtext} \stoptext ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] [DKIM] Primes too high in New Computer Modern
Hi, We changed so that newcomputermodern-book (which is bolder than newcomputermodern) uses the same lfg file as lm, which works. I attach an updated version of the type-imp-newcomputermodern.mkiv, which also adds the lfg file to newcomputermodern. /Mikael PS If one wants to play with modernlatin, is there a simple way to play with the boldness (for example make it just slightly less bold)? On Tue, Dec 7, 2021 at 9:45 AM Hans Hagen via ntg-context wrote: > > On 12/7/2021 2:39 AM, Jairo A. del Rio via ntg-context wrote: > > Hi, list. See the following: > > > > \starttext > > $\alpha'$ {\switchtobodyfont[newcomputermodern]$\alpha'$} > > \stoptext > there is no lfg file for it but if you just want a bolder latin modern > you can also do this (there is an old bachotex presentation about it > somewhere): > > \setupbodyfont[modernlatin] > > \starttext > $\alpha'$ > \stoptext > > Hans > > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ type-imp-newcomputermodern.mkiv Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] Math prime issues for some fonts
Hi Jack, I've been working with Hans on math in general and primes in particular in the last week. I do not understand all the details, but I think primes are handled differently now, and that one essentially need to have some tuning in goodie files (the reason is that they are done differently in different fonts, and that there was not simple one-fits-all solution). We have not touched eulernova yet. In any case, if you replace euler-math.lfg and type-imp-euler.mkiv in ConTeXt-lmtx/tex/texmf-context/tex/context/fonts/mkiv/ with the attached files, I think at least the primes should look OK (you could experiment with the values in euler-math.lfg). The sample file \setupbodyfont[eulernova] \starttext \m{x'(t)f'(x)f''(x)e^{f'(x)}} \stoptext looks OK here. /Mikael On Fri, Nov 26, 2021 at 7:54 PM Jack Hill via ntg-context wrote: > > On Fri, 26 Nov 2021 at 17:39, Wolfgang Schuster > wrote: > > > > Jack Hill via ntg-context schrieb am 26.11.2021 um 18:18: > > > Hi list, > > > > > > When I run this test code > > > > > > \definefontfamily[trm][math][tex gyre termes math] > > > \definefontfamily[pag][math][tex gyre pagella math] > > > \definefontfamily[bon][math][tex gyre bonum math] > > > \definefontfamily[sch][math][tex gyre schola math] > > > \definefontfamily[stx][math][stix two math] > > > \starttext > > > \starttabulate[|c|c|] > > > \FL > > > \NC \bf Font name \NC \bf Math prime \NR > > > \ML > > > \NC Latin modern \NC \m{x'} \NR > > > \NC Termes \NC \switchtobodyfont[trm] \m{x'} \NR > > > \NC Pagella \NC \switchtobodyfont[pag] \m{x'} \NR > > > \NC Bonum \NC \switchtobodyfont[bon] \m{x'} \NR > > > \NC Schola \NC \switchtobodyfont[sch] \m{x'} \NR > > > \NC Stix \NC \switchtobodyfont[stx] \m{x'} \NR > > > \BL > > > \stoptabulate > > > \stoptext > > > > > > on my machine, the prime symbols are being placed too high (except for > > > latin modern which is normal). > > > Running the same code on the wiki gives the correct output though. > > > Does anyone else get the same output? Screenshot attached. > > > > Use \definetypeface to load/set the math fonts. > > > > \starttext > > > > \starttabulate[|l|c|] > > \FL > > \BC Font name \BC Math prime\NC\NR > > \ML > > \NC Latin Modern Roman \NC\m{x'} \NC\NR > > \NC TeX Gyre Termes\NC \switchtobodyfont[termes] \m{x'} \NC\NR > > \NC TeX Gyre Pagella \NC \switchtobodyfont[pagella] \m{x'} \NC\NR > > \NC TeX Gyre Bonum \NC \switchtobodyfont[bonum] \m{x'} \NC\NR > > \NC TeX Gyre Schola\NC \switchtobodyfont[schola] \m{x'} \NC\NR > > \NC STIX Two \NC \switchtobodyfont[stixtwo] \m{x'} \NC\NR > > \BL > > \stoptabulate > > > > \stoptext > > > > Wolfgang > > Thanks, \definetypeface fixes it. Should I not be using \definefontfamily? > I've just checked eulernova and the prime is still too high for this font. > > \switchtobodyfont[eulernova] > \starttext > \m{x'} > \stoptext > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ euler-math.lfg Description: Binary data type-imp-euler.mkiv Description: Binary data ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] upload
On Fri, Oct 22, 2021 at 9:22 AM Hans Hagen wrote: > > On 10/21/2021 10:31 PM, Mikael Sundqvist via ntg-context wrote: > > > It works very nicely. I played with the test file you sent me, and I > > find that in the .lfg file, the up parameter set to 0.06 instead of > > 0.1 looks better to me. > there are no ssty's for the quadruple prime in that font but if you need > primes so badly you probably shouldn't use it anyway i guess (there are > only super-textsize ssty variants for the 1/2/3 and their reverse) > > anyway, as you desperately need these quads (why check otherwise), > adding this to the lfg blob helps: > > local four = characters[0x2057] > if four then > local one = characters[okay] > local owd = .75*one.width > local off = .6*one.height > four.width = 4*owd > four.commands = { > { "offset", 0, off, okay }, > { "offset", owd, off, okay }, > { "offset", 2*owd, off, okay }, > { "offset", 3*owd, off, okay }, > } > else > -- we don't add (but we could), just patch, and there's no > -- reverse quad either > end > > and no one will notice (unless you wikify al this) > > Hans > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - Hi! As I wrote, I do not use the quadruple primes (I used your file), but I must confess that I'm impressed that you fix it so quickly. :) In any case, a big thank you for fixing the primes in the libertinus font!! /Mikael ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
Re: [NTG-context] upload
On Thu, Oct 21, 2021 at 8:04 PM Hans Hagen via ntg-context wrote: > > Hi, > > I cleaned up some more backend code. There were some mails about dates > and such and although the date field in setupinteraction works ok a more > drastic overload is doen with directives. The reason is that the fact > that we can set the date (and traler) is only because it permits > generating pdf files that can be compared. No date as a bad idea anyway. > > \setupinteraction[title=My Title] > % \enabledirectives[backend.date=2034-06-07] > \enabledirectives[backend.date=no] > \enabledirectives[backend.trailerid=no] > \starttext > > \startTEXpage > \blackrule[height=1cm,depth=0cm,width=4cm,color=darkred] > \stopTEXpage > > (there always were command line options for it) > > More interesting is asome new experimental code: > > \starttext > > \dostepwiserecurse{40}{110}{2}{ > \startTEXpage[offset=4mm,width=#1mm,align={stretch,normal,tolerant}] > \showmakeup[penalty]% > \orphanpenalties 4 4000 3000 2000 1000\relax > \updateparagraphpenalties > \samplefile{tufte} > \par > \stopTEXpage > } > > \stoptext > > it's an addendum to the widowpenalties and clubpenalties introduced by > etex but this time it's horizontal; the orphan penalties will be > inserted before spaces (aka spaceskip, xspaceskip and zerospaceskip > glue) so in this case 4000 between the last two 'words' and this > trickery can be used to make sure that the last line is not too short > > \orphanpenalties 4 4000 3000 -12000 1000\relax > > is also intereting > > it's work in progress (i need to play more with it and figure out nice > values for context) .. there might be more such 'simple' useful tricks > > Mikael: you can test the math cheat (doesn't make the font nicer). > Pablo : transparencies should work again (wrong alias fixed). > Michal: you can check the dates (as for sure i messed up something). > > Hans > > - >Hans Hagen | PRAGMA ADE >Ridderstraat 27 | 8061 GH Hasselt | The Netherlands > tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl > - > ___ > If your question is of interest to others as well, please add an entry to the > Wiki! > > maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > ___ Hi! Thank you Hans for the very quick fix on the libertinus font! It works very nicely. I played with the test file you sent me, and I find that in the .lfg file, the up parameter set to 0.06 instead of 0.1 looks better to me. /Mikael PS I do not use them, but I noticed that the quadruple prime f still uses small primes. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___
[NTG-context] Add ssty to libertinus
Hi, looking at the output of \setupbodyfont[libertinus] %\setupmathematics[stylealternative={ssty}] \starttext %\addff{ssty} $y'=f'$ \switchtobodyfont[newcomputermodern-book] $y'=f'$ \stoptext I think that the primes in libertinus are too small. Indeed, looking in the font, they look like the output. In lualatex* I get larger primes, and as far as I understand it is because unicode-math enables ssty. I was not able to do so with \addff{ssty} or with \setupmathematics[stylealternative={ssty}]. What do I miss? Best regards, Mikael *The file I used in lualatex was this: \documentclass{article} \usepackage{fontspec} \usepackage{unicode-math} \setmathfont{LibertinusMath-Regular.otf} \begin{document} $u'f'$ \end{document} ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://context.aanhet.net archive : https://bitbucket.org/phg/context-mirror/commits/ wiki : http://contextgarden.net ___