Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-21 Thread Gavin via ntg-context
Hans, I made a small mistake in the phys-dim.mkxl file I sent you. I removed a % at the end of lines 469 and 485. Without the %, using alternative=text causes extra space before the unit. A corrected phys-dim.mkxl is attached. Gavin phys-dim.mkxl Description: application/applefile

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-21 Thread Gavin via ntg-context
Hi Hans, > I'll look into it (with Mikael as some relates to math) once you're done > playing and provide suggestions and tests. I’m done playing. Below are tests and suggestions. Sorry it has taken so long for me to put this together. Tests I attached two test files. The first,

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-14 Thread Hans Hagen via ntg-context
On 10/13/2022 1:52 PM, Gavin via ntg-context wrote: Hi Oli, Thank four your effort. I found out, that the following definition of a new unit, i called it SI, results also in a correct spaceing in the math environment: \defineunit[SI][alternative=text] It seems, that the option

Re: [NTG-context] Spacing in \unit - degrees

2022-10-13 Thread Alan Braslau via ntg-context
On Wed, 12 Oct 2022 21:14:52 -0600 Gavin wrote: > As a recovering string theorist, I cannot help but speculate that > this rule extends to spherical coordinates in any number of > dimensions. However, if you don’t want the space, you can use > 135\unit{℃}, which does not add a space. Will

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-13 Thread Gavin via ntg-context
Hi Oli, > Thank four your effort. I found out, that the following definition of a new > unit, i called it SI, results also in a correct spaceing in the math > environment: > > \defineunit[SI][alternative=text] > > It seems, that the option alternative=text solves the problem with no spaces >

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-13 Thread Oliver Sieber via ntg-context
Hi Gavin Thank four your effort. I found out, that the following definition of a new unit, i called it SI, results also in a correct spaceing in the math environment: \defineunit[SI][alternative=text] It seems, that the option alternative=text solves the problem with no spaces between value

Re: [NTG-context] Spacing in \unit - degrees

2022-10-12 Thread Gavin via ntg-context
Hi Alan > On Oct 12, 2022, at 5:55 PM, Alan Braslau via ntg-context > wrote: > > \unit{135℃} adds a space after the digits 135. > I do not believe that this is correct > (for ℃ is *not* a "real" unit, unlike \unit{408.15 K} which *is* a real > unit). According to “Scientific Style and Format:

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-12 Thread Gavin via ntg-context
Hi Max and Rik > On Oct 12, 2022, at 4:49 PM, Max Chernoff wrote: > > This new output looks *much* better than the old one, thanks! Thank you! > My only comment is that the spacing around the multiplication sign looks > a little too tight to me. The original spacing was probably too large, >

Re: [NTG-context] Spacing in \unit - degrees

2022-10-12 Thread Alan Braslau via ntg-context
Further \unit question(s): \unit{135℃} adds a space after the digits 135. I do not believe that this is correct (for ℃ is *not* a "real" unit, unlike \unit{408.15 K} which *is* a real unit). Also, \unit{135°C} drops the "C". Is this a parsing bug? Related, \unit{90°} does not seem to introduce

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-12 Thread Max Chernoff via ntg-context
Hi Gavin, On Wed, 2022-10-12 at 15:54 -0600, Gavin wrote: > Hi Max, Alan, Bruce, Hans, et.al > > I solved my four issues with \unit spacing. In the process, I > prevented unwanted line breaks and removed an overzealous backspace > before division symbols. Below is a MWE that shows all of these >

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-12 Thread Rik Kabel via ntg-context
On 2022-10-12 17:54, Gavin via ntg-context wrote: Hi Max, Alan, Bruce, Hans, et.al I solved my four issues with \unit spacing. In the process, I prevented unwanted line breaks and removed an overzealous backspace before division symbols. Below is a MWE that shows all of these issues, as well

Re: [NTG-context] Spacing in \unit - SOLVED

2022-10-12 Thread Gavin via ntg-context
Hi Max, Alan, Bruce, Hans, et.al I solved my four issues with \unit spacing. In the process, I prevented unwanted line breaks and removed an overzealous backspace before division symbols. Below is a MWE that shows all of these issues, as well as pictures of the result with the unmodified

Re: [NTG-context] Spacing in \unit

2022-10-10 Thread Max Chernoff via ntg-context
Hi Alan, > I would very strongly argue that the space between the number and the > following units be UNBREAKABLE. Perhaps a thin space (preference), but > most certainly non-breakable. > > Similarly around the times in scientific notation. > > I further cannot imagine that a line break be

Re: [NTG-context] Spacing in \unit

2022-10-09 Thread Alan Braslau via ntg-context
On Sat, 8 Oct 2022 11:59:04 -0600 Gavin via ntg-context wrote: > I’m trying to fix four issues: > - No space between the number and the following units. Should be a > thin space. > - No space between the units and the following symbol (+ and = > above). Should be appropriate “bin" or “rel"

[NTG-context] Spacing in \unit

2022-10-08 Thread Gavin via ntg-context
Hi list, I made a small example with all of the issues I am trying to fix for the \units command. The first formula below uses the \unit command, but produces strange spacing. The second formula produces the desired spacing, without using the \unit command. \showmakeup[mathglue]

Re: [NTG-context] Spacing in \unit

2022-09-25 Thread Bruce Horrocks via ntg-context
> On 25 Sep 2022, at 14:30, Gavin via ntg-context wrote: > > Hello list, > > I have a few questions about space produced by the unit command. Consider > this MWE > > \starttext > \unit{3.00e8 kg m/s} > > $\unit{3.00e8 kg m/s}$ > \stoptext > > The dot between “kg” and “m” has different

Re: [NTG-context] Spacing in \unit

2022-09-25 Thread Hans Hagen via ntg-context
On 9/25/2022 5:29 PM, Gavin via ntg-context wrote: Hi Hans, I also just noticed that the space between the number and the unit is missing when I typeset with ConTeXt ver: 2022.09.11 20:44 LMTX fmt: 2022.9.25. This space was present in with the ConTeXt version I was using earlier, from a

Re: [NTG-context] Spacing in \unit

2022-09-25 Thread Gavin via ntg-context
Hi Hans, I also just noticed that the space between the number and the unit is missing when I typeset with ConTeXt ver: 2022.09.11 20:44 LMTX fmt: 2022.9.25. This space was present in with the ConTeXt version I was using earlier, from a couple months ago. Thanks for putting it on the math todo

Re: [NTG-context] Spacing in \unit

2022-09-25 Thread Hans Hagen via ntg-context
On 9/25/2022 3:30 PM, Gavin via ntg-context wrote: Hello list, I have a few questions about space produced by the unit command. Consider this MWE \starttext \unit{3.00e8 kg m/s} $\unit{3.00e8 kg m/s}$ \stoptext The dot between “kg” and “m” has different spacing depending on whether the

[NTG-context] Spacing in \unit

2022-09-25 Thread Gavin via ntg-context
Hello list, I have a few questions about space produced by the unit command. Consider this MWE \starttext \unit{3.00e8 kg m/s} $\unit{3.00e8 kg m/s}$ \stoptext The dot between “kg” and “m” has different spacing depending on whether the \unit command is in text or math mode. I think that the