Re: [XeTeX] Always bold math & strange unicode-math behaviour
Am Mon, 17 Oct 2011 17:33:05 +0200 schrieb Tobias Schoel: >>> Is there a workaround or do I need to type \mathbf{} at the beginning of >>> each \(\) myself? >> You shouldn't use \mathbf to make large part of an equation bold. >> \mathbf is meant for single symbols and only for things like numbers >> and characters. In unicode math it works by mapping them to other >> unicode position. E.g. a \mathbf{0} is the MATHEMATICAL BOLD DIGIT >> ZERO character at position U+1D7CE. > OK. I wasn't used to this when using normal latex. In normal latex the situation is similar: \mathbf prints its argument in a specific (bold) font and normally can/should be used only for characters and numbers. >> If you want a bold math font you should at best use a font which has >> a bold face. > Is there any good unicode-math font with a bold face (Asana Math and > XITS Math don't work)? I do have a bold version of XITS and of STIX. But both font doesn't work flawlessly on my machine here - neither with xelatex, nor with lualatex (I don't know if it is a problem of the fonts or of my version of unicode-math/fontspec). \documentclass{article} \usepackage{unicode-math} % \setmathfont{STIXGeneral} \setmathfont[version=bold]{STIXGeneral Bold} \setmathfont[version=xitsnormal]{XITS} \setmathfont[version=xitsbold]{XITS Bold} \setmathfont[version=Asana]{Asana Math} \begin{document} STIX $\uppi\sqrt{\frac{\uppi r^2}{4}}$ \mathversion{bold} $\uppi\sqrt{\frac{\uppi r^2}{4}}$ \bigskip xitsnormal \mathversion{xitsnormal} $\uppi\sqrt{\frac{\uppi r^2}{4}}$ \mathversion{xitsbold} $\uppi\sqrt{\frac{\uppi r^2}{4}}$ \bigskip Asana \mathversion{Asana} $\uppi\sqrt{\frac{\uppi r^2}{4}}$ \end{document} -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Always bold math & strange unicode-math behaviour
Am 17.10.2011 17:19, schrieb Ulrike Fischer: Am Fri, 14 Oct 2011 12:55:39 +0200 schrieb Tobias Schoel: But \mathbf{} works. \boldmath and \mathversion{bold} shouldn't care, whether bold math is achieved with a bold type face or faked. It should only work like invoking \mathbf{} at the beginning of each \(\) and \[\]. Is there a workaround or do I need to type \mathbf{} at the beginning of each \(\) myself? You shouldn't use \mathbf to make large part of an equation bold. \mathbf is meant for single symbols and only for things like numbers and characters. In unicode math it works by mapping them to other unicode position. E.g. a \mathbf{0} is the MATHEMATICAL BOLD DIGIT ZERO character at position U+1D7CE. OK. I wasn't used to this when using normal latex. Of course I don't use bold math often, but for school it sometimes happens. http://www.fileformat.info/info/unicode/char/1d7ce/index.htm If you want a bold math font you should at best use a font which has a bold face. Is there any good unicode-math font with a bold face (Asana Math and XITS Math don't work)? In other case you will have to fake it: \documentclass{minimal} \usepackage{fontspec} \usepackage{unicode-math} % Interesting Line 1 \setmathfont{Asana Math} \setmathfont[version=bold,FakeBold=3.5]{Asana Math} \begin{document} $\sqrt{\frac{\pi r^2}{4}}$ \mathversion{bold} $\sqrt{\frac{\pi r^2}{4}}$ \end{document} (It works fine with xelatex but for me not with lualatex.) Thanks for the clarifications and the hint to fakebold. bye Toscho -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Always bold math & strange unicode-math behaviour
Am Fri, 14 Oct 2011 12:55:39 +0200 schrieb Tobias Schoel: > But \mathbf{} works. \boldmath and \mathversion{bold} shouldn't care, > whether bold math is achieved with a bold type face or faked. It should > only work like invoking \mathbf{} at the beginning of each \(\) and \[\]. > > Is there a workaround or do I need to type \mathbf{} at the beginning of > each \(\) myself? You shouldn't use \mathbf to make large part of an equation bold. \mathbf is meant for single symbols and only for things like numbers and characters. In unicode math it works by mapping them to other unicode position. E.g. a \mathbf{0} is the MATHEMATICAL BOLD DIGIT ZERO character at position U+1D7CE. http://www.fileformat.info/info/unicode/char/1d7ce/index.htm If you want a bold math font you should at best use a font which has a bold face. In other case you will have to fake it: \documentclass{minimal} \usepackage{fontspec} \usepackage{unicode-math} % Interesting Line 1 \setmathfont{Asana Math} \setmathfont[version=bold,FakeBold=3.5]{Asana Math} \begin{document} $\sqrt{\frac{\pi r^2}{4}}$ \mathversion{bold} $\sqrt{\frac{\pi r^2}{4}}$ \end{document} (It works fine with xelatex but for me not with lualatex.) -- Ulrike Fischer -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Always bold math & strange unicode-math behaviour
Am 13.10.2011 19:08, schrieb Peter Dyballa: Am 13.10.2011 um 18:35 schrieb Tobias Schoel: So what component is the source of problems. Asana Math. It has only a regular face. (Fontspec allows to artificially make a font bold.) -- Mit friedvollen Grüßen Pete To be is to do. – I. Kant To do is to be. – A. Sartre Yabba-Dabba-Doo! – F. Flintstone But \mathbf{} works. \boldmath and \mathversion{bold} shouldn't care, whether bold math is achieved with a bold type face or faked. It should only work like invoking \mathbf{} at the beginning of each \(\) and \[\]. Is there a workaround or do I need to type \mathbf{} at the beginning of each \(\) myself? And Thanks for the information so far. I really like this mailing list for the prompt, helpful and thought through answers. Toscho -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Always bold math & strange unicode-math behaviour
Am 13.10.2011 um 18:35 schrieb Tobias Schoel: > So what component is the source of problems. Asana Math. It has only a regular face. (Fontspec allows to artificially make a font bold.) -- Mit friedvollen Grüßen Pete To be is to do. – I. Kant To do is to be. – A. Sartre Yabba-Dabba-Doo! – F. Flintstone -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Always bold math & strange unicode-math behaviour
Hi, your minimal example does work for me, too. I didn't investigate thoroughly before sending the mail. Now I have found some more issues: Take this minimal example: \documentclass{minimal} \usepackage{fontspec} \usepackage{unicode-math} % Interesting Line 1 \setmathfont{Asana Math} % Interesting Line 2 \begin{document} $$\sqrt{\frac{\pi r^2}{4}}$$ \boldmath $$\sqrt{\frac{\pi r^2}{4}}$$ \end{document} → Everything is displayed, but not in bold. Now comment out Interesting Line 2: → Latin Modern is chosen → The second formula is bold → The \pi is eaten up / not displayed (not even as phantom). Now comment out Intersting Line 1: → The \pi is displayed well (bold and in Latin Modern) So what component is the source of problems. It looks a lot like unicode-math. How can we fix it? bye Toscho Am 12.10.2011 23:36, schrieb Zdenek Wagner: 2011/10/12 Tobias Schoel: Hi, is there a convenient way to tell XeLaTeX to print all math in bold. May be a fontspec or unicode-math option or command? Or a LaTeX-command? \boldmath doesn't work. Do you have \boldmath outside math? This works for me, compare the output of both equations: \documentclass{article} \usepackage{fontspec} \begin{document} $$\pi r^2 / 4$$ \boldmath $$\pi r^2 / 4$$ \end{document} Thanks Toscho -- Tobias Schoel Europaschule Kairo www.europaschulekairo.com -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex