From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/5494 Path: main.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: I'd like to study... Date: Tue, 04 Sep 2001 12:07:56 +0200 Sender: owner-ntg-context@let.uu.nl Message-ID: <5.1.0.14.1.20010904120036.02be0e80@server-1> References: <3.0.5.32.20010901153932.008939f0@mail.northcoast.com> NNTP-Posting-Host: coloc-standby.netfonds.no Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Trace: main.gmane.org 1035396085 2145 80.91.224.250 (23 Oct 2002 18:01:25 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 23 Oct 2002 18:01:25 +0000 (UTC) Cc: ntg-context@ntg.nl Original-To: David Arnold In-Reply-To: <3.0.5.32.20010901153932.008939f0@mail.northcoast.com> Xref: main.gmane.org gmane.comp.tex.context:5494 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:5494 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 -------------------------------------------------------------------------