ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Wolfgang Schuster <schuster.wolfgang@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: text in mathematics
Date: Sun, 08 Jul 2018 21:21:04 +0200	[thread overview]
Message-ID: <5B426420.8060508@gmail.com> (raw)
In-Reply-To: <20180707080450.1b62a538@poo.hsd1.co.comcast.net>


[-- Attachment #1.1: Type: text/plain, Size: 1907 bytes --]

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 <mailto:braslau.list@comcast.net>
> 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
> ___________________________________________________________________________________


[-- Attachment #1.2: Type: text/html, Size: 3454 bytes --]

[-- Attachment #2: Type: text/plain, Size: 492 bytes --]

___________________________________________________________________________________
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
___________________________________________________________________________________

  parent reply	other threads:[~2018-07-08 19:21 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-07 14:04 Alan Braslau
2018-07-07 16:25 ` Hans Åberg
2018-07-08 19:21 ` Wolfgang Schuster [this message]
2018-07-08 21:00   ` Otared Kavian
2018-07-08 21:11     ` Alan Braslau
2018-07-09  9:39       ` Wolfgang Schuster
2018-07-09 13:05         ` Hans Hagen
2018-07-09 12:51     ` Hans Åberg
2018-07-09 15:48       ` Aditya Mahajan
2018-07-09 19:27         ` Hans Åberg
2018-07-10 15:53           ` Hans Åberg

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=5B426420.8060508@gmail.com \
    --to=schuster.wolfgang@gmail.com \
    --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).