Skip to Content.
Sympa Menu

texmacs-users - Re: Math font shape and (possibly) xmacro

Subject: mailing-list for TeXmacs Users

List archive

Re: Math font shape and (possibly) xmacro


Chronological Thread 
  • From: TeXmacs <address@hidden>
  • To: texmacs-users <address@hidden>
  • Subject: Re: Math font shape and (possibly) xmacro
  • Date: Wed, 18 Nov 2020 21:17:28 +0100

Hi Giovanni,

On Mon, Nov 16, 2020 at 09:09:02PM +0100, Giovanni Piredda wrote:
> Let us assume we are in math mode, and that I want to write v = 5 m
> s⁻¹, with m and s in upright shape; there should be a space between
> m and s⁻¹ (they are multiplied together)

There were a few issues with the Computer Modern Roman font.
The right solution is to set 'math-font-shape' to 'right'.
I fixed the CMR issues and created the 'upright' macro to do
exactly what you want (revision 13165).

That said, for high school physics and chemistry teachers,
it would probably be nice to implement special macros for
physical quantities and formulas of chemical compounds.
I am not yet decided about the right way to do this.

For physical quantities, one may not wish to type
all the multiplications. So 1kgm/s^2 or even 1kgm/s2
should be transformed into 1*kg*m/s^2.

Similarly, in chemistry, one might wish to type 'H2O' or 'CH3O-'.

You may try to design a Scheme macro to perform such rewritings ;^)

Best wishes, --Joris



Archive powered by MHonArc 2.6.19.

Top of Page