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.

194 lines
3.0 KiB

  1. \documentclass{article}
  2. \usepackage[spanish, es-tabla]{babel}
  3. \usepackage[utf8]{inputenc}
  4. \usepackage{blindtext}
  5. \usepackage{booktabs}
  6. \usepackage{caption}
  7. \captionsetup[table]{skip=2pt}
  8. \usepackage{amsmath}
  9. \usepackage{listings}
  10. \usepackage{xcolor}
  11. \definecolor{codegreen}{rgb}{0,0.6,0}
  12. \definecolor{miverde}{rgb}{0,0.6,0}
  13. \lstdefinestyle{miestilo}{
  14. backgroundcolor=\color{gray!10},
  15. keywordstyle=\color{miverde},
  16. numbers=left,
  17. numbersep=5pt,
  18. numberstyle={\ttfamily\footnotesize}
  19. }
  20. \lstdefinestyle{mystyle}{
  21. backgroundcolor=\color{backcolour},
  22. commentstyle=\color{codegreen},
  23. keywordstyle=\color{magenta},
  24. numberstyle=\tiny\color{codegray},
  25. stringstyle=\color{codepurple},
  26. basicstyle=\ttfamily\footnotesize,
  27. breakatwhitespace=false,
  28. breaklines=true,
  29. captionpos=b,
  30. keepspaces=true,
  31. numbers=left,
  32. numbersep=5pt,
  33. showspaces=false,
  34. showstringspaces=false,
  35. showtabs=false,
  36. tabsize=2
  37. }
  38. %modificando espacios
  39. \setlength{\parskip}{0.1cm} % spacio entre parrafos
  40. \setlength{\parindent}{0.5cm} %indentacion
  41. \renewcommand{\baselinestretch}{1.1} %indentacion
  42. \begin{document}
  43. \section{Introducción}
  44. \noindent
  45. \blindtext[1]
  46. \blindtext[1]
  47. \section{Listas no enumeradas}
  48. Esta es una lista no organizada:
  49. \begin{itemize}
  50. \item \textbf{Uno:} Este es el primer elemento
  51. \item Este es el segundo elemento
  52. \end{itemize}
  53. \section{Listas enumeradas}
  54. %enumerate
  55. \begin{enumerate}
  56. \item Este es el primer elemento
  57. \item Este es el segundo elemento
  58. \end{enumerate}
  59. \section{Anidadas}
  60. \begin{enumerate}
  61. \item Elemento uno
  62. \item Elemento dos
  63. \begin{enumerate}
  64. \item Elemento anidado
  65. \item Elemento anidado
  66. \item Elemento anidado
  67. \end{enumerate}
  68. \item Elemento tres
  69. \end{enumerate}
  70. \section{Listas con descripciones}
  71. \begin{description}
  72. \item[Elemento] Texto de la Descripción
  73. \item[Elemento] Texto de la Descripción
  74. \end{description}
  75. \section{Tablas}
  76. Las tablas requieren de dos entornos \texttt{tabular}
  77. \begin{table}
  78. \centering
  79. \caption{\textsc{Título de la tabla.}}
  80. \begin{tabular}{ccc}
  81. \bfseries Columna 1 & \bfseries Columna 2 & \bfseries Columna 3 \\
  82. %\hline
  83. \toprule
  84. Elemento & 0.1 & 0.9\\
  85. Elemento & 0.1 & 0.9\\
  86. Elemento & 0.1 & 0.9\\
  87. Elemento & 0.1 & 0.9\\
  88. Elemento & 0.1 & 0.9\\
  89. Elemento & 0.1 & 0.9\\
  90. \bottomrule
  91. \end{tabular}
  92. \end{table}
  93. \section{Tipos de texto}
  94. \textbf{Negritas}
  95. \emph{Cursiva}
  96. \texttt{Máquina de escribir}
  97. \textsc{Texto en Mayúsculas}
  98. \section{Matrices}
  99. \begin{equation}
  100. A=
  101. \begin{pmatrix}
  102. a_{11} & a_{12}^3 &a_{13}^{32} \\
  103. a_{21} & a_{22} & a_{23}\\
  104. a_{31} & a_{32} & a_{33}
  105. \end{pmatrix}
  106. \end{equation}
  107. \section{Secciones de código}
  108. \begin{lstlisting}[
  109. caption=Texto del código.,
  110. label=lst1,
  111. style=miestilo,
  112. language=python
  113. ]
  114. import scipy
  115. from pandas import readcsv
  116. a=3
  117. def funcion:
  118. b=c+d
  119. return b
  120. \end{lstlisting}
  121. \end{document}