Agregar sangrías francesas en la lista de entradas de figuras en Latex

Agregar sangrías francesas en la lista de entradas de figuras en Latex

Estoy escribiendo mi Tesis. Sin embargo, tengo un problema al formatear la lista de la Figura. Quería saber cómo puedo agregar sangrías francesas a los títulos de las figuras para que queden alineados con la primera línea. Estoy usando Thesis Class, que de forma predeterminada no escribe la palabra "Figura" y "Tabla" antes del Número de figura.

Salida inicial sin tocloft

Por lo tanto, he usado tocloftel paquete para agregar palabras Figura y Tabla antes del Número de figura y tabla. Hacer esto desplaza la primera línea pero la segunda línea permanece donde estaba.

Usando el paquete tocloft.

¿Hay alguna forma de alinear la primera y la segunda línea manteniendo intacta la palabra "Figura"? He proporcionado una fracción del código que estoy usando. Sin embargo, he incluido todos los paquetes que he usado.

\documentclass[12pt, a4paper, oneside, openright]{Thesis} % Paper size, default font size and one-sided paper
\usepackage{subfigure}
\usepackage[subfigure]{tocloft}
\usepackage{notoccite}
\usepackage{wrapfig}
\usepackage{lscape}
\usepackage{rotating}
\usepackage{graphicx}
\usepackage{caption}
\usepackage{amsmath, nccmath}
\usepackage{comment}
\usepackage{afterpage}
\usepackage{multirow}
\usepackage{notoccite}
\usepackage{enumitem}
\usepackage{multicol}
\usepackage{times}
\usepackage{cleveref}
\usepackage{wasysym}
\usepackage{rotating}
\usepackage[square, numbers]{natbib}


\hypersetup{urlcolor=black, colorlinks=true} % Colors hyperlinks in blue - change to black if annoyingv`    
\title{\ttitle} % Defines the thesis title 
\setlength{\parindent}{20pt}


\setlength\cftbeforefigskip{8pt}    % To add line spacing between entries in LOF
\setlength\cftbeforechapskip{8pt}   % To add line spacing between entries in LOC
\setlength\cftbeforetabskip{8pt}    % To add line spacing between entries in LOT

\begin{document}
\makeatletter
\renewcommand*{\NAT@nmfmt}[1]{\textsc{#1}}
\makeatother

\frontmatter 

\fancyhead{} % Clears all page headers and footers
\rhead{\thepage} % Sets the right side header to show the page number
\lhead{} % Clears the left side page header

\pagestyle{fancy} % Finally, use the "fancy" page style to implement the FancyHdr headers

\newcommand{\HRule}{\rule{\linewidth}{0.5mm}} % New command to make the lines in the title page

% PDF meta-data
\hypersetup{pdftitle={\ttitle}}
\hypersetup{pdfsubject=\subjectname}
\hypersetup{pdfauthor=\authornames}
\hypersetup{pdfkeywords=\keywordnames}


\pagestyle{plain}

\acknowledgements{Some Random texts}
\newpage
\addtotoc{Abstract} % Add the "Abstract" page entry to the Contents
\abstract{Some random Texts for Abstract}
\newpage 

\pagestyle{fancy} % The page style headers have been "empty" all this time, now use the "fancy" headers as defined before to bring them back
\addtotoc{Contents}
\lhead{\emph{Contents}} % Set the left side page header to "Contents"
\tableofcontents % Write out the Table of Contents
\newpage
\addtotoc{List of Figures}
\lhead{\emph{List of Figures}} % Set the left side page header to "List of Figures"

%Fragment of code for Writing "Figure" in front of Figure number
{
  \let\oldnumberline\numberline%
  \renewcommand{\numberline}{\figurename~\oldnumberline}%
\listoffigures % Write out the List of Figures
}
\newpage

\addtotoc{List of Tables}
\lhead{\emph{List of Tables}} % Set the left side page header to "List of Tables"
%Fragment of code for Writing "Figure" in front of Figure number
{
  \let\oldnumberline\numberline%
  \renewcommand{\numberline}{\tablename~\oldnumberline}%
\listoftables % Write out the List of Tables
}

\mainmatter % Begin numeric (1,2,3...) page numbering

\pagestyle{fancy} % Return the page headers back to the "fancy" style

% Include the chapters of the thesis as separate files from the Chapters folder
% Uncomment the lines as you write the chapters

\input{Chapters/Chapter1}
\input{Chapters/Chapter2}
\input{Chapters/Chapter3}
\input{Chapters/Chapter4}
\input{Chapters/Chapter5}

\clearpage % Start a new page
\appendix % Cue to tell LaTeX that the following 'chapters' are Appendices

% Include the appendices of the thesis as separate files from the Appendices folder
% Uncomment the lines as you write the Appendices

\input{Appendices/AppendixA}

\backmatter

\label{References}

\lhead{\emph{References}} % Change the page header to say "Bibliography"
\renewcommand\bibname{References}
\bibliographystyle{unsrt} % Use the "custom" BibTeX style for formatting the Bibliography

\bibliography{references} % The references (bibliography) information are stored in the file named "Bibliography.bib"

\newpage
\include{LOP}
\newpage
\end{document}

Donde estoy cometiendo el error???

Respuesta1

La forma en que redefines \numberline:

\let\oldnumberline\numberline%
\renewcommand{\numberline}{\figurename~\oldnumberline}

Make cftfignumwidthno tiene en cuenta el ancho de la palabra \figurename~. Porque está fuera del comando \numberline. No deberías redefinir \numberlineasí. En su lugar, el paquete tocloftproporciona los comandos \cftfigpresnumy \cftfigaftersnumcoloca contenidos adicionales antes y después del número.

A continuación se muestra un ejemplo de cómo utilizar estos comandos para lograr lo que desea:

\documentclass{book}
\usepackage{graphicx}
\usepackage{tocloft}

\setlength\cftbeforefigskip{8pt}
\settowidth{\cftfignumwidth}{Figure~1.100~}% set the \cftfignumwidth to certain length of text in case you have a huge numbered figure, e.g., Figure~1.100~
\renewcommand{\cftfigpresnum}{Figure~}% add the word figure and a space before the number
\renewcommand{\cftfigaftersnum}{~} % add a space after the number

\begin{document}
\listoffigures
\chapter{One}
\begin{figure}
    \centering
    \includegraphics{example-image}
    \caption{A very very very very very very very very very very very very very very very very very very very very very very long Caption}
\end{figure}
\setcounter{figure}{10}
\begin{figure}
    \centering
    \includegraphics{example-image}
    \caption{A very very very very very very very very very very very very very very very very very very very very very very long Caption}
\end{figure}
\setcounter{figure}{100}
\begin{figure}
    \centering
    \includegraphics{example-image}
    \caption{A very very very very very very very very very very very very long Caption}
\end{figure}
\end{document}

ingrese la descripción de la imagen aquí

información relacionada