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.

57 lines
539 B

  1. \documentclass{article}
  2. \usepackage{graphicx}
  3. \newcommand{\my}{Este es mi comando}
  4. \newcommand{\dosArg}[2]{Este comando imprime dos argumentos: #1 y #2}
  5. \newcommand{\myFigure}[3]{
  6. \begin{figure}[htb!]
  7. \centering
  8. \includegraphics[width=4in]{#1}
  9. \caption{#2}
  10. \label{fig:#3}
  11. \end{figure}
  12. }
  13. \renewcommand{\LaTeX}{Latex}
  14. \begin{document}
  15. \my
  16. \dosArg{uno}{dos}
  17. En este punto hacemos referencia a la Figura \ref{fig:etiqueta}
  18. \myFigure{example-image-a}{Texto de la imagen}{etiqueta}
  19. \LaTeX{}
  20. \end{document}