ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: "Günter Kolousek via ntg-context" <ntg-context@ntg.nl>
To: ntg-context@ntg.nl
Cc: "Günter Kolousek" <guenter@ko-sek.at>
Subject: Re: Font too small with a macro
Date: Sat, 23 Apr 2022 22:47:05 +0200	[thread overview]
Message-ID: <87r15nwm7h.fsf@ko-sek.at> (raw)
In-Reply-To: <CAHy-LL8LhwQ1Tyr1vzFif-VVz6W=fi16R07yeuPZd5nJ7ZR6oA@mail.gmail.com>


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
___________________________________________________________________________________

      reply	other threads:[~2022-04-23 20:47 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-23 10:05 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 message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r15nwm7h.fsf@ko-sek.at \
    --to=ntg-context@ntg.nl \
    --cc=guenter@ko-sek.at \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).