latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
241 stars 28 forks source link

Add math-style for upright uppercase (Latin and Greek) and italic lowercase (Latin and Greek) #474

Open kauesena opened 6 years ago

kauesena commented 6 years ago

Description

It would be a nice to be able to have all uppercase letters to be upright. The package does not yet have this option.

Check/indicate

wspr commented 6 years ago

What about math-style=french ?

kauesena commented 6 years ago

I have been using it, but it makes also all Greek lowercase upright. In the past, I used the mathdesign package which allowed this style using 'uppercase=upright'.

wspr commented 6 years ago

Okay, fair enough. Is this a standard style somewhere? Could you provide links to example documents of this style in use? Or is it to work around a font difficulty?

kauesena commented 6 years ago

I have seen documents with such configuration, but I couldn't find one as I searched through my books and PDF's here. There was one which I thought was configured thus, but it ended up being the typical French style. I believe it probably isn't a standard anywhere, and I am just someone who sadly prefers the in-between of math-style standards.

Maybe I can call this a font difficulty: when using the French style the lowercase roman letters are upright with \mathbf, and are italicised in normal math mode. I usually prefer when the bold version of the letter in a equation is simply a heavier version of the same shape. I think the reason behind things not being this way is to make a clearer distinction between bold and not bold.

It would be nice to have this feature, but I do also understand that there may be little reason for the trouble of adding this style since it probably isn't standard anywhere. In that case, I hope to grow fond of the TeX or the French styles. :)

Thanks for the prompt answers and all the great work.

wspr commented 6 years ago

Thanks for the additional comments. When I spend some time next with this package I’ll see if there’s anything I can add that doesn’t overly complicate the options.

davidcarlisle commented 6 years ago

Maybe I can call this a font difficulty: when using the French style the lowercase roman letters are upright with \mathbf, and are italicised in normal math mode. I usually prefer when the bold version of the letter in a equation is simply a heavier version of the same shape.

that though is the standard behaviour of \mathbf with or without the unicode-math package. \mathbf is the bold version of \mathrm, not the bold version of the default math italic (which is \bm in classic math setup or \symbfit in unicode-math

David

kauesena commented 6 years ago

You're right, David! As I usually define a new command for vectors (which are my major use of bold characters in math mode, being a physics student), I do not use \mathbf frequently. I went and checked my cls files from when I still used pdflatex and mathdesign, and saw that I used \boldsymbol and not \mathbf, possibly because it has the behaviour you described, of which I had no remembrance.

tytyvillus commented 4 years ago

I also use this style (lowercase italic, uppercase upright). I don’t think it’s standard anywhere but it’s the logical intermediary between the French and TeX styles — and it’s more consistent. It doesn’t need to be complicated, either: it just needs the same Latin rules as math-style=french and the same Greek rules as math-style=TeX. You could call it something like math-style=mixed ;). Despite the fact that it’s non-standard I think it would be a nice option to have.