[NTG-context] mathalign: specifying distance with glue
Hi, amsmath provides an environment `flalign` that flushes the "block" for display math. See page 6 (pdf page 27) of my article on display math in context (https://www.ntg.nl/maps/34/06.pdf) for an example. As shown in that article, I could achieve the same behavior in context mathalign by using distance=2em plus 1fil. However, on a recent context, the glue gets ignored. \starttext \startformula \startmathalignment[m=2,distance=2em plus 1 filll]%Notice distance=... \NC \nabla\cdot \bf E \NC= \frac{\rho}{\varepsilon_0}, \NC \nabla\times \bf E \NC= -\frac{\partial \bf B}{\partial t}, \NR \NC \nabla\cdot \bf B \NC= 0, \NC \nabla\times \bf B \NC= \mu_0{\bf j}+\varepsilon_0\mu_0 \frac{\partial \bf E}{\partial t}. \NR \stopmathalignment \stopformula \stoptext Looking at math-ali, I cannot figure out why that is happening. Aditya ___ 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] Text on curves
I have been trying to typeset text onto curves and have been successful with the help of the MetaFun manual, and the followtext command which I saw in some correspondence between dr Hans van der Meer and Hans Hagen on the mailing list in January this year ( the subject was Double Follow Tokens). The followtext command seems to used for a simple line of text and if I increase the number of words in the line the font size is reduced to make it fit to the length of the curve (see MWE below). I would like to typeset complete paragraphs on the curve(s) and the only way I see of doing this without the font size changing is to manually create each line separately. Is their a way where this can be done by MetaFun automatically rather than manually? It would be really nice if I could create a number of curves and then MetaFun typsets a paragraph of text on to them. Also, can other options be used with followtext e.g. \input file? I'm a complete novice with MetaFun so any advice appreciated. Best Wishes Keith McKay Minimum Working Example \starttext Two different lengths of text on the same curve showing font size being reduced. \blank \startMPcode path q; q := function (1, "x", "sin(2x)" , 1, 10, .01) scaled 1.5cm ; draw followtext(q, "some text but not that long. But here and there and everywhere the text can become longer"); draw followtext (q shifted (0cm,-2cm), "some text but not that long. But here and there and everywhere the text can become longer and longer and longer finally ending here."); \stopMPcode Some other examples of text on a curve \blank \startMPcode path p; p := reverse halfcircle xyscaled 55mm ; draw followtext(p, "some text but not that long"); \stopMPcode nice spiral shape with text \startMPcode z0 = (0,0); z1 = (60,40); z2 = (40,90); z3 = (10,70); z4 = (30,50); path p; p = (z0..z1..z2..z3..z4) ; draw followtext(p scaled 1mm, "some text but not that long. But here and there and everywhere the text can become longer"); \stopMPcode \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] preparing math exams
Hi, Le 23 avril 2019 à 11:10:11, Gour (g...@atmarama.com) a écrit: Hello, For regular formulas involving e.g. rational numbers, I'm sure that input language for math is quite sufficient, but wonder about drawing part? Metapost (Metafun) is your best friend here. You can insert directly in context some MetaFun code, like this: \starttext Lorem Ipsum… \startMPcode draw ( (0,0) — (1,0) — (0,1)) with color red ; \stopMPcode \stoptext Look at this entry in the wiki: https://wiki.contextgarden.net/MetaPost_in_ConTeXt Also, you will find a link to the meta fun manual in this page, this a good place to start ! 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 ___
[NTG-context] preparing math exams
Hello, I wonder what would be recommended way to prepare math exams for primary school (e.g. 5th to 8th grade) which involves drawing lines, segments, angles, polygons, circles, drawing functions etc.? For regular formulas involving e.g. rational numbers, I'm sure that input language for math is quite sufficient, but wonder about drawing part? Sincerely, Gour -- A person who is not disturbed by the incessant flow of desires — that enter like rivers into the ocean, which is ever being filled but is always still — can alone achieve peace, and not the man who strives to satisfy such desires. ___ 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] Formula number misplaced
On Tue, 23 Apr 2019, Mikael P. Sundqvist wrote: Yes, but it can also appear when not using TEXpage. When I tried out lmtx on a large file (not using TEXpage), it was there. I was not able to reproduce on a smaller file, though. I could give it another try, if necessary. An example will be useful. Aditya ___ 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] Formula number misplaced
Den tis 23 apr. 2019 14:46Aditya Mahajan skrev: > On Tue, 23 Apr 2019, Henri Menke wrote: > > > > > Dear list, > > > > The problem I describe does not make itself apparent in all situations, > > but sometimes the formula number, which is placed by > > \start...\stopplaceformula, is misplaced and there appears a gap between > > it and the right margin. The MWE below reproduces the problem in the > > latest beta and lmtx. It can be "fixed", however, by replacing > > \start...\stopTEXpage by \start...\stoptext, so this might not represent > > the most generic incarnation. > > This can be "fixed" by specifying a width for TEXpage. > > Aditya > > ___ > 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 > > ___ > Yes, but it can also appear when not using TEXpage. When I tried out lmtx on a large file (not using TEXpage), it was there. I was not able to reproduce on a smaller file, though. I could give it another try, if necessary. /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] Formula number misplaced
On Tue, 23 Apr 2019, Henri Menke wrote: Dear list, The problem I describe does not make itself apparent in all situations, but sometimes the formula number, which is placed by \start...\stopplaceformula, is misplaced and there appears a gap between it and the right margin. The MWE below reproduces the problem in the latest beta and lmtx. It can be "fixed", however, by replacing \start...\stopTEXpage by \start...\stoptext, so this might not represent the most generic incarnation. This can be "fixed" by specifying a width for TEXpage. Aditya ___ 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] Formula number misplaced
Dear list, The problem I describe does not make itself apparent in all situations, but sometimes the formula number, which is placed by \start...\stopplaceformula, is misplaced and there appears a gap between it and the right margin. The MWE below reproduces the problem in the latest beta and lmtx. It can be "fixed", however, by replacing \start...\stopTEXpage by \start...\stoptext, so this might not represent the most generic incarnation. Cheers, Henri --- \startTEXpage \samplefile{ward} Thus \startplaceformula \startformula \int_a^b f(x) \, \diff x = F(b) - F(a) . \stopformula \stopplaceformula \stopTEXpage ___ 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 ___