From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101360 Path: news.gmane.org!.POSTED!not-for-mail From: Aditya Mahajan Newsgroups: gmane.comp.tex.context Subject: Re: Set up a theorem style Date: Wed, 25 Jul 2018 07:15:46 -0400 (EDT) Message-ID: References: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; BOUNDARY="0-732977072-1532517347=:53899" X-Trace: blaine.gmane.org 1532517276 29081 195.159.176.226 (25 Jul 2018 11:14:36 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2018 11:14:36 +0000 (UTC) User-Agent: Alpine 2.20 (OSX 67 2015-01-07) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 25 13:14:32 2018 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1fiHkV-0007RN-OL for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jul 2018 13:14:32 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A2C5E46D39; Wed, 25 Jul 2018 13:16:04 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id qIhUxzOsBorI; Wed, 25 Jul 2018 13:16:01 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 9DFE446CFB; Wed, 25 Jul 2018 13:16:01 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id D672046D00 for ; Wed, 25 Jul 2018 13:16:00 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id G0ESavIhiD2O for ; Wed, 25 Jul 2018 13:15:59 +0200 (CEST) Original-Received: from tombraider.mr.itd.umich.edu (smtp.mail.umich.edu [141.211.12.86]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id 8986D46CCF for ; Wed, 25 Jul 2018 13:15:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=umich.edu; s=relay-2016-05-12; t=1532517348; bh=9ySukhJZ+VBQlfmBReGinkNQEyTG9+HAETu0A+CoTNI=; h=Date:From:To:Subject:In-Reply-To:References; b=dEz5VB4KzDtHMF9P/5AyCXMQ0a6ZrJXaaMnPusVBgi8Ya5Eyq6BSOUG4jCC7kqCf7 Mjpn14eM3rlOaBy8UX+7Rl9ZzhYXjaGezsHmH0pIJLzz+M/2Dg9S+oaHeDk0R4rpqi plp8+MgoUjI/e+pHNnsFbYK6rL43UeWTil4oJMuI3uuKw2/7n7qZ6fF++nmfq8wn72 h9dpzQeFTvTDiydDugVfHeJ7ef39Vqg/CxVuBFJocccgcJGp1eiiQ8i49V+FYF1K4D B+b0vsdJ+RkfNnDoOziZbFLGwhAnl44XJN7ndLgu5EugObqvg9nQxq51kgKJcKQQYB JD7edeoNlBcUQ== Authentication-Results: tombraider.mr.itd.umich.edu; iprev=pass policy.iprev=198.84.249.206 (198-84-249-206.cpe.teksavvy.com); auth=pass smtp.auth=adityam Original-Received: FROM [192.168.0.14] (198-84-249-206.cpe.teksavvy.com [198.84.249.206]) By tombraider.mr.itd.umich.edu ID 5B585BE3.D4E97.27493; Authuser adityam; Wed, 25 Jul 2018 07:15:47 -0400 In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:101360 Archived-At: --0-732977072-1532517347=:53899 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: QUOTED-PRINTABLE On Wed, 25 Jul 2018, Fabrice Couvreur wrote: > Hello, > I used LaTeX for a long time before converting (with difficulty !) to > ConteXt. For example, to define my new theorems, I used the amsthm packag= e > and I did this : > > \newtheoremstyle{theoremdd}% name of the style to be used > {\topsep}% measure of space to leave above the theorem. E.g.: 3pt > {\topsep}% measure of space to leave below the theorem. E.g.: 3pt > {\itshape}% name of font to use in the body of the theorem > {0pt}% measure of space to indent > {\bfseries}% name of head font > * {. ---}% punctuation between head and body* > { }% space after theorem head; " " =3D normal interword space > {\thmname{#1}\thmnumber{ #2}\thmnote{ (#3)}} > > \theoremstyle{theoremdd} > \newtheorem{thmd}{Theorem}[section] > > > > I'm trying to do the same thing with ConTeXt but I can not do it complete= ly > : What are you missing? Aditya > \setupenumerations[ > before=3D{\blank}, > after=3D{\blank}, > text=3DTh=C3=A9or=C3=A8me, > alternative=3Dserried, > title=3Dno, > prefix=3Dyes, > prefixsegments=3Dchapter, > way=3Dbysection, > right=3D., > titlestyle=3Dbold, > style=3Ditalic, > width=3Dbroad, > > ] > > \defineenumeration[theorem] > > > \starttext > > \startchapter[title=3D{First Chapter}] > \startsection[title=3D{First Section}] > \dorecurse{2}{ > \starttheorem > \input ward > \stoptheorem} > \stopsection > \stopchapter > > \startchapter[title=3D{Second Chapter}] > \startsection[title=3D{Second Section}] > \dorecurse{2}{ > \starttheorem > \input ward > \stoptheorem} > \stopsection > \stopchapter > > \stoptext > > Thanks > Fabrice > --0-732977072-1532517347=:53899 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f --0-732977072-1532517347=:53899--