\documentclass{article} \usepackage{graphicx} \newcommand{\my}{Este es mi comando} \newcommand{\dosArg}[2]{Este comando imprime dos argumentos: #1 y #2} \newcommand{\myFigure}[3]{ \begin{figure}[htb!] \centering \includegraphics[width=4in]{#1} \caption{#2} \label{fig:#3} \end{figure} } \renewcommand{\LaTeX}{Latex} \begin{document} \my \dosArg{uno}{dos} En este punto hacemos referencia a la Figura \ref{fig:etiqueta} \myFigure{example-image-a}{Texto de la imagen}{etiqueta} \LaTeX{} \end{document}