add acronym to glossary if specified (#45)
This commit is contained in:
parent
a95b42bac3
commit
c60d81bd2d
|
@ -180,10 +180,12 @@ SOFTWARE.*/
|
||||||
#block(
|
#block(
|
||||||
par(hanging-indent: 1em)[
|
par(hanging-indent: 1em)[
|
||||||
#text(weight: "bold", entry.short)
|
#text(weight: "bold", entry.short)
|
||||||
#if hasLong {
|
#if hasLong and hasDesc [
|
||||||
|
(#text(entry.long))
|
||||||
|
] else if hasLong {
|
||||||
text(entry.long)
|
text(entry.long)
|
||||||
}
|
}
|
||||||
#if hasLong and hasDesc [:]
|
#if hasDesc [ #sym.dash.en ]
|
||||||
#if hasDesc [ #desc ]
|
#if hasDesc [ #desc ]
|
||||||
#if disable-back-references != true {
|
#if disable-back-references != true {
|
||||||
term_references
|
term_references
|
||||||
|
|
|
@ -76,7 +76,7 @@
|
||||||
// acronym and glossary
|
// acronym and glossary
|
||||||
if "long" in v and "desc" in v {
|
if "long" in v and "desc" in v {
|
||||||
processed_glossary.insert(k, (short: v.short, long: v.long, group: acronym_group))
|
processed_glossary.insert(k, (short: v.short, long: v.long, group: acronym_group))
|
||||||
processed_glossary.insert(k + "__glossary_entry", (short: v.short, desc: v.desc, group: glossary_group))
|
processed_glossary.insert(k + "__glossary_entry", (short: v.short, desc: v.desc, long: v.long, group: glossary_group))
|
||||||
} else {
|
} else {
|
||||||
processed_glossary.insert(k, v)
|
processed_glossary.insert(k, v)
|
||||||
processed_glossary.at(k).group = group
|
processed_glossary.at(k).group = group
|
||||||
|
|
Loading…
Reference in New Issue