>>>>> "Ernesto" == Ernesto Jardim <[EMAIL PROTECTED]> writes:

Ernesto> Hi, I'm using a document class nrc1 with the layout attach
Ernesto> below and I'm getting this error when I run latex.

Ernesto> Undefined control sequence. \[

Ernesto> It's a bit odd to me because it's a standard latex command
Ernesto> but I'm not a latex guru so it puzles me how to solve this.

Hello Ernesto,

Could you send a LyX file that shows the problem?

Concerning the packages that get added to the preamble, I have a few
remarks:

These packages are already used by LyX as needed. You should not need
to specify them.

  \usepackage{graphicx}
  \usepackage{amsmath}
  \usepackage{amssymb}
  \usepackage{babel}

This command is probably not useful, as amsmath provides the
equivalent \boldmath:
  \usepackage{bm}

These packages may be useful but maybe only in some cases. They should
probably be used in the preamble of the document.

  \usepackage{dcolumn}
  \usepackage{url}
  \NRCurl{url}
  \usepackage{array}

This is probably useful:

  \renewcommand{\topfraction}{.95}
  \renewcommand{\textfraction}{.05}
  \renewcommand{\floatpagefraction}{.95}
  \numberby {equation}{section}
  \setcounter{equation}{0}

These macros really look like something people _may_ want to use, but
that are not really required:

  \newcommand{\PreserveBackslash}[1]{\let\temp=\\#1\let\\=\temp}
  \let\PBS=\PreserveBackslash
  \let\p=\phantom
  \let\mc=\multicolumn
  \newcommand\T{\rule{0pt}{2.6ex}}
  \newcommand\B{\rule[-1.2ex]{0pt}{0pt}}


In general, I think nothing should be added to the preamble of the
layout file, but rather in the preamble of a template, so that people
can modify the code.

JMarc

Reply via email to