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

2020-05-04 Thread context
Hello Hans, On 2020-05-04 09:31, Hans Hagen wrote: On 5/4/2020 8:47 AM, cont...@vivaldi.net wrote: Hello, compare placing "3" in the following examples: \starttext   $\sqrt[3]{5}$ % (1)   \par   $\sqrt[3~]{5}$ % (2) \stoptext In the first case, the "3"

[NTG-context] Placing number in \sqrt

2020-05-04 Thread context
Hello, compare placing "3" in the following examples: \starttext $\sqrt[3]{5}$ % (1) \par $\sqrt[3~]{5}$ % (2) \stoptext In the first case, the "3" is placed naturally by ConTeXt and placed more in the centre of "V" part of the square sign.

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

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

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

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

Re: [NTG-context] animation using \startuseMPgraphic

2020-04-19 Thread Hans Hagen
time and it is not inefficient. In what sense? Runtime? Even moving the definitions doesn't really save cpu cycles. MP runtime is normally not the bottleneck in a run. \startMPextensions vardef findPointD(expr C, Q, r) = numeric dist, ang; pair X, Y; dist := r**2/sqrt((xpart Q

Re: [NTG-context] animation using \startuseMPgraphic

2020-04-19 Thread Jeong Dal
. Is there a way to draw the base figure once, and draw the points only at each frame? Thank you. Best regards, Dalyoung \startuseMPgraphic{inversionPoint}{n} vardef findPointD(expr C, Q, r) = numeric dist, ang; pair X, Y; dist := r**2/sqrt((xpart Q - xpart C)**2 + (ypart Q - ypart C)**2

Re: [NTG-context] animation using \startuseMPgraphic

2020-04-19 Thread Aditya Mahajan
\startuseMPgraphic{inversionPoint}{n} vardef findPointD(expr C, Q, r) = numeric dist, ang; pair X, Y; dist := r**2/sqrt((xpart Q - xpart C)**2 + (ypart Q - ypart C)**2); ang := angle(Q - C); Y := C + dir(ang)*dist; Y enddef; numeric radius, now, move; pair A,B,C,P,Q; path p,q; radius

[NTG-context] animation using \startuseMPgraphic

2020-04-18 Thread Jeong Dal
findPointD(expr C, Q, r) = numeric dist, ang; pair X, Y; dist := r**2/sqrt((xpart Q - xpart C)**2 + (ypart Q - ypart C)**2); ang := angle(Q - C); Y := C + dir(ang)*dist; Y enddef; numeric radius, now, move; pair A,B,C,P,Q; path p,q; radius := 2cm; C := origin; p

Re: [NTG-context] [DKIM Failure] Re: getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-02-01 Thread r . ermers
What you probably mean is that Swedish, German, Dutch and English are Indo-European Germanic languages which have much in common. This cannot be expressed in terms of blends, products or square roots from one another. What they do have is a common root, like \sqrt(indo-european) $x$ w

Re: [NTG-context] [DKIM Failure] Re: getting ConTeXt results back to Lua (for typesetting solutions at end of document)

2019-02-01 Thread Sanjoy Mahajan
On 2019-02-01 07:58, "Mikael P. Sundqvist" wrote: > this is what I learned from the list to use. I'm sorry, but the names > sound a bit Swedish, but I'm sure you can change that. The Swedish is not a problem. Swedish, like Dutch, seems to be (English + German)/2. Or sqr

Re: [NTG-context] graphics

2018-12-08 Thread Mikael P. Sundqvist
; I have generalized my rewrite of the MP graph macros to handle any > arbitrary mapping from data space to drawing (2D) space. At present, I > have only considered the simple functions of log (and sqrt) scales as > well as polar coordinates (x,y) = f(theta,r) with f(theta,r) = (r sin >

Re: [NTG-context] graphics

2018-12-07 Thread Alan Braslau
ng (2D) space. At present, I have only considered the simple functions of log (and sqrt) scales as well as polar coordinates (x,y) = f(theta,r) with f(theta,r) = (r sin theta, r cos theta) as I have real use cases for these. I also consider a simple 3D->2D mapping. It would be very ea

[NTG-context] Asymptote and Context

2018-04-19 Thread Context NTG
raw((-.1,0) -- (2,0), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow=Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); \stopASY \stopplacefigure \stoptext ___ If your question is of interest to others as well,

Re: [NTG-context] Strange behavior with itemize

2017-12-18 Thread Fabrice Couvreur
k >> \startitemize[a,columns,three,joinedup][grid=line] >> \item \math{f(-0,5)} et \math{f(0,5)} ;\par >> \item \math{f(-1)} et \math{f(2)} ;\par >> \item \math{f(-2)} et \math{f(\sqrt{2})}.\par >> \stopitemize >> >> \stopitemize >> >> \stop

Re: [NTG-context] Strange behavior with itemize

2017-12-17 Thread Hans Hagen
images : \blank \startitemize[a,columns,three,joinedup][grid=line] \item \math{f(-0,5)} et \math{f(0,5)} ;\par \item \math{f(-1)} et \math{f(2)} ;\par \item \math{f(-2)} et \math{f(\sqrt{2})}.\par \stopitemize \stopitemize \stoptext you can experiment with \setupitemgroup [\c!grid=\v!tolerant:10

[NTG-context] Strange behavior with itemize

2017-12-16 Thread Fabrice Couvreur
][grid=line] \item \math{f(-0,5)} et \math{f(0,5)} ;\par \item \math{f(-1)} et \math{f(2)} ;\par \item \math{f(-2)} et \math{f(\sqrt{2})}.\par \stopitemize \stopitemize \stoptext ___ If your question is of interest

Re: [NTG-context] substituting characters in math font

2017-10-27 Thread Henning Hraban Ramm
Fabcdef}\NC\m{\red ΑΒΓΔΕΘαβγδεθ}\NC\NR \NC italic: \NC \emph{ABCDEFabcdef}\NC\emph{ΑΒΓΔΕΘαβγδεθ}\NC\NR \NC \NC \NC \NC\NR \NC Greek theta: \NC\NC \emph{θ}\NC\NR \stoptabulate \m{\sqrt{34y\frac{12\alpha^2}{98.0 x_2}}Δθ} \m{{{sin^2 α + cos^2 β}\over{2}} = \frac{1}{2}} \showbodyfont \stoptext

[NTG-context] MnSymbol vectors and goodie file

2017-08-21 Thread Никола Милинковић
ons. MnSymbol font consists of following files in several design sizes: - MnSymbolA*.tfm - arrows - MnSymbolB*.tfm - negated (stroked) arrows - MnSymbolC*.tfm - binary operators - MnSymbolD*.tfm - relations - MnSymbolE*.tfm - brackets, braces, parens, sqrt, overbrace, widehat,... - MnSymbolF*.tfm -

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Hans Hagen
On 6/7/2017 5:12 PM, Otared Kavian wrote: Hi, Indeed using \frac yields a weird result in the example sent by Mikael. Compare the output of the three formulas below, with or without \setupmathradical[sqrt][alternative=default]. The results are correct using \over in both cases, while

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Otared Kavian
Hi, Indeed using \frac yields a weird result in the example sent by Mikael. Compare the output of the three formulas below, with or without \setupmathradical[sqrt][alternative=default]. The results are correct using \over in both cases, while the first one is weird when using \frac

Re: [NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-07 Thread Mikael P. Sundqvist
them). > > /Mikael > > \setupbodyfont[lucidaot] > > \starttext > > \startTEXpage[offset=2pt] > \startformula > \sqrt{1+x^2}\neq \frac{1}{\sqrt{1+x^2}} > \stopformula > > %the default setting for mathradical seems to be "normal". We change > it to "normal&qu

[NTG-context] mathradical defaults to "normal", should it perhaps be "default"?

2017-06-05 Thread Mikael P. Sundqvist
hat normal should mean, but I think the alternative=default looks better. (The lucida fonts are loaded in this example, since the effect is more clear for them). /Mikael \setupbodyfont[lucidaot] \starttext \startTEXpage[offset=2pt] \startformula \sqrt{1+x^2}\neq \frac{1}{\sqrt{1+x^2}} \s

[NTG-context] Cambria typescript and Math problem

2017-03-29 Thread Henning Hraban Ramm
cript from the distribution work for anyone? MnWE: \usetypescriptfile[type-imp-cambria] \setupbodyfont[cambria,rm,10pt] \starttext This is Cambria {\it italic} {\bf bold} {\bi bold italic} and some \m{\sqrt{123}^4/5 math}. \stoptext This example also fails with a math error:

Re: [NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Fabrice Couvreur
Hi Michael, Thanks, it's ok. Fabrice 2017-02-02 22:02 GMT+01:00 Rogers, Michael K <mrog...@emory.edu>: > This seems to work in place of 0.866cm: sqrt(3)/2*cm > > Michael > > On Feb 2, 2017, at 3:54 PM, Fabrice Couvreur <fabrice1.couvr...@gmail.com> > wrote: > >

Re: [NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Rogers, Michael K
This seems to work in place of 0.866cm: sqrt(3)/2*cm Michael On Feb 2, 2017, at 3:54 PM, Fabrice Couvreur <fabrice1.couvr...@gmail.com<mailto:fabrice1.couvr...@gmail.com>> wrote: Hello, I wanted to use sqrt(3)/2 but without success. Instead, I replaced this value with an appro

[NTG-context] sqrt(3)/2 with metafun

2017-02-02 Thread Fabrice Couvreur
Hello, I wanted to use sqrt(3)/2 but without success. Instead, I replaced this value with an approximate value 0.866 How should it be done ? Thank you Fabrice \starttext \startMPcode draw fullcircle scaled 1cm withcolor magenta ; draw fullcircle scaled 1cm shifted (1cm,0) withcolor

Re: [NTG-context] Example of Equivalent of Beamer with \onslide

2016-10-22 Thread Aditya Mahajan
\startformula \frac{ \ONLY 1 \phantom {-b \ONLY 2 \phantom {{}\pm \sqrt{b^2 - 4ac}} }} { 2a } \stopformula \StopStepping \stoptext gives the attached pdf file. If you want to use them to step through math, then it may be better to create a wrapper around \ONLY n \phantom to save some typing

Re: [NTG-context] Example of Equivalent of Beamer with \onslide

2016-10-22 Thread B.A.Lee
\pm\sqrt{b^{2}-4ac \FlushStep }}{\FlushStep 2a} \FlushStep \stopformula \StopSteps \stoptext I have looked around for more information on that module and related commands I could try but in vain. I was hoping I could figure things out and not need to bug you folks so

[NTG-context] Question about natural tables

2016-10-09 Thread Fabrice Couvreur
\bTD Cas où \math{a\leqslant 0} \eTD \eTR \bTR \bTD\math{\Delta >0} \eTD \bTD admet deux solutions distinctes : \startformula x_1=\frac{-b-\sqrt{\Delta}}{2a}\quad \rm{et} \quad x_2=\frac{-b+\sqrt{\Delta}}

Re: [NTG-context] prevent indent after usage of defined itemgroup

2016-10-03 Thread Otared Kavian
kael > > just a note and a small follow-up question. The \noindent implied a > problem if the \startabc \stopabc was inside another itemize (which it > usually is, since it is a) b) c) exercises), since then the space > specified in after= in both environments added up. The solution was to > use

