Re: Latex output of xfig
On Wed, Jan 26, 2005 at 01:03:29PM -0700, LB wrote: > Hello, > > When I generate Latex part (.pstex_t) of a xfig picture, xfig inserts: > \color[rgb]{0,0,0} in front of every line of text in the pstex_t document. > Lyx seem to have a problem with \color[rgb]{0,0,0}. As soon as edit > .pstex_t file and remove \color[rgb]{0,0,0} Lyx becomes happy again. > > Is there a way of making Lyx understand .pstex_t file with that color > command in it? Quick & dirty: Define \def\color[#1]#2{} in your preamble - or better: surrounded by ERT "{ \def\color..." ERT "}". Andre'
Re: Latex output of xfig
Angus Leeming wrote: Is there a way of making Lyx understand .pstex_t file with that color command in it? Add \usepackage{color} to your preamble. should be \usepackage{xcolor} to your preamble. better color support and with tables \usepackage[table]{xcolor} Herbert -- http://TeXnik.de/ http://PSTricks.de/ ftp://ftp.dante.de/tex-archive/info/math/voss/Voss-Mathmode.pdf http://www.dante.de/faq/de-tex-faq/ http://www.tex.ac.uk/cgi-bin/texfaq2html?introduction=yes
Re: Latex output of xfig
LB wrote: > Hello, > > When I generate Latex part (.pstex_t) of a xfig picture, xfig inserts: > \color[rgb]{0,0,0} in front of every line of text in the pstex_t > document. > Lyx seem to have a problem with \color[rgb]{0,0,0}. As soon as edit > .pstex_t file and remove \color[rgb]{0,0,0} Lyx becomes happy again. > > Is there a way of making Lyx understand .pstex_t file with that color > command in it? Add \usepackage{color} to your preamble. -- Angus