latex3 / unicode-math

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

Package option to use upright math #26

Closed khaledhosny closed 15 years ago

khaledhosny commented 15 years ago

Some fonts like Euler has no italic math (and by design, it'll never has), I think it'd be needed to have an option to switch all math symbols globally to upright ones, may be [math-style=upright]?

khaledhosny commented 15 years ago

This adds math-style=upright option, but the documentation need to be updated. Do we need a bold-style=upright option? (will be redundant with French, but might be better for consistency) diff --git a/unicode-math.dtx b/unicode-math.dtx index 43f33b6..1fdfce2 100644 --- a/unicode-math.dtx +++ b/unicode-math.dtx @@ -670,7 +670,7 @@ This work consists of the files unicode-math.dtx and unicode-math-table.tex % \paragraph{math-style} % \begin{macrocode} \define@choicekey*{unicode-math.sty}

wspr commented 15 years ago

Hang on a minute; even though the glyphs might not look italic, they still belong in the mathematical unicode area. Rather than support plain ascii for the main font, I'd rather have a separate interface for this. See the newly created #28.

jcsalomon commented 15 years ago

Actually, Euler is italic; it just isn’t slanted. I’d post a bug report in euler-otf if I could.

khaledhosny commented 15 years ago

@wspr

I'm talking about the whole font, which includes bold upright Latin and Greek math alphabets among others, and those are indeed encoded as Unicode math, but still not used by "unicode-math" because it is looking for italics and the font doesn't have any.

My idea is to be able to use upright math every where (Latin, Greek, regular bold) in place of ordinary italic symbols, the same way "euler" or "eulervm" packages do for type1 version of the font.

khaledhosny commented 15 years ago

@jcsalomon

This might be true, but the type1 fonts are named "eurm" and "eurb" indicating it is roman (upright) and not italic, also the latest version of ams euler fonts maps medium glyphs to ascii and bold glyphs to math upright and not math italic.

wspr commented 15 years ago

Hi Khaled,

I'm certainly not an authority on this sort of thing, but I think it makes sense to encode the Neo Euler math digits in the unicode plane even though they're not strictly slanted (or italic). I say this because unicode is (supposed) to encoding meaning rather than presentation, and an italic "a" in Asana Math means the same thing as an upright "a" in Neo Euler.

What do you think?

Cheers, Will

jcsalomon commented 15 years ago

I’d take this to the unimath list. I’ve got some specific suggestions for which I’d like some wider feed-back.

—Joel

khaledhosny commented 15 years ago

@wspr

I've no strong opinion here, but encoding it as upright math was the only natural choice since this what AMS did (in the latest release at least, each glyph has its Unicode code point set). Also, how we will deal with bold Latin and Greek math, since both have upright and italic math blocks; should we encode them as italic, upright or both?

The brute force solution it to duplicate the glyphs in both upright and italic slots for all math alphabets, but this is something I wouldn't like to do.

@joel

Sorry for my ignorance, I've seen reference to unimath list several times but I've no idea how can I access that list (nor google do).

wspr commented 15 years ago

Hi Khaled,

The (sometimes very quiet) unicode-math mailing list/Google Group is here: http://groups.google.com/group/unimath

You're right, it is tricky with upright/italic bold. It is a rather fuzzy situation, since I'm not actually aware of any maths texts that use both upright and italic bold characters of a single alphabet. (Although I guess it wouldn't be hard to invent a use for them both.) I guess my first instinct for Neo Euler would be to have the regular letters in the mathematical italic block and the bold letters in the upright bold math block only, but I agree it's a little odd.

Regardless, I hope to build support into unicode-math to use ascii chars as maths alphabets, so one way or another it should be possible to use Neo Euler with this package.

khaledhosny commented 15 years ago

I'm a bit reluctant to change the code points at this stage, not without a really good reason. I'm able to fully use the font with ConTeXt right now (latest betas), and I hope unicode-math will follow.