[XeTeX] Bold unit vectors
I'm trying to print bold unit vectors in Asana Math. I would like the 'i' to be bold, italic and with a hat on top. It appears to be an issue with the \imath symbol, as shown in the minimal example below. In addition, I'm not sure whether the hat should be bold when used with the \mathbf command (I think it should be). Perhaps a workaround would be to use non-unicode, non Asana with the AMS packages just for the unit vectors i, j and k, however I'm unsure how to 'undo' the unicode and Asana packages temporarily: $\boldsymbol{\hat{\imath}}$ Any help or workarounds would be appreciated! Nicholas %!TEX TS-program = xelatex %!TEX encoding = UTF-8 Unicode \documentclass{article} \usepackage{fontspec,xltxtra,xunicode} \defaultfontfeatures{Mapping=tex-text} \usepackage[bold-style=ISO]{unicode-math} \setmathfont{Asana Math} \begin{document} These work as expected: $i$, $\mathbf{i}$, $\hat{\imath}$ \ldots whereas these don't: $\mathbf{\imath}$ $\mathbf{\hat{\imath}}$ \ldots and I'm unsure if the hat should be bold here (which it isn't): $\mathbf{\hat{e}}$ \end{document} -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Problem with xelatex/fontspec/xparse.sty with miktex2.9
Joseph, many thanks. That works! I appreciate your help. Regards, Jon -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] RTL paragraphs with XeTeX?
- \parfillskip=0pt\parindent=0pt \leavevmode\beginR \hskip 8em Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris luctus accumsan vulputate. Vivamus vel lacus nunc, a dictum lacus. Duis rutrum, odio blandit dapibus facilisis, ipsum neque vestibulum ligula, ut vulputate leo nisl eget dolor. Donec luctus consequat porta. Duis tristique elit in sapien vulputate non pulvinar felis interdum. Praesent auctor eleifend sollicitudin. In hac habitasse platea dictumst. Donec congue congue interdum. Suspendisse vel dictum nulla. Nullam sit amet mi ut libero blandit scelerisque.\hskip 3em plus 1fil\nobreak\hbox{}\break\endR \par Don't put all that stuff at the end of the paragraph! For a standard RTL paragraph, you want to still be in RTL mode when the \par is encountered. So, try: \noindent \beginR \indent Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris luctus accumsan vulputate. Vivamus vel lacus nunc, a dictum lacus. Duis rutrum, odio blandit dapibus facilisis, ipsum neque vestibulum ligula, ut vulputate leo nisl eget dolor. Donec luctus consequat porta. Duis tristique elit in sapien vulputate non pulvinar felis interdum. Praesent auctor eleifend sollicitudin. In hac habitasse platea dictumst. Donec congue congue interdum. Suspendisse vel dictum nulla. Nullam sit amet mi ut libero blandit scelerisque.\par Or just precede a series of paragraphs with: \everypar={\setbox0=\lastbox \beginR \box0 } Ok, thank a lot! Don't I need to put \endR somewhere so that it's balanced? Perhaps that's what puzzled me... for automatic RTL-ness. (Explanation: \lastbox is used to retrieve the box that was inserted for the original automatic (LTR) paragraph indent; then after switching directionality, we put it back again so as to get the indent at the right end.) Ok, that's clear. Will \leftskipt and \rightskipt then be quasi switched too? Thank You! Petr Tomasek -- Petr Tomasek http://www.etf.cuni.cz/~tomasek Jabber: but...@jabbim.cz EA 355:001 DU DU DU DU EA 355:002 TU TU TU TU EA 355:003 NU NU NU NU NU NU NU EA 355:004 NA NA NA NA NA -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] RTL paragraphs with XeTeX?
On 1 Jul 2011, at 17:20, Petr Tomasek wrote: So, try: \noindent \beginR \indent Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris luctus accumsan vulputate. Vivamus vel lacus nunc, a dictum lacus. Duis rutrum, odio blandit dapibus facilisis, ipsum neque vestibulum ligula, ut vulputate leo nisl eget dolor. Donec luctus consequat porta. Duis tristique elit in sapien vulputate non pulvinar felis interdum. Praesent auctor eleifend sollicitudin. In hac habitasse platea dictumst. Donec congue congue interdum. Suspendisse vel dictum nulla. Nullam sit amet mi ut libero blandit scelerisque.\par Or just precede a series of paragraphs with: \everypar={\setbox0=\lastbox \beginR \box0 } Ok, thank a lot! Don't I need to put \endR somewhere so that it's balanced? Perhaps that's what puzzled me... No. See the e-TeX documentation for more details about \beginR, etc. for automatic RTL-ness. (Explanation: \lastbox is used to retrieve the box that was inserted for the original automatic (LTR) paragraph indent; then after switching directionality, we put it back again so as to get the indent at the right end.) Ok, that's clear. Will \leftskipt and \rightskipt then be quasi switched too? Not if I recall correctly - left is still left, and right is still right. JK -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Bold unit vectors
Yes, it seems as if Asana doesn't support \imath / U+0131 in Bold. The \hat shouldn't be printed bold, as it wouldn't look good and the bold/regular difference wouldn't carry meaning. Hello, To the best of my knowledge Unicode defines only LATIN SMALL LETTER DOTLESS I (U+0131) and MATHEMATICAL ITALIC SMALL DOTLESS I (U+1D6A4) and for both characters there are glyphs in Asana-Math. There is no MATHEMATICAL BOLD SMALL DOTLESS I symbol or even a MATHEMATICAL BOLD ITALIC SMALL DOTLESS I. A.S. -- Apostolos Syropoulos Xanthi, Greece -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex
Re: [XeTeX] Bold unit vectors
Hi Tobias, Nicholas and others, On 02/07/2011, at 12:22 AM, Tobias Schoel liesdieda...@googlemail.com wrote: Yes, it seems as if Asana doesn't support \imath / U+0131 in Bold. Because there is no need for it. When the vectors (bold) i, j, k are defined to be the standard basis vectors, then they are already unit vectors. Putting a hat over them is quite superfluous. That there is no easy way to do this in Unicode is surely indicative that standard usage does not require it, so you should be discouraged from attempting to do so. The \hat shouldn't be printed bold, as it wouldn't look good and the bold/regular difference wouldn't carry meaning. And putting a non-bold hat over a special symbol that is already defined to be a unit vector would be quite redundant, adding no extra meaning. Am 01.07.2011 14:22, schrieb Nicholas Oettle: I'm trying to print bold unit vectors in Asana Math. I would like the 'i' to be bold, italic and with a hat on top. It appears to be an issue with the \imath symbol, as shown in the minimal example below. In addition, I'm not sure whether the hat should be bold when used with the \mathbf command (I think it should be). Perhaps a workaround would be to use non-unicode, non Asana with the AMS packages just for the unit vectors i, j and k, however I'm unsure how to 'undo' the unicode and Asana packages temporarily: I would advise against trying to do so. Use the symbols provided in Asana, with their correct Unicode code-points. Then as future software is developed that better handles both the appearance and meaning of mathematical symbols, your expressions from PDFs that you are generating now will be useful to convey the meaning and semantics of your mathematics, not just it's visual appearance. $\boldsymbol{\hat{\imath}}$ Any help or workarounds would be appreciated! Nicholas Hope this helps, Ross -- Subscriptions, Archive, and List information, etc.: http://tug.org/mailman/listinfo/xetex