I am using Linux (Ubuntu 9.02) and the version of Lyx that comes with it, namely Lyx 1.6.2. Except for resumes and letters I haven't used Lyx much since about 2003. I am now trying to revive a couple of papers I wrote in Lyx in 2002. I have not modified the Lyx files from 2002. But I am having problems with floats. I assume the problem is something trivial that I have missed relating to a change to Lyx (or Linux or Latex) since 2002.
Any suggestions would be much appreciated. Ralph Boland Appended is the first few lines of the Tex file generated by Lyx. The problem is with the lines: \floatstyle{} \newfloat{}{}{} \floatname{}{} \floatstyle{} \newfloat{}{}{} \floatname{}{} Each of these lines generates an error when I do a ctrl-T in Lyx to view the document in pdf or run latex on the .tex file the command line. (I generated the .tex file by doing a export to pdflatex.) For example the first line generates the error in Lyx: \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. Similarly the second line generates the error in Lyx: \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. I tried adding the line: \usepackage{floatflt} in the Lyx preamble but it didn't help. I tried directly inserting it into the .tex file above the offending lines but that didn't help either. The output from the " latex file.tex" command is as follows: latex srch55.tex This is pdfTeXk, Version 3.141592-1.40.3 (Web2C 7.5.6) %&-line parsing enabled. entering extended mode (./srch55.tex LaTeX2e <2005/12/01> Babel <v3.8h> and hyphenation patterns for english, usenglishmax, dumylang, noh yphenation, arabic, farsi, croatian, ukrainian, russian, bulgarian, czech, slov ak, danish, dutch, finnish, basque, french, german, ngerman, ibycus, greek, mon ogreek, ancientgreek, hungarian, italian, latin, mongolian, norsk, icelandic, i nterlingua, turkish, coptic, romanian, welsh, serbian, slovenian, estonian, esp eranto, uppersorbian, indonesian, polish, portuguese, spanish, catalan, galicia n, swedish, ukenglish, loaded. (/home/rocky/texmf/tex/generic/thesisChapter.cls Document Class: thesisChapter 2000/05/15 Ralph Boland thesis class (/usr/share/texmf-texlive/tex/latex/amscls/amsbook.cls Document Class: amsbook 2004/08/06 v2.20 (/usr/share/texmf-texlive/tex/latex/amsmath/amsmath.sty For additional information on amsmath, use the `?' option. (/usr/share/texmf-texlive/tex/latex/amsmath/amstext.sty (/usr/share/texmf-texlive/tex/latex/amsmath/amsgen.sty)) (/usr/share/texmf-texlive/tex/latex/amsmath/amsbsy.sty) (/usr/share/texmf-texlive/tex/latex/amsmath/amsopn.sty)) (/usr/share/texmf-texlive/tex/latex/amsfonts/umsa.fd) (/usr/share/texmf-texlive/tex/latex/amsfonts/amsfonts.sty))) (/usr/share/texmf-texlive/tex/latex/base/fontenc.sty (/usr/share/texmf-texlive/tex/latex/base/t1enc.def)) (/usr/share/texmf-texlive/tex/latex/base/inputenc.sty (/usr/share/texmf-texlive/tex/latex/base/latin1.def)) (/usr/share/texmf-texlive/tex/latex/geometry/geometry.sty (/usr/share/texmf-texlive/tex/latex/graphics/keyval.sty) (/usr/share/texmf-texlive/tex/xelatex/xetexconfig/geometry.cfg)) (/usr/share/texmf-texlive/tex/latex/tools/verbatim.sty) (/usr/share/texmf-texlive/tex/latex/graphics/graphicx.sty (/usr/share/texmf-texlive/tex/latex/graphics/graphics.sty (/usr/share/texmf-texlive/tex/latex/graphics/trig.sty) (/etc/texmf/tex/latex/config/graphics.cfg) (/usr/share/texmf-texlive/tex/latex/graphics/dvips.def))) (/usr/share/texmf-texlive/tex/latex/setspace/setspace.sty Package: `setspace' 6.7 <2000/12/01> ) ! Undefined control sequence. l.19 \floatstyle {} ? Here is the start of the file.tex file generated by Lyx: ============================================= %% LyX 1.6.2 created this file. For more info, see http://www.lyx.org/. %% Do not edit unless you really know what you are doing. \documentclass[12pt,twoside,english]{thesisChapter} \usepackage[T1]{fontenc} \usepackage[latin1]{inputenc} \usepackage[letterpaper]{geometry} \geometry{verbose,tmargin=1in,bmargin=1in,lmargin=1.5in,rmargin=1in} \pagestyle{headings} \usepackage{verbatim} \usepackage{graphicx} \usepackage{setspace} \doublespacing %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands. %% A simple dot to overcome graphicx limitations \newcommand{\lyxdot}{.} \floatstyle{} \newfloat{}{}{} \floatname{}{} \floatstyle{} \newfloat{}{}{} \floatname{}{} %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% Textclass specific LaTeX commands. \numberwithin{section}{chapter} \theoremstyle{plain} \newtheorem{thm}{Theorem}[section] \numberwithin{equation}{section} %% Comment out for sequentially-numbered \numberwithin{figure}{section} %% Comment out for sequentially-numbered \theoremstyle{plain} \newtheorem{problem}[thm]{Problem} \theoremstyle{plain} \newtheorem{observation}[thm]{Observation} \newenvironment{algkey}[1] {\begin{list}{} {\settowidth{\labelwidth}{#1} \setlength{\leftmargin}{\labelwidth} \addtolength{\leftmargin}{\labelsep} \setlength{\topsep}{\parsep} \renewcommand{\makelabel}[1]{##1\hfil}}} {\end{list}} \usepackage{algolyx} \theoremstyle{plain} \newtheorem{lem}[thm]{Lemma} %%Delete [thm] to re-start numbering \theoremstyle{plain} \newtheorem{prop}[thm]{Proposition} %%Delete [thm] to re-start numbering \theoremstyle{definition} \newtheorem{constraint}[thm]{Constraint} \theoremstyle{plain} \newtheorem{cor}[thm]{Corollary} %%Delete [thm] to re-start numbering %%%%%%%%%%%%%%%%%%%%%%%%%%%%%% User specified LaTeX commands. \makeatletter %\usepackage{showkeys} \usepackage{color} \usepackage{epsfig} %\usepackage{floatflt} %\usepackage{mssymb} \usepackage{amssymb} %\usepackage{stmaryrd} \usepackage{algorithm} \usepackage{algorithmic} ...