Is there any way to get \definedescription
& \setupdescriptions
to not only produce the inline description, but also an entry in a sorted glossary? Perhaps with before=
& after=
to add the commands for the glossary?
1 Answer
Other than needing to resolve some "normal" formatting issues, I've found a solution....
\setuppapersize[letter]
\setupexternalfigures[location=default]
\setupwhitespace[medium]
\definedescription[conceptdesc][alternative=serried,headstyle=bold,width=broad]
\definesynonyms[conceptsyn][concepts][\expandconcept]
\setupsynonyms[conceptsyn][width=4cm, criterium=all]
\def\concept#1#2%
{
\conceptsyn{#1}{#2}
\index{#1}
\conceptdesc{#1}#2\par
}
\starttext
\chapter{The Great Text}
\input lorem.tex
\concept{Catatonic Choochoo}{
The etherial vehicle one travels on when being
kidnapped by friends.
}
\input lorem.tex
\concept{Application Binary Interface}{
In computer software, an application binary
interface is an interface between two binary program modules; often, one of these modules is a library or operating system facility, and the other is a program that is being run by a user.
}
\input lorem.tex
\chapter{Concepts}
\placelistofconcepts
\chapter{Index}
\placeindex
\stoptext
definedescription
parameters