LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
LinkBack Search this Thread
Old 12-13-2006, 08:54 AM   #1
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Rep: Reputation: 30
preventing LaTeX from placing a blank page first[solved]


I have a huge table set in LaTeX, and for some reason I get a blank page first when I typeset it. I have found that the cause is in one of the header rows, but not why. The row in question has a series of multicolumn spans, see below.

The document looks like this:
Code:
\documentclass[a4paper,10pt]{article}
\usepackage{multirow}
\usepackage[latin1]{inputenc}
\usepackage[pdftex,landscape]{geometry}
\title{}
\author{}
\pagestyle{empty}
\oddsidemargin=-2.5cm
\begin{document}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|c|}\hline
\multicolumn{25}{|c|}{<title>}\\ \hline
&\multicolumn{2}{|c|}{January}&[...]&\multicolumn{2}{|c|}{December}\\ \hline
[...]
[...]
\end{tabular}
\end{document}
(I shortened the code for space, it covers all the months, and each month covers 2 columns)

the problem is in the line that starts with "&\multicolumn{2}".

Last edited by edgjerp; 12-14-2006 at 07:21 AM.
 
Old 12-14-2006, 02:31 AM   #2
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
Why do you need the leading "&" in that line? (It begins a row dosn't it?)
How do you know this is the problem: you remove the line and the empty page goes away?

If you remove the \title{} and \author{} ... do you still get the empty page?
 
Old 12-14-2006, 02:40 AM   #3
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 30
the '&' is because the "january" doublecolumn starts at column 2, with row headers in the first. I have tried removing it, no success, the cells are just moved one position to the left. removing author and title changes nothing. commenting out the entire line fixes the problem, but that is not an option.
 
Old 12-14-2006, 07:20 AM   #4
edgjerp
Member
 
Registered: Dec 2004
Location: Trondheim, Norway
Distribution: kubuntu 10.04
Posts: 308

Original Poster
Rep: Reputation: 30
solved, I needed to change \textheight to be higher than the whole table. I also changed the \textwidth to remove a badbox warning.
 
Old 12-14-2006, 09:34 PM   #5
Simon Bridge
Guru
 
Registered: Oct 2003
Location: Waiheke NZ
Distribution: Ubuntu 10.04
Posts: 9,196

Rep: Reputation: 190Reputation: 190
well done - and error output is always useful to include.

Usually you get a blank leading or trailing page when something is too big in some way ... my initial thought was that you table seems to full the whole page so a \title wouldn't fit there too ... the title would end up on the first page with the table on the second, and, since the title was a blank the page would be a blank.

As it happened, the table was too big for the page it was on - it gets shunted to the next page, and overflowing the box.

It is normally bad form in latex to adjust the textheight, width and margin-sizes. Your table really needs to go across two pages

Last edited by Simon Bridge; 12-14-2006 at 09:35 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
latex, put \begin{figure*} on own page hedpe Programming 4 11-30-2009 05:16 PM
how to not display the page number in latex naihe2010 General 1 10-31-2006 04:32 AM
decreasing the page margin in a latex letter dvm General 3 04-25-2005 06:29 PM
Images in latex front page ObedientMonk Linux - Software 2 05-02-2004 09:24 AM
Images in latex front page ObedientMonk Linux - Software 0 04-30-2004 05:31 AM


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

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