Item13401: Font sizes in MathModePlugin

pencil
Priority: Normal
Current State: No Action Required
Released In: n/a
Target Release: n/a
Applies To: Extension
Component: MathModePlugin
Branches:
Reported By: MarcKloter
Waiting For:
Last Change By: AndreLichtsteiner
There is a problem with the font sizes in MathModePlugin 4.04.

If you use the same formula multiple times, the hash seems to be the same regardless of the size attribute. The result is, that the last formula will be rendered and displayed multiple times.

Example:

<latex title="Calligraphics" size="tiny">
  \cal
  A, B, C, D, E, F, G, H, I, J, K, L, M, \\
  \cal
  N, O, P, Q, R, S, T, U, V, W, X, Y, Z
</latex>

<latex title="Calligraphics">
  \cal
  A, B, C, D, E, F, G, H, I, J, K, L, M, \\
  \cal
  N, O, P, Q, R, S, T, U, V, W, X, Y, Z
</latex>

<latex title="Calligraphics" size="huge">
  \cal
  A, B, C, D, E, F, G, H, I, J, K, L, M, \\
  \cal
  N, O, P, Q, R, S, T, U, V, W, X, Y, Z
</latex>

So what we - or at least I would expect is, that there will be 3 images rendered in tiny, the fallback size and huge. But if we take a look at the latex file which is generated:

\documentclass[fleqn,12pt]{article}
\usepackage{amsmath}
\usepackage[normal]{xcolor}
\setlength{\mathindent}{0cm}
\definecolor{teal}{rgb}{0,0.5,0.5}
\definecolor{navy}{rgb}{0,0,0.5}
\definecolor{aqua}{rgb}{0,1,1}
\definecolor{lime}{rgb}{0,1,0}
\definecolor{maroon}{rgb}{0.5,0,0}
\definecolor{silver}{gray}{0.75}
\usepackage{latexsym}
\begin{document}
\pagestyle{empty}
\pagecolor{white}
{
\color{black}
\huge
\begin{multline*}\displaystyle \cal
  A, B, C, D, E, F, G, H, I, J, K, L, M, \\
  \cal
  N, O, P, Q, R, S, T, U, V, W, X, Y, Z\end{multline*}
}
\clearpage
{
\color{black}
\huge
\begin{multline*}\displaystyle \cal
  A, B, C, D, E, F, G, H, I, J, K, L, M, \\
  \cal
  N, O, P, Q, R, S, T, U, V, W, X, Y, Z\end{multline*}
}
\clearpage
{
\color{black}
\huge
\begin{multline*}\displaystyle \cal
  A, B, C, D, E, F, G, H, I, J, K, L, M, \\
  \cal
  N, O, P, Q, R, S, T, U, V, W, X, Y, Z\end{multline*}
}
\clearpage
\end{document}

We can see, that there are only \huge font size tags rendered. If we change the last of the tags to e.g. small, the tags will be all \small.

-- MarcKloter - 11 May 2015

After an upgrade to new servers and Foswiki 2 we don't see this problem anymore.

-- Main.AndreLichtsteiner - 27 Jan 2016 - 16:43

 
Topic revision: r2 - 27 Jan 2016, AndreLichtsteiner
The copyright of the content on this website is held by the contributing authors, except where stated elsewhere. See Copyright Statement. Creative Commons License    Legal Imprint    Privacy Policy