Subject: mailing-list for TeXmacs Users
List archive
From : Giovanni Piredda <address@hidden>- To: address@hidden
- Subject: Re: [TeXmacs] De-italicize single-letter units
- Date: Mon, 18 Mar 2019 22:42:02 +0100
Just for fun, this macro <assign|SI|<macro|number|unit|<arg|number> should take care automatically of the space between number and unit. It seems to work outside of math mode too. One thing that I did not figure out is how to see the macro as code when I use it, for example it would be nice to switch between the input <SI|8|kg> and its rendering as 8 kg Is this possible? Does anyone know?
Am 18.03.2019 um 14:13 schrieb Michael
Shea:
I am using the following macro for unit
type setting in 1.99.8 and I am happy with the results.
On Sat, Mar 9, 2019 at 8:48 PM
Giovanni Piredda <address@hidden> wrote:
Am
09.03.2019 um 23:25 schrieb Joseph Stavitsky:
One possibility is to mark the letter as text in 1.99.9 (and it shold be te same in 1.99.8 that you are using). Once that you are inside an equation ,from the menu:"Insert" then "text". It is also possible to define a macro "unit", that you could use for the measurement units; I copy here a macro that I wrote and put in a package which I can add to documents <assign|unit|<macro|name|<with|font-shape|normal|math-font-shape|right|<arg|name>>>> I use this by inserting it with a slash inside the formula \unit and then press return: it gives me a field in which I then type the unit, whic appears in upright font. It seems to me that there is another way too to insert macros, but I have not learnt it :-) I tested it minimally, it seems to work; and it is easy enough that it should work ... And I do not know if it is written best, that it what I learnt from the manual till now. Finally, I think it is SI convention to insert a space between the number and the unit, pls. see #15 in https://physics.nist.gov/cuu/Units/checklist.html |
- [TeXmacs] De-italicize single-letter units, Joseph Stavitsky, 03/09/2019
- Re: [TeXmacs] De-italicize single-letter units, Giovanni Piredda, 03/10/2019
- Re: [TeXmacs] De-italicize single-letter units, Michael Shea, 03/18/2019
- Re: [TeXmacs] De-italicize single-letter units, Michael Shea, 03/18/2019
- Re: [TeXmacs] De-italicize single-letter units, Giovanni Piredda, 03/18/2019
- Re: [TeXmacs] De-italicize single-letter units, Michael Shea, 03/18/2019
- Re: [TeXmacs] De-italicize single-letter units, Giovanni Piredda, 03/10/2019
Archive powered by MHonArc 2.6.19.