Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-06 Thread le . farfadet . spatial

Tobias,

Tobias Schoel liesdieda...@googlemail.com wrote:

 Maybe, there is a complete solutin (at least as complete als Linux
 Libertine lets it be). In order to determine that, you should give a
 detailed specification of what you _want_. Until now, you mostly said,
 what you _did_ and what problems occured that way.

I want to use Linux Libertine as main font. To keep coherence into my document,
I want it to be used into mathematical environment, meaning also for predefine
functions (such as ln) and SI environment. As there is no bold italic Greek
symbols in Linux Libertine ­­-- well, not yet --, I want to use LModern for
Greek symbols (and only for Greek symbols). In mathematical environment, I want
bold characters to be bold italic characters. Also, I am trying to use as much
Unicode as I can.

   Here is the version I have been able to make that satisfies me the most, even
if it is not exactly what I want to do. There may be a better way:

documentclass{article}

usepackage{isomath}
usepackage[math]{mathspec}
usepackage{siunitx}

defaultfontfeatures{Scale=MatchLowercase}
setromanfont[Mapping=tex-text]{Linux Libertine O}
setsansfont[Mapping= tex-text]{DejaVu Sans}
setmonofont{DejaVu Sans Mono}
setmathfont{Linux Libertine O}
setmathsfont(Digits,Latin)[Numbers={Lining, Proportional}]{Linux
  Libertine O}

begin{document}
sisetup{detect-all, detect-inline-family=text, detect-inline-weight=text,
  detect-display-math=true}

SI{6}{meter per second} $SI{6}{meter per second}$

emph{bfseries u} $mathbfit{u}$ $mathbfit{tau}$

ln $ln$
end{document}

   Regards.

  Yoann




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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread Peter Dyballa


Am 05.07.2011 um 06:56 schrieb Le Farfadet Spatial:

. First, it seems that the font Linux Libertine does not have any  
bold italic characters.



First, Michael Niedermair wrote three weeks ago to include into your  
LaTeX document the line


\usepackage{libertine}

and it's meant to also be used when you're using a different TeX  
engine than pdfTeX. Could you try again with this correction?



BTW, the documentation can be found here: ftp://dante.ctan.org/tex-archive/fonts/libertine/doc/fonts/libertine/pdfs/libertine.pdf 
.


The recent version of Libertine is here:

ftp://dante.ctan.org/tex-archive/fonts/libertine/

A new (test?) version 5.1.2 is here:


ftp://dante.ctan.org/tex-archive/fonts/libertine/fonts/opentype/public/libertine/

--
Greetings

  Pete

A designer knows he has arrived at perfection not when there is no  
longer anything to add, but when there is no longer anything to take  
away.

– Antoine de Saint-Exupéry




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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread le . farfadet . spatial

Peter,

Peter Dyballa peter_dyba...@web.de wrote:

 First, Michael Niedermair wrote three weeks ago to include into your
 LaTeX document the line

   \usepackage{libertine}

Are you sure you are not mistaking me with someone else? It is the first time I
am posting about this issue on this list. I have, indeed, post about this on
fr.comp.text.tex (the french TeX newsgroup), but Michael never post there, and
nobody told me about \usepackage{libertine}.

   Do not be mistaken: I am happy that somebody tries and help me, I just do not
want my issue being taken for another one.

   By the way, I have add \usepackage{libertine}, but it did not changed
anything.

 The recent version of Libertine is here:

Then, I will download it and try again.

   Regards.

   Yoann


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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread Peter Dyballa


Am 05.07.2011 um 10:36 schrieb le.farfadet.spat...@free.fr:


Are you sure you are not mistaking me with someone else?


Yes, I am. In the footer of the mails of this list you can find a link  
to the list's archive. In the middle of June a thread about some too  
heavy Libertine face started. Read yourself! (I haven't read the newer  
Libertine documentation yet and the older only partially.)


--
Greetings

  Pete


Evolutiono   __o _o _
  °\___o  /0~ -\,  ^\___ /=\\_/-%
oo~___ /\ /\__/ \_O/ O___o===--O--o




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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread Ulrike Fischer
Am Tue, 05 Jul 2011 06:56:48 +0200 schrieb Le Farfadet Spatial:

 Hello everybody out there!
 
  I am experiencing some troubles while using together Isomath, 
 Mathspec and Siunitx. First, it seems that the font Linux Libertine does 
 not have any bold italic characters.

