We must group the content which should be changed in size wit a pair of braces because the LaTeX size commands are otherwise switches. We already do so for many case, but not for the case that a size command is inside another command. This patch adds now always a brace pair around the selected text which is the safest method.
}
}
- // When the current language is Hebrew, Arabic, or Farsi
+ // If the current language is Hebrew, Arabic, or Farsi
// the numbers are written Left-to-Right. ArabTeX package
// reorders the number automatically but the packages used
// for Hebrew and Farsi (Arabi) do not.
}
os << '\\'
<< LaTeXSizeNames[f.size()]
- << ' ';
+ << '{';
count += strlen(LaTeXSizeNames[f.size()]) + 2;
}
return count;
os << '}';
++count;
}
+ os << '}';
+ ++count;
}
// When the current language is Hebrew, Arabic, or Farsi