[pstricks] layout for a book
Carsten Vogel
texnicer at web.de
Sun Feb 13 10:39:06 CET 2011
Am 12.02.2011 22:49, schrieb Pau:
> Hello,
>
> I am trying to set up something similar to this
>
> http://www.pragma-ade.com/general/magazines/mag-0001.pdf
>
> but with latex... I guess that pstricks is the way, but... how???
Hi Pau!
In general you are looking for a box/frame/rectangular shape that's
filled in gradient style.
So pst-grad would be the first hint.
The next problem is to have the placement robust in relation for the
page. This is something I made very rude and needs to be done "before
the \begin{document}" since this relates to the first "letter" on the
first page and cannot be used as placement for all pages (imagine I
double the headlines; this would move everything down by 1 line).
So that's where everyshi (every shipoutpage) or watermark join the game:
these packages provide techniques to place stuff in relation to the
pagemargins.
For additional placement (e.g. Text on the bottom or on the outer
margin) calc can be a useful helper.
FOR A START::::::::::::::::::::::::::::::::::::::::::::::::::::::::
\documentclass[svgnames]{scrartcl}
\usepackage[]{pst-grad}
\newpsstyle{pagefill}{%
gradbegin=white,
gradend=Gray,
fillstyle=gradient,
gradlines=10000,
gradmidpoint=1
}%
\begin{document}%
\noindent\rput[tl](-1.2in,1.31in){%
\psframe[style=pagefill](\paperwidth,-\paperheight)%
}%
\noindent\rput[tl](0,0){\psframe*[linecolor=white](\textwidth,-1.1\textheight)}
\section{This might be a first start}
Things you might consider using:
\begin{itemize}
\item package watermark
\item package everyshi
\item package calc
\end{itemize}
\end{document}
More information about the PSTricks
mailing list