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}
Code: Select all
\rput[b]{270}(6.62,8,0.75){\PTsmallest \color{black}{Backpacking without Borders}}
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}}