From: "Procházka Lukáš Ing. - Pontex s. r. o." <LPr@pontex.cz>
To: "mailing list for ConTeXt users" <ntg-context@ntg.nl>
Subject: Re: How to typeset differential (math)?
Date: Wed, 17 Jun 2015 16:35:38 +0200 [thread overview]
Message-ID: <op.x0dphojfwshuv7@lpr> (raw)
In-Reply-To: <CAMVYejBvHiwMpHtLL-acLsGE1peWwAs6o+isnkBsQgyaK8gGSA@mail.gmail.com>
Hello,
On Wed, 17 Jun 2015 16:23:01 +0200, Manuel Blanco <manuelbl@ucm.es> wrote:
> The easy way to answer that:
> \definemathcommand[dif][nolop]{\mfunction{d}} didn't work because it's
> intended for log-like functions, and you don't want a log-like
> function, but a differential, which behaves differently (for instance,
> you *want* space between the function and the argument in `\sin x \cos
> y` but you *don't want* spaces between the “d” and the variable in
> `\dif x \dif y`).
>
> About `\mfunction` I don't know, I think what's in the wiki is enough,
> it's the command that sets the font used for other upright functions
> (notice that some people prefer italic differentials hence the
> definition would be \define\dif{\mathop{}\!d}).
>
> And about how does that work, well, basically what you want is a thin
> space added on the left, but not on the right, so \mathop{} gives a
> thin space on both sides, then with \! you remove the thin space on
> the right and you then leave the \mfunction{d} with normal spacing.
>
> That definition behaves correctly in every case (except if you use
> “physics-like” notation where the differential comes just after \int).
>
> I hope I don't leave anything relevant out (but I'm no expert).
... thank you for deep explanation!
Lukas
--
Ing. Lukáš Procházka | mailto:LPr@pontex.cz
Pontex s. r. o. | mailto:pontex@pontex.cz | http://www.pontex.cz
Bezová 1658
147 14 Praha 4
Tel: +420 241 096 751
Fax: +420 244 461 038
___________________________________________________________________________________
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://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2015-06-17 14:35 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-17 12:00 Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-17 12:50 ` Manuel Blanco
2015-06-17 13:55 ` Procházka Lukáš Ing. - Pontex s. r. o.
2015-06-17 14:23 ` Manuel Blanco
2015-06-17 14:35 ` Procházka Lukáš Ing. - Pontex s. r. o. [this message]
2015-06-17 14:25 ` Aditya Mahajan
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=op.x0dphojfwshuv7@lpr \
--to=lpr@pontex.cz \
--cc=ntg-context@ntg.nl \
/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).