Hello forum,

I have managed to import a custom .cls file into the lyx .layout file and
things have been working fine so far. I have been inserting the necessary
parameter through class options of the lyx interface and ERT code. Now I am
stuck with the following issue. I am trying to generate a page for notation
of abbreviation. The custom class has an example for this and if I directly
copy it into my structure it works file.  The example as follows:

//////////////////////////////////////////////////////
\begin{notation}% Passing the option "old" to the notation environment will
redefine the notationtabular environment so that it produces an old style
LaTeX tabular instead of a ctable.sty style tabular.
  \centering

  \begin{notationtabular}{Förkortningar}{Förkortning}{Betydelse}
    \abbrARMA\index{ARMA@\abbrARMA!abbreviation} & Auto-regressive moving
average \\
    \abbrPID\index{PID@\abbrPID!abbreviation} & Proportional, integral,
differential (regulator) \\
  \end{notationtabular}
\end{notation}



//////////////////////////////////////////////////////


In my case I made the changes as follows , but it does not work :

///////////////////////////////////////////////////////
\begin{notation}% Passing the option "old" to the notation environment will
redefine the notationtabular environment so that it produces an old style
LaTeX tabular instead of a ctable.sty style tabular.
  \centering
  \begin{notationtabular}{Terminology}{Abbreviation}{Signifies}
    \abbrAM\index{AM@\abbrAM!abbreviation} & Additive manufacturing \\
  \end{notationtabular}
\end{notation}

///////////////////////////////////////////////////////


I could not find the mistake I am making here. The ERT code that is
inserted is:


//////////////////////////////////////////////////////////
\selectlanguage{english}
\makeFrontPage
\frontmatter
\maketitle
\makeLibraryPage{\input{engelsk-sammanfattning}}
\begin{abstract}[english]
\input{engelsk-sammanfattning}
\end{abstract}
\include{tack}
\tableofcontents{}
\include{notation}
\mainmatter
/////////////////////////////////////////////////////////


when i run pdflatex I get the following information at the console:

//////////////////////////////////////////////////////////
[7]) [8] (./notation.tex
(/usr/share/texlive/texmf-dist/tex/latex/kpfonts/t1jkp.fd)
! Undefined control sequence.
<recently read> \abbrAM

l.4     \abbrAM
               \index{AM@\abbrAM!abbreviation} & Additive manufacturing \\
///////////////////////////////////////////////////////////

The pdf is generated though, but the notation page does not show AM, only
the elaboration is shown.


Some hint is urgently needed.


Thanks

Reply via email to