cynthiahqy / quarto-wiki-template

Creative Commons Zero v1.0 Universal
0 stars 1 forks source link

Add glossary term collector #1

Open cynthiahqy opened 1 year ago

cynthiahqy commented 1 year ago

In each document define a definitions table

defs <- tibble::tribble(~term, ~def,
                        "cake", "a sweet baked dessert made from flour",
                        "pancake", "flat cake made in a pan")

and add to it using tibble::add_case()

Then collect all the definitions together and load them into the glossary page

library(epoxy)
#all_defs <- row_bind(def1, def2,...)

Define an epoxy template

{term}

: {def}
cynthiahqy commented 1 year ago

Could also write the glossary to a temporary text file, which is then removed after knitting