Code: Select all
\documentclass{article}
\usepackage{graphicx}
\usepackage{setspace}
\usepackage{scalerel}
\newcommand{\quail}{\scalerel*{\includegraphics{G43.pdf}}{\strut} }
\setstretch{1}
\begin{document}
Lorem ipsum dolor sit amet consectetur \quail adipiscing elit euismod, nunc tellus senectus faucibus dapibus potenti congue dignissim.
\end{document}
I'll like to (but I don't know how to) define a macro (let's name it \hg for hieroglyph) that accepts an argument, so that for each of the possible values of the argument, a different set of commands is substituted.
For example
Code: Select all
\hg{w}
Code: Select all
{\scalerel*{\includegraphics{G43.pdf}}{\strut} }
Code: Select all
\hg{3}
Code: Select all
{\scalerel*{\includegraphics{G1.pdf}}{\strut} }
How would one go about achieving that?