So the problem is simple. A function takes something and puts it inside math-mode ($$). Can I influence that from the outside?
Example:
\documentclass{article}
\def\mathmod#1{$#1$}
\begin{document}
\mathmod{hello world}
\end{document}
prints this:
Is it possible to cancel that mathmode partly from the outside, to make him print something like this:
but without moving world out of the function? Maybe there is any command of fixing condition, after which no other command will affect, or something...