Text Formatting\listoffigures and \listoftables do not change line

Information and discussion about LaTeX's general text formatting features (e.g. bold, italic, enumerations, ...)
Post Reply
michael_
Posts: 1
Joined: Thu May 21, 2009 3:16 pm

\listoffigures and \listoftables do not change line

Post by michael_ »

Hi,

i have a problem with the \listoffigures and \listoftables commands. In some cases, the caption of the figure/table is too long to fit in a single line. When this happens, these commands do not change line, but continue in the same line ... how can i force them to change line?

thanks

Michael

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
Stefan Kottwitz
Site Admin
Posts: 10290
Joined: Mon Mar 10, 2008 9:44 pm

Re: \listoffigures and \listoftables do not change line

Post by Stefan Kottwitz »

Hi Michael,

welcome to the board!
The lines should be wrapped. Perhaps the problem is caused by unbreakable hyperlinks. But we would need more information to help, like a short compilable example of your code showing the problem.

Depending on how you are working could help: loading the hypdvips package after hyperref, the breakurl package or the option breaklinks=true of hyperref.

Stefan
LaTeX.org admin
coandrei
Posts: 5
Joined: Mon Jun 29, 2009 12:14 pm

\listoffigures and \listoftables do not change line

Post by coandrei »

Same problem here. I use MikTex 2.4. I have a project created, eps figures included and I use Latex => PS => PDF profile when I build the project.
Any help or hint would be apreciated

This MWE returns my problem.

Code: Select all

\documentclass[a4paper,12pt]{report}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage[english]{babel}
\usepackage{amssymb,amsmath,amsthm,pagesize,xy}

\usepackage{color}
%\usepackage[a4paper,landscape]{geometry}
\usepackage{floatflt}
%\usepackage{harvard}
\usepackage{natbib}%package provides a comprehensive set of referencing commands.
\usepackage{lscape}%\landscape
\usepackage{url}%url
\usepackage{graphicx}    % used for Figures
\usepackage{rotating}    % used for landscape mode.
\usepackage{afterpage}
\usepackage{epsfig}
\usepackage{subfigure}   % These two packages, epsfig and subfigure, are used for creating subplots.
\usepackage{multirow}%\multirow
\usepackage{wrapfig}%
\usepackage[ps2pdf,bookmarks=true]{hyperref}
\usepackage{booktabs}%package provides features for correctly formatted tables in LaTeX.



\pagestyle{plain}
\pagesize{hmargin=2.5cm,vmargin=2.5cm}

\setlength{\parindent}{0cm}
\setlength{\parskip}{0.25cm}


\begin{document}

\tableofcontents
\listoffigures
\listoftables

\chapter{Intro intro intro intro intro intro intro intro intro intro intro intro intro}
\section{Code and phase biases Code and phase biases Code and phase biases Code and phase biases}
The world of navigation was tremendously changed on October 4, 1957, when the Soviet Union successfully launched Sputnik I, the world's first artificial satellite. On November 3, 1957, Sputnik II was launched, carrying a much heavier payload, including a dog named Laika. Immediately after the Sputnik I launch, the the United States successfully launched Explorer I, on January 31, 1958.
\begin{table}[h]
	\centering
	\caption{The corrections due to satellite-specific P1-P2 and P1-C1 DCB values for the most important linear combinations derived from various combinations of code observable types}	
	\medskip
% Table generated by Excel2LaTeX from sheet 'Sheet2'
\begin{tabular}{l|r|rr|rr|rrr}
\toprule
\multicolumn{ 1}{c}{Observation} &                                                                   \multicolumn{ 8}{c}{Receiver class} \\
\midrule
        L1 &      +1.55 &      +1.55 &      +1.00 &      +1.55 &      +1.00 &      +1.55 &      +1.00 &            \\

        L2 &      +2.55 &      +2.55 &      +1.00 &      +2.55 &            &      +2.55 &            &      +1.00 \\

   L3 (LC) &            &            &      +1.00 &            &      +2.55 &            &      +2.55 &      -1.55 \\

   L4 (LI) &      -1.00 &      -1.00 &            &      -1.00 &      +1.00 &      -1.00 &      +1.00 &      +1.00 \\

   L5 (LW) &      -1.98 &      -1.98 &      +1.00 &      -1.98 &      +4.53 &      -1.98 &      +4.53 &      -3.53 \\

   L6 (MW) &            &            &      -1.00 &            &      -0.56 &            &      -0.56 &      -0.44 \\
\bottomrule
\end{tabular}  
\end{table}

\section{Satellite-based Navigation Systems Satellite-based Navigation Systems Satellite-based Navigation Systems}
The world of navigation was tremendously changed on October 4, 1957, when the Soviet Union successfully launched Sputnik I, the world's first artificial satellite. On November 3, 1957, Sputnik II was launched, carrying a much heavier payload, including a dog named Laika. Immediately after the Sputnik I launch, the the United States successfully launched Explorer I, on January 31, 1958.
\begin{figure}[h]
	\centering
   \includegraphics{../figures/rxpcv.eps}
	\caption{ Electrical phase center and antenna reference point Electrical phase center and antenna reference point Electrical phase center and antenna reference point }
	\label{fig:RxPCV}
\end{figure}


\chapter{Distro distro distro distro distro distro distro}
\section{Code and phase biases Code and phase biases Code and phase biases Code and phase biases}
The world of navigation was tremendously changed on October 4, 1957, when the Soviet Union successfully launched Sputnik I, the world's first artificial satellite. On November 3, 1957, Sputnik II was launched, carrying a much heavier payload, including a dog named Laika. Immediately after the Sputnik I launch, the the United States successfully launched Explorer I, on January 31, 1958.
\section{Code and phase biases Code and phase biases Code and phase biases Code and phase biases}
The world of navigation was tremendously changed on October 4, 1957, when the Soviet Union successfully launched Sputnik I, the world's first artificial satellite. On November 3, 1957, Sputnik II was launched, carrying a much heavier payload, including a dog named Laika. Immediately after the Sputnik I launch, the the United States successfully launched Explorer I, on January 31, 1958.

\end{document}

User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

\listoffigures and \listoftables do not change line

Post by localghost »

coandrei wrote:[...] I use MikTex 2.4. [...]
Upgrade to version 2.7 of MikTeX. Not problem related, but strongly recommendable.
Stefan_K wrote:[...] Depending on how you are working could help: loading the hypdvips package after hyperref, the breakurl package or the option breaklinks=true of hyperref. [...]
As you can see, the solution has already been given with the breaklinks option.


Best regards
Thorsten
How to make a "Minimal Example"
Board Rules
Avoidable Mistakes[/size]

¹ System: openSUSE 42.2 (Linux 4.4.52), TeX Live 2016 (vanilla), TeXworks 0.6.1
Post Reply