[Pkg-lyx-devel] Bug#516017: lyx: undefined textcolor used with English / Hebrew documents
Celejar
celejar at gmail.com
Wed Feb 18 21:03:35 UTC 2009
Package: lyx
Version: 1.6.1-1
Severity: normal
When mixing Hebrew and English text in a footnote to Hebrew text in an English
document, LyX sometimes writes bad latex; it writes:
\textcolor{foreground}{\small{} }
which fails, since it doesn't define foreground.
I'm attaching a test LyX file which illustrates the problem, and the bad latex
created.
The problem seems to occur when the footnote to Hebrew text is begun in Hebrew,
the keymap is then switched as per the standard configuration via F12, and
English text is then entered.
-- System Information:
Debian Release: 5.0
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: i386 (i686)
Kernel: Linux 2.6.29-rc3-wl-lizzie
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
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-regex1.34.1 1.34.1-15 regular expression library for C++
ii libboost-signals1.34.1 1.34.1-15 managed signals and slots library
ii libc6 2.7-18 GNU C Library: Shared libraries
ii libgcc1 1:4.3.3-4 GCC support library
ii libqtcore4 4.4.3-2 Qt 4 core module
ii libqtgui4 4.4.3-2 Qt 4 GUI module
ii libstdc++6 4.3.3-4 The GNU Standard C++ Library v3
ii libx11-6 2:1.1.5-2 X11 client-side library
ii lyx-common 1.6.1-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 convert DVI files to PNG graphics
ii evince [pdf-viewer] 2.22.2-4 Document (postscript, pdf) viewer
ii imagemagick 7:6.3.7.9.dfsg1-3 image manipulation programs
ii latex-xft-fonts 0.1-8 Xft-compatible versions of some La
ii preview-latex-style 11.83-7.3 extraction of elements from LaTeX
ii psutils 1.17-26 A collection of PostScript documen
ii texlive-fonts-recommen 2007.dfsg.1-5 TeX Live: Recommended fonts
ii texlive-latex-extra 2007.dfsg.16-1 TeX Live: LaTeX supplementary pack
ii texlive-latex-recommen 2007.dfsg.1-5 TeX Live: LaTeX recommended packag
ii xpdf-reader [pdf-viewe 3.02-1.4 Portable Document Format (PDF) sui
Versions of packages lyx suggests:
pn chktex <none> (no description available)
ii cups-bsd [lpr] 1.3.9-14 Common UNIX Printing System(tm) -
ii cups-client 1.3.9-14 Common UNIX Printing System(tm) -
ii dillo [www-browser] 0.8.6-3 Small and fast web browser
pn dvipost <none> (no description available)
ii epiphany-gecko [www-browser] 2.22.3-9 Intuitive GNOME web browser - Geck
pn gnuhtml2latex <none> (no description available)
ii groff 1.18.1.1-21 GNU troff text-formatting system
ii iceweasel [www-browser] 3.0.6-1 lightweight web browser based on M
pn latex2rtf <none> (no description available)
pn libtiff-tools <none> (no description available)
ii links2 [www-browser] 2.2-1 Web browser running in both graphi
pn linuxdoc-tools <none> (no description available)
ii menu 2.1.41 generates programs menu for all me
pn noweb <none> (no description available)
pn rcs <none> (no description available)
pn sgmltools-lite <none> (no description available)
ii tex4ht 20080701-2 LaTeX and TeX for Hypertext (HTML)
ii w3m [www-browser] 0.5.2-2+b1 WWW browsable pager with excellent
pn writer2latex <none> (no description available)
pn wv <none> (no description available)
-- no debconf information
*** /home/yitzhak/lyx-bad-color.lyx
#LyX 1.6.1 created this file. For more info see http://www.lyx.org/
\lyxformat 345
\begin_document
\begin_header
\textclass article
\use_default_options true
\language english
\inputencoding auto
\font_roman default
\font_sans default
\font_typewriter default
\font_default_family default
\font_sc false
\font_osf false
\font_sf_scale 100
\font_tt_scale 100
\graphics default
\paperfontsize default
\use_hyperref false
\papersize default
\use_geometry false
\use_amsmath 1
\use_esint 1
\cite_engine basic
\use_bibtopic false
\paperorientation portrait
\secnumdepth 3
\tocdepth 3
\paragraph_separation indent
\defskip medskip
\quotes_language english
\papercolumns 1
\papersides 1
\paperpagestyle default
\tracking_changes false
\output_changes false
\author ""
\end_header
\begin_body
\begin_layout Standard
Here's some English text.
\end_layout
\begin_layout Standard
\lang hebrew
כאן יש חומר בעברית.
\begin_inset Foot
status open
\begin_layout Plain Layout
\lang hebrew
עברית
\family roman
\series medium
\shape up
\size small
\emph off
\bar no
\noun off
\color foreground
\family default
\series default
\shape default
\size normal
\emph default
\bar default
\noun default
\color none
\lang english
and English
\end_layout
\end_inset
\end_layout
\end_body
\end_document
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lyx-bad-color.tex
Type: text/x-tex
Size: 491 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/pkg-lyx-devel/attachments/20090218/f96d5b69/attachment.tex
More information about the Pkg-lyx-devel
mailing list