3

I want to have a centred title page for my twoside report document and I am following these instructions:

Centered title page in twoside report

Here is a minimum (not) working example:

\documentclass[twoside]{report}

\usepackage{auto-pst-pdf}
\usepackage{pdfpages}
\usepackage{ifpdf}

\ifpdf
  \usepackage{tikz}
\else
  \usepackage{pst-eucl}
\fi

\begin{document}

\includepdf{pdf-sample.pdf}

\tableofcontents

\newpage

\chapter{Introduction}

This is content.

\end{document}

But the first page appears to be blank. As soon as I remove either \ifpdf... or \usepackage{auto-pst-pdf}, the title page appears in my document. I use pdflatex --shell-escape for compiling. Unfortunately, I need both options for my document. Any help how to work around this problem will be appreciated.

1

that is a bug in the current tikz. Use:

\listfiles
\documentclass[twoside]{report}
\usepackage{auto-pst-pdf}
\usepackage{pdfpages}
\usepackage{tikz}
\usepackage{pst-eucl}
\begin{document}

\includepdf{pdf-sample.pdf}

\tableofcontents   
\newpage
\chapter{Introduction}

This is content.   
\end{document}

However, this gives a warning that auto-pst-pdf cant create a file. But that doesn't hurt, because there is no file to create ...

  • 1
    I tried this solution, but it does not solve the problem. The first page is still blank. – Alfred Aug 4 '14 at 15:04
  • not for me. I am using up-to-date TeXLive 2014 – user2478 Aug 4 '14 at 15:07
  • Me too: pdfTeX 3.14159265-2.6-1.40.15 (TeX Live 2014) – Alfred Aug 4 '14 at 15:14
  • Try \ifpdf\includepdf{pdf-sample.pdf}\fi. However, here is my generated PDF: comedy.dante.de/~herbert/tmp/test.pdf – user2478 Aug 4 '14 at 15:59
  • I am sorry, but the problem still there. – Alfred Aug 4 '14 at 16:10

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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