ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Font too small with a macro
@ 2022-04-23 10:05 Fabrice Couvreur via ntg-context
  2022-04-23 13:27 ` Mikael Sundqvist via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2022-04-23 10:05 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur


[-- Attachment #1.1: Type: text/plain, Size: 276 bytes --]

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

[-- Attachment #1.2: Type: text/html, Size: 549 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Font too small with a macro
  2022-04-23 10:05 Font too small with a macro Fabrice Couvreur via ntg-context
@ 2022-04-23 13:27 ` Mikael Sundqvist via ntg-context
  2022-04-23 14:09   ` Fabrice Couvreur via ntg-context
  2022-04-23 14:30   ` Günter Kolousek via ntg-context
  0 siblings, 2 replies; 6+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-04-23 13:27 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

On Sat, Apr 23, 2022 at 12:11 PM Fabrice Couvreur via ntg-context
<ntg-context@ntg.nl> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Font too small with a macro
  2022-04-23 13:27 ` Mikael Sundqvist via ntg-context
@ 2022-04-23 14:09   ` Fabrice Couvreur via ntg-context
  2022-04-23 14:30   ` Günter Kolousek via ntg-context
  1 sibling, 0 replies; 6+ messages in thread
From: Fabrice Couvreur via ntg-context @ 2022-04-23 14:09 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Fabrice Couvreur


[-- Attachment #1.1: Type: text/plain, Size: 1356 bytes --]

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
> <ntg-context@ntg.nl> 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
>
> ___________________________________________________________________________________
>

[-- Attachment #1.2: Type: text/html, Size: 2473 bytes --]

[-- Attachment #2: Type: text/plain, Size: 493 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Font too small with a macro
  2022-04-23 13:27 ` Mikael Sundqvist via ntg-context
  2022-04-23 14:09   ` Fabrice Couvreur via ntg-context
@ 2022-04-23 14:30   ` Günter Kolousek via ntg-context
  2022-04-23 15:12     ` Mikael Sundqvist via ntg-context
  1 sibling, 1 reply; 6+ messages in thread
From: Günter Kolousek via ntg-context @ 2022-04-23 14:30 UTC (permalink / raw)
  To: ntg-context; +Cc: Günter Kolousek


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
> <ntg-context@ntg.nl> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Font too small with a macro
  2022-04-23 14:30   ` Günter Kolousek via ntg-context
@ 2022-04-23 15:12     ` Mikael Sundqvist via ntg-context
  2022-04-23 20:47       ` Günter Kolousek via ntg-context
  0 siblings, 1 reply; 6+ messages in thread
From: Mikael Sundqvist via ntg-context @ 2022-04-23 15:12 UTC (permalink / raw)
  To: mailing list for ConTeXt users; +Cc: Mikael Sundqvist

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
<ntg-context@ntg.nl> 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
> > <ntg-context@ntg.nl> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: Font too small with a macro
  2022-04-23 15:12     ` Mikael Sundqvist via ntg-context
@ 2022-04-23 20:47       ` Günter Kolousek via ntg-context
  0 siblings, 0 replies; 6+ messages in thread
From: Günter Kolousek via ntg-context @ 2022-04-23 20:47 UTC (permalink / raw)
  To: ntg-context; +Cc: Günter Kolousek


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
> <ntg-context@ntg.nl> 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
>> > <ntg-context@ntg.nl> 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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2022-04-23 20:47 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-23 10:05 Font too small with a macro Fabrice Couvreur via ntg-context
2022-04-23 13:27 ` Mikael Sundqvist via ntg-context
2022-04-23 14:09   ` Fabrice Couvreur via ntg-context
2022-04-23 14:30   ` Günter Kolousek via ntg-context
2022-04-23 15:12     ` Mikael Sundqvist via ntg-context
2022-04-23 20:47       ` Günter Kolousek via ntg-context

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).