![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
Hi, (This is based on a question on tex.se: http://tex.stackexchange.com/q/94170/323) If a new head is defined based on an existing head, it still uses the label of the previous head. \definehead[whatever][chapter] \setuplabeltext[en][whatever=Whatever~] \setuplabeltext[en][chapter=Chapter~] \starttext \whatever{Animals} \chapter{Plants} \stoptext Uses the label Chapter for both heads. This is because the .tuc file contains label=chapter for both elements. utilitydata_structures_lists.collected={ { ["metadata"]=1, ["numberdata"]=3, ["references"]={ ["block"]="bodypart", ["internal"]=1, ["realpage"]=1, ["section"]=1, }, ["titledata"]={ ["label"]="chapter", ["title"]="Animals", }, }, { ["metadata"]=4, ["numberdata"]=6, ["references"]={ ["block"]="bodypart", ["internal"]=2, ["realpage"]=2, ["section"]=2, }, ["titledata"]={ ["label"]="chapter", ["title"]="Plants", }, }, } Adding \setuphead[whatever][label=whatever] does not change anything. This looks like a bug to me. Otherwise, what is the right way of changing the label of a section head? Aditya
![](https://secure.gravatar.com/avatar/27c34cb91f1e92bd850fe60b3d9ef336.jpg?s=120&d=mm&r=g)
Am 17.01.2013 um 19:20 schrieb Aditya Mahajan
Hi,
(This is based on a question on tex.se: http://tex.stackexchange.com/q/94170/323)
If a new head is defined based on an existing head, it still uses the label of the previous head.
\definehead[whatever][chapter]
\setuplabeltext[en][whatever=Whatever~] \setuplabeltext[en][chapter=Chapter~]
\starttext \whatever{Animals} \chapter{Plants} \stoptext
Uses the label Chapter for both heads. This is because the .tuc file contains label=chapter for both elements.
utilitydata_structures_lists.collected={ { ["metadata"]=1, ["numberdata"]=3, ["references"]={ ["block"]="bodypart", ["internal"]=1, ["realpage"]=1, ["section"]=1, }, ["titledata"]={ ["label"]="chapter", ["title"]="Animals", }, }, { ["metadata"]=4, ["numberdata"]=6, ["references"]={ ["block"]="bodypart", ["internal"]=2, ["realpage"]=2, ["section"]=2, }, ["titledata"]={ ["label"]="chapter", ["title"]="Plants", }, }, }
Adding
\setuphead[whatever][label=whatever]
does not change anything. This looks like a bug to me.
Otherwise, what is the right way of changing the label of a section head?
\setuphead[…][bodypartlabel=…] Wolfgang
![](https://secure.gravatar.com/avatar/c5ae4f9aa0d3a9bd5376e92b322c3e50.jpg?s=120&d=mm&r=g)
On Fri, 18 Jan 2013, Wolfgang Schuster wrote:
Am 17.01.2013 um 19:20 schrieb Aditya Mahajan
: \setuphead[whatever][label=whatever]
does not change anything. This looks like a bug to me.
Otherwise, what is the right way of changing the label of a section head?
\setuphead[…][bodypartlabel=…]
Thanks. Shouldn't \definehead[...] automatically also set the bodypartlabel? Aditya
participants (2)
-
Aditya Mahajan
-
Wolfgang Schuster