latex3 / unicode-math

XeLaTeX/LuaLaTeX package for using unicode/OpenType maths fonts
http://ctan.org/pkg/unicode-math
LaTeX Project Public License v1.3c
243 stars 28 forks source link

Option vargreek-shape still mentioned in documentation #390

Closed aginiewicz closed 7 years ago

aginiewicz commented 7 years ago

vargreek-shape is still mentioned in documentation - https://github.com/wspr/unicode-math/blob/81b54630a67d41a61cf3cc42d32e2f6c5dbca46d/unicode-math-doc.tex#L309 - even though it was removed in recent release.

wspr commented 7 years ago

Apologies, I appear to have corrected that some time back but never committed the change...

LDVSOFT commented 6 years ago

Hello! I know this is quite outdated, but what to do if I liked the option?

wspr commented 6 years ago

@LDVSOFT — good question! The trick is to remember that literal unicode chars will work directly, and the unicode-math-table.tex file maps command names to literal unicode chars. And looking in that file, you'll find \mitvarphi and \mitphi as the underlying names. So you can write

\documentclass{article}
\usepackage{unicode-math}
\AtBeginDocument{
  \renewcommand\phi{\mitvarphi}
  \renewcommand\varphi{\mitphi}
}
\begin{document}
$\phi$ $\varphi$
\end{document}
LDVSOFT commented 6 years ago

Oh, mit prefix is available. That's nice, thank you!