From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101195 Path: news.gmane.org!.POSTED!not-for-mail From: Otared Kavian Newsgroups: gmane.comp.tex.context Subject: Re: text in mathematics Date: Sun, 8 Jul 2018 23:00:00 +0200 Message-ID: References: <20180707080450.1b62a538@poo.hsd1.co.comcast.net> <5B426420.8060508@gmail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\)) Content-Type: multipart/mixed; boundary="===============3783417987672419597==" X-Trace: blaine.gmane.org 1531083511 4328 195.159.176.226 (8 Jul 2018 20:58:31 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2018 20:58:31 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 08 22:58:26 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fcGlG-000120-EX for gctc-ntg-context-518@m.gmane.org; Sun, 08 Jul 2018 22:58:26 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 18A053D95B; Sun, 8 Jul 2018 23:00:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id O_yXXLgcGqXo; Sun, 8 Jul 2018 23:00:17 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 473E23D95F; Sun, 8 Jul 2018 23:00:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id DFF743D95C for ; Sun, 8 Jul 2018 23:00:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 7vBHI782PaKH for ; Sun, 8 Jul 2018 23:00:15 +0200 (CEST) Original-Received: from mail-wr1-f47.google.com (mail-wr1-f47.google.com [209.85.221.47]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 0388F3D95B for ; Sun, 8 Jul 2018 23:00:04 +0200 (CEST) Original-Received: by mail-wr1-f47.google.com with SMTP id h9-v6so8902525wro.3 for ; Sun, 08 Jul 2018 14:00:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:mime-version:subject:date:references:to:in-reply-to:message-id; bh=ExbkMp93u8o1HwEY++3imK0JC5uM0YFw+yEgDxjex1k=; b=D5NxZwOnvWluNIp8XT6KpSV3dyPn4bFuYnS5KR5VzAX6px9WyapQmQSxQmeAyS3TX4 scTrQIK2kzeozlCXX0nkDHgEnPZ1NYdnnscMjtgYV6hhi6ogE1PaMJML9Iyp43FhkVAk pASZVLguHMb/mVgqFTdtRrZh+8jp3ANnhKC4jkOzRBCOB5rPIMAo6hiFGItYTgwJJuOK Zc8RosT8Y0gBfubEffiWZUogV71jn2Msf2PSkaMbYmtlrRUIR8uijDv3CakTl/i4UwMV Llw3VuXNRhvyr2aNRe0wARKBPAtnfxwy+GZz1AqRsS7aHy8GTOIZe3OmetIEyrgamRku GaNw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:mime-version:subject:date:references:to :in-reply-to:message-id; bh=ExbkMp93u8o1HwEY++3imK0JC5uM0YFw+yEgDxjex1k=; b=SrOMhFf5HY9Kc7rI4yHO0Y3La2SCKylstBLW32FJ5mUvrQvBRLyb+M1mIOGLDRyWzY vFuMOj3rtsRXBVaJQq4uECkp5VLBvheW+S+mVUL67xHMK+zhmBkeqSmyLwbO1JBuuvnK PvO/hVasHax+EWboIRzmwtj/PvjQO8+Ggs0Olop+9bDOVPovDvJ2EzqGMiakosg9OAXF BRfsGORQemJ1jLeDJU49GCTOEyLuI90BzvZTf63seauna2TAuzhpCTCZYFjiebp1MnOR If+KxLfeOUoctWpljwudxdH5qDixkxA1m511ZMoDzq4x9AtcoOqf3R8BaevcgVeJbCUH jGLw== X-Gm-Message-State: APt69E00UJSj1KmNZRKfaYhcp7G/ClCDZqjL9ej9GFIr2UuKtzcQWH0D 7BnS31/ZYAARa9QQQapRG1C/XNCI X-Google-Smtp-Source: AAOMgpf8NASVCgkq+3WmDFcU+Pk+ojwWCXnLOqrdBodJE2iMZ52cf4XpY8+pF6KkiLYVuBa9dJ3MCA== X-Received: by 2002:adf:9f0f:: with SMTP id l15-v6mr13192416wrf.206.1531083604154; Sun, 08 Jul 2018 14:00:04 -0700 (PDT) Original-Received: from [192.168.0.14] (lns-bzn-43-82-249-129-123.adsl.proxad.net. [82.249.129.123]) by smtp.gmail.com with ESMTPSA id h1-v6sm18536317wri.90.2018.07.08.14.00.01 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 14:00:03 -0700 (PDT) In-Reply-To: <5B426420.8060508@gmail.com> X-Mailer: Apple Mail (2.3445.9.1) 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:101195 Archived-At: --===============3783417987672419597== Content-Type: multipart/alternative; boundary="Apple-Mail=_306EC947-75CA-432B-81BB-EAE13A682664" --Apple-Mail=_306EC947-75CA-432B-81BB-EAE13A682664 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hi Alan, Wolfgang and Hans =C3=85berg, As far as I am concerned, when I have to add a text to a math formula I = use \mbox, as in the example \startformula A :=3D \left\{f : {\Bbb R}^2 \longrightarrow {\Bbb R} \; ; \; f \mbox{ = is measurable and } \int_{{\Bbb R}^2}|f(x)|dx < \infty \right\}. \stopformula The advantage being that if the above formula appears in an environment = such as a Theorem (where the text is typeset in italic, or slanted) the = text in the above \mbox will be also in italic or slanted. I don't think it would be a good idea to add new commands to treat text = in a math formula: the existing possiblities are more than satisfactory, = and moreover situations where one has to add text to a formula are not = that common. So using a command like \mbox, or \text, or \mathtext, or = whatever, is not that time consuming. Best regards: OK > On 8 Jul 2018, at 21:21, Wolfgang Schuster = wrote: >=20 > Hi Alan, >=20 > 1. The correct way to use \mathrm is {\mathrm ...} because it is a = switch like \rm for text mode. >=20 > 2. \mathrm is the wrong method to write text in formulas because the = command changes only the math alphabet. This means no ligatures, kerning = or other characters like umlauts. >=20 > 3. The correct way to write text in math mode is \mathtext (which has = the synonym \text) or \mathword. To change the style of the text you can = use \mathtext{\it =E2=80=A6} or \mathtextit{=E2=80=A6}. >=20 > Wolfgang >> Alan Braslau 7. Juli 2018 um 16:04 >> Hello ConTeXt users, >>=20 >> Does it drive you crazy to see TeX users write $t =3D time$? >> (I see this all of the time by LaTeX users in Beamer presentations.) >>=20 >> One can do better writing $t =3D {\rm time}$ (maybe) >> or in ConTeXt $t =3D \mathrm{time}$. >> Sometimes, too, I might write $t =3D \text{time}$. >>=20 >> We also have the commands \mathematics{} that can be used in place of >> the TeX shorthand $...$, and this also has the shortcut \m{...}. >>=20 >> I thought that it might be useful to have an equivalent escape, to be >> used as $t =3D \t{time}$. What do other users think? >>=20 >> OK, \m{t =3D \t{time}} might be a bit funky...=20 >>=20 >>=20 >> Alan >>=20 >>=20 >> P.S. I proposed doing this via >> \let\t\mathrm >> but Hans tells me that this is not good, as \mathrm{} does not give >> proper font processing, so implementation of \t{} would be something >> different... >> = __________________________________________________________________________= _________ >> If your question is of interest to others as well, please add an = entry to the Wiki! >>=20 >> 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 >> = __________________________________________________________________________= _________ >=20 > = __________________________________________________________________________= _________ > If your question is of interest to others as well, please add an entry = to the Wiki! >=20 > 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 > = __________________________________________________________________________= _________ --Apple-Mail=_306EC947-75CA-432B-81BB-EAE13A682664 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 Hi = Alan, Wolfgang and Hans =C3=85berg,

As far as I am concerned, when I have = to add a text to a math formula I use \mbox, as in the example

\startformula
A :=3D \left\{f : {\Bbb = R}^2 \longrightarrow {\Bbb R} \; ; \; f \mbox{ is measurable and } =  \int_{{\Bbb R}^2}|f(x)|dx < \infty \right\}.
\stopformula

The advantage being that if the above formula appears in an = environment such as a Theorem (where the text is typeset in italic, or = slanted) the text in the above \mbox will be also in italic or = slanted.

I = don't think it would be a good idea to add new commands to treat text in = a math formula: the existing possiblities are more than satisfactory, = and moreover situations where one has to add text to a formula are not = that common. So using a command like \mbox, or \text, or \mathtext, or = whatever, is not that time consuming.

Best regards: OK

On 8 Jul 2018, at 21:21, Wolfgang Schuster = <schuster.wolfgang@gmail.com> wrote:

Hi Alan,

1. The correct way to use \mathrm is {\mathrm ...} because it is a=20 switch like \rm for text mode.

2. \mathrm is the wrong method to write text in formulas because the=20 command changes only the math alphabet. This means no ligatures, kerning or other characters like umlauts.

3. The correct way to write text in math mode is \mathtext (which has=20 the synonym \text) or \mathword. To change the style of the text you can use \mathtext{\it =E2=80=A6} or \mathtextit{=E2=80=A6}.

Wolfgang
7.=20 Juli 2018 um 16:04
Hello = ConTeXt users,

Does it drive you crazy to see TeX users write $t =3D time$?
(I = see this=20 all of the time by LaTeX users in Beamer presentations.)
One can=20 do better writing $t =3D {\rm time}$ (maybe)
or in ConTeXt = $t =3D=20 \mathrm{time}$.
Sometimes, too, I might write $t =3D = \text{time}$.

We also have the commands \mathematics{} that can be used in place of
the TeX shorthand $...$, and this also has the shortcut \m{...}.

I=20 thought that it might be useful to have an equivalent escape, to be
used as $t =3D \t{time}$. What do other users think?

OK, \m{t =3D=20 \t{time}} might be a bit funky...


Alan


P.S. I=20 proposed doing this via
\let\t\mathrm
but = Hans tells me that=20 this is not good, as \mathrm{} does not give
proper font = processing,=20 so implementation of \t{} would be something
different..._______________________________________________________________= ____________________
If your question is of interest to others as well, please add an entry to=20= the Wiki!

maillist : ntg-context@ntg.nl /=20 http://www.ntg.nl/= mailman/listinfo/ntg-context
webpage :=20 http://www.pragma-ade.nl / http://context.aanhet.net
archive :=20 https://bitbuck= et.org/phg/context-mirror/commits/
wiki :=20 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
_______________________________________________________________= ____________________

= --Apple-Mail=_306EC947-75CA-432B-81BB-EAE13A682664-- --===============3783417987672419597== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --===============3783417987672419597==--