Featured Post

We've moved to tex.my!

It’s been great writing on Blogger.com, but we’ve decided to move to a new platform, thanks to some valuable help from a great, great friend...

Saturday, April 10, 2010

Creating book cover with PSTricks

I don't know, maybe since was triggered by Lian's post, I decided to try creating my book cover as well. I always wanted to write some books since I think always need of extra money hehe. Note that the example above is using wallpapers from an open source project, while the following bird is from my own photo collections.

The following codes actually were modified from here [PDF] . At first I thought by modifying few stuffs I can straight away used to code.. but maybe because of different configuration that I have (I'm using Ubuntu 9.04 with the default TexLive).. I met several issues. I'm using pdflatex by the way.. perhaps that caused the problem.
% load the necessary packages
% begin the document and suppress page numbers
% create the box with the front cover picture
% set up the picture environment
% set up the fonts we use
% place the front cover picture
% put the text on the front cover
\rput[lb](8,7){\PTsmall \color{white}{Anak Itik yang Sombong}}
\rput[lb](8.94,6.5){\PTsmallest \color{white}{Najmi Zabidi}}
\rput[lb](9.04,0.8){\PTsmallest \color{white}{Fesbuk Press}}
% put the text on the spine (note the rotation over 270 degrees)
%\rput[b](6.62,8,0.75){\PTsmallest \color{black}

\begin{turn} {-90}
\PTsmallest \color{white}Anak Itik yang Sombong

% put the publisher’s logo on the spine
\rput[b](6.62,0.75){\color{white}{\fbox{\Logo FP}}}
% Create a Box containing the text for the back cover
% And position the box
% Then we close all open environments


% now place the picture
% create a savebx for the biography. The width has been adjusted so
% that the right margin matches with that of the book blurb
\textcolor{white}{Najmi Zabidi is toying around with \LaTeX{}. Contact him
by at bla@bla.com}
% and put it where it belongs


\rput[lb](1,1.2){\color{white}{\fbox{\Logo FP}{\PTsmallest { Fesbuk Press}}}}
\rput[lb](1,1){\PTtext \color{white}{Kuala Lumpur --- MY}}
\rput[lb](1,0.8){\PTtext \color{white}{http://www.latex-my.blogspot.com}}