detiuaveiro / ua-thesis-template

📖 A thesis LaTeX template that complies with the University of Aveiro's guidelines and provides a simple CLI workflow around make and compatibility with Overleaf.
MIT License
103 stars 36 forks source link

How to change the language of "code block"? #24

Closed ghost closed 3 years ago

ghost commented 3 years ago

I changed the standard language from portuguese to english in matter.tex and as expected the figure names changed from "Figura" to "Figure", and the chapter names from "Capitulo" to "Chapter". But when I create a code block like this:

\begin{listing}
\begin{verbatim}
(code ...)
\end{verbatim}
\caption{Code description}
\label{code_lbl}
\end{listing}

The label still is displayed in portuguese. Instead of "Code 1: Code description" it is still "Código 1: Code description". I tried to see if I could change it in custom_theme.tex and in uaThesisTemplate.sty, but haven't found anything.

How can I make that label change from portuguese to english?

pkill37 commented 3 years ago

https://github.com/detiuaveiro/ua-thesis-template/issues/17

ghost commented 3 years ago

Thanks @fabiomaia.