[pstricks] layout for a book

Pau vim.unix at googlemail.com
Sun Feb 13 11:11:39 CET 2011


Hello,

thanks to you all for the answers.

Yes, indeed, that was produced with context, and I am currently using
it. But the problem is that I am the editor of a journal using a very
similar style (with context) but authors keep sending their
contributions in latex, and it takes us *ages* to export their
articles to context.

Since they all write their contributions in latex, I would like to
port the whole journal to standard latex without changing too much the
current layout of the journal or, at least, keeping something similar.

Thanks for your template. Unfortunately it gives me the following error:

! Undefined control sequence.
l.32 \preparecolorset
                     {rgb}{}{}{%

I attach the whole log. Sorry for the spam!

Thanks,

Pau

---------------test.log starts here----------------------
This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) (format=latex
2010.11.3)  13 FEB 2011 11:06
entering extended mode
 %&-line parsing enabled.
**test
(./test.tex
LaTeX2e <2005/12/01>
Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh
yphenation, arabic, basque, bulgarian, coptic, welsh, czech, slovak, german, ng
erman, danish, esperanto, spanish, catalan, galician, estonian, farsi, finnish,
 french, greek, monogreek, ancientgreek, croatian, hungarian, interlingua, ibyc
us, indonesian, icelandic, italian, latin, mongolian, dutch, norsk, polish, por
tuguese, pinyin, romanian, russian, slovenian, uppersorbian, serbian, swedish,
turkish, ukenglish, ukrainian, loaded.
(/usr/share/texmf/tex/latex/koma-script/scrartcl.cls
Document Class: scrartcl 2006/07/30 v2.95b KOMA-Script document class (article)

(/usr/share/texmf/tex/latex/koma-script/scrkbase.sty
Package: scrkbase 2006/07/30 v2.95b KOMA-Script package (basics and keyval use)


(/usr/share/texmf/tex/latex/koma-script/scrlfile.sty
Package: scrlfile 2006/03/28 v2.95 KOMA-Script package (loading files)

Package scrlfile, 2006/03/28 v2.95 KOMA-Script package (loading files)
                  Copyright (C) Markus Kohm

) (/usr/share/texmf/tex/latex/graphics/keyval.sty
Package: keyval 1999/03/16 v1.13 key=value parser (DPC)
\KV at toks@=\toks14
))
(/usr/share/texmf/tex/latex/base/size11.clo
File: size11.clo 2005/09/16 v1.4f Standard LaTeX file (size option)
)
(/usr/share/texmf/tex/latex/koma-script/typearea.sty
Package: typearea 2006/07/30 v2.95b KOMA-Script package (type area)

Package typearea, 2006/07/30 v2.95b KOMA-Script package (type area)
                  Copyright (C) Frank Neukam, 1992-1994
                  Copyright (C) Markus Kohm, 1994-2002

\ta at bcor=\skip41
\ta at div=\count79
\ta at hblk=\skip42
\ta at vblk=\skip43
\ta at temp=\skip44
Package typearea Info: These are the values describing the layout:
(typearea)             DIV  = 10
(typearea)             BCOR = 0.0pt
(typearea)             \paperwidth      = 597.50793pt
(typearea)              \textwidth      = 418.25555pt
(typearea)              DIV-departure   = -6/100
(typearea)              \evensidemargin = 17.3562pt
(typearea)              \oddsidemargin  = 17.3562pt
(typearea)             \paperheight     = 845.04694pt
(typearea)              \textheight     = 595.80026pt
(typearea)              \topmargin      = -25.16531pt
(typearea)              \headheight     = 17.0pt
(typearea)              \headsep        = 20.40001pt
(typearea)              \topskip        = 11.0pt
(typearea)              \footskip       = 47.60002pt
(typearea)              \baselineskip   = 13.6pt
(typearea)              on input line 832.
)
\c at part=\count80
\c at section=\count81
\c at subsection=\count82
\c at subsubsection=\count83
\c at paragraph=\count84
\c at subparagraph=\count85
\abovecaptionskip=\skip45
\belowcaptionskip=\skip46
\c at pti@nb at sid@b at x=\box26
\c at figure=\count86
\c at table=\count87
\bibindent=\dimen102
) (/usr/share/texmf/tex/latex/pst-grad/pst-grad.sty
(/usr/share/texmf/tex/latex/pstricks/pstricks.sty
Package: pstricks 2006/08/10 v0.32 LaTeX wrapper for `PSTricks' (RN,HV)

(/usr/share/texmf/tex/generic/pstricks/pstricks.tex
`PSTricks' v1.15  <2006/12/22> (tvz)
\pst at dima=\dimen103
\pst at dimb=\dimen104
\pst at dimc=\dimen105
\pst at dimd=\dimen106
\pst at dimg=\dimen107
\pst at dimh=\dimen108
\pst at hbox=\box27
\pst at boxg=\box28
\pst at cnta=\count88
\pst at cntb=\count89
\pst at cntc=\count90
\pst at cntd=\count91
\pst at cntg=\count92
\pst at cnth=\count93
\pst at toks=\toks15
(/usr/share/texmf/tex/generic/pstricks/pstricks.con)
\psunit=\dimen109
\psxunit=\dimen110
\psyunit=\dimen111
\pslinewidth=\dimen112
\pst at customdefs=\toks16
\pslinearc=\dimen113
\everypsbox=\toks17
\psframesep=\dimen114
\pslabelsep=\dimen115
\psk at shift=\dimen116
\pst at shift=\dimen117
\theoverlaybox=\box29
)
File: pstricks.tex 2006/12/22 v1.15 `PSTricks' (tvz)

(/home/pau/fitx_confg/texinputs/xcolor.sty
Package: xcolor 2004/07/04 v2.00 LaTeX color extensions (UK)

(/usr/share/texmf/tex/latex/config/color.cfg
File: color.cfg 2007/01/18 v1.5 color configuration of teTeX/TeXLive
)
Package xcolor Info: Package option `override' ignored on input line 128.
Package xcolor Info: Driver file: dvips.def on input line 136.

(/usr/share/texmf/tex/latex/graphics/dvips.def
File: dvips.def 1999/02/16 v3.0i Driver-dependant file (DPC,SPQR)
)
Package xcolor Info: Color model `cmy' added on input line 972.
Package xcolor Info: Color model `HTML' added on input line 1000.
Package xcolor Info: Color model `HSB' added on input line 1006.
Package xcolor Info: Color model `Gray' added on input line 1012.

(/usr/share/texmf/tex/latex/xcolor/svgnam.def
File: svgnam.def 2007/01/21 v2.11 Predefined colors according to SVG 1.1 (UK)

! Undefined control sequence.
l.32 \preparecolorset
                     {rgb}{}{}{%
? s
OK, entering \scrollmode...

! LaTeX Error: Missing \begin{document}.

See the LaTeX manual or LaTeX Companion for explanation.
Type  H <return>  for immediate help.
 ...

l.32 \preparecolorset{r
                       gb}{}{}{%
You're in trouble here.  Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

))
Overfull \hbox (15232.26266pt too wide) in paragraph at lines 32--58
[]\OT1/cmr/m/n/10.95 rgbAliceBlue,.94,.972,1;AntiqueWhite,.98,.92,.844;Aqua,0,1
,1;Aquamarine,.498,1,.83;Azure,.94,1,1;Beige,.96,.96,.864;Bisque,1,.894,.77;Bla
ck,0,0,0;BlanchedAlmond,1,.92,.804;Blue,0,0,1;BlueViolet,.54,.17,.888;Brown,.64
8,.165,.165;BurlyWood,.87,.72,.53;CadetBlue,.372,.62,.628;Chartreuse,.498,1,0;C
hocolate,.824,.41,.116;Coral,1,.498,.312;CornflowerBlue,.392,.585,.93;Cornsilk,
1,.972,.864;Crimson,.864,.08,.235;Cyan,0,1,1;DarkBlue,0,0,.545;DarkCyan,0,.545,
.545;DarkGoldenrod,.72,.525,.044;DarkGray,.664,.664,.664;DarkGreen,0,.392,0;Dar
kGrey,.664,.664,.664;DarkKhaki,.74,.716,.42;DarkMagenta,.545,0,.545;DarkOliveGr
een,.332,.42,.185;DarkOrange,1,.55,0;DarkOrchid,.6,.196,.8;DarkRed,.545,0,0;Dar
kSalmon,.912,.59,.48;DarkSeaGreen,.56,.736,.56;DarkSlateBlue,.284,.24,.545;Dark
SlateGray,.185,.31,.31;DarkSlateGrey,.185,.31,.31;DarkTurquoise,0,.808,.82;Dark
Violet,.58,0,.828;DeepPink,1,.08,.576;DeepSkyBlue,0,.75,1;DimGray,.41,.41,.41;D
imGrey,.41,.41,.41;DodgerBlue,.116,.565,1;FireBrick,.698,.132,.132;FloralWhite,
1,.98,.94;ForestGreen,.132,.545,.132;Fuchsia,1,0,1;Gainsboro,.864,.864,.864;Gho
stWhite,.972,.972,1;Gold,1,.844,0;Goldenrod,.855,.648,.125;Gray,.5,.5,.5;Green,
0,.5,0;GreenYellow,.68,1,.185;Grey,.5,.5,.5;Honeydew,.94,1,.94;HotPink,1,.41,.7
05;IndianRed,.804,.36,.36;Indigo,.294,0,.51;Ivory,1,1,.94;Khaki,.94,.9,.55;Lave
nder,.9,.9,.98;LavenderBlush,1,.94,.96;LawnGreen,.488,.99,0;LemonChiffon,1,.98,
.804;LightBlue,.68,.848,.9;LightCoral,.94,.5,.5;LightCyan,.88,1,1;LightGoldenro
d,.933,.867,.51;LightGoldenrodYellow,.98,.98,.824;LightGray,.828,.828,.828;Ligh
tGreen,.565,.932,.565;LightGrey,.828,.828,.828;LightPink,1,.712,.756;LightSalmo
n,1,.628,.48;LightSeaGreen,.125,.698,.668;LightSkyBlue,.53,.808,.98;LightSlateB
lue,.518,.44,1;LightSlateGray,.468,.532,.6;LightSlateGrey,.468,.532,.6;LightSte
elBlue,.69,.77,.87;LightYellow,1,1,.88;Lime,0,1,0;LimeGreen,.196,.804,.196;Line
n,.98,.94,.9;Magenta,1,0,1;Maroon,.5,0,0;MediumAquamarine,.4,.804,.668;MediumBl
ue,0,0,.804;MediumOrchid,.73,.332,.828;MediumPurple,.576,.44,.86;MediumSeaGreen
,.235,.7,.444;MediumSlateBlue,.484,.408,.932;MediumSpringGreen,0,.98,.604;Mediu
mTurquoise,.284,.82,.8;MediumVioletRed,.78,.084,.52;MidnightBlue,.098,.098,.44;
MintCream,.96,1,.98;MistyRose,1,.894,.884;Moccasin,1,.894,.71;NavajoWhite,1,.87
,.68;Navy,0,0,.5;NavyBlue,0,0,.5;OldLace,.992,.96,.9;Olive,.5,.5,0;OliveDrab,.4
2,.556,.136;Orange,1,.648,0;OrangeRed,1,.27,0;Orchid,.855,.44,.84;PaleGoldenrod
,.932,.91,.668;PaleGreen,.596,.985,.596;PaleTurquoise,.688,.932,.932;PaleViolet
Red,.86,.44,.576;PapayaWhip,1,.936,.835;PeachPuff,1,.855,.725;Peru,.804,.52,.24
8;Pink,1,.752,.796;Plum,.868,.628,.868;PowderBlue,.69,.88,.9;Purple,.5,0,.5;Red
,1,0,0;RosyBrown,.736,.56,.56;RoyalBlue,.255,.41,.884;SaddleBrown,.545,.27,.075
;Salmon,.98,.5,.448;SandyBrown,.956,.644,.376;SeaGreen,.18,.545,.34;Seashell,1,
.96,.932;Sienna,.628,.32,.176;Silver,.752,.752,.752;SkyBlue,.53,.808,.92;SlateB
lue,.415,.352,.804;SlateGray,.44,.5,.565;SlateGrey,.44,.5,.565;Snow,1,.98,.98;S
pringGreen,0,1,.498;SteelBlue,.275,.51,.705;Tan,.824,.705,.55;Teal,0,.5,.5;This
tle,.848,.75,.848;Tomato,1,.39,.28;Turquoise,.25,.88,.815;Violet,.932,.51,.932;
VioletRed,.816,.125,.565;Wheat,.96,.87,.7;White,1,1,1;WhiteSmoke,.96,.96,.96;Ye
llow,1,1,0;YellowGreen,.604,.804,.196
 []

)
Package: pst-grad 2004/07/15 package wrapper for pst-grad.tex (hv)
 (/usr/share/texmf/tex/generic/pst-grad/pst-grad.tex
(/usr/share/texmf/tex/latex/xkeyval/pst-xkey.tex
File: pst-xkey.tex 2005/11/25 v1.6 PSTricks specialization of xkeyval (HA)

(/usr/share/texmf/tex/latex/xkeyval/xkeyval.sty
Package: xkeyval 2006/11/18 v2.5f package option processing (HA)

(/usr/share/texmf/tex/latex/xkeyval/xkeyval.tex
\XKV at toks=\toks18
\XKV at depth=\count94
File: xkeyval.tex 2006/11/18 v2.5f key=value parser (HA)
)))
`pst-plot' v1.05, 2006/11/04 (tvz,dg,hv))
File: pst-grad.tex 2006/11/04 1.05 `pst-grad' (tvz)
) (./test.aux)
\openout1 = `test.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 12.
LaTeX Font Info:    ... okay on input line 12.


! Package xcolor Error: Undefined color `Gray'.

See the xcolor package documentation for explanation.
Type  H <return>  for immediate help.
 ...

l.15 }
      %
Try typing  <return>  to proceed.
If that doesn't work, type  X <return>  to quit.

LaTeX Font Info:    Try loading font information for OMS+cmr on input line 20.
(/usr/share/texmf/tex/latex/base/omscmr.fd
File: omscmr.fd 1999/05/25 v2.5h Standard LaTeX font definitions
)
LaTeX Font Info:    Font shape `OMS/cmr/m/n' in size <10.95> not available
(Font)              Font shape `OMS/cmsy/m/n' tried instead on input line 20.
 [1

] (./test.aux) )
Here is how much of TeX's memory you used:
 2379 strings out of 256217
 29508 string characters out of 1917095
 108950 words of memory out of 1500000
 5689 multiletter control sequences out of 10000+200000
 5090 words of font info for 19 fonts, out of 1200000 for 2000
 645 hyphenation exceptions out of 8191
 38i,7n,55p,220b,148s stack positions out of 5000i,500n,6000p,200000b,15000s

Output written on test.dvi (1 page, 4956 bytes).


2011/2/13 Carsten Vogel <texnicer at web.de>:
> 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