Graphics, Figures & Tablesproblem with margin in list of figures

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
User avatar
sherlock
Posts: 34
Joined: Fri Apr 11, 2008 9:41 am

problem with margin in list of figures

Post by sherlock »

Hi
I am having problem with the list of figures, i.e, the list
"overflow" the right margin. How can I get ride of it?
This is an image of the list
lofmargin.png
lofmargin.png (9.08 KiB) Viewed 5113 times
this is my code

Code: Select all

\documentclass[a4paper,11pt]{report}
\usepackage[lmargin=2.5cm, rmargin=2.5cm,tmargin=2.5cm,bmargin=2.5cm]{geometry}
\usepackage[dvips]{graphicx}
\linespread{1.5}
\usepackage{float}
\usepackage{natbib}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{textcomp}
\usepackage{helvet,url}
\usepackage{lscape}
\usepackage{fancyhdr}
\usepackage[outer]{showlabels}
\usepackage[Sonny]{fncychap}
\usepackage[explicit]{titlesec}
\usepackage{subfigure}
\usepackage[T1]{fontenc}
\usepackage[scriptsize,nooneline,bf]{caption}
\usepackage[usenames,dvips]{color}
\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue, urlcolor=blue]{hyperref}
\usepackage[absolute]{textpos}
%=======CORRECT THE VERTICAL SPACE IN TITLE PAGES 
\titleformat{\chapter}[display]
  {\normalfont\Large\sffamily}
  {\flushright\MakeUppercase\chaptertitlename\ \Huge\thechapter}{20pt}
  {\hrulefill\Large\sffamily\flushright\vskip-10pt#1\vskip-10pt\hrulefill}
\titlespacing*{\chapter}
  {0pt}{-40pt}{40pt}
%================ to write Figure x.x title of figure ================
\makeatletter
\newcommand*\stdl@figure{}
\let\stdl@figure\l@figure
\renewcommand*\l@figure[2]{\stdl@figure{\figurename\space#1}{#2}}
\makeatother

Thanks

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

problem with margin in list of figures

Post by gmedina »

Hi,

try adding breaklinks=true to the options of hyperref; i.e., load hyperref using something like

Code: Select all

\usepackage[colorlinks=true, pdfstartview=FitV, linkcolor=blue, citecolor=blue, urlcolor=blue,breaklinks=true]{hyperref}
If that doesn't solve the problem, we'll need a minimal working example allowing us to reproduce the undesired behaviour.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
sherlock
Posts: 34
Joined: Fri Apr 11, 2008 9:41 am

Re: problem with margin in list of figures

Post by sherlock »

Thanks gmedina,
problem solved
Post Reply