[NTG-context] Set up a theorem style

Fabrice Couvreur fabrice1.couvreur at gmail.com
Wed Jul 25 12:15:30 CEST 2018


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; " " = 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={\blank},
       after={\blank},
       text=Théorème,
       alternative=serried,
       title=no,
       prefix=yes,
       prefixsegments=chapter,
       way=bysection,
       right=.,
       titlestyle=bold,
       style=italic,
       width=broad,

]

\defineenumeration[theorem]


\starttext

\startchapter[title={First Chapter}]
\startsection[title={First Section}]
  \dorecurse{2}{
    \starttheorem
      \input ward
    \stoptheorem}
\stopsection
\stopchapter

\startchapter[title={Second Chapter}]
\startsection[title={Second Section}]
\dorecurse{2}{
    \starttheorem
      \input ward
    \stoptheorem}
\stopsection
\stopchapter

\stoptext

Thanks
Fabrice
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180725/c84b4735/attachment.html>


More information about the ntg-context mailing list