fletcher / peg-multimarkdown

An implementation of MultiMarkdown in C, using a PEG grammar - a fork of jgm's peg-markdown. No longer under active development - see MMD 5.
Other
523 stars 55 forks source link

Glossaries #4

Closed fletcher closed 13 years ago

fletcher commented 13 years ago

Glossaries seem to have gotten much more complicated with the new glossaries package, and I think it might just be out of the scope of MMD for the time being. We'll see. There is a "glossary" branch where I have started some of this, but it's kind of a mess at the moment....

urschrei commented 13 years ago

They're a little more complicated, but not vastly (apologies if you've already waded through this)

Before the \makeindex command: \usepackage{glossaries}
\glstoctrue
\makeglossaries

An MMD glossary entry: [^gloss1]: glossary: widget
An unspecified item, favoured as a term denoting products by some economist

becomes a latex glossaries package entry: \texttt{widget}\newglossaryentry{widget}{name=widget,description={An unspecified item, favoured as a term denoting products by some economist}} \glsadd{widget}\\

i.e. there's a \newglossaryentry command, immediately followed by a \glsadd command. There's then a \printglossaries command in the back matter.

Not sure if this helps (the insertion of two separate latex commands was a pain to accomplish in the XSLT, but I'm not familiar enough with the peg syntax to know if its easier/more difficult.

fletcher commented 13 years ago

Alright - I think I have glossaries working now with HTML and with LaTeX using the glossaries package.

It still seems a bit much, but hopefully it's useful (at least it's useful to one person!)