That's wrong. You don't get bold italic in your \empf{\bf ..}
because of the (obsolete and here wrong) \bf. Use \bfseries instead.


  As a consequence, when using 
 \mathbfit in mathematical environment, the font is not Linux 
 Libertine, but LModern. 

No. It is lmodern because isomath defines it to point to this font
(\math... commands always points to specific fonts) and because
mathspec/fontspec doesn't overwrite this definition (\mathbfit is
not a standard command). If you don't want to use unicode-math you
will have to do the redeclaration yourself:

\documentclass{article}

\usepackage{isomath}
\usepackage{mathspec}

\setromanfont[Mapping=tex-text]{Linux Libertine O}
\setmathfont{Linux Libertine O}

\ExplSyntaxOn\makeatletter
\SetMathAlphabet\mathbfit{normal}\zf@enc\g_fontspec_mathrm_tl\bfdefault\itdefault
\ExplSyntaxOff\makeatother


\begin{document}

\emph{\bfseries u} $\mathbfit{u}$ 
\end{document}

 LModern is also used with predefine function 
 such as \ln, and with Siunitx. Here is an example summarizing the 
 troubles I have:

In this case it is due to the definition of \ln (and independant of
siunitx). \ln uses the operator font. mathspec loads as default
fontspec with option no-math, so fontspec doesn't change the
operator font. You can use \usepackage[math]{mathspec}.


-- 
Ulrike Fischer 



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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread le . farfadet . spatial

Ulrike,

Ulrike Fischer ne...@nililand.de wrote:

 That's wrong. You don't get bold italic in your \empf{\bf ..}
 because of the (obsolete and here wrong) \bf. Use \bfseries instead.

Alright. I have tried it. Indeed, I have obtained bold italic.

 No. It is lmodern because isomath defines it to point to this font
 (\math... commands always points to specific fonts) and because
 mathspec/fontspec doesn't overwrite this definition (\mathbfit is
 not a standard command). If you don't want to use unicode-math you
 will have to do the redeclaration yourself:

I have tried it and I have then actually obtained Linux Libertine bold italic
font in mathematical environment. But, I have then lost Greek symbols. If I am
using \setmathsfont(Digits,Latin,Greek)[Numbers={Lining, Proportional}]{Linux
Libertine O}, then I obtain an error message:

  ! LaTeX Error: Command `\Gamma' already defined.

Obviously, this is about redefining \Gamma macro. Of course \setmathfont
needs to redefine it, the question is which other package does too? Isomath, I
guess.

   Anyway, I would rather being able to use unicode-math.

 In this case it is due to the definition of \ln (and independant of
 siunitx). \ln uses the operator font. mathspec loads as default
 fontspec with option no-math, so fontspec doesn't change the
 operator font. You can use \usepackage[math]{mathspec}.

It has worked pretty well, thank you.

   Here is the current state of my example:

\documentclass{article}

\usepackage{isomath}
\usepackage[math]{mathspec}
\usepackage{siunitx}

\defaultfontfeatures{Scale=MatchLowercase}
\setromanfont[Mapping=tex-text]{Linux Libertine O}
\setsansfont[Mapping= tex-text]{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\setmathfont{Linux Libertine O}
\setmathsfont(Digits,Latin)[Numbers={Lining, Proportional}]{Linux
  Libertine O}

\begin{document}
\sisetup{detect-all, detect-inline-family=text, detect-inline-weight=text,
  detect-display-math=true}

\SI{6}{\meter \per \second} $\SI{6}{\meter \per \second}$

\emph{\bfseries{u}} $\mathbfit{u}$ $\mathbfit{\tau}$

ln $\ln$
\end{document}

   Best regards.

 Yoann


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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread Ulrike Fischer
Am Tue, 05 Jul 2011 12:00:17 +0200 schrieb
le.farfadet.spat...@free.fr:

 I have tried it and I have then actually obtained Linux Libertine bold italic
 font in mathematical environment. But, I have then lost Greek symbols. If I am
 using \setmathsfont(Digits,Latin,Greek)[Numbers={Lining, Proportional}]{Linux
 Libertine O}, then I obtain an error message:
 
   ! LaTeX Error: Command `\Gamma' already defined.
 
 Obviously, this is about redefining \Gamma macro. Of course \setmathfont
 needs to redefine it, the question is which other package does too? Isomath, I
 guess.
 
