How to remove a blank page "before" the title page

I'm using MiKTeX 2.9 and TeXniCenter for writing my thesis. I have a lot of packages and everything was going well, until last night that a blank page with ".0" written in the top left corner kept generating before my title page and still I cannot figure out how to remove it. Is there any kind of command that I can use except \let\cleardoublepage\clearpage ? I have been searching heavily but could not find a useful way. I'd appreciate any help.

29.1k 21 21 gold badges 111 111 silver badges 204 204 bronze badges asked Oct 22, 2013 at 21:59 Ehsan M. Kermani Ehsan M. Kermani 383 1 1 gold badge 3 3 silver badges 7 7 bronze badges What did you change, before this appeared? Can you post a MWE which shows this behaviour? Commented Oct 22, 2013 at 22:01

@Michael I only added the appendix section which I don't think have anything to do with the blank page. Actually, I'm using a template for it and have not seen anyone facing such an issue. Regarding MWE, I don't think I'm able to do that!

Commented Oct 22, 2013 at 22:06

Btw, one more thing is that I'm not using \thanks in \author (there's only one author), so it's not about it if someone is thinking so.

Commented Oct 22, 2013 at 22:08

Something changed. But without more information, this seems like a very open-ended question. You should start by stripping away things you may have changed in the last couple of days to try and narrow down the problem. For example, remove any reference to the appendix (file) and recompile. If that still shows a problem, remove all the chapters except for the title content, and so forth.

Commented Oct 22, 2013 at 22:22

@ehsanmo: Yes, you can discard it using atbegshi 's \AtBeginShipoutDiscard . I've done something similar in Compiling only a page range or page selection. The pagesel package can also help in that regard.

Commented Oct 22, 2013 at 22:31

9 Answers 9

For what it's worth or if all else fails, you can always remove the first page by adding the following to your document preamble:

\usepackage% http://ctan.org/pkg/atbegshi \AtBeginDocument> 

This should affect only the next shipout at the document start, which defaults to the first page.

answered Oct 23, 2013 at 19:17 609k 141 141 gold badges 1.5k 1.5k silver badges 2.3k 2.3k bronze badges

Actually this solution in my experience works, but as a side effect it removes the index in PDF documents. I'm using LyX on Windows and the output is generated using XeTeX.

Commented Sep 21, 2017 at 9:31 Using this atbegshi package also removes \pagecolor setting Commented Aug 27, 2020 at 11:09 wow this was really helpful! Commented Dec 3, 2020 at 1:51 That makes the first page numbered page 2. Commented Jul 23, 2021 at 23:33 @Geremia: You can add \addtocounter to the \AtBeginDocument content. Commented Jul 24, 2021 at 16:31

Instead of chucking out the problem page, you should avoid generating it in the first place.

You're getting an extra page because something is producing output before \maketitle . You can even see the output: .0 , as you report. So, my guess is that somewhere in your header you're assigning a decimal number to a counter that only accepts integers: E.g., 10.0 instead of just 10 . The leftovers are treated as text, and printed on the first page. Examine your compilation messages (or .log file if necessary), and you should be able to spot the error. (If the error is ahead of \begin , you'll get a very obvious complaint about that.)

If you have no such assignment in your preamble, then it's hidden in one of the packages you include. How could this happen? Most likely, one package redefines a command that another package then (mis)uses. A bit of experimenting should discover the two culprits. You can often avoid such problems by simply reversing their order of inclusion.