In this thread we learned how to create our own math symbol. Now the question is how we force it to scale appropriately when used in sub- or superscript:
See the following example:
\documentclass[12pt]{article}%, border=2pt]{standalone}
\usepackage{graphics}
\DeclareRobustCommand{\triangleLeft}{\ensuremath{\includegraphics{triangleLeft}}}
\begin{document}
$\triangleLeft_{x}$
$X_{\triangleLeft_{x}}$
\begin{figure}
\caption{$\triangleLeft_{x}$ test}
\end{figure}
\end{document}
As we see in the result. The image is equally big in the subscript but it should be scaled down a little bit.
Do you have any ideas how I can fix this?
Kind regards and Thanks, Max