Page Layout\rput did not rotate title in book spine and psframe issue

Information and discussion about page layout specific issues (e.g. header and footer lines, page formats, page numbers).
Post Reply
mnajem
Posts: 20
Joined: Thu Mar 18, 2010 12:23 pm

\rput did not rotate title in book spine and psframe issue

Post by mnajem »

I play around with pstricks, modifying example taken from the internet(although bit obsolete)

The following are the codes.

Code: Select all

\documentclass[12pt]{article}
% load the necessary packages                              
\usepackage[paperheight=9in,paperwidth=13.24in,margin=0in]{geometry}
\usepackage[dvipsnames,prologue,table]{pstricks}
\usepackage{pst-text}
\usepackage{pst-grad}
\usepackage{graphicx}
\usepackage{lipsum}


% begin the document and suppress page numbers
\begin{document}
\pagestyle{empty}
% create the box with the front cover picture
\newsavebox\IBox
\sbox\IBox{\includegraphics[height=9in]{najmi.jpg}}
% set up the picture environment
\psset{unit=1in}
\begin{pspicture}(13.24in,9in)
% set up the fonts we use
\DeclareFixedFont{\PT}{T1}{ppl}{b}{it}{0.5in}
\DeclareFixedFont{\PTsmall}{T1}{ppl}{b}{it}{0.4in}
\DeclareFixedFont{\PTsmallest}{T1}{ppl}{b}{it}{0.3in}
\DeclareFixedFont{\PTtext}{T1}{ppl}{b}{it}{11pt}
\DeclareFixedFont{\Logo}{T1}{pbk}{m}{n}{0.3in}
% create a maroon background
%\psframe[fillstyle=solid,fillcolor=Blue](0,0)(13.24,9)
%\psframe[fillstyle=solid,fillcolor=Maroon](0,0)(13.24,9)                                  
% place the front cover picture
\rput[lb](7.24,0){\usebox\IBox}
% put the text on the front cover
\rput[lb](7.74,7){\PTsmall \color{white}{Backpacking without\\Borders}}
\rput[lb](8.94,6){\PTsmallest \color{white}{Najmi Zabidi}}
\rput[lb](9.04,0.8){\PTsmallest \color{white}{Mypapit Press}}
% put the text on the spine (note the rotation over 270 degrees)
\rput[b]{270}(6.62,8,0.75){\PTsmallest  \color{black}{Backpacking without Borders}}
% put the publisher’s logo on the spine
\rput[b](6.62,0.75){\color{black}{\fbox{\Logo MP}}}
% Create a Box containing the text for the back cover
\newsavebox\Blurbbox
\sbox\Blurbbox{\begin{minipage}{4.5in}
\textcolor{black}{\lipsum[1]}
\end{minipage}}
% And position the box
\rput[tl](1,8){\usebox\Blurbbox}
% Then we close all open environments

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%5

\newsavebox\Authorbox
\sbox\Authorbox{\includegraphics[width=.82in]{najmi-pass.png}}
%\psframe[fillstyle=solid,fillcolor=white](1,4)(1.7,4.95)
% now place the picture
\rput[lb](1.1,4.1){\usebox\Authorbox}
% create a savebx for the biography. The width has been adjusted so
% that the right margin matches with that of the book blurb
\newsavebox\Biobox
\sbox\Biobox{\begin{minipage}{3.6in}
\textcolor{black}{Najmi Zabidi is toying around with \LaTeX{}. Contact him
by at bla@bla.com}
\end{minipage}}
% and put it where it belongs
\rput[tl](1.9,4.95){\usebox\Biobox}

%\psframe[fillstyle=solid,fillcolor=white](3.9,0.8)(5.8,2.2)
%\rput(4.2,1){\psbarcode{1-58880-149}{includetext guardwhitespace}{isbn}}

\rput[lb](1,1.2){\fbox{\Logo MP}{\PTsmallest \color{black}{ Mypapit Press}}}
\rput[lb](1,1){\PTtext \color{black}{Alor Star --- Kedah}}
\rput[lb](1,0.8){\PTtext \color{black}{http://www.mypapit.net}}
\end{pspicture}

\end{document}
I wonder why;

Code: Select all

\rput[b]{270}(6.62,8,0.75){\PTsmallest  \color{black}{Backpacking without Borders}}
won't rotate the book title in the book spine, instead stay vertical?

Secondly, I commented out the \psframe before so that I can get maroon color, but seems the pdflatex didn't recognize that. Or is it obsolete? Since it mentioned undefined sequence, which AFAIK no such command exist.

Finally, I got problem printing ISBN

Code: Select all

{\psbarcode{1-58880-149}{includetext guardwhitespace}{isbn}}
I am using Ubuntu 9.10 with the default TexLive.. I'm not sure where I can get the ISBN package since the psbarcode is already in the Ubuntu default TexLive installation.. am I missing any additional package?

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

\rput did not rotate title in book spine and psframe issue

Post by CrazyHorse »

mnajem wrote:I play around with pstricks, modifying example taken from the internet(although bit obsolete)
did you view the PS or alternatively the pdf output?
dvi viewers cannot show rotations ...

Herbert
mnajem
Posts: 20
Joined: Thu Mar 18, 2010 12:23 pm

\rput did not rotate title in book spine and psframe issue

Post by mnajem »

CrazyHorse wrote:
mnajem wrote:I play around with pstricks, modifying example taken from the internet(although bit obsolete)
did you view the PS or alternatively the pdf output?
dvi viewers cannot show rotations ...

Herbert
I'm using Kile, and use the pdflatex to compile.
It won't work even if I use pdflatex in bash command line.

I'm not used to view DVI/PS... so much into PDF :)
mnajem
Posts: 20
Joined: Thu Mar 18, 2010 12:23 pm

\rput did not rotate title in book spine and psframe issue

Post by mnajem »

I did not solve the said problem using pstricks, but my other methods;

Rotation:
Using rotation package;

Code: Select all

\rput[b](6.62,3,0.75)
{
\begin{turn} {-90}
{
\PTsmallest \color{White}Introduction to La\TeX{}
}
\end{turn}
}
Page color;
Instead of using \psfram, I'm using \pagecolor{Maroon}
End of story. Using color package. heh!
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\rput did not rotate title in book spine and psframe issue

Post by localghost »

mnajem wrote:I'm using Kile, and use the pdflatex to compile.
It won't work even if I use pdflatex in bash command line.

I'm not used to view DVI/PS... so much into PDF :)
I wonder how you compile your sample code with pdflatex without including the (auto-)pst-pdf package.


Best regards
Thorsten
mnajem
Posts: 20
Joined: Thu Mar 18, 2010 12:23 pm

Re: \rput did not rotate title in book spine and psframe iss

Post by mnajem »

I'm not sure, but it was compile-able and it works.

This is the output:

http://latex-my.blogspot.com/2010/04/cr ... ricks.html

Thanks for the pst-pdf. Will take a look into it.
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

\rput did not rotate title in book spine and psframe issue

Post by localghost »

It can't work as is with pdflatex because of two things
  • The format of the graphics files (JPG)
  • The pstricks package
Post Reply