ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: I'd like to study...
       [not found] <3.0.5.32.20010901153932.008939f0@mail.northcoast.com>
@ 2001-09-04 10:07 ` Hans Hagen
  0 siblings, 0 replies; only message in thread
From: Hans Hagen @ 2001-09-04 10:07 UTC (permalink / raw)
  Cc: ntg-context

At 03:39 PM 9/1/2001 -0700, David Arnold wrote:
>Hans,
>
>I'd like to look at the source code for some of these mini manuals you've
>been writing, the ones with the cool covers. For example, mtexutil.pdf.
>
>Do you think I could see it so I could study your style definition?

So, do you really think that much code is involved to get something like that?

to start with:

\setupcolors
   [state=start]

\setupbodyfont
   [lbr,11pt]

\setuplayout
   [footer=0cm,
    width=middle,
    height=middle]

\setupfloats
   [ntop=100]

\definecolor [NopColor] [....]
\definecolor [AltColor] [....]
\definecolor [TheColor] [....]

\setupwhitespace
   [big]

\setuptolerance
   [tolerant]

\setupitemize
   [each]
   [color=TheColor]

\definedescription
   [switch]
   [headstyle=type,
    headcolor=TheColor,
    location=serried,
    width=broad]

\defineenumeration
   [topic]
   [location=serried,
    width=broad,
    headstyle=,
    headcolor=TheColor,
    text=,
    left={[},
    right={]}]

\setuphead
   [section]
   [style=\ss\bfb,
    color=TheColor]

\setuptype
   [color=AltColor]

\setuptyping
   [color=AltColor]

\setuptabulate
   [rulethickness=.5pt,
    rulecolor=AltColor]

\setuptables
   [rulethickness=.5pt,
    rulecolor=AltColor]

\setupframedtexts
   [rulethickness=.5pt,
    framecolor=TheColor,
    width=\textwidth]

\setuplist
   [section]
   [alternative=c,
    color=TheColor,
    textcolor=black,
    pagecolor=black]

The title page is something like (I admit that it's ugly code):

\def\TitlePage#1#2#3#4#5% nummer hoek titel auteur screen
   {\defineoverlay
      [logo]
      [{\externalfigure
          [somempfile.#1]
          [width=\overlaywidth,height=\overlayheight]}]
    \setupbackgrounds
      [page]
      [background=logo]
    \definecolor[Gray][s=#5]
    \startstandardmakeup
      \BigFont \setupinterlinespace \vfill \setupalign[left] \let\\=\par
      \noindent\color[Gray]{#3}\par
    \stopstandardmakeup
    \setupbackgrounds
      [page]
      [background=]}

and the colofonpage is a standard pragma thing

Hans
-------------------------------------------------------------------------
                                   Hans Hagen | PRAGMA ADE | pragma@wxs.nl
                       Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
  tel: +31 (0)38 477 53 69 | fax: +31 (0)38 477 53 74 | www.pragma-ade.com
-------------------------------------------------------------------------


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-09-04 10:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <3.0.5.32.20010901153932.008939f0@mail.northcoast.com>
2001-09-04 10:07 ` I'd like to study Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).