From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/69942 Path: news.gmane.org!not-for-mail From: Wolfgang Schuster Newsgroups: gmane.comp.tex.context Subject: Re: theorem environment Date: Wed, 13 Jul 2011 15:11:58 +0200 Message-ID: <793DC50B-3E68-4908-B936-E94D51293866@googlemail.com> References: <4E1D29EE.4020309@googlemail.com> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1310562760 16657 80.91.229.12 (13 Jul 2011 13:12:40 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 13 Jul 2011 13:12:40 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 13 15:12:32 2011 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QgzEu-0004tD-IY for gctc-ntg-context-518@m.gmane.org; Wed, 13 Jul 2011 15:12:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E2D3ACAE3B; Wed, 13 Jul 2011 15:12:31 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Dd415FvV0Tgn; Wed, 13 Jul 2011 15:12:17 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 3AA17CAE11; Wed, 13 Jul 2011 15:12:17 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 94602CAE11 for ; Wed, 13 Jul 2011 15:12:15 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id HiOdIpC4FfZT for ; Wed, 13 Jul 2011 15:12:02 +0200 (CEST) Original-Received: from filter5-til.mf.surf.net (filter5-til.mf.surf.net [194.171.167.221]) by balder.ntg.nl (Postfix) with ESMTP id 81571CAE01 for ; Wed, 13 Jul 2011 15:12:02 +0200 (CEST) Original-Received: from mail-fx0-f42.google.com (mail-fx0-f42.google.com [209.85.161.42]) by filter5-til.mf.surf.net (8.14.3/8.14.3/Debian-5+lenny1) with ESMTP id p6DDC1mc006932 for ; Wed, 13 Jul 2011 15:12:01 +0200 Original-Received: by fxe23 with SMTP id 23so5696203fxe.15 for ; Wed, 13 Jul 2011 06:12:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=content-type:mime-version:subject:from:in-reply-to:date :content-transfer-encoding:message-id:references:to:x-mailer; bh=P0wDt99D6VWd8kBJPJDVX7vo5O2MRlfqoTFjNIgj/R4=; b=g7tZURr/BH5jkbRYvjBdzy+X2tv+XxEPLoNsS/0ezDhl8RHORI4oZIVdFGnxX0nrgq F/Avc1//HwLvhu8dre9AYeh3HPs8MFf3SMtYoDd4kiuQWZ7KFyec5Y0SEzVwdFK/d6/s IkFcB3LtJDpGkRQG3oUMmUzEw57/V7+ebxsus= Original-Received: by 10.223.96.198 with SMTP id i6mr1714855fan.22.1310562720997; Wed, 13 Jul 2011 06:12:00 -0700 (PDT) Original-Received: from [192.168.2.31] (p5B0EF420.dip.t-dialin.net [91.14.244.32]) by mx.google.com with ESMTPS id q28sm2923607fag.34.2011.07.13.06.11.58 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 13 Jul 2011 06:11:59 -0700 (PDT) In-Reply-To: <4E1D29EE.4020309@googlemail.com> X-Mailer: Apple Mail (2.1084) X-Bayes-Prob: 0.0001 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=209.85.161.42; country=US; region=CA; city=Mountain View; postalcode=94043; latitude=37.4192; longitude=-122.0574; metrocode=807; areacode=650; http://maps.google.com/maps?q=37.4192,-122.0574&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 0xF7pc1T5 - 91990a049fc9 - 20110713 X-Scanned-By: CanIt (www . roaringpenguin . com) on 194.171.167.221 X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:69942 Archived-At: Am 13.07.2011 um 07:15 schrieb Andreas Richter: > Hello, > = > Using ConTeXt, I would like to define environments to appear > like > = > ---------------------------------------------- > Theorem 1.4 (Pythagoras) > In any right triangle, $c^2 =3D a^2 + b^2$ holds > where ... > ---------------------------------------------- > = > and > = > --- Example 1.1 ------------------- > Let $a=3D2$ ... > ----------------------------------- > = > and (e. g. small, slanted or whatever) > = > Remark 1.3 > ---------- > | Euclidean ... > | ... > . > = > After browsing the documentation on the web, focussing > on \defineenummeration, I'm still nowhere near the solution. > Could anyone please give examples of how to do this? You can change the style, color and spacing with \setupenumerations but for the rules etc. you need other commands. \defineenumeration[theorem][text=3DTheorem,title=3Dyes] \defineenumeration[example][text=3DExample] \defineenumeration[remark] [text=3DRemark] \setupenumerations [theorem] [ before=3D{\startframedtext[frame=3Doff,topframe=3Don,bottomframe=3Don= ,width=3Dbroad,offset=3D.5ex]}, after=3D\stopframedtext, inbetween=3D{\blank[small]}] \setupenumerations [example] [ command=3D\textrule, after=3D\textrule, inbetween=3D{\blank[nowhite]}] \setupenumerations [remark] [style=3Ditalic] \starttext \starttheorem{Pythagoras} In any right triangle, $c^2 =3D a^2 + b^2$ holds where =85 \stoptheorem \startexample Let $a=3D2$ ... \stopexample \startremark Euclidean ... \stopremark \stoptext Wolfgang ___________________________________________________________________________= ________ If your question is of interest to others as well, please add an entry to t= he Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-cont= ext webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : http://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________= ________