Re: [NTG-context] prevent indent after usage of defined itemgroup

2016-10-03 Thread Mikael P. Sundqvist
is a) b) c) exercises), since then the space specified in after= in both environments added up. The solution was to use \noindentation instead of \noindent. I don't know why, though. The small problem: In the file below, the text below is too close to the integrals (this only happens if o

Re: [NTG-context] align text and formula

2016-08-25 Thread Henri Menke
ce what you are after. >> >> \starttext >> >> \startformula >> E = mc^2 >> \stopformula >> >> \startformula >> \startalign[m=3,align={middle},distance=0pt plus 1 fil] >>\NC \rlap{\text{Text1}}\NC\NC E=mc^2 \NR >>

Re: [NTG-context] align text and formula

2016-08-25 Thread Jan Willem Flamma
}\NC\NC E=mc^2 \NR >\NC \rlap{\text{This is an explanation}} \NC\NC > E=\sqrt{p^2c^2+m^2c^4} \NR >\NC \rlap{\text{This is a longer explanation}} \NC\NC \left(\beta > mc^2+c\left(\sum _{n=1}^3 \alpha_n p_n \right)\right) \psi(x,t) = i \hbar > \fra

Re: [NTG-context] align text and formula

2016-08-25 Thread Henri Menke
{This is an explanation}} \NC\NC E=\sqrt{p^2c^2+m^2c^4} \NR \NC \rlap{\text{This is a longer explanation}} \NC\NC \left(\beta mc^2+c\left(\sum _{n=1}^3 \alpha_n p_n \right)\right) \psi(x,t) = i \hbar \frac{\partial \psi(x,t)}{\partial t} \NR \stopalign \stopformula \stoptext The inner

Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-13 Thread Hans Hagen
ke √ U+221A for \sqrt. If you want, you can collect such mappings in a separate module. That would be a good idea if it should become a part of a ConTeXt distribution. I could not make your code working - does it require a later LuaTex version (than 0.80.0)? Here is a complete work

Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-13 Thread Hans Åberg
> On 13 May 2016, at 17:51, Aditya Mahajan <adit...@umich.edu> wrote: > > On Fri, 13 May 2016, Hans Åberg wrote: > >> There may not be so many symbols: the “large operators" in the Tex Book, p. >> 435, though Unicode have more, and some others like √ U+221A f

Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-13 Thread Aditya Mahajan
On Fri, 13 May 2016, Hans Åberg wrote: There may not be so many symbols: the “large operators" in the Tex Book, p. 435, though Unicode have more, and some others like √ U+221A for \sqrt. If you want, you can collect such mappings in a separate module. I could not make your code wo

