有没有办法让\definedescription
&\setupdescriptions
不仅生成内联描述,还能生成已排序词汇表中的条目?也许可以使用before=
&after=
添加词汇表的命令?
答案1
除了需要解决一些“正常”格式问题之外,我还找到了一个解决方案......
\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