metrumresearchgroup / pmtables

TeX tables for pharmacometrics.
https://metrumresearchgroup.github.io/pmt-book
11 stars 1 forks source link

Glossary feature not working properly with newer latex syntax #348

Open KatherineKayMRG opened 1 month ago

KatherineKayMRG commented 1 month ago

I think the new glossary syntax for specifically defining plural abbreviations may have broken the glossary feature in pmtables.

The PK syntax in latex

\newacronym[shortplural={PK}, longplural = {pharmacokinetics}]{PK}{PK}{pharmacokinetic}

In R

glo = read_glossary(here("deliv/willow-final/communication/glossary.tex"))
gloY = read_glossary(here("script/willow-final/report/glossary.yml")) 
glossary = c(glo, gloY)

glossary$PK
Screenshot 2024-10-25 at 3 33 22 PM