sidecap figure
Wolfgang Engelmann
engelmann at uni-tuebingen.de
Tue Mar 2 13:46:55 UTC 2021
In my preamble I have
\usepackage{sidecap}
% Definition to put legends beside tables and figures
\newcommand{\TabBesBeg}[1][1.0]{%
\let\MyTable\table
\let\MyEndtable\endtable
\renewenvironment{table}[1]{\begin{SCtable}[#1]##1}{\end{SCtable}}}
\newcommand{\TabBesEnd}{%
\let\table\MyTable
\let\endtable\MyEndtable}
\newcommand{\FigBesBeg}[1][1.0]{%
\let\MyFigure\figure
\let\MyEndfigure\endfigure
\renewenvironment{figure}[1]{\begin{SCfigure}[#1]##1}{\end{SCfigure}}}
\newcommand{\FigBesEnd}{%
\let\figure\MyFigure
\let\endfigure\MyEndfigure}
In the document I use in ERT
\FigBesBeg} before the float figure and
\FigBesEnd} after the float figure
but get this error:
! Undefined control sequence.
l.279 ...lgae (see figure \ref{thalli}).\figBesBeg
The control sequence at the end of the top line
of your error message was never \def'ed. If you have
misspelled it (e.g., `\hobx'), type `I' and the correct
spelling (e.g., `I\hbox'). Otherwise just continue,
and I'll forget about whatever was undefined.
What is wrong?
Wolfgang
More information about the lyx-users
mailing list