Unwanted Empty Page at End of the Document

9,453 views
Skip to first unread message

Daniel Pino Muñoz

unread,
Jul 31, 2012, 6:03:10 AM7/31/12
to latexus...@googlegroups.com
I'm having the exactly same problem than this guy (http://www.latex-community.org/forum/viewtopic.php?f=47&p=55210), 

Here you have the problem:

My final version of thesis must adhere to a standard, set by my school.

I am facing a problem, as an additional empty page is inserted at the end of the thesis (this makes the total pages in the thesis to be even). I have several hypothesis for the problem, but no solution. I hope one of you could be able to help.

My thesis skeleton looks like this

\documentclass[a4paper,11pt,twoside,openright]{report}
...
...
...
\clearemptydoublepage %to start the ThesisBackPage on an odd page.
\includepdf[pages=1]{ThesisBackPage.pdf}
\end{document}

I want the single page document, ThesisBackPage to be the last page of the thesis. Even by using an explicit [pages=1], the generated pdf still has ThesisBackPage, and an empty page at the end. If I delete this page using a pdf editor the automatic format checker tool (standard adhesion checker) required by my school fails, obliging me to find an alternative way to suppress this empty page being inserted. So I thought of finding a way to disable this property of latex to add this last and empty page.

I think the problem is due to \includepdf, because if I comment it out no additional empty page is inserted. The problem could be also due to the combination of \includepdf and \end{document}. I have checked that the thesis can end with odd number of pages by commenting both \clearemptydoublepage and \includepdf statements. So I do not have much clue how to rectify this. Please help.

Daniel PINO MUÑOZ

Werner Grundlingh

unread,
Jul 31, 2012, 11:30:14 AM7/31/12
to latexus...@googlegroups.com
It could be that ThesisBackPage.pdf has more than one page. This is highly unlikely, as it is an obvious check which most likely know _not_ to be the case.

It could also be that you load some other package which executes something \AtEndDocument, which could insert more content and cause the additional page to be inserted. So...

1) Does the same happen when you have a document containing only 
  \documentclass[a4paper,11pt,twoside,openright]{report}
  \usepackage{pdfpages}
  \begin{document}
  \clearemptydoublepage %to start the ThesisBackPage on an odd page.
  \includepdf[pages=1]{ThesisBackPage.pdf}
  \end{document}


2) What does your preamble look like in terms of the packages you load?

Please note that the only way to assess the problem is if we can reproduce it. The standard report document class does not yield the results your specifying, so there must be something else that you are doing/loading.

Werner
--
You received this message because you are subscribed to the Google Groups "LaTeX Users Group" group.
To post to this group, send email to latexus...@googlegroups.com.
To unsubscribe from this group, send email to latexusersgro...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/latexusersgroup?hl=en.

Peter Flynn

unread,
Jul 31, 2012, 11:30:26 AM7/31/12
to latexus...@googlegroups.com
On Tue, Jul 31, 2012 at 11:03 AM, Daniel Pino Muñoz <alpi...@gmail.com> wrote:
I'm having the exactly same problem than this guy (http://www.latex-community.org/forum/viewtopic.php?f=47&p=55210), 

Here you have the problem:

My final version of thesis must adhere to a standard, set by my school.

I am facing a problem, as an additional empty page is inserted at the end of the thesis (this makes the total pages in the thesis to be even). I have several hypothesis for the problem, but no solution. I hope one of you could be able to help.

My thesis skeleton looks like this

\documentclass[a4paper,11pt,twoside,openright]{report}

In twosided mode, LaTeX will always create an even number of pages. You cannot suppress that: all sheets of paper have two sides :-)

The best way is to postprocess the PDF with (eg) pdftk and only output the pages you want, eg for a 200pp document,

pdftk mythesis.pdf cat 1-199 output newthesis.pdf

See http://mickcharlesbeaver.blogspot.ie/2010/07/manipulating-pdfs-with-pdftk.html

///Peter


Daniel Pino Muñoz

unread,
Jul 31, 2012, 11:42:25 AM7/31/12
to latexus...@googlegroups.com
Hello Peter and thanks for your answer..;

In fact, I have to add two pages to my document. what happens is that when I add them (two \includepdf ), the output has 3 more pages instead of two more pages...

If I add only one \includepdf, the output has two more pages instead of a single one.

It seems that no matter the number of \includepdf I add, I always get and additional empty page with the header of the last section (The bibliography in this case.)

Any guesses??


Daniel PINO MUÑOZ


Peter Flynn

unread,
Jul 31, 2012, 5:56:52 PM7/31/12
to latexus...@googlegroups.com
On Tue, Jul 31, 2012 at 4:42 PM, Daniel Pino Muñoz <alpi...@gmail.com> wrote:
Hello Peter and thanks for your answer..;

In fact, I have to add two pages to my document. what happens is that when I add them (two \includepdf ), the output has 3 more pages instead of two more pages...

If I add only one \includepdf, the output has two more pages instead of a single one.

It seems that no matter the number of \includepdf I add, I always get and additional empty page with the header of the last section (The bibliography in this case.)

Any guesses??

Nope, you've got me there. I'd have to have all the files and use a fully-worked example to solve that, and I'm afraid that's out of scope for the moment.

Just use pdftk to remove the extra page.

///Peter

Daniel Pino Muñoz

unread,
Aug 1, 2012, 3:55:34 AM8/1/12
to latexus...@googlegroups.com
Hello Werner and Thank you very much for your help.

It could be that ThesisBackPage.pdf has more than one page. This is highly unlikely, as it is an obvious check which most likely know _not_ to be the case.

I did the check and my pdf has just one page. 

It could also be that you load some other package which executes something \AtEndDocument, which could insert more content and cause the additional page to be inserted. So...

1) Does the same happen when you have a document containing only 
  \documentclass[a4paper,11pt,twoside,openright]{report}
  \usepackage{pdfpages}
  \begin{document}
  \clearemptydoublepage %to start the ThesisBackPage on an odd page.
  \includepdf[pages=1]{ThesisBackPage.pdf}
  \end{document}

   2) What does your preamble look like in terms of the packages you load? 

I used this and I didn't get the same behavior. Indeed, I used the same preambule I use in my document and everything was right. I mean, with the code here above I got what I wanted to get... 

Please note that the only way to assess the problem is if we can reproduce it. The standard report document class does not yield the results your specifying, so there must be something else that you are doing/loading.

I'm using a different class I grabbed from a guy website, If I just replace the class to "report", It changes many things as expected, but I still get the extra page at the end....

Do you have any guesses??

Thank you again for your help.

Best,

  Daniel
Reply all
Reply to author
Forward
0 new messages