<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The example below documents the problems. In short, \definelabel
suppresses paragraph indent when the label is at the beginning of a
paragraph and fails to print the label or generate references with
alternative=inmargin (or inright, or inleft) when in a footnote.<br>
<br>
\defineenumeration fails to work in a footnote.<br>
<br>
<br>
<blockquote><tt>\setupindenting[yes,small]</tt><tt><br>
</tt><tt>\definelabel [ID][</tt><tt><br>
</tt><tt>%\defineenumeration[ID][</tt><tt><br>
</tt><tt> text=,</tt><tt><br>
</tt><tt> after=,</tt><tt><br>
</tt><tt> before=,</tt><tt><br>
</tt><tt> headcolor=red,</tt><tt><br>
</tt><tt> alternative=inright,</tt><tt><br>
</tt><tt> ]</tt><tt><br>
</tt><tt>\starttext</tt><tt><br>
</tt><tt>\starttitle[title={Label testing}]</tt><tt><br>
</tt><tt>\startsubject[title={Problems with \tex{definelabel}}]</tt><tt><br>
</tt><tt><br>
</tt><tt> This is a test. It is only a test.</tt><tt><br>
</tt><tt><br>
</tt><tt> \ID[id1]This paragraph should be indented, with an ID
number</tt><tt><br>
</tt><tt> in the margin. When \tex{ID} is placed at the
beginning of the</tt><tt><br>
</tt><tt> paragraph, as it is here, the paragraph is not
indented.</tt><tt><br>
</tt><tt><br>
</tt><tt> This paragraph has a footnote.\footnote{%</tt><tt><br>
</tt><tt> \ID[id2]The ID number is not printed in the margin
with</tt><tt><br>
</tt><tt> {\tt alternative=inright}, {\tt
alternative=inmargin},</tt><tt><br>
</tt><tt> or {\tt alternative=inleft}. Without any {\tt</tt><tt><br>
</tt><tt> alternative} the ID number is printed where the
macro</tt><tt><br>
</tt><tt> appears. The positioning is unsatisfactory using
{\tt</tt><tt><br>
</tt><tt> alternative=right}.%</tt><tt><br>
</tt><tt> } The footnote has an ID number which should be
printed in the</tt><tt><br>
</tt><tt> right margin.</tt><tt><br>
</tt><tt><br>
</tt><tt> This \ID[id3]paragraph has an ID, but it is not at the
beginning</tt><tt><br>
</tt><tt> of the paragraph and the paragraph is properly
indented. The</tt><tt><br>
</tt><tt> value of the ID number indicates that \tex{ID} in the
footnote</tt><tt><br>
</tt><tt> of the previous paragraph incremented the associated
counter,</tt><tt><br>
</tt><tt> but the failure of the references (\tex{in} and
\tex{at}) to id2</tt><tt><br>
</tt><tt> suggests that there are other problems.</tt><tt><br>
</tt><tt><br>
</tt><tt> \dorecurse{3}{</tt><tt><br>
</tt><tt> ID id#1 is \in[id#1] and is on page \at[id#1].\par}</tt><tt><br>
<br>
References for footnotes are generated without
\tt{alternative=}.<br>
</tt><tt><br>
</tt><tt>\stopsubject</tt><tt><br>
</tt><tt>\startsubject[title={Problems with
\tex{defineenumeration}}]</tt><tt><br>
</tt><tt><br>
</tt><tt> When \tex{definelabel} is changed to
\tex{defineenumeration},</tt><tt><br>
</tt><tt> the example fails to compile. It does not properly
handle</tt><tt><br>
</tt><tt> the \tex{ID} in the footnote, complaining of an extra
\} or</tt><tt><br>
</tt><tt> forgotten \tex{endgroup}.</tt><tt><br>
</tt><tt><br>
</tt><tt>\stopsubject</tt><tt><br>
</tt><tt>\stoptitle</tt><tt><br>
</tt><tt>\stoptext</tt><br>
</blockquote>
-- <br>
Rik<br>
</body>
</html>