LaTeX forum ⇒ Document ClassesAssignment documentclass to spanish

Information and discussion about specific document classes and how to create your own document classes.
matiaslgonzalez
Posts: 1
Joined: Thu Aug 08, 2019 6:56 pm

Assignment documentclass to spanish

Postby matiaslgonzalez » Thu Aug 08, 2019 7:06 pm

Hello everyone, I've been wanting to use the assignment documentclass but in spanish so that, for exmaple, \pbitem prints out "Problema 1" instead of "Problem 1", I've tried some things but I don't have that much experience with Late, any help is welcome, thanks!

Here's my code so far

  1. \documentclass[a4paper,12pt,spanish,onelanguage]{assignment}
  2. \usepackage[utf8]{inputenc}
  3. \usepackage[spanish]{babel}
  4. \usepackage{enumitem}
  5. \usepackage{amsmath}
  6. \usepackage{fancyhdr}
  7. \usepackage[spanish,onelanguage]{algorithm2e}
  8. %\usepackage[pdftex,spanish]{graphicx}
  9. %\usepackage[spanish]{subfigure}
  10.  
  11. \coursetitle{Algoritmos y Estructuras de Datos 3}
  12. \courselabel{AESTD3}
  13. \exercisesheet{Tarea 1}{}
  14. \student{Matías Leonardo González Espínola, Matías Antonio Sosa Ramos}
  15. \semester{2do Semestre 2019}
  16. \university{Universidad Nacional de Asunción}
  17. \school{Facultad Politécnica}
  18.  
  19. \begin{document}
  20. \begin{problemlist}
  21. \pbitem What is this package used for ?
  22.  
  23. \begin{problem}
  24.  
  25. This package may be used to typeset homework assignments.
  26.  
  27. \begin{answer}
  28. assignment.cls $\Rightarrow$ Typesetting homework assignments
  29. \end{answer}
  30.  
  31. \end{problem}
  32.  
  33. \pbitem What does the preamble contain ?
  34. \begin{problem}
  35.  
  36. The preamble may contain the following declarations\footnote{Current markup's preamble.} :
  37.  
  38. \begin{verbatim}
  39. \documentclass{assignment}
  40. \coursetitle{Creating assignments}
  41. \courselabel{ASG 101}
  42. \exercisesheet{Home Work 1}{Documentation}
  43. \student{Madhusudan Singh}
  44. \semester{Summer 2004}
  45. \date{July 14, 2004}
  46. %\usepackage[pdftex]{graphicx}
  47. %\usepackage{subfigure}
  48. \end{verbatim}
  49.  
  50. \begin{answer}
  51. That was the preamble
  52. \end{answer}
  53.  
  54. \end{problem}
  55.  
  56. \pbitem How do I use various features of the article class ?
  57.  
  58. \begin{problem}
  59.  
  60. Its possible. Just pass the options in the preamble :
  61.  
  62. \begin{verbatim}
  63. \documentclass[option1,option2, ...]{assignment}
  64. \end{verbatim}
  65.  
  66. \begin{answer}
  67. \end{answer}
  68.  
  69. \end{problem}
  70. \pbitem How are the equations numbered ?
  71.  
  72. \begin{problem}
  73.  
  74. Equation numbers refer to the problem number. For instance,
  75.  
  76. \begin{verbatim}
  77. \begin{eqnarray}
  78. E & = & mc^{2} \label{eqn:emc2} \\
  79. \textrm{That is how equations are numbered} \ldots \label{eqn:numbered} \\
  80. \textrm{Or not numbered} \ldots \nonumber
  81. \end{eqnarray}
  82. \end{verbatim}
  83.  
  84. \begin{eqnarray}
  85. E & = & mc^{2} \label{eqn:emc2} \\
  86. \textrm{That is how equations are numbered} \ldots \label{eqn:numbered} \\
  87. \textrm{Or not numbered} \ldots \nonumber
  88. \end{eqnarray}
  89.  
  90.  
  91. \begin{answer}
  92. That was that.
  93. \end{answer}
  94. \end{problem}
  95.  
  96. \pbitem How do the answer sections look ?
  97.  
  98. \begin{problem}
  99.  
  100. Nice !
  101.  
  102. \begin{verbatim}
  103. \begin{answer}
  104. \begin{eqnarray}
  105. Answer=f(bold) \nonumber
  106. \end{eqnarray}
  107. \end{answer}
  108. \end{problem}
  109. \end{verbatim}
  110.  
  111.  
  112. \begin{answer}
  113. \begin{eqnarray}
  114. Answer=f(bold) \nonumber
  115. \end{eqnarray}
  116. \end{answer}
  117. \end{problem}
  118.  
  119.  
  120. \pbitem Can one have more than one answer section for the problem ?
  121.  
  122. \begin{problem}
  123.  
  124. Most definitely.
  125.  
  126. Certain problems have many parts :
  127.  
  128. \begin{enumerate}
  129. \item Part 1
  130.  
  131. \begin{answer}
  132. Answer to part one.
  133. \end{answer}
  134.  
  135. \item Part 2
  136.  
  137. \begin{answer}
  138. Answer to part two.
  139. \end{answer}
  140.  
  141. \end{enumerate}
  142.  
  143. \begin{verbatim}
  144. \begin{enumerate}
  145. \item Part 1
  146.  
  147. \begin{answer}
  148. Answer to part one.
  149. \end{answer}
  150.  
  151. \item Part 2
  152.  
  153. \begin{answer}
  154. Answer to part two.
  155. \end{answer}
  156.  
  157. \end{enumerate}
  158.  
  159. \end{verbatim}
  160.  
  161. \end{problem}
  162.  
  163.  
  164. \pbitem What are the copyright conditions for this class file ?
  165.  
  166. \begin{problem}
  167.  
  168. This material is subject to the \LaTeX\ Project Public License. See <!-- m --><a class="postlink" href="http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html">http://www.ctan.org/tex-archive/help/Ca ... .lppl.html</a><!-- m --> for the details of that license. See the LICENSE file for more details.
  169.  
  170.  
  171. \begin{answer}
  172. \begin{eqnarray}
  173. && Q. E. D. \nonumber
  174. \end{eqnarray}
  175. \end{answer}
  176.  
  177. \end{problem}
  178.  
  179.  
  180. \pbitem How do I get help using this class ?
  181. \begin{problem}
  182.  
  183.  
  184. You may post your queries on comp.text.tex . I check it fairly regularly.
  185. \end{problem}
  186.  
  187. \end{problemlist}
  188.  
  189. \end{document}
  190. \begin{enumerate}
  191. \item
  192. \begin{itemize}
  193. \item
  194. \begin{enumerate}
  195. \item
  196. \end{enumerate}
  197. \end{itemize}
  198. \end{enumerate}

Return to “Document Classes”

Who is online

Users browsing this forum: No registered users and 6 guests