Theses, Books, Title pagesHow can I change the name of "Listings"

Classicthesis, Bachelor and Master thesis, PhD, Doctoral degree
Post Reply
templateuser
Posts: 679
Joined: Tue Mar 03, 2015 4:01 pm

How can I change the name of "Listings"

Post by templateuser »

Hello

I can't change the name of the "Listings". I have already used these commands:

Code: Select all

\renewcommand*{\lstlistlistingname}{Listagens}
\renewcommand*{\lstlistingname}{Listagem}
but it wasn't enough to change it all .... can anyone help me?

AndreiaFaria

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

Vel
Site Moderator
Posts: 463
Joined: Fri Jun 29, 2012 1:20 am

How can I change the name of "Listings"

Post by Vel »

Hi,

Simply put the following into the preamble in main.tex (before \begin{document}):

Code: Select all

\renewcommand\lstlistingname{Algorithm}
\renewcommand\lstlistlistingname{Algorithms}
Replace Algorithm(s) with whatever you would like the new listings to be called.

Cheers,
Vel
Founder and administrator of LaTeXTemplates.com and LaTeXTypesetting.com
Post Reply