Graphics, Figures & TablesFormatting the List of a custom float name

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
ChemistKatie
Posts: 14
Joined: Wed Sep 01, 2010 4:47 pm

Formatting the List of a custom float name

Post by ChemistKatie »

Hi,

I have used the trivfloat package to make a "Spectrum" float. However, when I use the \listofSpectrums command this works prefectly, except the plural of Spectrum is Spectra!

Can someone let me know how I can change the heading of this list to "List of Spectra" rather than "List of Spectrums" please?

I have tried:

Code: Select all

\listofSpectrums 
\renewcommand{\listSpectrumname}{Lista de Figuras}
Thanks,

Katie
Last edited by ChemistKatie on Thu Sep 02, 2010 9:53 am, edited 1 time in total.

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

Formatting the List of a custom float name

Post by localghost »

Of course you have to redefine the list name before generating the actual list. I have no problem with the code below.

Code: Select all

\documentclass[11pt,a4paper,english]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{trivfloat}

\trivfloat{spectrum}
\renewcommand{\listspectrumname}{List of Spectra}

\begin{document}
  \listofspectrums
  
  \begin{spectrum}[!ht]
    \centering
    \rule{6.4cm}{3.6cm}
    \caption{Dummy Spectrum}\label{spec:dummy}
  \end{spectrum}
\end{document}

Best regards
Thorsten
ChemistKatie
Posts: 14
Joined: Wed Sep 01, 2010 4:47 pm

Re: Formatting the List of a custom float name

Post by ChemistKatie »

Thank you, works perfectly!

I am still getting used to the language and the layout of Latex. Hopefully soon I will be fluent! :lol:
Post Reply