* Set up a theorem style
@ 2018-07-25 10:15 Fabrice Couvreur
2018-07-25 11:15 ` Aditya Mahajan
2018-07-26 22:13 ` Fabrice Couvreur
0 siblings, 2 replies; 3+ messages in thread
From: Fabrice Couvreur @ 2018-07-25 10:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 1565 bytes --]
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
[-- Attachment #1.2: Type: text/html, Size: 3390 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Set up a theorem style
2018-07-25 10:15 Set up a theorem style Fabrice Couvreur
@ 2018-07-25 11:15 ` Aditya Mahajan
2018-07-26 22:13 ` Fabrice Couvreur
1 sibling, 0 replies; 3+ messages in thread
From: Aditya Mahajan @ 2018-07-25 11:15 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: text/plain, Size: 1739 bytes --]
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 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
> :
What are you missing?
Aditya
> \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
>
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Set up a theorem style
2018-07-25 10:15 Set up a theorem style Fabrice Couvreur
2018-07-25 11:15 ` Aditya Mahajan
@ 2018-07-26 22:13 ` Fabrice Couvreur
1 sibling, 0 replies; 3+ messages in thread
From: Fabrice Couvreur @ 2018-07-26 22:13 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1.1: Type: text/plain, Size: 2213 bytes --]
Hello,
Perhaps the key proposed by Wolfgang is what I want to do : put a dash
between the numbering and the text
\setupenumerations[
before={\blank},
after={\blank},
text=Théorème ,
alternative=serried,
headstyle={\sc},
prefix=yes,
prefixsegments=chapter,
way=bysection,
*numberstopper={. ---},*
style=italic,
]
\defineenumeration[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 !) 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
>
[-- Attachment #1.2: Type: text/html, Size: 5530 bytes --]
[-- Attachment #2: Type: text/plain, Size: 492 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-07-26 22:13 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-07-25 10:15 Set up a theorem style Fabrice Couvreur
2018-07-25 11:15 ` Aditya Mahajan
2018-07-26 22:13 ` Fabrice Couvreur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).