Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I use Lyx 2.1, document class : Report. My problem is that the titles of figures are written on the numbers at List of Figures. enter image description here

share|improve this question
    
As in all cases, please post a MWE, not a half-code ;-) Your example is neither complete that it would run at all nor would it provide the described error. There are a lot of packages not needed to show the error (if reproducible at all) –  Christian Hupfer Jun 29 at 15:25
    
Ok, but the code is quite long –  GoldRay Jun 29 at 15:40
    
Shorten it please. As much as you can. Kick out everything as long as the error persists. –  LaRiFaRi Jun 29 at 17:38
    

2 Answers 2

up vote 4 down vote accepted

Loading the tocloft package and using the macro \cftsetindents for figure and table items should do the job. Specifically, you could add the following code to your document's preamble:

\usepackage[titles]{tocloft}
\cftsetindents{figure}{0em}{3.5em}
\cftsetindents{table}{0em}{3.5em}

The second \cftsetindents instruction, i.e., the resetting of the indentation amount for the entries in the List of Tables, isn't strictly necessary for your document. However, doing so may be appropriate to keep the appearance of the List of Tables in sync with that of the List of Figures.

You're of course free to adjust the indentation amount (3.5em) to suit your preferences.

share|improve this answer
% arara: pdflatex
% arara: pdflatex

\documentclass[12pt,french]{report}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage[demo]{graphicx}
\usepackage{tikz}
\numberwithin{figure}{section}
\numberwithin{table}{section}
\linespread{1.5} %interligne
\usepackage{babel}
\usepackage[style=french, french=guillemets]{csquotes}
\MakeAutoQuote{<}{>}
\usepackage{hyperref}

\makeatletter
%\newcommand*\l@figure{\@dottedtocline{1}{1.5em}{2.3em}} % the original definition for the class "book"
\renewcommand*\l@figure{\@dottedtocline{1}{1.5em}{3em}} % adapt the second value to your needs
\let\l@table\l@figure
\makeatother

\begin{document}
\listoffigures
\setcounter{chapter}{3}
\setcounter{section}{3}
\setcounter{figure}{6}
\setcounter{page}{23}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{D:/programmes/Lyx/workspace/conception/gérer_messages_1}
\caption{\label{Diagramme de classes gerer msg}Diagramme de classes du CU <Gérer Messages>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/gérer_msg}
\caption{\label{Diagramme cu gerer msg}Diagramme du cas d'utilisation détaillé <Gérer Messages>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{D:/programmes/Lyx/workspace/conception/gérer_messages_1}
\caption{\label{Diagramme de classes gerer msg}Diagramme de classes du CU <Gérer Messages>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{D:/programmes/Lyx/workspace/conception/séquences/supprimer_msg}
\caption{\label{Diagramme de seq supp msg}Diagramme de séquences <Supprimer Message>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/consulter_candidats}
\caption{\label{cu consulter candidat}Diagramme du cas d'utilisation détaillé <Consulter Candidats>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/consulter_candidatures}
\caption{\label{cu consulter candidature}Diagramme du cas d'utilisation <Consulter Candidatures>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/consulter_cand}
\caption{\label{diag de classes consulter candidature}Diagramme de classes du CU <Consulter Candidatures>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/générer_certif}
\caption{\label{cu générer certif}Diagramme du cas d'utilisation <Générer Certificats>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/générer_certificats_1}
\caption{\label{classes générer certif}Diagramme de classes du CU <Générer Certificats>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/gérer_comm_2}
\caption{\label{cu gérer comm}Diagramme du cas d'utilisation détaillé <Gérer Commissions>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/gérer_commissions}
\caption{\label{classes gérer comm}Diagramme de classes du CU <Gérer Commissions>}
\end{figure}\og
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/délibrer_resultats}
\caption{\label{cu délibérer res}Diagramme du cas d'utilisation détaillé <Délibérer Résultats>}
\end{figure}
\begin{figure}[H]
\centering
\includegraphics[width=16cm]{conception/délibrer_resultats_New1}
\caption{\label{classes délibérer res}Diagramme de classes du CU <Délibérer Résultats>}
\end{figure}
\end{document}

enter image description here

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.