Hello,

I'm looking for a possibility to create a glossary with 3 columns (formula, short description, description) using lyx . It it possible to do this with lyx natively?

Googeling around I found the package glossaries - but using it I don't get a glossary generated. It seems there are calls missing to generate .gls-files on the base of .glo-files using makeindex.

perhaps a small example can help?

* document -> LaTeX-preample
----------------------------------------------------------

\usepackage[nonumberlist,numberline,acronym,toc]{glossaries}

\newlength{\glsfixfirstwidth}

\setlength{\glsfixfirstwidth}{5em}

\newcommand*{\longtablealign}{l}

\newglossarystyle{symbvz}{

\renewenvironment{theglossary}

{\begin{longtable}[\longtablealign]{@{}ccp{0.75\textwidth}@{}}}

{\end{longtable}}


\renewcommand*{\glossaryheader}{

\textbf{Symbol} & \textbf{Einheit} & \textbf{Beschreibung} \\

\endhead}


\renewcommand*{\glsgroupheading}[1]{}

\renewcommand*{\glossaryentryfield}[4]{

\vspace{0.1cm}

\glsentryuseri{##1}% Symbol

& \si{\glsentryuserii{##1}}% Einheit

& \glstarget{##1}{##2}% Name

\\

}


\renewcommand*{\glossarysubentryfield}[6]{

\glossaryentryfield{##2}{##3}{##4}{##5}{##6}}

\renewcommand*{\glsgroupskip}{}

}


\makeglossaries


* a ERT in lyx-document to generate an entry

---------------------------------------------------------

\newglossaryentry{Masse}{
name={Masse},
user1={\ensuremath{m}},
user2={\ensuremath{kg}},
%sort=a
}

* a ERT in lyx-document to generate the glossary
---------------------------------------------------------

\printglossary[style=symbvz,title={Symbolverzeichnis},nonumberlist]

Many thanks for help! - Tino

Reply via email to