I defined a general environment using setupenumerations. Then I defined an example and proof environments that inherited from it. The proof isn't supposed to be a numbered and setting number=no in the options brings an awkward space after the heading like this:
\setupenumerations[
before={\blank[medium]},
after={\blank[medium]},
alternative=serried,
right=.,
distance=0.5em,
width=fit,
headstyle=bold,
titlestyle=bold,
]
\defineenumeration[example][
text=Example,
]
\defineenumeration[proof][
text=Proof,
number=no,
right=.,
distance=1em,
headstyle=italic,
title=no,
closesymbol={\mathematics{\square}},
style=normal,
]
\starttext
\startexample
Something here...
\stopexample
\startproof
For the first property, we know that at the very least $\emptyset$ and $R$ itself are subsets of $R$ and so it is satisfied. Since $R$ is a ring, $rs \in R$ for $r,s \in R$. Consequently, there exists $S \subseteq R$ which contains $rs$. We know that $\langle R,+\rangle$ is an abelian group and so $s + r \in R$. Also, $s - r = s + (-r)$ where $-r\in R$ is the unique inverse of $r$ under the binary operation $+$. Again, there exists $S \subseteq R$ such that $s-r \in S$.
\stopproof
\stoptext
How do I get rid of the extra space marked in the proof environment so it becomes more like that of the Example i.e the space between proof and For the first... space?
alternative=serriedbut the proof env does not. Addalternative=serriedin the proof env to get a similar output. – Aditya Jun 02 '21 at 02:55proofenvironment is larger because you havedistance=1emin the definition of the environment. – Wolfgang Schuster Jun 02 '21 at 07:55setupenumerations? – Spirit_bird Jun 02 '21 at 15:35right=.,not showing in the proof environment head name even though I explicity added it? – Spirit_bird Jun 02 '21 at 15:40rightis ignored because you're using a unnumbered title but you can set symbols before and after the title withheadcommand=\groupedcommand{<before>}{<after>}. – Wolfgang Schuster Jun 02 '21 at 17:34conTeXt commandsbook but some of the commands are not self explanatory. Any idea a better way to go about learning ConTeXt? I feel embarassed asking such simple questions. – Spirit_bird Jun 02 '21 at 19:10