From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/28910 Path: news.gmane.org!not-for-mail From: Hans Hagen Newsgroups: gmane.comp.tex.context Subject: Re: Oh no! Never update in the middle of a project. I am in trouble. Date: Tue, 27 Jun 2006 23:30:41 +0200 Message-ID: <44A1A381.3000809@wxs.nl> References: <44A1905E.4010409@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1151443893 23076 80.91.229.2 (27 Jun 2006 21:31:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 27 Jun 2006 21:31:33 +0000 (UTC) Cc: Jacob Prystowsky Original-X-From: ntg-context-bounces@ntg.nl Tue Jun 27 23:31:29 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1FvL9T-00051D-K1 for gctc-ntg-context-518@m.gmane.org; Tue, 27 Jun 2006 23:31:19 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 88EEB12871; Tue, 27 Jun 2006 23:31:19 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01671-03; Tue, 27 Jun 2006 23:31:14 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id A041312800; Tue, 27 Jun 2006 23:31:13 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id AF4E412800 for ; Tue, 27 Jun 2006 23:31:10 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 02478-01 for ; Tue, 27 Jun 2006 23:30:57 +0200 (CEST) Original-Received: from mail.pragma-ade.net (dsl-083-247-100-017.solcon.nl [83.247.100.17]) by ronja.ntg.nl (Postfix) with SMTP id 7EDEA127A7 for ; Tue, 27 Jun 2006 23:30:57 +0200 (CEST) Original-Received: from [10.100.1.102] (unverified [10.100.1.102]) by controller-1 (SurgeMail 3.5b3) with ESMTP id 23905 for multiple; Wed, 28 Jun 2006 01:30:52 +0400 User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) Original-To: mailing list for ConTeXt users In-Reply-To: X-Server: High Performance Mail Server - http://surgemail.com r=-274017400 X-Authenticated-User: hagen@controller-1 X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:28910 Archived-At: David Arnold wrote: > Hans (please CC Jacob), here is the whole environment file. My > student did this for me, but if you'd like to make some changes, that > would be ok. > > He has in another environment file: > > \def\indetvskiponeem{\vskip 1em plus 1em minus 1em} > > Then he has: > > \def\startboxcode{\indetvskiponeem\hbox\bgroup\hskip 0.1\makeupwidth} > \def\stopboxcode{\hskip 0.1\makeupwidth\egroup\indetvskiponeem} > \def\keyprefix{\bigstar\hskip 1em} > \def\tipprefix{\checkmark\hskip 1em} > \def\summaryprefix{\bigstar\hskip 1em} > \def\boxwidth{0.8\makeupwidth} > \def\warningprefix{\bgroup\tfa\bold{!}\egroup\hskip 1em} > > \defineenumeration > [summary] > [location=serried, > width=broad, > text=\summaryprefix Summary, > style=slanted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=tingedblue,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineenumeration > [keyresult] > [location=serried, > width=broad, > text=\keyprefix, > style=slanted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=tingedblue,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineenumeration > [tip] > [location=serried, > width=broad, > text=\tipprefix, > style=slanted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=icicle,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineblock[insummary] > \def\placesectionsummary{\unnumberedsubsection{Section Summary}\bgroup > \tfx\selectblocks[insummary]\egroup} > > \defineenumeration > [example] > [location=serried, > width=broad, > text={\color[heavygreen]\bgroup\bold{Example}}, > stopper={.\egroup}, > style=slanted, > inbetween=\blank, > after=\blank] > > \defineenumeration > [warning] > [location=serried, > width=broad, > text=\warningprefix, > style=slanted, > number=no, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=lightred,frame=no]}, > after={\stopframedtext\stopboxcode}] > > \defineenumeration > [definition] > [location=serried, > width=broad, > text={\color[darklavender]\bgroup\bold{Definition}}, > stopper={.\egroup}, > style=slanted, > inbetween=\blank, > before={\startboxcode\startframedtext[width=\boxwidth, > background=color,backgroundcolor=lavender,frame=no]}, > after={\stopframedtext\stopboxcode}] > less tricky, cleaner, etc \defineframedtext[MyBox] \setuplabeltext[definition=Definition] \setuplabeltext [example=Example] \setuplabeltext [warning={\tfb !}] \setuplabeltext [key=\bigstar] \setuplabeltext [tip=\checkmark] \setuplabeltext [summary=\bigstar\quad Summary] \definemeasure[BoxWidth][.8\textwidth] \defineblank[BoxBlank][1em plus 1em minus 1em] \setupframedtexts [MyBox] [width=\measure{BoxWidth}, before={\blank[BoxBlank]}, after={\blank[BoxBlank]}, background=color, frame=no, location=middle] \defineenumeration [summary] [location=serried, width=broad, text=\labeltext{summary}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [keyresult] [location=serried, width=broad, text=\labeltext{key}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [tip] [location=serried, width=broad, distance=1em, text=\labeltext{tip}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=blue]}, after=\stopMyBox] \defineenumeration [example] [location=serried, width=broad, distance=1em, headcolor=heavygreen, headstyle=bold, text=\labeltext{example}, stopper=., style=slanted, inbetween=\blank, after=\blank] \defineenumeration [warning] [location=serried, width=broad, distance=1em, text=\labeltext{warning}, style=slanted, number=no, inbetween=\blank, before={\startMyBox[backgroundcolor=red]}, after=\stopMyBox] \defineenumeration [definition] [location=serried, width=broad, distance=1em, headcolor=darklavender, headstyle=bold, text=\labeltext{definition}, stopper=., style=slanted, inbetween=\blank, before={\startMyBox[backgroundcolor=green]}, after=\stopMyBox] \setupcolors[state=start] \starttext \input tufte \startdefinition \input tufte \stopdefinition \stoptext no more time today -) Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------