Page LayoutLof/Lot running off the page

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
mfiligree
Posts: 25
Joined: Tue Feb 03, 2009 7:52 pm

Lof/Lot running off the page

Post by mfiligree »

In my list of figures and list of tables, all the formatting works except the right justification ~ the lines just run right off the page! Here's an example of the formatting used:
%\contentsline {table}{\numberline {1.1}{\ignorespaces {{{\SetAll {...paragraph markings... {unitTitle}{Generic Book Chapter Titles and Publication Dates}}}}}}{3}{subsection.1.1.4}

Any help is appreciated! :)

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Re: Lof/Lot running off the page

Post by marco_d »

Hello and welcome,

I do not know whether I understand you. Is The problem that you have no linebreaks in the toc or lof?

regards
Marco
i am German. I can not use difficult words. :-)
mfiligree
Posts: 25
Joined: Tue Feb 03, 2009 7:52 pm

Re: Lof/Lot running off the page

Post by mfiligree »

Hi, Marco ~

No, the problem is that all the text runs off the page on the right side. I am wondering if by inserting line breaks it would still have a nice straight right margin or if there is another way to wrap text when the titles are long.

P.S. We used to live in Augsburg! 8-)
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Lof/Lot running off the page

Post by localghost »

Your information is very poor. Using hyperref can cause this behaviour but it can be avoided with an appropriate option.

Code: Select all

\usepackage[breaklinks]{hyperref}
If this doesn't work, build a minimal working example (MWE) that shows exactly the effect you described.


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
marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Re: Lof/Lot running off the page

Post by marco_d »

Hello Thorsten,

I had the same idea. But I wanted to ask the question first.
A small addition:
The code of Thorsten works only width pdflatex. If you use latex you will need the package hypdvips.

regards
Marco
i am German. I can not use difficult words. :-)
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Lof/Lot running off the page

Post by localghost »

marco_d wrote:[...] The code of Thorsten works only width pdflatex. If you use latex you will need the package hypdvips. [...]
For me it works also with latex and shows no dependence on the compiler. An alternative could be to turn the page numbers in the ToC into links.

Code: Select all

\usepackage[linktocpage]{hyperref}
This affects also other lists (LoF, LoT) of the same kind.
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
marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Lof/Lot running off the page

Post by marco_d »

Hello Thorsten,

sure the code works. I want to use the following example:

Code: Select all

\documentclass[a4paper,12pt,ngerman,dvips]{scrbook} 
\usepackage{babel}													
\usepackage[T1]{fontenc} 							
						
\usepackage[breaklinks=true]{hyperref}
%\usepackage{hypdvips}	
\begin{document}
\tableofcontents
\chapter{A very very long long long chapter with many many text text text text many many text text text text}
\end{document}
Without the package the link does not work well. You can see it via the red frame around the chapter in the toc.

regards
Marco
i am German. I can not use difficult words. :-)
phi
Posts: 577
Joined: Tue Oct 21, 2008 8:10 pm

Re: Lof/Lot running off the page

Post by phi »

Please provide more information, including a complete example. Your code is fairly incomprehensible, for example is is unclear what the command \SetAll does.
marco_d
Posts: 57
Joined: Tue Jan 20, 2009 7:49 pm

Lof/Lot running off the page

Post by marco_d »

phi wrote:Please provide more information, including a complete example. Your code is fairly incomprehensible, for example is is unclear what the command \SetAll does.
:?: :?: :?: :?:

regards
Marco
i am German. I can not use difficult words. :-)
User avatar
localghost
Site Moderator
Posts: 9201
Joined: Fri Feb 02, 2007 12:06 pm

Lof/Lot running off the page

Post by localghost »

marco_d wrote: :?: :?: :?: :?:

regards
Marco
Obviously phi didn't address you with his request.
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