Graphics, Figures & TablesHow to change the listings names?

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
nePolle
Posts: 4
Joined: Fri Apr 16, 2010 11:30 am

How to change the listings names?

Post by nePolle »

Hi there

I could change the names for the figures and tables:

\renewcommand{\figurename}{Abb.}
\renewcommand{\tablename}{Tab.}

but I didn´t found something to change the name for the listings.

And how can I change the style?? Normally e.g. the list of figures is printed with a lot of dots. I´d like to change the style like I do for the glosseries:

\glossarystyle{altlisthypergroup}

Can someone help me?

thanks and regards

Recommended reading 2024:

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

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

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to change the listings names?

Post by localghost »

The according macros are \listfigurename for the LoF and \listtablename for the LoT. But using the babel package with an appropriate language option should make this superfluous.
nePolle wrote:[...] And how can I change the style?? Normally e.g. the list of figures is printed with a lot of dots. I´d like to change the style like I do for the glosseries:

\glossarystyle{altlisthypergroup}

[...]
How does this style look like? But independently you can take a look at the tocloft package.


Best regards
Thorsten
nePolle
Posts: 4
Joined: Fri Apr 16, 2010 11:30 am

Re: How to change the listings names?

Post by nePolle »

Thank you for your answer.

I knew that I could change the language with the babel stuff, but I like to use abbreviations e.g. figure >> fig., listing >> list.
this one:
"\listfigurename"
changes just only the headline for the list. I´d like to change the caption of a figure e.g. figure 2.1: nice image >> fig. 2.1: nice image

"How does this style look like?"

E.g.:

G | K (you can click on a letter and the dokument jumps to the group of the letter)

G
GUI Graphic....
GREAT Great is great...
K
kids smal people...

regards
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How to change the listings names?

Post by localghost »

Renaming the caption labels can also be done with babel. But I have still no idea regarding the lists. With hyperref you can also create links in those lists to jump to a figure (or table). For more information provide a minimal working example (MWE) and tell us which language (or dialect) your document shall have).

I have a question for my understanding. With »listing« do you mean the float environment provided by the listings package? You need to be much more precise in your descriptions and you should propose targeted questions. But the above requested MWE will clarify many things.
Post Reply