Consider the code:
\documentclass[a5paper,12pt,onecolumn,openany,final]{book}
\usepackage[hmargin=0.7in,vmargin=0.75in]{geometry}
\usepackage{pstricks,psvectorian}
\usepackage{color}
\usepackage{scalefnt,scalerel}
\definecolor{Gold}{RGB}{228,168,73}
\definecolor{BrooklynBlue}{RGB}{33,41,88}
\newcommand{\mytitle}[1]% #1 = title
{\bgroup
\Huge
\sbox0{\parbox{\columnwidth}{\centering\textbf{\color{black}#1}}}%
\sbox1{\parbox{\columnwidth}{\centering\textbf{\color{Gold}#1}}}%
\usebox0\llap{\raisebox{1.37pt}{\usebox1}}
\egroup}
% % % Compiled with Xelatex
\begin{document}
\thispagestyle{empty}
\begin{pspicture}(-5,0)(5,5)%
\renewcommand*{\psvectorianDefaultColor}{BrooklynBlue}%
\psframefillcolor=BrooklynBlue,fillstyle=solid(5,5) %Used with colored frame
\psframelinecolor=BrooklynBlue(5,5)% draws frame in black.
%top and bottom center
\rputtc{\mytitle{\selectfont\scalefont{0.8}{ \vstretch{1.2}{No Hay Caf{'{e}} en el Men{'{u}}}}}}
%\rputtc{\mytitle{\selectfont\scalefont{0.8}{ \vstretch{1.2}{\textbf{No Hay Caf{'{e}} en el Men{'{u}}}}}}}
\end{pspicture}%
\end{document}
which produces (with an error):
However, when I comment out \rput[tc](0,2.5){\mytitle{\selectfont\scalefont{0.8}{ \vstretch{1.2}{No Hay Caf{\'{e}} en el Men{\'{u}}}}}} and replace it by \rput[tc](0,2.5){\mytitle{\selectfont\scalefont{0.8}{ \vstretch{1.2}{\textbf{No Hay Caf{\'{e}} en el Men{\'{u}}}}}}}---everything seems to work well:
QUESTION: Why does Latex consider the original title to be in math mode (and what can I do about it)? Then, when I simply insert a \textbf command, everything seems to be fine? I compile the code with xelatex.
Thank you.



\documentclass{book} \usepackage{scalerel} \begin{document} \vstretch{1.2}{\frac\alpha\beta} \end{document}whch is set in math mode – David Carlisle Feb 18 '23 at 10:27