pretty versions of some units in math mode#1437
Conversation
|
Now this also prints pretty versions of the same units outside of math mode. |
|
Small thing, but the space before the degree symbol seems a little out of place to me. |
That is not a change, in the sense that currently you have |
|
Looking at the mathjax speech text, some seems good, |
I wasn't staying it was a change, but to me |
|
I have a question. If the unit is initially defined like |
|
Agreed, I wasn't sure if there was a solution or something we could do to improve it, I was just pointing it out. |
Would having some flag that this can be configured be useful to authors? I sometimes like to write units as |
|
I added a commit that essentially creates a list of unit symbols for which there will be no separator. Not sure I implemented it in the best way, but see what you think.
|
|
There are also weird things like My point is, I am wary about just deciding at the distribution level, how to display all equivalent units (like how |
|
I have a feeling I'm not doing one or both of these things here (pretty printing certain units, eliminating certain space separators) the right way. If @dpvc has a chance, it would be good to see what you think, as the designer of this context. |
|
@Alex-Jordan I'll leave it to you to decide what is best, I haven't used units yet, so don't have any experience, just pointing out things I saw. I didn't realize that this only affected a specific case of the units. |
I have also been bothered by the space between the number and the degree symbol. It is something I have thought about fixing at some point. |
This sort of addresses #503, except by way of the newer
contextUnits.pl. Each of the supported units fromUnits.pmthat has a special unicode character will now print that way, if the unit is being used in math mode. Test with the problem below. It all looks fine in HTML. In hardcopy, we must be careful that the default font we use has glyphs for these characters. This is why two characters are used for degrees Fahrenheit, but a single character can be used for degrees Celsius. Also if someone switched away from xelatex over to pdflatex, these won't work. I'm unsure if we support not using xelatex.Test with: