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.

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

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

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} 
share|improve this answer
    
@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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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