I wish to know if there is a way to change the font size respect the context. Suppose that I've a command to write Hello, called \hello. The usual staff to do is
Code: Select all
\newcommand{\hello}{Hel{\small lo}}
Code: Select all
\section{\hello everybody!}
\subsection{This is another \hello world program}
From the math point of way,
$$ x_{\textrm{\hello}} = x^2 $$
Hello everybody!
This is another Hello
From the math point of way,
xHello = x^2
Any ideas?
Thanks in advance,
Beta