I would like to write a \newcommand to define a stylish word, like \LaTeX.
Let's take this example:
\newcommand{\mystyle}{
\textit{\raisebox{+0.2ex}{M}
\kern-0.66em\raise-0.3ex\hbox{\scriptsize y}
\kern-0.3em\raise0.4ex\hbox{\scriptsize s}
\kern-0.75em\raise-0.3ex\hbox{\scriptsize t}
\kern-0.3em\hbox{yle}
}
}
The problem is, when \mystyle is put inside \title{} or \section{} the fontsizes which are defined by brute force (1st 4 letters) get too small since they do not proportionally scale with the remaining letters. If I write \LaTeX inside \title{} there is no problem.
How to get my command working smoothly like that?


relsize? I was going to suggest\scalebox, but I like your\check@mathfontsmuch better. – Bananguin Feb 15 '18 at 12:58\check@mathfonts? – Phelype Oleinik Feb 15 '18 at 13:03\ssf@sizehas the size for second level subscripts/superscripts. – egreg Feb 15 '18 at 13:11