all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Mattias Engdegård" <mattiase@acm.org>
To: Michael Heerdegen <michael_heerdegen@web.de>
Cc: 44799@debbugs.gnu.org
Subject: bug#44799: 28.0.50; Calc: Meter not printed as \text in latex output
Date: Mon, 23 Nov 2020 11:26:00 +0100	[thread overview]
Message-ID: <732F118E-0110-4CE2-8900-C64E06D78A04@acm.org> (raw)
In-Reply-To: <87mtz9cd06.fsf@web.de>

22 nov. 2020 kl. 22.12 skrev Michael Heerdegen <michael_heerdegen@web.de>:

> Ah, so there can be a variable and a unit of the same name at the same
> time?  I can s s a variable "m".  Is it good to allow this?  I mean it's
> good that meters is "m" as expected but if someone wants to use "m" as a
> variable in the same formula it necessarily gets ugly.

Given the number of units, it seems difficult to disallow using the same symbols as variables. Many innocent-looking single-letter names are units: s, N, m, A, V, W, J, g, l, ...
For instance, 'e' both has a value (2.7something) and is a unit (electron charge).

Variables in Calc include not only names having an assigned concrete value, but also variables in the wider mathematical sense since Calc is capable of some symbolic computing. Units of measurement just use the same mechanism and are treated as any other variables in all computation except for operations explicitly related to units such as 'u s'.

A serious reform seems unlikely unless someone really is willing to do the work. More realistic might be adding a way to tell Calc which variables you want to have typeset as units, as this can vary from person to person and time to time.

> BTW, do you know (Bug#30231) why allowed characters in units are
> restricted?

No idea, but isn't it just the restriction of variable symbols in general? Unless they already play some syntactic role I suppose we could be more permissive. Currency symbols like €, ¥ and $ appear to be of special interest, but $ already has a special meaning.






  reply	other threads:[~2020-11-23 10:26 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-22 15:20 bug#44799: 28.0.50; Calc: Meter not printed as \text in latex output Michael Heerdegen
2020-11-22 16:38 ` Mattias Engdegård
2020-11-22 21:12   ` Michael Heerdegen
2020-11-23 10:26     ` Mattias Engdegård [this message]
2020-11-23 12:16       ` Michael Heerdegen
2020-11-23 13:52         ` Mattias Engdegård
2020-11-23 14:20           ` Michael Heerdegen
2020-11-23 15:13             ` Mattias Engdegård

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=732F118E-0110-4CE2-8900-C64E06D78A04@acm.org \
    --to=mattiase@acm.org \
    --cc=44799@debbugs.gnu.org \
    --cc=michael_heerdegen@web.de \
    /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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.