GeneralTrouble with /listoffigures

LaTeX specific issues not fitting into one of the other forums of this category.
roja
Posts: 4
Joined: Tue Jul 31, 2007 12:33 pm

Trouble with /listoffigures

Post by roja »

Hi,

I am having a bit of a problem with the listoffigures command. It is correctly capturing all of the relevent figures however some of the captions of the figures are rather large (more so than the page size) and this appears to be causing problems for the listoffigues as it not word-wrapping the text. Is there any advice anyone can give me about how to force it to begin wrapping properly?


Regards
Roja

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

pumpkinegan
Posts: 91
Joined: Thu May 03, 2007 10:29 pm

Trouble with /listoffigures

Post by pumpkinegan »

Are you using the hyperref package? If so, remember to use the breaklinks=true option:

Code: Select all

\usepackage[breaklinks=true]{hyperref}
roja
Posts: 4
Joined: Tue Jul 31, 2007 12:33 pm

Re: Trouble with /listoffigures

Post by roja »

:) Thankyou so very very much :)


Roja
roja
Posts: 4
Joined: Tue Jul 31, 2007 12:33 pm

Trouble with /listoffigures

Post by roja »

Hi again,

I am still having a bit of trouble with my list of features as far as hyperref goes. Word wrapping is now totaly fixed but it's placing rather odd hot-spots arround the place... Does anyone have any idea? I have included a picture to give an idea dispite my inabilities to explain the problem further.

Image

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

Trouble with /listoffigures

Post by localghost »

You should give your figures a shorter caption by using an optional argument.

Code: Select all

\caption[Short caption]{Full caption}
That may solve the problem.
Jye
Posts: 4
Joined: Fri Nov 02, 2007 7:03 am

Re: Trouble with /listoffigures

Post by Jye »

Hi,

Im having the same problem of the TOC, LOF and LOT not word wrapping and Im not using the hyperref package. Is there a way to correct this without the hyperref package?

Cheers
Jye
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

Trouble with /listoffigures

Post by gmedina »

Are you using one of the standard LaTeX classes? Can you please give some more information about your document? It would be better if you could post a minimal working example of your problem.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Jye
Posts: 4
Joined: Fri Nov 02, 2007 7:03 am

Trouble with /listoffigures

Post by Jye »

I am using LEd and this is only a recent problem, could it be due to one of the packages?

Code: Select all

\documentclass[12pt,a4paper,fleqn,titlepage,twoside]{report}
\usepackage{anysize}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{pstricks}
\usepackage{textcomp}
\usepackage{harvard}
\doublespace				

\oddsidemargin  1.7cm  	
\evensidemargin 0.1cm 	
\textwidth      14.0cm
\topmargin      0.0cm
\textheight     22cm

\begin{document}
\bibliographystyle{dcu} 
\include{Quote} \cleardoublepage
\pagenumbering{roman} \setcounter{page}{3}	
\include{Keywords} \cleardoublepage
\include{Abstract} \cleardoublepage
\include{publications} \cleardoublepage

\tableofcontents \cleardoublepage
\listoffigures \cleardoublepage
\listoftables \cleardoublepage

\include{Statement} \cleardoublepage
\include{acknowledgements} \cleardoublepage
\include{abbreviations} \cleardoublepage 

\pagestyle{fancy}	
\fancyhead{} 			
\fancyfoot{} 				
\renewcommand{\headrulewidth}{0pt} 
\fancyhead[OR,EL]{\thepage}	 
\fancyhead[ER]{\textit\leftmark}	
\fancyhead[OL]{\textit\rightmark} 	

\pagenumbering{arabic}\setcounter{page}{1}	


\include{Chapter-1} \cleardoublepage
\include{Chapter-2} \cleardoublepage
\include{Chapter-3} \cleardoublepage
\include{Chapter-4} \cleardoublepage
\include{Chapter-5} \cleardoublepage

\bibliography{bibrefs}
\nocite{*} % Includes all refs not just those cited.

\end {document}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Trouble with /listoffigures

Post by localghost »

This is not a MWE, because you are the only one who has all the files given in the \include commands. So the described behaviour is not reproducible and your code is nearly useless. My only idea is to add some commands to your preamble.

Code: Select all

\usepackage[T1]{fontenc}                % Enable Cork Encoding
\usepackage[english]{babel}             % Useful even when writing in English
More explanations to the babel package can be found in its documentation.
Jye
Posts: 4
Joined: Fri Nov 02, 2007 7:03 am

Trouble with /listoffigures

Post by Jye »

Sorry guys, here is a mwe and an image of the problem.

Thanks for the replies so far.

Code: Select all

\documentclass[12pt,a4paper,fleqn,titlepage,twoside]{report}
\usepackage{anysize}
\usepackage{setspace}
\usepackage{fancyhdr}
\usepackage{graphicx}
\usepackage{pstricks}
\usepackage{textcomp}
\usepackage{harvard}

\doublespace				

\begin{document}
\bibliographystyle{dcu} 
 
\pagenumbering{roman} \setcounter{page}{3}	

\tableofcontents \cleardoublepage
\listoffigures \cleardoublepage
\listoftables \cleardoublepage



\pagestyle{fancy}			
\fancyhead{} 				
\fancyfoot{} 				
\renewcommand{\headrulewidth}{0pt} 	
\fancyhead[OR,EL]{\thepage}	      
\fancyhead[ER]{\textit\leftmark}	
\fancyhead[OL]{\textit\rightmark} 	

\pagenumbering{arabic}\setcounter{page}{1}	



\begin{figure}[htb]
\centering
\includegraphics[scale=1]{testfigure.eps}
\caption{Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test. Test.  }
\label{testfigure}
\end{figure}


\end {document}

Image
Post Reply