0

I'm using lstlisting to insert a code in my text. Fine. But I'm writing in PT_BR and want to change the word "Listing" to "Listagem" in my list (list caption from english to portuguese) so my code listing will become

Listagem 1. Texto em português

instead

Listing 1. Texto em português

Now using:

\usepackage{sbc-template}  
\usepackage{graphicx,url}
\usepackage[brazil]{babel}   
\usepackage[utf8]{inputenc}   
\usepackage[square,authoryear]{natbib}
\usepackage{blindtext}
\usepackage{enumitem}
\usepackage{listings}
\usepackage{color}

\lstset{
  frame=tb,
  language=Java,
  aboveskip=3mm,
  belowskip=3mm,
  showstringspaces=false,
  columns=flexible,
  basicstyle={\small\ttfamily},
  numbers=left,
  numbersep=5pt,
  numberstyle=\tiny\color{gray},
  keywordstyle=\color{blue},
  commentstyle=\color{dkgreen},
  stringstyle=\color{mauve},
  breaklines=true,
  breakatwhitespace=true,
  tabsize=3
}

and the code in the text:

\begin{lstlisting}[language=bash,caption={Texto em português},label=mylabel]

#some code

\end{lstlisting}

How can I do this?

imnothere
  • 14,215
Magno C
  • 101

0 Answers0