Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Actually I want to move my figures and tables to a separate LaTeX file. But when I compiled that new file I got a blank first page.

So I want to know how can I remove that blank first page. By the way, I'm using the bioinfo class.

share|improve this question
1  
Post a MWE so we can see what you're working with. We'll be better able to help you. –  A.Ellett Jan 6 '13 at 2:39
1  
The question itself is different from How to remove the blank page when omitting comments and messages in knitr, although the solution is similar. Not sure whether that would be considered a duplicate. atbegshi can be used to discard a page based on a condition. –  Werner Jan 6 '13 at 2:39
    
I added \AtBeginShipout{\ifnum\value{page}=1\AtBeginShipoutDiscard\fi} to my document but I got two errors of undefined Control sequence. Do I need to add a specific file in my work directory? –  Bel Jan 6 '13 at 2:48
1  
@Bel: You need to add the atbegshi package to your preamble: \usepackage{atbegshi}. Does this solve your problem? –  Werner Jan 6 '13 at 3:27
    
@bel I'm afraid without MWE this question will be closed as too localized. –  Stephan Lehmke Jan 6 '13 at 6:27
show 1 more comment

closed as too localized by Stephan Lehmke, Werner, Thorsten, Guido, Martin Schröder Jan 6 '13 at 11:54

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer

I offer that it is the bioinfo class, which appears to have other issues as well, that is to blame. A minimal LaTeX document using, for example, the article class with, for example, only figures in it ought not generate a blank first page:

\documentclass{article}
\usepackage{graphicx}
\begin{document}

\begin{figure}[h]
\begin{center}
\fbox{\includegraphics{hare}}
\caption{The Common Hare}
\label{fig:lab}
\end{center}
\end{figure}

\end{document}

Single Page Output

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.