# wspr/unicode-math

### Subversion checkout URL

You can clone with HTTPS or Subversion.

# variable sized math operators scaling problem#192

Closed
opened this Issue · 4 comments

### 3 participants

I am using Asana-Math and the ams packages.

When using eg. \bigwedge or \prod in a $..$ environment everything is fine.
But as soon as I use it in $$...$$ the \bigwedge or \prod is too large (takes approx. 2 rows of text).

I am using texlive 2010 with luatex 0.66 and OSX 10.6.7.

Cheers,
Markus

Collaborator

The size of operators is by and large a design choice. Could you give an example where the choice would be definitely wrong? If you definitely want operators in display style to be smaller, you can change a math parameter:

\usepackage{unicode-math}
\usepackage{luacode}
\begin{luacode*}
local function patch_asana(fontdata)
local mc = fontdata.MathConstants
if mc then
mc.DisplayOperatorMinHeight = 0.6 * mc.DisplayOperatorMinHeight
end
end
\end{luacode*}
\setmathfont{Asana Math}


Thanks Philipp,
using your code snippet it looks fine :-)

Here is a minimal example where the bigwedge is too large.

\documentclass{minimal}
\usepackage{amsmath}
\usepackage{unicode-math}
\setmathfont{Asana Math}

\begin{document}
$$\bigwedge_{i = 0}^{n}{x_i}$$
\end{document}

Collaborator

You can also use \luatexUmathoperatorsize\displaystyle = 1em which achieves similar effect to the lua snippet above (I've to insert it after to have effect, thouh)

Nice solution.
Since this now works, I close this issue.

closed this
to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.