From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101389 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Set up a theorem style Date: Fri, 27 Jul 2018 00:13:35 +0200 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="===============8946578438859250857==" X-Trace: blaine.gmane.org 1532643123 26936 195.159.176.226 (26 Jul 2018 22:12:03 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 26 Jul 2018 22:12:03 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 27 00:11:59 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 1fioUI-0006uV-Nu for gctc-ntg-context-518@m.gmane.org; Fri, 27 Jul 2018 00:11:58 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 76D6B474B3; Fri, 27 Jul 2018 00:13:49 +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 ahtZH5hpnYT2; Fri, 27 Jul 2018 00:13:48 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id 23ABA47447; Fri, 27 Jul 2018 00:13:48 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 9596747447 for ; Fri, 27 Jul 2018 00:13:47 +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 RrL9kcs711Z2 for ; Fri, 27 Jul 2018 00:13:47 +0200 (CEST) Original-Received: from mail-wr1-f42.google.com (mail-wr1-f42.google.com [209.85.221.42]) (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 13AE647444 for ; Fri, 27 Jul 2018 00:13:37 +0200 (CEST) Original-Received: by mail-wr1-f42.google.com with SMTP id t13-v6so3147071wrv.12 for ; Thu, 26 Jul 2018 15:13:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=7yHdnpYjUQ6dS+0fhGe2TlVdNeW33Y35vM79PUPgz4o=; b=qlpH5Qdj0m7xbYikX2XqYuCwApfM71hwGY2QlboBuxs4Wr2NuJRcokVcW2HNkjSw1l 8RxgSOpz6JWfVy/vyCtm1EyAwITMRrs0/vvQITm/xMC0DsLlTDtiJSGGQwYabZqd9EC0 N2F/b8gnVlKF+4rCAG8j+MCuq4lyyOf6ekgXx3qrg6xVnvWI+kLdOzWg0LxHMnqn1xgZ UrJluvGUGMBlch/e8m5hAxUhSiJM5TZ45Az8o+wqNlDdBsZGnyvrrHXbfE9skrQgsrTM zcX0ulEYh4iYDvyU573DJs59zvokTRQ5uB0OtEiEFDK6/rFxUDc4DRmnzSUZ+u5ktUkP Q+Vg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=7yHdnpYjUQ6dS+0fhGe2TlVdNeW33Y35vM79PUPgz4o=; b=At7TTp1gqrsrgGy2EX2nGy38T3ZYlMqKsRiCzSK5Brepij+VP2OU4H582Biqp86vZl WxB33ngvMWPZQSiAd+M217WL0/hyM0szVCDcGjHSKcd34nk4sjz1R4fIuv3jzF2X+7dY gVrlQR2f5xaEt1b3RJySWtEaHcZUkfIo8OKXvh0RCYfulRI+GiZ4zdbJkrG6U/mIRBDV f3TCC1mIGfzVJyzbU5tJKOGgXSjGquol8h9uP2X3/3GIEvKEoaNCaJ6lPcjh7pC7SG2U 7RS/5wWCefib3PHJx0vZsZU9nhyRSZDuvbHOgohYVDl5IdzChzQsuNQ2h/Oyia1BiU2I eaFA== X-Gm-Message-State: AOUpUlEaNXwVAfh8qR+f0lN23c624lUGSlnrNojC0QciH67fDwMLzp2L 7R9jBpsb2d3u54aK/tPa4xUHXHkJ0UKuH/lvuvIt1wlO X-Google-Smtp-Source: AAOMgpd01033lNq05mB0B40U543Rtahe8PrsQazWm8ASZ7tmtUr0QfMPbV51bLJ2f46i+he/ntKpzndtAcmSrxvsHrQ= X-Received: by 2002:adf:cc0a:: with SMTP id x10-v6mr2695076wrh.242.1532643216203; Thu, 26 Jul 2018 15:13:36 -0700 (PDT) Original-Received: by 2002:adf:c4a7:0:0:0:0:0 with HTTP; Thu, 26 Jul 2018 15:13:35 -0700 (PDT) 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:101389 Archived-At: --===============8946578438859250857== Content-Type: multipart/alternative; boundary="0000000000007825e10571ee4e4c" --0000000000007825e10571ee4e4c Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Perhaps the key proposed by Wolfgang is what I want to do : put a dash between the numbering and the text \setupenumerations[ before=3D{\blank}, after=3D{\blank}, text=3DTh=C3=A9or=C3=A8me , alternative=3Dserried, headstyle=3D{\sc}, prefix=3Dyes, prefixsegments=3Dchapter, way=3Dbysection, *numberstopper=3D{. ---},* style=3Ditalic, ] \defineenumeration[theorem] Fabrice 2018-07-25 12:15 GMT+02:00 Fabrice Couvreur : > 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 > package 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 > completely : > > \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 > --0000000000007825e10571ee4e4c Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
Perhaps the key proposed by Wolfgang is what I wa= nt to do : put a dash between the numbering and the text

\setupenumerations[
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 before=3D{\blank},
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 after=3D{\blank},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 t= ext=3DTh=C3=A9or=C3=A8me ,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 alternat= ive=3Dserried,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 headstyle=3D{\sc},=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 prefix=3Dyes,
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 prefixsegments=3Dchapter,
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 way=3Dbysection,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 numbe= rstopper=3D{. ---},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 style=3Dita= lic,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
]

\defineenum= eration[theorem]

Fabrice

2018-07-25 12:15 GMT+02:00 Fabrice Couvreur <fabrice1.couvreur@gmail.com>:
Hello,I used LaTeX for a long time before converting (with difficulty !) t= o ConteXt. For example, to define my new theorems, I used the = amsthm package and I did this :

\newtheoremstyle{theo= remdd}% name of the style to be used
=C2=A0 {\topsep}% measure of space = to leave above the theorem. E.g.: 3pt
=C2=A0 {\topsep}% measure of space= to leave below the theorem. E.g.: 3pt
=C2=A0 {\itshape}% name of font t= o use in the body of the theorem
=C2=A0 {0pt}% measure of space to inden= t
=C2=A0 {\bfseries}% name of head font
=C2=A0 {. ---}% punctuatio= n between head and body
=C2=A0 { }% space after theorem head; "= " =3D normal interword space
=C2=A0 {\thmname{#1}\thmnumber{ #2}\t= hmnote{ (#3)}}

\theoremstyle{theoremdd}
\newtheorem{thmd}{Theorem= }[section]



I= 9;m trying to do the same thing with ConTeXt but I can not do it completely= :

=
\setupenumerations[
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0 before=3D{\blank},
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0 after=3D{\blank},
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 text= =3DTh=C3=A9or=C3=A8me,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 alternative= =3Dserried,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 title=3Dno,
=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 prefix=3Dyes,
=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0 prefixsegments=3Dchapter,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= way=3Dbysection,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 right=3D.,
=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 titlestyle=3Dbold,
=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0 style=3Ditalic,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = width=3Dbroad,
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0
]

\= defineenumeration[theorem]


\starttext

\startchapter[title= =3D{First Chapter}]
\startsection[title=3D{First Section}]=C2=A0
=C2= =A0 \dorecurse{2}{
=C2=A0=C2=A0=C2=A0 \starttheorem
=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0 \input ward
=C2=A0=C2=A0=C2=A0 \stoptheorem}
\stopsec= tion
\stopchapter

\startchapter[title=3D{Second Chapter}]
\sta= rtsection[title=3D{Second Section}]=C2=A0
\dorecurse{2}{
=C2=A0=C2= =A0=C2=A0 \starttheorem
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 \input ward
= =C2=A0=C2=A0=C2=A0 \stoptheorem}
\stopsection
\stopchapter=C2=A0=C2= =A0

\stoptext

Thanks
Fabrice

--0000000000007825e10571ee4e4c-- --===============8946578438859250857== 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 --===============8946578438859250857==--