[XeTeX] Bold unit vectors

2011-07-01 Thread 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:

$\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] Bold unit vectors

2011-07-01 Thread Tobias Schoel

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.


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:

$\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



--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Bold unit vectors

2011-07-01 Thread Apostolos Syropoulos
> 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

2011-07-01 Thread Ross Moore

Hi Tobias, Nicholas and others,

On 02/07/2011, at 12:22 AM, Tobias Schoel  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


Re: [XeTeX] Bold unit vectors

2011-07-02 Thread Javier Bezos

Ross,


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.


Somewhat off-topic, but math notations cannot follow strict rules
and you may want a hat over any i or j -- perhaps a special basis
(eg, a rotating one). You can find the hat (with the dot) for
example in Schaum's Continuum Mechanics, by Mase. Redundancy,
when consistency is also important, is not always a bad thing.

Regards
Javier


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Bold unit vectors

2011-07-02 Thread Tobias Schoel

Hi,

Unicode 6.0.0, chapter 15 
(http://www.unicode.org/versions/Unicode6.0.0/ch15.pdf) reveals some 
information:


Unicode does provide \imath and \jmath symbols (u+1d6a4 und u+1d6a5), 
but these are part of the regular, italic Latin math alphabet, so any 
markup such as \mathbf will be lost on them. [In difference to the usual 
TeX-behavior of \imath and \jmath]


But Unicode also specifies, that \imath and \jmath need not be used in 
simple cases, since \hat i should yield a dotless i with a circumflex on 
top. [i and j have the Soft_Dotted property]


\imath and \jmath are provided for cases, in which the \hat (or other 
diacritical marks) spans more than a single letter, such as


\widehat{a+i}=\hat a+\hat i

I still don't understand, why this equation couldn't possibly be bold, 
but Unicode only provides for regular italic.


So in your case, \mathbf{\hat i}, \hat\mathbf{i} (with unicode-math) or 
\hat 𝒊  [u+1d48a] should yield the desired result, but it doesn't (at 
least with me).


bye

Toscho


--
Subscriptions, Archive, and List information, etc.:
 http://tug.org/mailman/listinfo/xetex


Re: [XeTeX] Bold unit vectors

2011-07-04 Thread Nicholas Oettle
Thanks for all the input.

Whilst I agree that it's not strictly necessary to have the hat over the unit 
vectors since I'm not defining anything in a particularly unusual way, it is in 
fairly common usage to see this form. Also, if I were to define a unit vector 
as:

$\mathbf{\hat{a}}=\frac{\mathbf{a}}{\lvert\lvert\mathbf{a}\rvert\rvert}$

I would have no problems, it's only because i (and j) happen to have a dot on 
top that difficulties are encountered. I'm unsure as to how the Soft_Dotted 
property should work, since if I do indeed try to do what I'm aiming to do with 
a plain i as opposed to \imath, I get a nasty clash. 

$\mathbf{\hat{i}}=\frac{\mathbf{i}}{\lvert\lvert\mathbf{i}\rvert\rvert}$

Many thanks,

Nicholas


--
Subscriptions, Archive, and List information, etc.:
  http://tug.org/mailman/listinfo/xetex