On Thu, Oct 23, 2008 at 12:55 AM, Diego Depaoli
Hi all, referencing a subitem I get also the item (1.a, 2.c and so on). Can I split them or get only the subitem?
\starttext \startitemize [n] \item [number] one \startitemize [a] \item [letter] letter \stopitemize \stopitemize Look at number \in[number] letter \in[letter] \stoptext
Normal output: Look at number 1 letter 1.a
Wanted result Look at number 1 letter a
\def\ItemNumber#1% {\expandafter\doItemNumber#1..\relax} \def\doItemNumber#1.#2.#3\relax {\doifelsenothing{#2} {#1} {#2}} \definereferenceformat[initem][left=\ItemNumber] \starttext \startitemize[n] \item[number] one \startitemize [a] \item[letter] letter \stopitemize \stopitemize Look at \initem{number}[number] \initem{letter}[letter] \stoptext Regards, Wolfgang