Add English language
diff --git a/apuntsfme.dtx b/apuntsfme.dtx
index 2710370..0fcbe84 100644
--- a/apuntsfme.dtx
+++ b/apuntsfme.dtx
@@ -429,7 +429,7 @@
% Here we have some options for the package
%
% \subsubsection{Babel}
-% TODO add english support and make it the default
+% TODO make english language the default
% \begin{macrocode}
\DeclareOption{numbersbefore}{
\newtheoremstyle{break}% name
@@ -497,6 +497,10 @@
\gdef\@babelopt{spanish,es-lcroman,es-nolists}
\@babellang=2
}
+\DeclareOption{english}{
+ \gdef\@babelopt{english}
+ \@babellang=3
+}
% \end{macrocode}
%
% Then, we need to configure TiKz and PGF
@@ -598,6 +602,43 @@
\AtBeginDocument{\renewcommand{\chaptername}{Tema}}
}{}
\fi
+\ifnum\@babellang=3
+ % Normal
+ \declaretheorem[style=normal,name=Lemma,numberwithin=section]{lema}
+ \declaretheorem[style=normal,name=Lemma,numbered=no]{lema*}
+ \declaretheorem[style=normal,name=Observation,sibling=lema]{obs}
+ \declaretheorem[style=normal,name=Observation,numbered=no]{obs*}
+ \declaretheorem[style=normal,name=Proposition,sibling=lema]{prop}
+ \declaretheorem[style=normal,name=Proposition,numbered=no]{prop*}
+ \declaretheorem[style=normal,name=Definition,sibling=lema]{defi*}
+ \declaretheorem[style=normal,name=Corollary,sibling=lema]{col}
+ \declaretheorem[style=normal,name=Corollary,numbered=no]{col*}
+ \declaretheorem[style=normal,name=Exercice,sibling=lema]{ej}
+ \declaretheorem[style=normal,name=Exercice,numbered=no]{ej*}
+ \declaretheorem[style=normal,name=Example,sibling=lema]{example}
+ \declaretheorem[style=normal,name=Example,numbered=no]{example*}
+ \declaretheorem[style=normal,name=Problem,sibling=lema]{problema}
+ \declaretheorem[style=normal,name=Problem,numbered=no]{problema*}
+
+ % Autodefi
+ \declaretheorem[style=autodefi,name=Definition,sibling=lema]{defi}
+
+ % Demo
+ \let\proof\relax
+ \declaretheorem[style=demo,name=Proof,qed=$\square$,numbered=no]{proof}
+ \declaretheorem[style=demo,name=Solution,numbered=no]{sol}
+
+ % Break
+ \declaretheorem[style=break,name=Theorem,sibling=lema]{teo*}
+
+ % Breakthm
+ \declaretheorem[style=breakthm,name=Theorem,sibling=lema]{teo}
+
+ \@ifclassloaded{book}{%
+ \AtBeginDocument{\renewcommand{\contentsname}{Contents}}
+ \AtBeginDocument{\renewcommand{\chaptername}{Topic}}
+ }{}
+\fi
% \end{macrocode}
%
% \iffalse
@@ -653,6 +694,18 @@
\renewcommand*{\@titlemonth}{\ifcase \the\month \or Gener \or Febrer \or Mar\c{c} \or Abril \or Maig \or Juny \or Juliol \or Agost \or Setembre \or Octubre \or Novembre \or Desembre \fi \number \year}
\@puntvolattrue
}
+
+\DeclareOption{english}{
+ \renewcommand*{\languagename}{english}
+ \renewcommand*{\@authortext}{Author}
+ \renewcommand*{\@authorstext}{Authors}
+ \renewcommand*{\@prauthortext}{Main author}
+ \renewcommand*{\@prauthorstext}{Main authors}
+ \renewcommand*{\@otherauthortext}{Other authors}
+ \renewcommand*{\@reviewertext}{Reviewers}
+ \renewcommand*{\@lastupdatetext}{Last modified}
+ \renewcommand*{\@titlemonth}{\ifcase \the\month \or January \or February \or March \or April \or May \or June \or July \or August \or September \or October \or November \or December \fi \number \year}
+}
% \end{macrocode}
%
% \subsection{Metatadata}