Page LayoutIndent new LoT entry

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
eb18
Posts: 2
Joined: Mon Mar 02, 2020 12:03 pm

Indent new LoT entry

Post by eb18 »

Hi,

I'm a beginner in latex. How can I indent one single unnumbered entry on the list of tables ?


Thanks in advance for your help

Recommended reading 2024:

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

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

User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Indent new LoT entry

Post by Ijon Tichy »

This depends on the class and the ToC/caption/float packages you are using and how you produce the entry. So a Infominimal working example would be useful. With a KOMA-Script class it would be very simple, e.g.:
\documentclass[listof=indenttextentries]{scrartcl}% see the KOMA-Script guide for information

\begin{document}
\listoftables
% Generate a numbered and a not numbered dummy entry:
\captionof{table}{Testentry with number}
\addxcontentsline{lot}{table}{Test entry without number}
\end{document}
Almost the same can be done using a standard class:
\documentclass{article}

% Do the setup using KOMA-Script package tocbasic
\usepackage{tocbasic}
\setuptoc{lot}{numberline}
\renewcommand*{\listoftables}{\listoftoc{lot}}

\begin{document}
\listoftables
% Generate a numbered and a not numbered dummy entry:
\begin{table}
  \caption{Testentry with number}
  \addxcontentsline{lot}{table}{Test entry without number}
\end{table}
\end{document}
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
eb18
Posts: 2
Joined: Mon Mar 02, 2020 12:03 pm

Indent new LoT entry

Post by eb18 »

Thank you!

Here what I hope is a minimal working example of what I have.

Code: Select all

\documentclass[12pt]{report}

\usepackage{float}
\usepackage{tocloft} % As I already used this package for the rest of report, is there any way I can fix the issue with this?


\begin{document}

\listoftables
\captionsetup[table]{labelformat=empty}

\begin{table}[H]
\caption*{\testentry}
\end{table}

\addcontentsline{lot}{table}{testentry}

\end{document}

Thank you for your kindness and for your help!
Last edited by cgnieder on Sun Mar 08, 2020 10:48 am, edited 1 time in total.
User avatar
Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

Indent new LoT entry

Post by Ijon Tichy »

I never use tocbasic, so I cannot tell you how to solve it using tocloft.

BTW: Please read the BBCode help page to see how to mark block code or use the "Select code" button to even explicitly select "TeX (latex)" code and give it a file name.

With your code I get error messages, e.g.:
./Untitled.tex:10: Undefined control sequence.
l.10 \captionsetup
                  [table]{labelformat=empty}
So I think it is not a minimal working example.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply