[Pkg-lyx-devel] Bug#588448: lyx: ERT code produces error

Mauro Darida mauro.darida at istruzione.it
Thu Jul 8 13:47:41 UTC 2010


Package: lyx
Version: 1.5.5-1
Severity: normal

When inserting the following ERT code:

\newcommand*\mygraybox[1]{%
\colorbox{lightgrey}{#1}}
\begin{empheq}[box=%
\mygraybox]{align*}
a &= b \\
E &= mc^2 + \int_a^a x\, dx
\end{empheq} 

in my document I get from lyX the following error:
LaTeX error: Something's wrong--perhaps a missing \item

The only difference with a working document is the ERT code above and some additions in my preamble:
\usepackage{empheq}
\usepackage{svgcolor}

This ERT code is reported to work in LaTeX and is often cited as an example.

-- System Information:
Debian Release: 5.0.5
  APT prefers stable
  APT policy: (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.26-2-686 (SMP w/1 CPU core)
Locale: LANG=en_IE at euro, LC_CTYPE=en_IE at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages lyx depends on:
ii  libaiksaurus-1.2-0c2a  1.2.1+dev-0.12-6  an English-language thesaurus (dev
ii  libaspell15            0.60.6-1          GNU Aspell spell-checker runtime l
ii  libboost-filesystem1.3 1.34.1-14         filesystem operations (portable pa
ii  libboost-regex1.34.1   1.34.1-14         regular expression library for C++
ii  libboost-signals1.34.1 1.34.1-14         managed signals and slots library 
ii  libc6                  2.7-18lenny4      GNU C Library: Shared libraries
ii  libgcc1                1:4.3.2-1.1       GCC support library
ii  libqtcore4             4.4.3-1+lenny1    Qt 4 core module
ii  libqtgui4              4.4.3-1+lenny1    Qt 4 GUI module
ii  libstdc++6             4.3.2-1.1         The GNU Standard C++ Library v3
ii  libx11-6               2:1.1.5-2         X11 client-side library
ii  lyx-common             1.5.5-1           Architecture-independent files for
ii  mime-support           3.44-1            MIME files 'mime.types' & 'mailcap
ii  xdg-utils              1.0.2-6.1         desktop integration utilities from
ii  zlib1g                 1:1.2.3.3.dfsg-12 compression library - runtime

Versions of packages lyx recommends:
ii  dvipng          1.11-1+lenny1            convert DVI files to PNG graphics
ii  ghostscript [po 8.62.dfsg.1-3.2lenny1    The GPL Ghostscript PostScript/PDF
ii  gv [postscript- 1:3.6.5-2                PostScript and PDF viewer for X
ii  imagemagick     7:6.3.7.9.dfsg2-1~lenny3 image manipulation programs
ii  kghostview [pos 4:3.5.9-3+lenny3         PostScript viewer for KDE
ii  kpdf [pdf-viewe 4:3.5.9-3+lenny3         PDF viewer for KDE
ii  latex-xft-fonts 0.1-8                    Xft-compatible versions of some La
ii  preview-latex-s 11.83-7.3                extraction of elements from LaTeX 
ii  psutils         1.17-26                  A collection of PostScript documen
ii  texlive-fonts-r 2007.dfsg.2-1~lenny2     TeX Live: Recommended fonts
ii  texlive-latex-r 2007.dfsg.2-1~lenny2     TeX Live: LaTeX recommended packag
ii  xpdf-reader [pd 3.02-1.4+lenny2          Portable Document Format (PDF) sui
ii  xpdf-utils [pdf 3.02-1.4+lenny2          Portable Document Format (PDF) sui

Versions of packages lyx suggests:
ii  chktex         1.6.3-2                   Finds typographic errors in LaTeX
ii  cups-bsd [lpr] 1.3.8-1+lenny8            Common UNIX Printing System(tm) - 
ii  cups-client [c 1.3.8-1+lenny8            Common UNIX Printing System(tm) - 
ii  cupsys-client  1.3.8-1+lenny8            Common UNIX Printing System (trans
ii  dvipost        1.1-3                     Post processor for dvi files suppo
ii  gnuhtml2latex  0.3-4                     A Perl script that converts html f
ii  groff          1.18.1.1-21               GNU troff text-formatting system
ii  hevea          1.10-5                    translates from LaTeX to HTML, inf
ii  iceweasel [www 3.0.6-3                   lightweight web browser based on M
ii  konqueror [www 4:3.5.9.dfsg.1-6+lenny1   KDE's advanced file manager, web b
ii  latex2html     2002-2-1-20050114-6       LaTeX to HTML translator
pn  latex2rtf      <none>                    (no description available)
ii  libtiff-tools  3.8.2-11.2                TIFF manipulation and conversion t
ii  linuxdoc-tools 0.9.56                    convert LinuxDoc SGML source into 
ii  lynx-cur [www- 2.8.7dev9-2.1             Text-mode WWW Browser with NLS sup
ii  menu           2.1.41                    generates programs menu for all me
pn  noweb          <none>                    (no description available)
ii  rcs            5.7-23                    The GNU Revision Control System
ii  sgmltools-lite 3.0.3.0.cvs.20010909-15.1 convert DocBook SGML source into H
ii  texlive-latex- 2007.dfsg.17-1~lenny02    TeX Live: LaTeX supplementary pack
pn  writer2latex   <none>                    (no description available)
ii  wv             1.2.4-2                   Programs for accessing Microsoft W

-- debconf information excluded





More information about the Pkg-lyx-devel mailing list