I am using Lyx 2.0.5.1 on linux / Archlinux and using the class a derivate
of class report .  When I try to generate the PDF I get the errors :


)) (/usr/share/texmf-dist/tex/latex/fragments/subscript.sty)

! Undefined control sequence.

l.24 \floatstyle

{}

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.



! Undefined control sequence.

l.25 \newfloat

{}{}{}

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.


! Undefined control sequence.

l.27 \floatname

{}{\protect\name}

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.



Those errors always happens when I put a table  inside a table float.
Viewing the table float source code I get :

% Preview source code for paragraph 248


\begin{table}

\begin{espacoumemeio}

\begin{tabular}{|l|l|l||l||l||cl|}

\hline

\multicolumn{7}{|c|}{\textbf{Especificações do Projeto}}\tabularnewline

\hline

Topologia da conversor & \multicolumn{6}{l|}{Boost - Elevador de
tensão}\tabularnewline

\hline

Mínima tensão de entrada & Vi1 & \multicolumn{4}{r}{10} & V\tabularnewline

\hline

Máxima tensão de entrada & Vi2 & \multicolumn{4}{r}{21} & V\tabularnewline

\hline

Mínima tensão de saída & Vo1 & \multicolumn{4}{r}{27} & V\tabularnewline

\hline

Máxima tensão de saída & Vo2 & \multicolumn{4}{r}{28.8} & V\tabularnewline

\hline

Máxima potência transmitida & Pmax & \multicolumn{4}{r}{30} &
W\tabularnewline

\hline

Frequência de chaveadmento & fs & \multicolumn{4}{r}{20} &
KHz\tabularnewline

\hline

Ondulação da tensão de saída & $\Delta v_{O\%}$ & \multicolumn{4}{r}{1} &
\%\tabularnewline

\hline

\end{tabular}

\end{espacoumemeio}

\caption{\textbf{Especificações do Projeto}}



\end{table}



But when I export to tex-pdflatex and remove the lines


%% Because html converters don't know tabularnewline
\providecommand{\tabularnewline}{\\}
\floatstyle{}
\newfloat{}{}{}
\providecommand{\name}{}
\floatname{}{\protect\name}


and it compiles as expected.

Anyone has faced this kind of problem ? Or have any clues ?
Or is there any way to remove those commands by overriding them ?

Reply via email to