From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/101359 Path: news.gmane.org!.POSTED!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Set up a theorem style Date: Wed, 25 Jul 2018 12:15:30 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============3713204564357370337==" X-Trace: blaine.gmane.org 1532513636 31032 195.159.176.226 (25 Jul 2018 10:13:56 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Wed, 25 Jul 2018 10:13:56 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Jul 25 12:13:52 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 1fiGno-0007zb-F5 for gctc-ntg-context-518@m.gmane.org; Wed, 25 Jul 2018 12:13:52 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id A94F846CA2; Wed, 25 Jul 2018 12:15:44 +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 X2-M8tAZJfny; Wed, 25 Jul 2018 12:15:43 +0200 (CEST) Original-Received: from zapf.ntg.nl (localhost [IPv6:::1]) by zapf.ntg.nl (Postfix) with ESMTP id E97A146CA8; Wed, 25 Jul 2018 12:15:43 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 75D6146CA8 for ; Wed, 25 Jul 2018 12:15:42 +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 7l5tdTAlIv2U for ; Wed, 25 Jul 2018 12:15:42 +0200 (CEST) Original-Received: from mail-wr1-f44.google.com (mail-wr1-f44.google.com [209.85.221.44]) (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 0DF9B46CA2 for ; Wed, 25 Jul 2018 12:15:32 +0200 (CEST) Original-Received: by mail-wr1-f44.google.com with SMTP id e7-v6so6847042wrs.9 for ; Wed, 25 Jul 2018 03:15:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=P1ha5aBxFNhql6rHC94/RAloAj3bu/GmnWFCArGChcw=; b=IpMaiBOmH+3GlzEXtbcugtMztrEPXG+3rb8Ys5VcdIkFY2zcehynaP4LuCwNg66k4/ jskgsrMfPM2gUMIJ9Gca3Sxy/IoaZHeG+/xuANqMQFCqa5p9VuWb7AO/L3xRuBL3NexS sHIWHfqFemex4BXxItE/PU1fVcZU/D7KISfIDSoBx1ffEuTPygXF4bHUf/Ru7NfsITHH Jvn71RFW90zUihmj0aTR4CG0JY7yurjKr1KjcaowmJGwfRH/WMJmnfZ401Nkvvtdfs0h sLtlVBf3a6nzhUO/YLFsaEyTSH5xK452eLHck8URNFFqFEvjMWte2wbHu86jZvajQ6b8 hMww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=P1ha5aBxFNhql6rHC94/RAloAj3bu/GmnWFCArGChcw=; b=tCKpgk0qV01CfHA10bd21to8wjrUgqTK2bzY10Uer4XLb1SXe8fcxSuWjz8/O2dOxA VpiKaddc+90isxEV9MXeVwQSszJOr3OaN09yfP/deTVxTa/Pm3esuH8gWan8Z9NQ3Vjm jLwKl6G7X/C7DB8BDXdXH6FXCExDhnIVARB7YBqcI1peF+poHI/CLFYLF8k+zyfkkYIb 8KUmImlXAsFwBXRpT/gXK9qwrJ/y5S3VP80PvUzOK6vgV6NWv6Q98BXXuLG+T4jty5Zs GTg7JNATqTQS3+0kyIyOhj7hyVOjVl/T0QLe6SI2i/piz1mC5uuu8p4OHinIw0sTtUZS eDKQ== X-Gm-Message-State: AOUpUlFh3SWR3PJqWI+se+iCS9s2H/KRSqng8yHosKI9AXlXBcUqdmh3 gaaPdMUAlLiqbrbJe+KGaWhtLy4EHAqWjhVC2X1mdBru X-Google-Smtp-Source: AAOMgpdL+c7ldxl6fghBn/GSWxbJUAC6LthfN2cCfaZlSL6/D126EV0tDVbE14mKrE6lhfmD1Ff5hqz+EYjxLS5hBQQ= X-Received: by 2002:adf:cc0a:: with SMTP id x10-v6mr13279393wrh.242.1532513731489; Wed, 25 Jul 2018 03:15:31 -0700 (PDT) Original-Received: by 2002:adf:c4a7:0:0:0:0:0 with HTTP; Wed, 25 Jul 2018 03:15:30 -0700 (PDT) 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:101359 Archived-At: --===============3713204564357370337== Content-Type: multipart/alternative; boundary="0000000000009438d40571d0281f" --0000000000009438d40571d0281f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 --0000000000009438d40571d0281f Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello,
I used LaTeX for a long time before converting (wi= th difficulty !) to ConteXt. For example, to define my new the= orems, I used the amsthm package and I did this :

\newtheorems= tyle{theoremdd}% 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 to use in the body of the theorem
=C2=A0 {0pt}% measure of space= to indent
=C2=A0 {\bfseries}% name of head font
=C2=A0 {. ---}% p= unctuation between head and body
=C2=A0 { }% space after theorem hea= d; " " =3D normal interword space
=C2=A0 {\thmname{#1}\thmnumb= er{ #2}\thmnote{ (#3)}}

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



<= div class=3D"gmail_default" style=3D"font-family:verdana,sans-serif">I'm trying t= o do the same thing with ConTeXt but I can not do it completely :

<= /span>
\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{\bl= ank},
=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[theore= m]


\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 w= ard
=C2=A0=C2=A0=C2=A0 \stoptheorem}
\stopsection
\stopchapter
=
\startchapter[title=3D{Second Chapter}]
\startsection[title=3D{Secon= d 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 \stoptheo= rem}
\stopsection
\stopchapter=C2=A0=C2=A0

\stoptext

Tha= nks
Fabrice
--0000000000009438d40571d0281f-- --===============3713204564357370337== 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 --===============3713204564357370337==--