I have a document setup with:
\starttext
\startfrontmatter
(contains all front matter content)
\stopfrontmatter
\startbodymatter
\stopbodymatter
\startbackmatter
\stopbackmatter
\stoptext
I was noticing very strange behavior where \setvalue was not showing up as \getvalue. I put it in lots of pllaces, but in the main part of the document, it wasn't working. Its like it was never set. After a lot of testing, I discovered if \setvalue is set inside \startbodymatter, its value stays unset. But I can set it in the front matter, backmatter, anywhere else. Here is my minimum working example, note that \getvalue{B} never appears, it was set within the bodymatter.
\setvalue{A}{this is a test}
\starttext
\startbodymatter
\setvalue{B}{Why is hits one missing?}
\stopbodymatter
\startbackmatter
\dostepwiserecurse{1}{3}{1}{
\setvalue{C}{this is yet another test}
\getvalue{A}
\getvalue{B}
\getvalue{C}
}
\stopbackmatter
\stoptext
What is going on? Should I no longer be using the \startbodymatter, etc. items?
--Joel