Re: [NTG-context] Font too small with a macro
Hi, I see... Thanx, also for the reference to \definemathcommand! Best, Günter Mikael Sundqvist via ntg-context @ 2022-04-23 17:12 +02: 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 ___ ___ 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
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 ___
Re: [NTG-context] Font too small with a macro
Hi, I didn't know that \exp was already defined. Thanks Fabrice Le sam. 23 avr. 2022 à 15:28, Mikael Sundqvist via ntg-context < ntg-context@ntg.nl> a écrit : > 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 ___
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 ___
[NTG-context] Font too small with a macro
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 ___ 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 ___