Text Formatting ⇒ tocbibind | Capitalized Heading of LoF in ToC
tocbibind | Capitalized Heading of LoF in ToC
Hi,
I have to put \usepackage[nottoc]{tocbibind} in the preamble of my thesis to get the correct page numbers for the lof and bib in the toc. Now the lof appears as "List of Figures" in the toc, but I want it to be "LIST OF FIGURES."
Is there an option to do that?
I have to put \usepackage[nottoc]{tocbibind} in the preamble of my thesis to get the correct page numbers for the lof and bib in the toc. Now the lof appears as "List of Figures" in the toc, but I want it to be "LIST OF FIGURES."
Is there an option to do that?
Last edited by Ile on Thu Aug 11, 2011 9:09 pm, edited 1 time in total.
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
Re: tocbibind | Capitalized Heading of LoF in ToC
Shall the format of the actual heading for the LoF be maintained? What about the entries of the LoT and the bibliography in the ToC? What's the used document class?
Thorsten
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: tocbibind | Capitalized Heading of LoF in ToC
Hi,
I am using \documentclass[12pt]{report}. I want both the heading of lof and its entry in ToC to be uppercase. I don't have any tables, but the same would apply to that.
I have noticed that the bibliography was changed to "REFERENCES" in the ToC using this command in the style file:
\renewcommand{\bibname}{REFERENCES}
When I comment this line out, both the heading and the entry in the ToC reverts to "Bibliography. "
Perhaps some similar command would work for lof?
I am using \documentclass[12pt]{report}. I want both the heading of lof and its entry in ToC to be uppercase. I don't have any tables, but the same would apply to that.
I have noticed that the bibliography was changed to "REFERENCES" in the ToC using this command in the style file:
\renewcommand{\bibname}{REFERENCES}
When I comment this line out, both the heading and the entry in the ToC reverts to "Bibliography. "
Perhaps some similar command would work for lof?
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
tocbibind | Capitalized Heading of LoF in ToC
Then do it correspondingly for the LoF (and LoT if needed).Ile wrote:[…] I have noticed that the bibliography was changed to "REFERENCES" in the ToC using this command in the style file:
\renewcommand{\bibname}{REFERENCES}
When I comment this line out, both the heading and the entry in the ToC reverts to "Bibliography. " […]
Code: Select all
\renewcommand{\listfigurename}{LIST OF FIGURES}\renewcommand{\listtablename}{LIST OF TABLES}
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
tocbibind | Capitalized Heading of LoF in ToC
Hi,
Thank you. That solved the uppercase problem. I had tried something similar, but didn't have the correct wording.
I just discovered that using tocbibind has given me another problem to solve.
If I use
then I have correct page numbers in ToC for LoF but the list of figures page looks like this:
LIST OF FIGURES
1. Figure 1............................1
2. Figure 2............................2
If I use the packages in this order
then
the code in MYthesis above gives me the following list of figures format, except that now I have wrong page number for the LoF in the ToC.
LIST OF FIGURES
Figure-------------------------------Page
1. Figure 1............................1
2. Figure 2............................2
How can I add the "Figure-------------------Page" line to work with the first example?
Ile
Thank you. That solved the uppercase problem. I had tried something similar, but didn't have the correct wording.
I just discovered that using tocbibind has given me another problem to solve.
If I use
Code: Select all
\usepackage{MYthesis}\usepackage[nottoc]{tocbibind}
LIST OF FIGURES
1. Figure 1............................1
2. Figure 2............................2
If I use the packages in this order
Code: Select all
\usepackage[nottoc]{tocbibind}\usepackage{MYthesis}
Code: Select all
Code, edit and compile here:
\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi\chapter*{LIST OF FIGURES}%\@mkboth{LIST OF FIGURES}{LIST OF FIGURES}}% {\large{\bf Number}\hfill{\bf Page}}%\newline\@starttoc{lof}\if@restonecol\twocolumn\fi\addtocontents{lof}{{\vspace{12pt}}\hspace{12pt} Figure\hfill Page{\vspace{12pt}}\par}}
LIST OF FIGURES
Figure-------------------------------Page
1. Figure 1............................1
2. Figure 2............................2
How can I add the "Figure-------------------Page" line to work with the first example?
Ile
- localghost
- Site Moderator
- Posts: 9202
- Joined: Fri Feb 02, 2007 12:06 pm
tocbibind | Capitalized Heading of LoF in ToC
I don't understand why this redefinition of \listoffigures happens at all. Compared to the original stuff from the class code it does nothing substantially different. At the moment you redefine \listfigurename and \bibname to capitalize the headings and ToC entries. So I suggest to replace this code block with the following.Ile wrote:[…] thenthe code in MYthesis above gives me the following list of figures format, […]Code: Select all
Code, edit and compile here:\def\listoffigures{\@restonecolfalse\if@twocolumn\@restonecoltrue\onecolumn\fi\chapter*{LIST OF FIGURES}%\@mkboth{LIST OF FIGURES}{LIST OF FIGURES}}% {\large{\bf Number}\hfill{\bf Page}}%\newline\@starttoc{lof}\if@restonecol\twocolumn\fi\addtocontents{lof}{{\vspace{12pt}}\hspace{12pt} Figure\hfill Page{\vspace{12pt}}\par}}
Code: Select all
Code, edit and compile here:
\AtBeginDocument{%\addtocontents{lof}{\vspace{12pt}\hspace{12pt} Figure\hfill Page\vspace{12pt}\par}}
Since I have this package not present, there is no guarantee for success and side effects cannot be ruled out.
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Board Rules
Avoidable Mistakes
¹ System: TeX Live 2025 (vanilla), TeXworks 0.6.10
Re: tocbibind | Capitalized Heading of LoF in ToC
I don't understand much of this style document either. It came with the thesis template and was supposed to make things simpler, except it hasn't been updated in years. I only know some of the things it does by reverse engineering.
Many thanks. Your solution works perfectly and without side effects.
Ile
Many thanks. Your solution works perfectly and without side effects.
Ile