Page Layout ⇒ Indent new LoT entry
Indent new LoT entry
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
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Indent new LoT entry
\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}\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}Indent new LoT entry
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!
- Ijon Tichy
- Posts: 640
- Joined: Mon Dec 24, 2018 10:12 am
Indent new LoT entry
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}