Latex course for IAS IEEE branch
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

58 lines
539 B

\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}