is it somehow possible to override the style of a macro's output, e.g. its fontsize ?
Code: Select all
\documentclass{article}
\newcommand{\helloworld}{{\large\textbf{Hello World!}}}
\begin{document}
\begin{normalsize}
\helloworld
\\Above message is too large! It doesn't work this way, but how?
\end{normalsize}
\end{document}
In the above example, i want the size of "Hello World" to be normalsize (or anything else but large) aswell.
As i understand the macro is expanded when compiling, therefore the fontsize definded in the macro overrides the "normalsize"-environment the macro was used in. Is there a way of forcing the another fontsize to be applied to the macros output? (Extrakting a string from the macro would work for me too)
Thanks in advance
JaN