The Problem lies within the definition of \textsuperscript
that uses math mode.
\DeclareRobustCommand*\textsuperscript[1]{%
\@textsuperscript{\selectfont#1}}
\def\@textsuperscript#1{%
{\m@th\ensuremath{^{\mbox{\fontsize\sf@size\z@#1}}}}}
A possible workaround is redefining the actual command so that it will not get in the way with your equations, this needs graphicx
:
\renewcommand{\textsuperscript}[1]{\raisebox{0.8ex}{\scalebox{0.66}{#1}}}
Or this needs relsize
\renewcommand{\textsuperscript}[1]{\raisebox{0.8ex}{\smaller{#1}}}
I admit that this is just an easy workaround emulating the typrsetting of superscripts. It might be possible, that modern typography defines super/subscript in a certain way.
This also works with various enlargements of text sizes. This MWE also emulates a textsubscript:
\documentclass[12pt,oneside,letterpaper,titlepage]{article}
\DeclareMathSizes{12}{20}{14}{10}
%% Solution 1
\usepackage{relsize} %smaller
\renewcommand{\textsuperscript}[1]{\raisebox{0.8ex}{\smaller{#1}}}
\newcommand{\textsubscript}[1]{\raisebox{-0.4ex}{\smaller{#1}}}
%% Solution 2
%%\usepackage{graphicx} %scalebox
%%\renewcommand{\textsuperscript}[1]{\raisebox{0.8ex}{\scalebox{0.66}{#1}}}
%%\newcommand{\textsubscript}[1]{\raisebox{-0.4ex}{\scalebox{0.66}{#1}}}
\begin{document}
...modulation by Ca\textsuperscript{2+}...
...soluted in water H\textsubscript{2}O...\\
\tiny Ca\textsuperscript{2+}
\scriptsize Ca\textsuperscript{2+}
\footnotesize Ca\textsuperscript{2+}
\small Ca\textsuperscript{2+}
\normalsize Ca\textsuperscript{2+}
\large Ca\textsuperscript{2+}
\Large Ca\textsuperscript{2+}
\LARGE Ca\textsuperscript{2+}
\huge Ca\textsuperscript{2+}
\Huge Ca\textsuperscript{2+}
\normalsize
\begin{equation}
\sigma^2 = iI - \frac{I^2}{N}
\end{equation}
\end{document}
Further reading relsize and graphicx.
For chemistry typesetting (I guessed that on the calcium bit) there are some packages available, like bpchem or mhchem, that handle formulas quite well.
\documentclass{article}
\usepackage[utf8]{inputenc}
\DeclareMathSizes{24.88pt}{12pt}{12pt}{12pt}
\begin{document}
\Huge Testing the math font size: $99.9\%$
\end{document}
You had specified the math font sizes to use if the text font size was 14pt but your example text was Huge, and size10.clo
specifies
\newcommand\Huge{\@setfontsize\Huge\@xxvpt{30}}
so \Huge
is \@xxvpt
so more or less 25pt, but \DeclareMathSizes
needs the exact size so you could use \@xxvpt
or 24.88pt as I use above, the latex format defines these shortcuts for font sizes:
\def\@vpt{5}
\def\@vipt{6}
\def\@viipt{7}
\def\@viiipt{8}
\def\@ixpt{9}
\def\@xpt{10}
\def\@xipt{10.95}
\def\@xiipt{12}
\def\@xivpt{14.4}
\def\@xviipt{17.28}
\def\@xxpt{20.74}
\def\@xxvpt{24.88}
Best Answer
You can change the surrounding text font size to
14pt
by normal means. And to maintain the math font size to12pt
you could use the\DeclareMathSizes
in your preamble. The syntax is:So, for instance, you could set:
Or make all math sizes equal:
It really depends on your requirements! But adding either code to your document's preamble should achieve what you needed to do.
Reference: @Stephan Kottwitz's answer shown here