Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rmarkdown glossary

I've a simple question. How i create a glossary with Rmarkdown / knitr. I work with RStudio.

I try this but without success

\usepackage{glossaries}

in a header.tex and in rmd file

Glossary
--------

\makeglossaries

\newglossaryentry{score_r1_ch1}
{
name=zscore,
description={ description here}
}
\printglossaries

Thanks

like image 348
CHK Avatar asked Oct 19 '22 03:10

CHK


1 Answers

Late to the party, but the following might interest others on the search for creating a glossary in RMarkdown when rendering to .pdf:

One can use definition lists to create glossaries. This is part of a .rmd file:

# Glossary {-}

Foo

:   description of foo

Bar

:   descirption of bar

This renders to:

enter image description here

like image 194
symbolrush Avatar answered Oct 21 '22 17:10

symbolrush