I have a document that will not compile on one computer but will on two others. Clearly the problem is with the computer. I recently had my hard drive replaced and the OS (Windows 7) reinstalled along with LyX 2.06, MiKTeX 2.9. The main problem is that the new installation does not recognize the control sequences "
\lyxadded
" and "\lyxdeleted
." When I compile the document from LyX, I get many "Undefined control sequence" messages, an example of which is:Code: Select all
... \ref{cha:Model-evaluation-and}\lyxadded
{Tom Loughin}{Sat Oct 26 1...
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.
\lyxadded
and \lyxdeleted
.The LaTeX export has the following possibly relevant preamble:
Code: Select all
\documentclass[oneside,english]{book}
\usepackage[T1]{fontenc}
\usepackage[latin9]{inputenc}
\usepackage{listings}
\setcounter{secnumdepth}{3}
\setcounter{tocdepth}{3}
\usepackage{xcolor}
\usepackage{pdfcolmk}
\usepackage{varioref}
\usepackage{amsbsy}
\usepackage{amstext}
\usepackage{graphicx}
\usepackage[authoryear]{natbib}
\PassOptionsToPackage{normalem}{ulem}
\usepackage{ulem}
\usepackage{subscript}
\makeatletter
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% LyX specific LaTeX commands.
\providecolor{lyxadded}{rgb}{0,0,1}
\providecolor{lyxdeleted}{rgb}{1,0,0}
%% Change tracking with ulem
\DeclareRobustCommand{\lyxadded}[3]{{\color{lyxadded}{}#3}}
\DeclareRobustCommand{\lyxdeleted}[3]{{\color{lyxdeleted}\sout{#3}}}
The problem originally existed with one error in a document that actually had no visibly tracked changes, because they had all been accepted. Clicking on the error in the "LaTeX Errors" popup did not take me to any error, and It was detected even though it does not appear in the LaTeX export! Now that some additional tracked changes have been made, these are showing up in the LaTeX export and causing more errors.
I have compared the local settings on the problem computer with one of the ones where the document compiles. The main difference I could find is that the other computer is running LyX 2.0.3. There may have been other things that escaped me (not especially helpful, I realize).
Suggestions on where to look to locate the problem are much appreciated.