# Re: [NTG-context] index problem: [entry not flushed]

Dear Wolfgang,

>> I couldn’t figure out what relation is there between Theorems and Exam.
> The numbers are correct with the latest beta.
>
> mtx-context     | current version: 2019.02.10 17:43
> 

You are right. The example which I sent last time had no problem in numbers.
I checked it by adding definitions one by one and finally found the reason.

One line in my environment file cause the problem.

Also, I found very strange phenomena that it depends on the order of appearance
of that line.
That is, it is OK if the command \setupenumeration… before the
\defineenumeration[Exam], but if the command \setupenumeration… after the
\defineenumeration[Exam] cause the problem.

After change the order of appearance such a commnad in my environment file, the
numbers of Exam are correct.  Now, I have to find the other possible changes.

“\setupenumeration…”.

Thank you so much.

Best regards,

Dalyoung

%%%%%%%%%%%% general setting for enumerations:Exam,Theorem,Lemma,Definition
%%%%%%%%%%%%%

\setupwhitespace[medium]

\defineenumeration[Exam]
[text={\white\translate[en=Example, kr=예제]},
numbercommand={\inframed[corner=round,
framecolor=dYellow,toffset=-1pt,boffset=-1pt, loffset=1ex,roffset=1ex,
background=color,backgroundcolor=blue]},       %height=1.3em,
title=yes,
prefix=yes,
prefixsegments=chapter,
way=bychapter,
before={\blank},
after=\blank]

\setupbodyfont[rm, 11pt]

\starttext

\dorecurse{3}{
\startchapter[title={Chapter Title}]

\startExam
We call it \index{OneTwo}{\bf OneTwo}
\stopExam

\startExam
We call it \index{OneTwo}{\bf OneTwo}
\stopExam
\stopchapter
}

\page
\placeindex

\stoptext
%%%%%%%%%

> Wolfgang
>

___________________________________________________________________________________
{"ft_lang_label":"__label__en","ft_lang_prob":0.65820193,"math_prob":0.8051978,"size":2292,"snap":"2020-45-2020-50","text_gpt3_token_len":577,"char_repetition_ratio":0.17482518,"word_repetition_ratio":0.024896266,"special_character_ratio":0.29712042,"punctuation_ratio":0.18441558,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.96768844,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-10-24T15:50:45Z\",\"WARC-Record-ID\":\"<urn:uuid:e6c89d46-ba25-4eda-95c9-583300a5da59>\",\"Content-Length\":\"9651\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:c3adb755-9264-4ca7-8b84-742477024ba2>\",\"WARC-Concurrent-To\":\"<urn:uuid:56333ce7-4b48-4d7d-a94b-457358d961ec>\",\"WARC-IP-Address\":\"72.52.77.8\",\"WARC-Target-URI\":\"https://www.mail-archive.com/ntg-context@ntg.nl/msg90360.html\",\"WARC-Payload-Digest\":\"sha1:BDLTBUKZDGTTBBFKGDKSHJTFT7EDBDKK\",\"WARC-Block-Digest\":\"sha1:DZR6HA22UCTKYOII2VDT6FCDBG6S7TWV\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-45/CC-MAIN-2020-45_segments_1603107883636.39_warc_CC-MAIN-20201024135444-20201024165444-00358.warc.gz\"}"}