From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101194 Path: news.gmane.org!.POSTED!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: text in mathematics Date: Sun, 08 Jul 2018 21:21:04 +0200 Message-ID: <5B426420.8060508@gmail.com> References: <20180707080450.1b62a538@poo.hsd1.co.comcast.net> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6804627452049823349==" X-Trace: blaine.gmane.org 1531077572 31857 195.159.176.226 (8 Jul 2018 19:19:32 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 8 Jul 2018 19:19:32 +0000 (UTC) User-Agent: Postbox 5.0.25 (Macintosh/20180328) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Sun Jul 08 21:19:27 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 1fcFDT-0008CS-Mm for gctc-ntg-context-518@m.gmane.org; Sun, 08 Jul 2018 21:19:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 879A23D899; Sun, 8 Jul 2018 21:21:19 +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 ioDjGVgie6zM; Sun, 8 Jul 2018 21:21:18 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id C7F243D8B9; Sun, 8 Jul 2018 21:21:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 0CB193D89B for ; Sun, 8 Jul 2018 21:21: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 rcliwPBv7oIf for ; Sun, 8 Jul 2018 21:21:17 +0200 (CEST) Original-Received: from mail-ed1-f41.google.com (mail-ed1-f41.google.com [209.85.208.41]) (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 39BD33D899 for ; Sun, 8 Jul 2018 21:21:07 +0200 (CEST) Original-Received: by mail-ed1-f41.google.com with SMTP id g15-v6so12201677edr.12 for ; Sun, 08 Jul 2018 12:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to; bh=aWYlar0Al6K1oqcMqOcgok5aewBfGt6OHWPKv+JAK28=; b=GtfXOcHxoV2u6ADia5OwEee+2y782IiIN5vccLyK9fPfxeMrtXvqQb2cs3YQdqoETj ZqO5DHKu7a9vG10WCcTOHgFejhfbYjunMiWaYNGrBLTR03y9hfUpngeoMP1vKNR4aEM/ rgpbO4Vl+kz+hTgQLCYUQGSHIqOpNWF4/LRRdtfKm1mQ/tSsvaasDDmiZnGxdc4vEFvd nobUgV42UlDg4uWEE6iAsL7A4qSLMQilvtIPCoxXLjy5y/hc1NXHdjNyimd0AE0rXXLS +SDSgEzrAt4Ue7uwQhBYmAzoKnmf83tE6F1F9x+zV6C3YqwbY9LUw2VGGVProjCr7ke+ gxqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to; bh=aWYlar0Al6K1oqcMqOcgok5aewBfGt6OHWPKv+JAK28=; b=earTrRbgBFOpcxDzW7tLiIxE5CrEzg2frqoSJK2zwXgEodKk3O3IP1VDxkCU+whas+ m4umL3cGaGJz8Ax+d/3lRUVV7k6Tz2dAUTmUryarZN3GJII4O5ZVvUBOGZNK5QTFoOYQ 4I0qse7RnCpuIoZoSTcGJH/k+DjJrUyoBlYlOdMrXxhwLvMiFFRVKMCqYBE4LqYsBrB2 V2N/Wi2BwmUR8icUZuj76dXcPIGz60gINhQi/j55kzE0S1JoQcdReszdGxd8qnkRjR8C yRYGKRaxMWdBh+bpH7/KAUoTv7H7+1R1kAnMuN5agIdJ8tzF6BUhmB2+V69rIY1v72Jj 6/Lw== X-Gm-Message-State: APt69E30o0lgo7BkoOILj0FP8Kpnd5rtA6hwzz8EPV/FGzjDCocMGJih ENjAsUy3XjSlG/vVgN1bd3p438Hn X-Google-Smtp-Source: AAOMgpcEa6CsCavRo1tCkNr81fesqm2qlKF57GbfSMrJImg9GAA9IavvYixj5JGfyTWu7mE9WDT+gA== X-Received: by 2002:a50:ed92:: with SMTP id h18-v6mr19406855edr.117.1531077666618; Sun, 08 Jul 2018 12:21:06 -0700 (PDT) Original-Received: from [192.168.1.4] (x5ce2f8b4.dyn.telefonica.de. [92.226.248.180]) by smtp.gmail.com with ESMTPSA id f11-v6sm693439edq.93.2018.07.08.12.21.05 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 08 Jul 2018 12:21:06 -0700 (PDT) In-Reply-To: <20180707080450.1b62a538@poo.hsd1.co.comcast.net> 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:101194 Archived-At: This is a multi-part message in MIME format. --===============6804627452049823349== Content-Type: multipart/alternative; boundary="------------040603080306060306020202" This is a multi-part message in MIME format. --------------040603080306060306020202 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Hi Alan, 1. The correct way to use \mathrm is {\mathrm ...} because it is a switch like \rm for text mode. 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. 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 …} or \mathtextit{…}. Wolfgang > Alan Braslau > 7. Juli 2018 um 16:04 > Hello ConTeXt users, > > Does it drive you crazy to see TeX users write $t = time$? > (I see this all of the time by LaTeX users in Beamer presentations.) > > One can do better writing $t = {\rm time}$ (maybe) > or in ConTeXt $t = \mathrm{time}$. > Sometimes, too, I might write $t = \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 thought that it might be useful to have an equivalent escape, to be > used as $t = \t{time}$. What do other users think? > > OK, \m{t = \t{time}} might be a bit funky... > > > Alan > > > 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! > > 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 > ___________________________________________________________________________________ --------------040603080306060306020202 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: 8bit Hi Alan,

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

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.

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 …} or \mathtextit{…}.

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

Does it drive you crazy to see TeX users write $t = time$?
(I see this all of the time by LaTeX users in Beamer presentations.)

One can do better writing $t = {\rm time}$ (maybe)
or in ConTeXt $t = \mathrm{time}$.
Sometimes, too, I might write $t = \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 thought that it might be useful to have an equivalent escape, to be
used as $t = \t{time}$. What do other users think?

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


Alan


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!

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
___________________________________________________________________________________

--------------040603080306060306020202-- --===============6804627452049823349== 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 --===============6804627452049823349==--