From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/91495 Path: news.gmane.org!not-for-mail From: Maggyero Newsgroups: gmane.comp.tex.context Subject: Changing font for math function Date: Sat, 16 May 2015 16:23:34 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1855408547==" X-Trace: ger.gmane.org 1431786262 25426 80.91.229.3 (16 May 2015 14:24:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 16 May 2015 14:24:22 +0000 (UTC) To: ntg-context@ntg.nl Original-X-From: ntg-context-bounces@ntg.nl Sat May 16 16:24:10 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Ytd0Y-00042B-U8 for gctc-ntg-context-518@m.gmane.org; Sat, 16 May 2015 16:24:07 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 1E60010226 for ; Sat, 16 May 2015 16:24:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yhdCNZKj4V3n for ; Sat, 16 May 2015 16:24:05 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 52AFB1022F for ; Sat, 16 May 2015 16:23:41 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id A8AD9101F9 for ; Sat, 16 May 2015 16:23:37 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id yQpDk2_a3hY3 for ; Sat, 16 May 2015 16:23:37 +0200 (CEST) Original-Received: from filter3-ams.mf.surf.net (filter3-ams.mf.surf.net [192.87.102.71]) by balder.ntg.nl (Postfix) with ESMTP id E7E43101E6 for ; Sat, 16 May 2015 16:23:36 +0200 (CEST) Original-Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) by filter3-ams.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id t4GENZnx020011 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NOT) for ; Sat, 16 May 2015 16:23:36 +0200 Original-Received: by igbyr2 with SMTP id yr2so18613144igb.0 for ; Sat, 16 May 2015 07:23:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=6U2QSMZRL1OeUY0GIPxsfFDBpXOEfqAT04KbQGdxAZQ=; b=uUTqTEagQXz+nJtv1dZtnAGBO2pkjwjMD2Gxg0lBqeoNLCz1BWmF5AG+WaW98M4hjq CW2y86x4VHmIpXZnWREjw5OCiteJj9eCwaNBAJVM8E1/8bQxw6BD2LSbQm38vYlj6MDu 8wnjCaoK/T0xIgDCBfANSdEHlqG9honfgZ7SPD/mgrZHUWoyLs5z+wjImAVCFTbOmnXR oBwiXZQ2+ZW3MTSR5xOkh/cWwZ2B0A4dQPAaLpqyUItWE2KCjsDkdSBMoqjz6c4SWSf0 cJU9TwiTANRsQhuH45EdaW5lUjvMdk2zXtF8nkBbbWsi7ycLMSp0jUTfrciV/a20WEl5 Khxw== X-Received: by 10.50.72.8 with SMTP id z8mr4496116igu.36.1431786214754; Sat, 16 May 2015 07:23:34 -0700 (PDT) Original-Received: by 10.36.65.80 with HTTP; Sat, 16 May 2015 07:23:34 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c05::22e; country=US; region=Iowa; city=Council Bluffs; latitude=41.2324; longitude=-95.8762; http://maps.google.com/maps?q=41.2324,-95.8762&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 03OsCnAPi - b3f1f57f7206 - 20150516 (trained as not-spam) Received-SPF: pass (filter3-ams.mf.surf.net: domain of maggyero@gmail.com designates 2607:f8b0:4001:c05::22e as permitted sender) receiver=filter3-ams.mf.surf.net; client-ip=2607:f8b0:4001:c05::22e; envelope-from=; helo=mail-ig0-x22e.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:91495 Archived-At: --===============1855408547== Content-Type: multipart/alternative; boundary=047d7bdc10e6b98f77051633b4bf --047d7bdc10e6b98f77051633b4bf Content-Type: text/plain; charset=UTF-8 > Aditya Mahajan: > By default, in all three formats the font for \log is mathupright rather > than textrm. There needs to be a rationale for ConTeXt default to be > different from other formats. Do you have any reference to a math book or > journal that uses text fonts for \log-like operators? Thanks for the examples. I had forgotten that math fonts can differ from text fonts. Now I understand why you use \mathupright (which, according to the source code is identical in math mode to \mathrm and \rm). And I know that math fonts have different kerning and ligatures than text fonts. But how is that in LaTeX, kerning and ligatures in math mode inside \mathrm are the same as those of the TEXT font (while in ConTeXt \mathrm still uses the kerning and ligatures of the math font, which seems logical)? Compare the following: LaTeX: \documentclass{article} \begin{document} affinity\par $\mathrm{affinity}$\par % kerning and ligatures of TEXT mode with math font \end{document} ConTeXt: \starttext affinity\par $\mathrm affinity$\par % kerning and ligatures of MATH mode with math font \stoptext Maggyero --047d7bdc10e6b98f77051633b4bf Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
> Aditya Mahajan:
> By default, in al= l three formats the font for \log is mathupright rather=C2=A0
>= ; than textrm. There needs to be a rationale for ConTeXt default to be=C2= =A0
> different from other formats. Do you have any reference = to a math book or=C2=A0
> journal that uses text fonts for \lo= g-like operators?

Thanks for the examples. I had f= orgotten that math fonts can differ from text fonts. Now I understand why y= ou use \mathupright (which, according to the source code is identical in ma= th mode to \mathrm and \rm). And I know that math fonts have different kern= ing and ligatures than text fonts.

But how is that= in LaTeX, kerning and ligatures in math mode inside \mathrm are the same a= s those of the TEXT font (while in ConTeXt \mathrm still uses the kerning a= nd ligatures of the math font, which seems logical)? Compare the following:=

LaTeX:

\documentcla= ss{article}

\begin{document}
affinity\pa= r
$\mathrm{affinity}$\par % kerning and ligatures of TEXT mode wi= th math font
\end{document}

ConTeX= t:

\starttext
affinity\par
$\mathrm affinity$\par % kerning and ligatures of MATH mode with math fon= t
\stoptext


Maggyero
--047d7bdc10e6b98f77051633b4bf-- --===============1855408547== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1855408547==--