II-070

Utilizing Typst and Quarto for Efficient Reporting in Pharmacometrics

Aida Kawuma1, Dr Melanie Wilbaux1, Dr Amit Roy1, Dr Jessica Wojciechowski1

1Pumas-AI Inc.

Introduction Writing pharmacometrics reports is part of our daily routine, providing detailed documentation of analysis methods and conduct, to ensure reproducibility and facilitate both internal and regulatory review. This task can be challenging due to the large volume of output that needs to be accurately summarized. Using traditional Word-based reports requires extensive manual formatting, including repeatedly updating tables and figures, managing references and correctly positioning tables, figures, equations or chunks of code. These tasks are time-consuming, error-prone, and not of the expertise of dedicated pharmacometricians. LaTeX- and Markdown templates have been previously implemented in pharmacometrics workflows to automate formatting and replacement of figures/tables with updated analysis output. However, LaTeX is often associated with a barrier to entry as it is not readily part of the pharmacometrician’s toolkit. To streamline the reporting process and improve efficiency, accuracy and reliability, a Typst (https://typst.app/) template with a Quarto (https://quarto.org/) interface was developed. Methods Typst is a modern scientific typesetting language that offers an alternative to LaTeX and is now included natively with Quarto. Quarto is an open-source scientific publishing system, which allows integration of text, code, tables, and figures from various programming languages, while supporting multiple output formats (HTML, PDF, Word). Quarto is increasingly being used in pharmacometrics for analysis documentation and presentation of education/training materials due to the ability to interact with its features via RStudio and Pumas IDEs. Therefore, Quarto provided a familiar interface for pharmacometricians to author technical reports and to call on a Typst template that automatically applied document styling, generates lists of tables, figures, and abbreviations, cross-referencing, and reference management without manual intervention. This framework also allowed for the direct import of saved figures and table outputs from R or Julia and automatically applied the appropriate formatting to ensure consistency and reproducibility. Additionally, version control via Git tracked document changes over time. Results We successfully generated reproducible pharmacometrics reports that can be generated from both RStudio and Pumas IDEs. Compared to traditional Word-processing tools, the use of Quarto/Typst reporting significantly reduced the effort and resources required for formatting, updating figures, numbering tables, etc. Reports are generated dynamically, minimizing manual errors and improving efficiency. The integration with R or Julia allows for real-time updates, ensuring that reported results are always synchronized with the latest analysis outputs. Furthermore, version control provides a transparent history of modifications, facilitating collaboration and regulatory compliance. Conclusion The adoption of Typst and Quarto for pharmacometrics reporting offers a modern, efficient, and reproducible approach that overcomes some of the limitations of conventional Word-processing approaches. This methodology enhances productivity, reduces formatting overhead, and ensures the integrity of reported results, making it a valuable tool for pharmacometricians.

 1. Vong C et al. https://pubmed.ncbi.nlm.nih.gov/22350626/ 2. Gelman A & Carlin J. https://pubmed.ncbi.nlm.nih.gov/26186114/ 3. Hoenig JM & Heisey DM. https://doi.org/10.1198/000313001300339897 4. Shukla et al. https://pubmed.ncbi.nlm.nih.gov/32714184/ 5. Perl-speaks-NONMEM. https://uupharmacometrics.github.io/PsN/ 

Reference: PAGE 33 (2025) Abstr 11496 [www.page-meeting.org/?abstract=11496]

Poster: Methodology - Other topics

PDF poster / presentation (click to open)