1

I have my list of figures And tables appearing like:

List of figures 
Figure 2.2 dummy figure 1
Figure 2.3 dummy figure 2
List of tables 
Table 4.3 the only table 

Without figure pages indicated. I want it to appear like

enter image description here

With pages

enter image description here enter image description here

Leinah
  • 13
  • 4
  • welcome to tex.sw! please provide complete small document with which produce LoF and LoT. and clarify, how both list should looks (your image of lists is different from your description (as i understand it). – Zarko Jan 08 '18 at 23:29
  • The images I have used are just examples appearance of pages e.g in later list there is; Three dimensional graph.............................2 – Leinah Jan 08 '18 at 23:55
  • and you expect that someone will write code for you from scratch? maybe will someone do this, but usual question of type "do-it-for-me" (as your question looks now) are not answered ... – Zarko Jan 08 '18 at 23:59
  • I want it like; Figure 2.1 dummy figure 1. . . . . ..8 – Leinah Jan 09 '18 at 00:00
  • @Leinah: The display you desire is the default behaviour under many classes. If you're not receiving this output, then you must be using a class or additional package that changes it. In that regard, it would be helpful if you could supply a minimal example that replicates this non-default behaviour. It should start with \documentclass and end with \end{document}, allowing us to copy-and-paste-and-compile your code and replicate the issue. – Werner Jan 09 '18 at 00:06
  • There are my codes – Leinah Jan 09 '18 at 06:39
  • Thanks much @esdd the first answer is working again thanks – Leinah Jan 10 '18 at 22:49
  • @Leinah If my answer does help then you can upvote it (and maybe accept it). – esdd Jan 11 '18 at 11:45
  • Sorry, it was helpful I realized I was forgetting one important code, plus the additional codes you provided thanks again – Leinah Jan 13 '18 at 08:41

1 Answers1

0

Maybe you want something like

\documentclass[12pt,a4paper]{report}
\usepackage{graphicx}
\usepackage[english]{babel}
\addto{\captionsenglish}{%
  \renewcommand\contentsname{Table-of-contents}%
}

\usepackage[nottoc]{tocbibind}% to add the LoF etc to ToC

\usepackage{tocbasic} \DeclareTOCStyleEntry[ indent=0pt, dynnumwidth, entryformat=\figureentryformat ]{tocline}{figure} \newcommand\figureentryformat[1]{\figurename~#1} \DeclareTOCStyleEntry[ indent=0pt, dynnumwidth, entryformat=\tableentryformat ]{tocline}{table} \newcommand\tableentryformat[1]{\tablename~#1}

% to remove the chapter gap in LoF and LoT (see https://tex.stackexchange.com/a/121881/43317) \usepackage{etoolbox} \makeatletter \def@gobblesix#1#2#3#4#5#6{} \patchcmd{@chapter}% <cmd> {\chaptermark{#1}}% <search> {\chaptermark{#1}@gobblesix}% <replace> {}{}% <success><failure> \makeatother

\usepackage{mwe}% only for dummy text and example images \begin{document} \tableofcontents \listoffigures \chapter{First chapter} \Blindtext

\begin{figure} \includegraphics[width=\columnwidth]{example-image}% \caption{dummy fig 2}% \end{figure}

\chapter{Second chapter} \Blindtext

\begin{figure}% \includegraphics[width=\columnwidth]{example-image}% \caption{dummy fig 2}% \end{figure}

\Blindtext[2]

\begin{figure}% \includegraphics[width=\columnwidth]{example-image}% \caption{dummy fig 3}% \end{figure} \end{document}

Run three times to get:

enter image description here

Or if you can use KOMA-Script class scrreprt:

\documentclass[12pt,
  chapterprefix,
  sfdefaults=false,% needs version 3.39 or newer, replaces egregdoesnotlikesansseriftitles
  listof=nochaptergap,
  listof=entryprefix
]{scrreprt}
\usepackage{graphicx}
\usepackage[english]{babel}
\renewcaptionname{english}{\contentsname}{Table-of-contents}

\usepackage{mwe}% only for dummy text and example images \begin{document} \tableofcontents \listoffigures \chapter{First chapter} \Blindtext

\begin{figure} \includegraphics[width=\columnwidth]{example-image}% \caption{dummy fig 2}% \end{figure}

\chapter{Second chapter} \Blindtext

\begin{figure}% \includegraphics[width=\columnwidth]{example-image}% \caption{dummy fig 2}% \end{figure}

\Blindtext[2]

\begin{figure}% \includegraphics[width=\columnwidth]{example-image}% \caption{dummy fig 3}% \end{figure} \end{document}

Run three times to get

enter image description here

esdd
  • 85,675