Re: [XeTeX] fontspec's \setmathrm seems to have no effect

2011-09-04 Thread Daniel Greenhoe
Hi Will,

Thank you very much for your suggestion.  I did see the mathspec
package referenced in the unicode-math documentation. I will take a
look at the mathspec documentation as well.

 mathspec less likely to conflict with other packages that also deal with this 
 area...

Since I have started using fontspec, I am trying to remove as many
extraneous text and math related font packages as I can get away with.
So for me personally, I would be looking for a rather complete math
font solution which I might guess to be unicode-math.

Basically when pdffonts gives me a list of all the fonts in one of my
documents, I would like to see them all be OpenType unicode fonts and
especially none of them be type-3 postscript fonts. My understanding
is that type-3 fonts do not support hinting --- but I am no expert in
this area.

Dan

On Sun, Sep 4, 2011 at 11:55 PM, Will Robertson wsp...@gmail.com wrote:
 Note that if you're just looking to change the font used for the italic
 alphabetic characters, the mathspec package might be preferable for some.
 unicode-math is rather extreme in the changes it makes to maths fonts and
 mathspec less likely to conflict with other packages that also deal with
 this area...

 Will




 --
 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] fontspec's \setmathrm seems to have no effect

2011-09-02 Thread Ulrike Fischer
Am Fri, 2 Sep 2011 07:08:47 +0800 schrieb Daniel Greenhoe:

 Thank you Peter and Mskala for your help.

 Does anyone know if it is possible to use fontspec to set the fonts
 for math objects such as operators, letters, and symbols?

 
 Alternatively, if NFSS is the only option, how would I find the code
 letters (e.g. ppl or zplm) for a given font such as for the
 Asana-Math.otf font that comes with TeXlive?

Use the package unicode-math.

-- 
Ulrike Fischer 



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


Re: [XeTeX] fontspec's \setmathrm seems to have no effect

2011-09-02 Thread Daniel Greenhoe
Thank you Ulrike --- I have started using the unicode-math package. It
works great. Your suggestion was very helpful.

Dan

On Fri, Sep 2, 2011 at 3:53 PM, Ulrike Fischer ne...@nililand.de wrote:
 Am Fri, 2 Sep 2011 07:08:47 +0800 schrieb Daniel Greenhoe:

 Thank you Peter and Mskala for your help.

 Does anyone know if it is possible to use fontspec to set the fonts
 for math objects such as operators, letters, and symbols?


 Alternatively, if NFSS is the only option, how would I find the code
 letters (e.g. ppl or zplm) for a given font such as for the
 Asana-Math.otf font that comes with TeXlive?

 Use the package unicode-math.

 --
 Ulrike Fischer



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




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


[XeTeX] fontspec's \setmathrm seems to have no effect

2011-09-01 Thread Daniel Greenhoe
When I use \setmathrm from the fontspec package to try to set the math
roman font, it doesn't seem to have any effect. Here an example:

\documentclass{book}
\usepackage{fontspec}
 \setmainfont{texgyrepagella-regular.otf}% TeX-Gyre Pagella font (Roman font)
 \setmathrm{texgyrecursor-regular.otf}% TeX-Gyre Cursor font (mono-spaced font)
 %\setmathrm{Asana-Math.otf}%
 \setlength{\parindent}{0pt}
\begin{document}
abcdefgh\\
$abcdefgh$\\
\fontspec{texgyrecursor-regular.otf}abcdefgh
\end{document}

* The first line is roman.
* The second line (in math mode) I would think should be mono-spaced
because of the \setmathrm command; but instead it seems to be maybe a
proportional computer modern font.
* The third line is mono-spaced as expected (because of the \fontspec command).

When I checked the pdf file using the program pdffonts
(http://www.foolabs.com/xpdf/download.html) I got

VIWLPD+TeXGyrePagella-Regular-Identity-H CID Type 0C
JTLJYE+CMMI10Type 1C
UIRRAJ+TeXGyreCursor-Regular-Identity-H CID Type 0C

... but the JTLJYE seems to change for each xelatex compile.
So instead of the \setmathrm giving me the font I requested, I seem to
be getting a computer modern font. Why would this be???

Many thanks in advance,
Dan


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


Re: [XeTeX] fontspec's \setmathrm seems to have no effect

2011-09-01 Thread Peter Dyballa

Am 01.09.2011 um 14:27 schrieb Daniel Greenhoe:

 So instead of the \setmathrm giving me the font I requested, I seem to
 be getting a computer modern font. Why would this be???

Because you don't set your maths in \mathrm! The default for maths is a 
sans-serif font, because the text usually consists of a serif font.

--
Greetings

  Pete

If we don't succeed, we run the risk of failure.
– George W. Bush




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


Re: [XeTeX] fontspec's \setmathrm seems to have no effect

2011-09-01 Thread mskala
On Thu, 1 Sep 2011, Peter Dyballa wrote:
  So instead of the \setmathrm giving me the font I requested, I seem to
  be getting a computer modern font. Why would this be???

 Because you don't set your maths in \mathrm! The default for maths is a 
 sans-serif font, because the text usually consists of a serif font.

It depends which symbols you're talking about, but variables in math (at
least in English-language documents) are normally set in italic by
default.  Roman is typically used for function names like sin and log.
Sans-serif is rarely used in math; when it is, it's often for special
kinds of variables, such as vectors (though other conventions are more
popular for indicating vectors).
-- 
Matthew Skala
msk...@ansuz.sooke.bc.ca People before principles.
http://ansuz.sooke.bc.ca/


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