## LaTeX forum ⇒ Document Classes ⇒ Assignment 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

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

\documentclass[a4paper,12pt,spanish,onelanguage]{assignment}\usepackage[utf8]{inputenc}\usepackage[spanish]{babel}\usepackage{enumitem}\usepackage{amsmath}\usepackage{fancyhdr}\usepackage[spanish,onelanguage]{algorithm2e}%\usepackage[pdftex,spanish]{graphicx}%\usepackage[spanish]{subfigure} \coursetitle{Algoritmos y Estructuras de Datos 3}\courselabel{AESTD3}\exercisesheet{Tarea 1}{}\student{Matías Leonardo González Espínola, Matías Antonio Sosa Ramos}\semester{2do Semestre 2019}\university{Universidad Nacional de Asunción}\school{Facultad Politécnica} \begin{document}\begin{problemlist}\pbitem What is this package used for ? \begin{problem} This package may be used to typeset homework assignments. \begin{answer}assignment.cls $\Rightarrow$ Typesetting homework assignments\end{answer} \end{problem} \pbitem What does the preamble contain ?\begin{problem} The preamble may contain the following declarations\footnote{Current markup's preamble.} : \begin{verbatim}\documentclass{assignment}\coursetitle{Creating assignments}\courselabel{ASG 101}\exercisesheet{Home Work 1}{Documentation}\student{Madhusudan Singh}\semester{Summer 2004}\date{July 14, 2004}%\usepackage[pdftex]{graphicx}%\usepackage{subfigure}\end{verbatim} \begin{answer}That was the preamble\end{answer} \end{problem} \pbitem How do I use various features of the article class ? \begin{problem} Its possible. Just pass the options in the preamble : \begin{verbatim}\documentclass[option1,option2, ...]{assignment}\end{verbatim} \begin{answer}\end{answer} \end{problem}\pbitem How are the equations numbered ? \begin{problem} Equation numbers refer to the problem number. For instance, \begin{verbatim}\begin{eqnarray}E & = & mc^{2} \label{eqn:emc2} \\\textrm{That is how equations are numbered} \ldots \label{eqn:numbered} \\\textrm{Or not numbered} \ldots \nonumber\end{eqnarray}\end{verbatim} \begin{eqnarray}E & = & mc^{2} \label{eqn:emc2} \\\textrm{That is how equations are numbered} \ldots \label{eqn:numbered} \\\textrm{Or not numbered} \ldots \nonumber\end{eqnarray}  \begin{answer}That was that.\end{answer}\end{problem} \pbitem How do the answer sections look ? \begin{problem} Nice ! \begin{verbatim}\begin{answer}\begin{eqnarray}Answer=f(bold) \nonumber\end{eqnarray}\end{answer}\end{problem}\end{verbatim}  \begin{answer}\begin{eqnarray}Answer=f(bold) \nonumber\end{eqnarray}\end{answer}\end{problem}  \pbitem Can one have more than one answer section for the problem ? \begin{problem} Most definitely. Certain problems have many parts : \begin{enumerate}\item Part 1 \begin{answer}Answer to part one.\end{answer} \item Part 2 \begin{answer}Answer to part two.\end{answer} \end{enumerate} \begin{verbatim}\begin{enumerate}\item Part 1 \begin{answer}Answer to part one.\end{answer} \item Part 2 \begin{answer}Answer to part two.\end{answer} \end{enumerate} \end{verbatim} \end{problem}  \pbitem What are the copyright conditions for this class file ? \begin{problem} 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.  \begin{answer}\begin{eqnarray}&& Q. E. D. \nonumber\end{eqnarray}\end{answer} \end{problem}  \pbitem How do I get help using this class ?\begin{problem}  You may post your queries on comp.text.tex . I check it fairly regularly.\end{problem} \end{problemlist} \end{document}\begin{enumerate}\item \begin{itemize}\item \begin{enumerate}\item \end{enumerate}\end{itemize}\end{enumerate}