3

From the question How can I design a book cover, I tried to compile the code from Dean Serenevy.

\documentclass{article}
\usepackage[]{graphicx}
\usepackage{pstricks}

\begin{document}
\thispagestyle{empty}
\psset{unit=1in}
\begin{pspicture}(7,9.5)% use your page size
  \rput[b](3.5,8){\parbox{5in}{\begin{flushright}
    \Huge\bfseries\sffamily Awk one-liners\\ Explained
    \end{flushright}}}
  \uput[-90](3.5,8){\color{red}\rule{5in}{1ex}}
  % ...
\end{pspicture}

\end{document}

This is the pdf file generated. The problem is that I have a blank page, and I can't remove the line number with \thispagestyle{empty}. What might be wrong?

enter image description here

prosseek
  • 6,033

1 Answers1

3

The values you have set as the "page size", (which is meant to be the text block size) don't match the actual text block size. (They're too big, so you get an extra page.) Here's the same example with the text block set explicitly with the geometry package.

\documentclass{article}
\usepackage[text={7in,9.5in},centering]{geometry}
\usepackage[]{graphicx}

\usepackage{pstricks}
\pagestyle{empty}
\begin{document}
\psset{unit=1in}
\begin{pspicture}(7,9.5)% use your page size
  \rput[b](3.5,8){\parbox{5in}{\begin{flushright}
    \Huge\bfseries\sffamily Awk one-liners\\ Explained
    \end{flushright}}}
  \uput[-90](3.5,8){\color{red}\rule{5in}{1ex}}
  % ...
\end{pspicture}

\end{document} 
Alan Munn
  • 218,180
  • @prosseek instead of \pagestyle you could try to put the code in the {titlepage}-environment. So it is typset on its own empty page. – Tobi May 20 '11 at 15:36