Anyway, I would rather being able to use unicode-math.

Why don't you do it?

But as the docu of isomath says:

unicode-math cannot be used together with isomath. It can, however,
replace all of isomath’s functionality. See the discussion of the
unicode-math package below.

So if you want to try unicode-math remove isomath (and other
packages that changes math setup).

Setting up the math fonts are not easy as a lot of symbols and fonts
are involved. The differences between the engines (8-bit like
pdflatex - xelatex, lualatex) are here also more pronounced.
Mixing 8-bit-math packages with unicode math packages can get quite
complicated.


-- 
Ulrike Fischer 



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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread le . farfadet . spatial

Ulrike,

Ulrike Fischer ne...@nililand.de wrote:

 Why don't you do it?

Well, because then I do not know how to obtain bold italic font in mathematical
environment, and because I am loosing Greek symbols.

   Actually, I am not more found about one package or another. The reason I have
started to use Isomath is Bm does not work properly with Mathspec. For now on,
what I want is to be able to obtain bold italic font in mathematical
environments, including bold italic font for Greek symbols, with XeLaTeX, if
possible in a way that is compatible with LuaLaTeX. In fact, I do not really
care about what package I am using to achieve this goal. Also, I try to use
UTF-8 as much as I can.

   So, in fact, my question is: what is the best way to obtain bold italic font
in mathematical environments, including bold italic font for Greek symbols, when
you are using Mathspec?

   Best regards.

Yoann


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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread le . farfadet . spatial

Ulrike,

Ulrike Fischer ne...@nililand.de wrote:

 The main problem is that (at least my version of) the libertine
 fonts don't have a bold italic greek symbols.

Just for the Greek symbols, I can use LModern until Libertine get the whole set
of Greek symbols.

 The second problem is that as soon as you use
 \usepackage[math]{mathspec} together with \setmathfont you get a lot
 of errors like
 ! LaTeX Error: Command `\Gamma' already defined.

 At my opinion mathspec should sort this out.

If I understand well, there is no complete solution to my problem, yet. I should
wait until this will be fixed into Mathspec, shouldn't I?

   Regards.

 Yoann


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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread Tobias Schoel



Am 05.07.2011 12:13, schrieb Ulrike Fischer:

Am Tue, 05 Jul 2011 12:00:17 +0200 schrieb
le.farfadet.spat...@free.fr:


I have tried it and I have then actually obtained Linux Libertine bold italic
font in mathematical environment. But, I have then lost Greek symbols. If I am
using \setmathsfont(Digits,Latin,Greek)[Numbers={Lining, Proportional}]{Linux
Libertine O}, then I obtain an error message:

   ! LaTeX Error: Command `\Gamma' already defined.

Obviously, this is about redefining \Gamma macro. Of course \setmathfont
needs to redefine it, the question is which other package does too? Isomath, I
guess.

Also look for amsmath co. Sometimes, simply changing the order helps.



Anyway, I would rather being able to use unicode-math.


Then do it, Asana Math works well with Linux Libertine and even more 
with TeX Gyre Pagella:


\documentclass{minimal}
\usepackage{fontspec}
\usepackage{unicode-math}
\setromanfont{Linux Libertine O}
\setsansfont{TeX Gyre Pagella}
\setmathfont{Asana Math}
#\setmathfont[range=0030-0039]{Linux Libertine O} #uncomment for math 
numbers from Linux Libertine O instead of Asana Math


\begin{document}
Hallo 123 $Hallo 123$ \textsf{Hallo 123}
\end{document}



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


Re: [XeTeX] Isomath, Mathspec and Siunitx

2011-07-05 Thread le . farfadet . spatial

Tobias,

Tobias Schoel liesdieda...@googlemail.com wrote:

 Also look for amsmath co. Sometimes, simply changing the order helps.

I have already test this. It seems to me that the best is to put Isomath before
any other mathematical package, while putting Mathspec after any other.

 Then do it, Asana Math works well with Linux Libertine and even more
 with TeX Gyre Pagella:

Too much different to me, and it does not solve any of the problems I have
reported in the current thread. Actually, I then do not have bold italic nor
Greek symbols in mathematical environments.

   So far, I am using \usepackage[math]{mathspec} and accept to have LModern
bold italic and Greek symbols in mathematical environments, this is the solution
I like the more, until Mathspec problems being solve (hopefully in TeXLive
2011).

   Regards.

Yoann


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