Re: [NTG-context] Nolimits not working with Unicode characters

2016-05-13 Thread Hans Åberg
ruct' (tex often has many > commands for the same symbol doing different things) Currently, there is a problem with the lack of efficient Unicode input methods: symbol table and copy-paste are slow. But perhaps in the future, more might want to use it. There may not be so man

[NTG-context] Bug in table ?

2015-12-20 Thread Christian Prim
] \startxrow \startxcell[width=5cm] \m{\displaystyle \gamma=\frac{1}{\sqrt{1-\left (\frac{v}{c}\right )^2}}}\stopxcell \startxcell[width=4cm] Reaktionsprinzip\stopxcell \stopxrow \stopxtable \stoptext \gamma isn't aligned with the text "Reaktionsprinzip". Please tell me what I have

Re: [NTG-context] Changing font for math function

2015-05-12 Thread Aditya Mahajan
the `d` in calculus should be typeset. There are also \differentiald and \differentialD that map to unicode slots. \definemathcommand[arsinh][nolop]{\mathlabel{arsinh}} \starttext $\arsinh z = \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par $\rho_{\mathlabel{air}} = \frac{p}{R_{\mathlabel{specific}}T

Re: [NTG-context] Changing font for math function

2015-05-12 Thread Hans Hagen
and consistent way to label its math objets (functions and variables with subscripts): \definemathcommand[arsinh][nolop]{\mathlabel{arsinh}} \starttext $\arsinh z = \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par $\rho_{\mathlabel{air}} = \frac{p}{R_{\mathlabel{specific}}T}$\par \stoptext Hans Hagen wrote

[NTG-context] Changing font for math function

2015-05-12 Thread Maggyero
{}} With this new \mathlabel command, the user now have a convenient and consistent way to label its math objets (functions and variables with subscripts): \definemathcommand[arsinh][nolop]{\mathlabel{arsinh}} \starttext $\arsinh z = \ln\bigl(z + \sqrt{z^2 + 1}\bigr)$\par $\rho_{\mathlabel{air

[NTG-context] setupformulas options (or defineformula) and effort to reduce the font in math formulas

2015-03-10 Thread Jaroslav Hajtmar
\rightarrow-2^{\mp}}{\arctan\frac{x}{2+x}}=\pm\frac{\pi}{2} \stopformula \startformula f':\;y' = \frac{\sqrt{3}(1+x^2)}{(1-x^2)^2+3x^2} \stopformula \startformula \lim\limits_{x\rightarrow 1^{\mp}}{\frac{x^2+1}{x-1}}=\mp\infty \stopformula \Startsmallformula \lim\limits_{x\rightarrow-2^{\mp

Re: [NTG-context] Asymptote in Context

2015-01-19 Thread Aditya Mahajan
On Fri, 2 Jan 2015, Context NTG wrote: Here is an Asymptote example unitsize(1cm); draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow = Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); Below is how I have started setting this up in Context. This creates a pdf

Re: [NTG-context] Asymptote in Context

2015-01-02 Thread Context NTG
Here is an Asymptote example unitsize(1cm); draw((-.1,0) -- (2,0), arrow=Arrow(TeXHead)); draw((0,-.1) -- (0,2), arrow = Arrow(TeXHead)); draw((0,0) .. (1,1) .. (2,sqrt(2))); Below is how I have started setting this up in Context. This creates a pdf file with the drawing, but it is not included

[NTG-context] typesetting math—two queries

2014-12-23 Thread Alan Bowen
placerat eleifend leo. \quote{$y=\sqrt{6}+\sqrt{26}$}. The \quote{$\sqrt{2x}$} Mauris placerat eleifend leo. \quote{$\sqrt{2}x$}. Mauris placerat eleifend leo.\quote{$\sqrt{12}$}Mauris placerat eleifend leo. \quote{$\sqrt{1/2}$}. Mauris placerat eleifend leo. \quote{$x=-{1/2}-\sqrt{1/ 8}+\sqrt{{3/8

Re: [NTG-context] Stopper and itemize

2014-10-14 Thread Mikael P. Sundqvist
___ Hi, what about \starttext \startitemize[columns,a,joinedup][stopper=)] \item $f(0)$ \item $g(0,3)$ \item $f(\sqrt 2)$ \item $g(-4)$ \stopitemize \stoptext /Mikael

[NTG-context] (no subject)

2014-10-13 Thread Fabrice Couvreur
hi, In the following code, the default stopper is the point. \starttext \startitemize[columns,a,joinedup] \item $f(0)$ \item $g(0,3)$ \item $f(\sqrt 2)$ \item $g(-4)$ \stopitemize \stoptext How to have a break ? Best regards, Fabrice

[NTG-context] Stopper and itemize

2014-10-13 Thread Fabrice Couvreur
hi, In the following code, the default stopper is the point. \starttext \startitemize[columns,a,joinedup] \item $f(0)$ \item $g(0,3)$ \item $f(\sqrt 2)$ \item $g(-4)$ \stopitemize \stoptext How to have a break ? Best regards, Fabrice

Re: [NTG-context] Stopper and itemize

2014-10-13 Thread Otared Kavian
What do you mean by a « break »? On 14 Oct 2014, at 02:24, Fabrice Couvreur fabrice1.couvr...@gmail.com wrote: hi, In the following code, the default stopper is the point. \starttext \startitemize[columns,a,joinedup] \item $f(0)$ \item $g(0,3)$ \item $f(\sqrt 2)$ \item $g(-4

Re: [NTG-context] Possibly bug: misalignment with matrix

2014-10-12 Thread Xan
, sense desenvolupar, que els determinants següents són nuls: \startitemize[a] \item $\startdet[n=3] \NC -\sqrt{3} \NC 3 \NR \NC 5 \NC -\sqrt{3}\cdot 5 \NR \stopdet$ \item $\startdet[n=3] \NC 2 \NC 1 \NC 3 \NR \NC 1 \NC 0 \NC 1 \NR \NC -3 \NC 2 \NC -1 \NR \stopdet$ \stopitemize \stoptext matrix2

Re: [NTG-context] frac and tfrac with sqrt

2014-10-09 Thread Keith J. Schultz
Am 07.10.2014 um 09:20 schrieb Hans Hagen pra...@wxs.nl: On 10/7/2014 7:33 AM, Mikael P. Sundqvist wrote: On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \setupmathradical[alternative=default] Very good! Hans, will the default be default in next

Re: [NTG-context] frac and tfrac with sqrt

2014-10-07 Thread Hans Hagen
On 10/7/2014 7:33 AM, Mikael P. Sundqvist wrote: On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \setupmathradical[alternative=default] Very good! Hans, will the default be default in next beta? :) no, but there will be different settings ... the

Re: [NTG-context] frac and tfrac with sqrt

2014-10-06 Thread Mikael P. Sundqvist
On Fri, Oct 3, 2014 at 1:30 PM, Mikael P. Sundqvist mic...@gmail.com wrote: Hi! Is this (see frac.pdf) the expected output of \frac and \tfrac in combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac. I attach also the output from the corresponding latex document, having

Re: [NTG-context] frac and tfrac with sqrt

2014-10-06 Thread Aditya Mahajan
On Mon, 6 Oct 2014, Mikael P. Sundqvist wrote: On Fri, Oct 3, 2014 at 1:30 PM, Mikael P. Sundqvist mic...@gmail.com wrote: Hi! Is this (see frac.pdf) the expected output of \frac and \tfrac in combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac. I attach also the output from

Re: [NTG-context] frac and tfrac with sqrt

2014-10-06 Thread Mikael P. Sundqvist
On Mon, Oct 6, 2014 at 11:32 PM, Wolfgang Schuster schuster.wolfg...@gmail.com wrote: \setupmathradical[alternative=default] Very good! Hans, will the default be default in next beta? :) Best regards, Mikael ___ If

[NTG-context] frac and tfrac with sqrt

2014-10-03 Thread Mikael P. Sundqvist
Hi! Is this (see frac.pdf) the expected output of \frac and \tfrac in combination with \sqrt? To me the \sqrt{3} looks too big in \tfrac. I attach also the output from the corresponding latex document, having the result I expect. Best regards, Mikael PS Compilation done with latest standalone

[NTG-context] Change linewidth of a table

2014-09-17 Thread Fabrice Couvreur
=table:initialize] \bTR \bTD \eTD \bTD $\sqrt{25}$ \eTD \bTD \eTD \bTD Partie entière de $\pi$ \eTD \bTD \eTD \bTD $\frac{48}{8}$ \eTD \bTD \eTD \bTD \eTD \bTD 5 augmenté de 40\,\% \eTD \eTR \bTR

Re: [NTG-context] running PlainTeX from beta

2014-07-11 Thread Otared Kavian
-plaintex.tex This is intended to test Plain \TeX\ from the ConTeXt stand-alone. An elementary identity: $(a + b)^2 = a^2 + 2ab + b^2$. And a well-known identity due to Leonhard Euler in which the five most important numbers appear: $$ {\rm e}^{{\rm i}\pi} + 1 = 0, \qquad \hbox{where }\; {\rm i} := \sqrt{-1

Re: [NTG-context] running PlainTeX from beta

2014-07-11 Thread Hans Hagen
, \qquad \hbox{where }\; {\rm i} := \sqrt{-1}. $$ \bye %%% end test-plaintex.tex Saying in the Terminal: mtxrun --script plain basic-plaintex.tex results in mtx-plain | running command 'luatex --fmt=luatex-plain basic-plaintex.tex »’ This is LuaTeX, Version beta-0.79.1 (TeX

[NTG-context] Tagged PDF - Math

2014-05-30 Thread Christoph Reller
root results in an empty dictionary key with corresponding value \Span. A minimal example is: \setuptagging[state=start] \starttext \startformula \sqrt{A} \stopformula \stoptext 2. Structure element contains index of type real number: According to the PDF Reference V 1.7 (see Table 10.10) a structure

Re: [NTG-context] Tagged PDF - Math

2014-05-30 Thread Hans Hagen
to a corrupt RoleMap, e.g., the usage of a square root results in an empty dictionary key with corresponding value \Span. A minimal example is: \setuptagging[state=start] \starttext \startformula \sqrt{A} \stopformula \stoptext 2. Structure element contains index of type real number: According

Re: [NTG-context] numerator is too high in \frac{3}{4}, in palatino

2014-05-17 Thread Sanjoy Mahajan
. However, the settings don't seem to affect fractions inside square roots. Here's an example (the 20pt setting is to exaggerate the possible effect), using 2014.05.17 beta. \starttext \placeformula\startformula \dfrac{ag}{bcd}\quad{ag\over bcd} \stopformula \placeformula\startformula \sqrt{1\over

[NTG-context] LuaTeX-Plain and Inline Math

2014-05-07 Thread Aíre Funvake
Hi, Sorry to be a pain: %%tst01.tex Inline $\sqrt{1.2}$ math. % same for $\root n of x$ \end %% $ luatex --fmt luatex-plain tst01.tex This is LuaTeX, Version beta-0.79.1 (TeX Live 2014/dev) (rev 4972) (format=luatex-plain 2014.5.7) 7 MAY 2014 11:48 \write18 enabled. **tst01.tex 8

Re: [NTG-context] LuaTeX-Plain and Inline Math

2014-05-07 Thread Hans Hagen
On 5/7/2014 7:56 PM, Aíre Funvake wrote: Inline $\sqrt{1.2}$ math. % same for $\root n of x$ \end replace this in luatex-math.tex: \def\sqrt {\Uroot 0 221A{}} \def\root#1\of{\Uroot 0 221A{#1

Re: [NTG-context] LuaTeX-Plain and Inline Math

2014-05-07 Thread Aíre Funvake
On 2014-05-07, 21:32 , Hans Hagen wrote: On 5/7/2014 7:56 PM, Aíre Funvake wrote: Inline $\sqrt{1.2}$ math. % same for $\root n of x$ \end replace this in luatex-math.tex: \def\sqrt {\Uroot 0 221A{}} \def\root#1\of{\Uroot 0 221A{#1}} Worked like a charm, thank you

Re: [NTG-context] \setupmathradical[sqrt] crunches denominator in an \over fraction

2014-04-24 Thread Hans Hagen
On 4/22/2014 1:53 AM, Sanjoy Mahajan wrote: I have been trying out the newish \setupmathradical[sqrt][alternative=mp], which has been very nice because of the fine control over the radical sign. I've noticed that it crunches the denominator in \sqrt{a\over b} For example: \starttext

Re: [NTG-context] \setupmathradical[sqrt] crunches denominator in an \over fraction

2014-04-24 Thread Sanjoy Mahajan
Hans Hagen pra...@wxs.nl writes: indeed. this is what (sort of) happens in case of a plugged in renderer: \sqrt{#1} - ...\mathstylehbox{#1}... - ...\hbox{\stylecommand #1}... when #a = a \over b the style gets applied to the a only as \over creates two (pseudo) groups i.e. the \over

[NTG-context] \setupmathradical[sqrt] crunches denominator in an \over fraction

2014-04-21 Thread Sanjoy Mahajan
I have been trying out the newish \setupmathradical[sqrt][alternative=mp], which has been very nice because of the fine control over the radical sign. I've noticed that it crunches the denominator in \sqrt{a\over b} For example: \starttext \placeformula\startformula \sqrt{k\over m}\quad \sqrt

Re: [NTG-context] another issue with PDF bookmarks

2014-04-15 Thread Hans Hagen
: $\sqrt{123}$ i've made that one also ignore notes (beta coming) concerning the undefined commands (\command) ... ad \let\command\relax to the preamble then ... there is no way we can predict all that and we're in a different catcode regime at that point Hans

[NTG-context] Hat with \widehat is not satisfactory

2014-02-05 Thread Fabrice Couvreur
Dear list, I think the symbol of the angles is too close to the letters. Is it possible to change this ? \enablemode[pxmath] \setupbodyfont[palatino,12pt] \starttext \startformula \sin\widehat{PAM} =\frac{AM}{PA}=\frac{\frac{\sqrt{2}}{4}}{\frac{\sqrt{6}}{2}}=\frac{\sqrt{2}}{4}\times\frac{2}{\sqrt

[NTG-context] A problem with itemize in columns - once again, now with an MWE

2014-01-17 Thread Marcin Borkowski
be thankful.) \setupbodyfont[pagella] \starttext \startitemize[columns,two,packed]% with packed, it's also wrong, but in another way \item abc \item $a^2$ \item xyz \item $\frac12$ \item foo \item bar \item baz \item $\sqrt{2}$% \smash-ing helps, but I'd prefer

Re: [NTG-context] A problem with itemize in columns - once again, now with an MWE

2014-01-17 Thread Wolfgang Schuster
] \endgroup \blank \stopsetups \starttext \startitemize[columns,two,packed][before=\directsetup{itemize:before},after=\directsetup{itemize:after}] \item abc \item \math{a^2} \item xyz \item \math{\frac{1}{2}} \item foo \item bar \item baz \item \math{\sqrt{2}} \item asdf \item qwerty \stopitemize

Re: [NTG-context] A problem with itemize in columns - once again, now with an MWE

2014-01-17 Thread Marcin Borkowski
} \item xyz \item \math{\frac{1}{2}} \item foo \item bar \item baz \item \math{\sqrt{2}} \item asdf \item qwerty \stopitemize \stoptext Thanks a lot! It did help (but only partially, see below). (I've also put it into \setupitemize.) One problem remains, however: it won't work

Re: [NTG-context] vertical square root upstroke (instead of having a slant)

2013-12-02 Thread Hans Hagen
arrangements of variables (that recur often in my book chapter on springs and piano strings). For example, it goes away after changing the \rho to a b. \starttext \startformula \sqrt{Tb^2\over \rho}. \stopformula \stoptext I know that the big math symbols are constructed differently in MkIV and MkII. Does

[NTG-context] \sqrt[a]{b} with a more than one digit

2013-09-23 Thread Xan
Hi, \sqrt[12]{a^{11}} produces me: \sqrt[1]{2} a^{11} What happens there? Xan. ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

Re: [NTG-context] \sqrt[a]{b} with a more than one digit

2013-09-23 Thread Alan Bowen
Try braces about the “12” as in \sqrt{12}{a^{11}} Alan On Mon, Sep 23, 2013 at 3:55 AM, Xan dxpubl...@telefonica.net wrote: Hi, \sqrt[12]{a^{11}} produces me: \sqrt[1]{2} a^{11} What happens there? Xan

Re: [NTG-context] \sqrt[a]{b} with a more than one digit

2013-09-23 Thread Alan Bowen
Xan—I misunderstood. You are right. The latest beta does not allow numerical roots higher than the 9th. Grouping the digits—as in $\sqrt[{12}]{…}$ does not help. Alan On Mon, Sep 23, 2013 at 8:13 AM, Alan Bowen bowenala...@gmail.com wrote: Try braces about the “12” as in \sqrt{12}{a^{11

Re: [NTG-context] \sqrt[a]{b} with a more than one digit

2013-09-23 Thread Hans Hagen
On 9/23/2013 5:43 PM, Alan Bowen wrote: Xan—I misunderstood. You are right. The latest beta does not allow numerical roots higher than the 9th. Grouping the digits—as in $\sqrt[{12}]{…}$ does not help. will be fixed but uploaded next week

Re: [NTG-context] bug? gap appears in columnset

2013-09-17 Thread Hans Hagen
to be *part* of the distance between baselines, rather than an additional distance. But maybe that's not important to the main issue. \starttext \showstruts \strut test \par \strut test \showstruts \strut \ruledhbox{$\sqrt{test}$} \par \strut test \stoptext \lineskip (1pt by default) kicks in when

[NTG-context] \Bigr broken in latest beta

2013-08-17 Thread Pablo Rodríguez
Dear Hans, I‘m afraid that beta from today doesn’t compile what beta from tow days ago compiled. Here is the minimal sample: \starttext \startformula \Bigl(\sqrt{\phi \sqrt{5}}-\phi\Bigr) \stopformula \stoptext Many thanks for your help, Pablo -- http://www.ousia.tk

Re: [NTG-context] Persian digits in math formulas

2013-08-15 Thread Hans Hagen
\start \setupalign[r2l] \setupmathematics[align=r2l] arabic: این یک آزمایش است. \par text: 3+2=5 \par math: $3+2=5$ $\sqrt{3+2=5}$ \par \stop \start \setupalign[l2r] \setupmathematics[align=l2r] latin: This is a test.\par text: 3+2=5 \par math: $3+2=5$ $\sqrt{3+2=5}$\par \stop

Re: [NTG-context] Persian digits in math formulas

2013-08-15 Thread Mingranina Gingranina
] [default] [direction=both,rscale=1.2] \setuptypeface[dejavu] \starttext \start \setupalign[r2l] \setupmathematics[align=r2l] arabic: این یک آزمایش است. \par text: 3+2=5 \par math: $3+2=5$ $\sqrt{3+2=5}$ \par \stop \start \setupalign[l2r] \setupmathematics[align=l2r] latin

[NTG-context] Fraction with a fraction in the denominator

2013-06-03 Thread Sander Maijers
Hi, How can I make the subfraction in the denominator of a fraction appear smaller even though the nominator is very small? This gives basically three equally long division lines: \startfomula \frac{\mu_{Z}}{\frac{\sqrt{\VAR{Z}}{\sqrt{N_{\text{segments} \stopformula

Re: [NTG-context] Fraction with a fraction in the denominator

2013-06-03 Thread Sander Maijers
: \startfomula \frac{\mu_{Z}}{\frac{\sqrt{\VAR{Z}}{\sqrt{N_{\text{segments} \stopformula ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http

[NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Xenia
'cont-new.mkiv' loaded (/home/maja/context/tex/texmf-context/tex/context/base/cont-new.mkiv system beware: some patches loaded from cont-new.mkiv ) system files jobname 'sqrt', input 'sqrt', result 'sqrt' fontslatin modern fonts are not preloaded languages

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Hans Hagen
On 4/9/2013 9:02 PM, Xenia wrote: Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. In what sense? Sqrt's grow in discrete steps. Hans -

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Xenia
On 09.04.2013 21:18, Hans Hagen wrote: On 4/9/2013 9:02 PM, Xenia wrote: Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. In what sense? Sqrt's grow in discrete steps. Oh, I didn't know that. For my feelings,

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Hans Hagen
On 4/9/2013 9:25 PM, Xenia wrote: On 09.04.2013 21:18, Hans Hagen wrote: On 4/9/2013 9:02 PM, Xenia wrote: Hi list, I noticed that the sign for the square root does not adapt to the size of a fraction as in the attached minimal example. In what sense? Sqrt's grow in discrete steps. Oh, I

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Alan BRASLAU
On Tue, 9 Apr 2013 21:25:16 +0200 Xenia yor...@googlemail.com wrote: Oh, I didn't know that. For my feelings, all variables should have the same size here (a,b and c). In this case you should probably use: a = \sqrt{b/c} Alan

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Xenia
On 09.04.2013 22:39, Alan BRASLAU wrote: On Tue, 9 Apr 2013 21:25:16 +0200 Xenia yor...@googlemail.com wrote: Oh, I didn't know that. For my feelings, all variables should have the same size here (a,b and c). In this case you should probably use: a = \sqrt{b/c} Okay, but this was just

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Hans Hagen
=script,color=red] \definemathfraction[outerfrac][frac][alternative=outer,mathstyle=script,color=blue] \starttext \startformula a = \frac{b}{c} = \sqrt{\frac{b}{c}} = \sqrt{{b}\over{c}} a = \frac{b}{c} = \sqrt{\frac{b}{c}} = \sqrt{{b}\over{c}} a = \outerfrac{a}{b

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Hans Hagen
On 4/9/2013 10:39 PM, Alan BRASLAU wrote: On Tue, 9 Apr 2013 21:25:16 +0200 Xenia yor...@googlemail.com wrote: Oh, I didn't know that. For my feelings, all variables should have the same size here (a,b and c). In this case you should probably use: a = \sqrt{b/c} there was a wrong default

Re: [NTG-context] math: size of sqrt to small for fractions

2013-04-09 Thread Khaled Hosny
On Tue, Apr 09, 2013 at 10:39:25PM +0200, Alan BRASLAU wrote: On Tue, 9 Apr 2013 21:25:16 +0200 Xenia yor...@googlemail.com wrote: Oh, I didn't know that. For my feelings, all variables should have the same size here (a,b and c). In this case you should probably use: a = \sqrt{b/c

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Janne Junnila
) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Thanks, Janne Roland wrote: With \dfrac it looks good. With \fraction the minus sign is on the top of the fraction. Best regards, Roland

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Roland Thiers
, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Thanks, Janne OK ! So you need an expert, I'm just a newbie :) I would be interested to know how to do that. Best, Roland

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Aditya Mahajan
formula I have is \startformula f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Thanks, Janne OK ! So you need an expert, I'm just a newbie :) I would be interested

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Wolfgang Schuster
with script-size or scriptscript-size (\xfrac, \xxfrac). The specific formula I have is \startformula f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Thanks, Janne

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Otared Kavian
Using \type{\frac} gives: \startformula f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula \blank Using \type{\over} gives: \startformula f_{B_t | B_s = S, B_u = U}(x

Re: [NTG-context] Math typesetting problems

2013-01-28 Thread Aditya Mahajan
the second is more or less what you want \starttext Using \type{\frac} gives: \startformula f_{B_t | B_s = S, B_u = U}(x) = \frac{e^{-\frac{(u-s)x^2 - 2x(S(u-t) + U(t-s)) + \frac{(S(u-t) + U(t-s))^2}{(u-s)}}{2(t-s)(u-t)}}}{\sqrt{2\pi\frac{(t-s)(u-t)}{u-s}}} \stopformula Formatting and temporary macros

<    1   2   3   4   >