Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 07-29-2009, 12:10 AM   #1
Senior Member
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Rep: Reputation: 50
LaTeX: don't want to *force* page break, just make the text respect the footer

Ok. So, here is a screenshot of what is happening:

As you can see the text is floating past the page number "2".

This is the code:




\ \\
Computer Systems 2 \\

%your name here 




\section{Tutorial One}
%you might want to add some thoughts here.
%Adding the date of your tutorial might be helpful also.

\section{Practical One}
%Add the date of your prac here. 

\subsection{Understanding Python}
%Section 7.1 on Prac 1

\subsection{Knowing FTP and SVN}
%Section 7.2 on Prac 1

\subsection{Understanding the Mutual Update Problem}
%Section 7.3  on Prac 1

<snip> (just multiple \section stuff) 

\section{Final Thoughts}


I don't want to force a \pagebreak because eventually each heading will have text filled into it and that will mess with the formatting. (Right?) Trying to Google this just turns up results for \pagebreak and I don't know what else to google.

I'm using TeXshop on MacOSX.

Please tell me if you think I should just leave the formatting alone and fix it when the document is finished. This is sucky though because I was hoping to share the document as a template.


Old 07-29-2009, 06:36 AM   #2
Registered: Oct 2006
Distribution: Kubuntu 9.04, Debian Etch
Posts: 178

Rep: Reputation: 31
I guess this problem will get fixed once the text inside sections and subsections is inserted. LaTeX cannot places the titles properly because there so many floating objects (titles) and so little text. That is my diagnosis. Hope it helps
Old 07-29-2009, 08:30 AM   #3
Simon Bridge
LQ Guru
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu
Posts: 9,211

Rep: Reputation: 198Reputation: 198
Your title gets error
! LaTeX Error: There's no line here to end.
using: LaTeX2e <2005/12/01>

Computer Systems 2 \\
However - it is doubtful that this is the cause of your output anomaly.
Even with the error, pdf output I get from your file does not show the page overrun that you see.

For me - "final thoughts" is half-way down page 2 ... the footer should be at the bottom. It is not clear from your picture how the page is filled up. However, when fill the sections with lorem ipsum to bulk it out, or even just vertical space, the page size is honored.

This means that the trouble is either in your viewer or TeXshop.
Unless you've been playing around with custom page styles?
Old 07-30-2009, 04:17 AM   #4
Senior Member
Registered: May 2002
Location: Melbourne Australia
Distribution: it died/ macosx
Posts: 2,478

Original Poster
Rep: Reputation: 50
Thanks Simon! Title Error fixed.

There are a total of 13 sections, I snipped from the code for readability.

No custom pagestyles.

Matz, your diagnosis looks like the correct one- copy-pasting various size lorem-ipsum text under each section and bingo, no evil page footer violations.

Thanks, both!



format, latex, text

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LaTeX to HTML - all on one page jantman Linux - Software 1 12-03-2008 09:12 AM
Page break command gubak Linux - Newbie 1 03-13-2007 04:27 AM
SNORT Rule for netbios brute force break-in SnortUser Linux - Security 1 02-12-2004 02:28 PM
HTML page break? patpawlowski Programming 4 02-12-2004 10:30 AM
Make Screen respect bash aliases VxJasonxV Linux - Software 8 02-05-2004 03:00 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 07:25 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration