Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I don't like \varkappa in Asana math font and want to substute it with \varkappa from XITS math font. Here is MWE:

\documentclass{article}
\usepackage[math-style=ISO,bold-style=ISO]{unicode-math}
\setmathfont[version=xits,Color=006600]{XITS Math}
\setmathfont[version=asana,Color=000066]{Asana Math}
\setmathfont[version=lm,Color=660000]{Latin Modern Math}
\newcommand{\mykappa}{\mbox{\mathversion{xits}$\varkappa$}}
\renewcommand{\vec}[1]{\mathbf{#1}}
\begin{document}
\mathversion{asana}
\[
  \vec{\varkappa}=\varkappa\vec{n}
  \qquad
  \vec{\mykappa}=\mykappa\vec{n}
\]

\mathversion{lm}
\[
  \vec{\varkappa}=\varkappa\vec{n}
  \qquad
  \vec{\mykappa}=\mykappa\vec{n}
\]
\end{document}    

Is it a better solution? In particular, how one can redefine \varkappa instead of defining new command \mykappa as in the example above?

By the way, Latin Modern Math is missing bold varkappa as shows output generated with this MWE: enter image description here

share|improve this question
add comment

1 Answer

\documentclass{article}
\usepackage[math-style=ISO,bold-style=ISO]{unicode-math}
\setmathfont[version=Asana,Color=000066]{Asana Math}
\setmathfont[version=xits]{XITS Math}
\setmathfont[range={"003F0,"1D6DE}]{XITS Math}%%%% only for kappa

\newcommand{\mykappa}{\mbox{\mathversion{xits}$\varkappa$}}
\renewcommand{\vec}[1]{\mathbf{#1}}
\begin{document}
\mathversion{Asana}

\[
  \mbfvarkappa=\upvarkappa\vec{n} \qquad  \vec{\mykappa}=\mykappa\vec{n}
\]

\end{document}    

enter image description here

share|improve this answer
    
This is not what I had in mind: \varkappa still is taken from Asana Math. Is it possible to redefine \varkappa? –  Igor Kotelnikov Mar 17 '12 at 15:35
    
\let\varkappa\upvarkappa after \mathversion{Asana} –  Herbert Mar 17 '12 at 15:36
    
Still not working for \mathbf{\varkappa}. –  Igor Kotelnikov Mar 17 '12 at 16:13
    
sure, it is mbfvarkappa –  Herbert Mar 17 '12 at 16:27
    
I believe that logics is broken here. If I take both \mbfvarkappa and \upvarkappa from XITS, \mathbf{\varkappa} shoud take \mbfvarkappa (ie "1D6DE) from XITS rather than from Asana as it occurs in fact. Am I right? –  Igor Kotelnikov Mar 18 '12 at 7:07
show 5 more comments

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.