Font sizes when changing between normal and sub/superscripts

I may or may not have posted about this before, so I apologize if I am asking anyone to repeat themselves. My question is regarding how to best handle font sizes when using superscripts and subscripts in legends, and especially in axes labels. Whenever I want to use a larger font than normal, say \Z24, each and everytime I use a sub/superscript, I use the \M flag to create normal text. Unfortunately, this all unsets my font size, so I have to manually type in \Z24 after each and every \M. This gets old rather quickly, so I am hoping that the community has come up with a better way to deal with this issue (or there is some functionality in Igor that I am not utilizing). Please advise!

\Z24\f01D\BW\M\Z24 [10\S-9\M\Z24 m\S2\M\Z24/s\M\Z24]
patarroyo wrote:
My question is regarding how to best handle font sizes when using superscripts and subscripts in legends, and especially in axes labels. ... so I am hoping that the community has come up with a better way to deal with this issue (or there is some functionality in Igor that I am not utilizing).


Check out the use of \[0 and \]0 to push and pop font settings. In your case, push the settings onto stack 0 ...

\Z24\f01\[0D\BW\M [10\S-9\M m\S2\M/s\M]


To illustrate the pop side ...

\Z24\f01\[0D\BW\M [10\S-9\M m\S2\M/s\M] \Z16\f00(16)\]0 24



--
J. J. Weimer
Chemistry / Chemical & Materials Engineering, UAH