Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

variable sized math operators scaling problem #192

Closed
mgee opened this Issue · 4 comments

3 participants

Markus Engelbrecht Philipp Stephani Khaled Hosny
Markus Engelbrecht

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 \begin{equation} ... \end{equation} 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

Philipp Stephani
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
  luatexbase.add_to_callback("luaotfload.patch_font", patch_asana, "patch_asana")
\end{luacode*}
\setmathfont{Asana Math}
Markus Engelbrecht

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}
\begin{equation}
\bigwedge_{i = 0}^{n}{x_i}
\end{equation}
\end{document}
Khaled Hosny
Collaborator

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

Markus Engelbrecht

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

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