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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg-context@ntg.nl /
https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive : https://github.com/contextgarden/context
wiki : https://wiki.contextgarden.net
___________________________________________________________________________________