On Sat, Jan 12, 2008 at 02:09:00AM -0500, rgheck wrote: >> I just downloaded and installed LyX via the Windows installer. I've used >> LaTeX before (not recently), but never LyX. In playing around with the LyX >> Tutorial, I find that after changing some text to red or green and then >> generating DVI, I get errors such as this, >> LaTeX Error: Undefined color `RED' >> with this explanation when I click on the message (yes, the explanation >> really does refer to green, not red, notwithstanding the message above): >> \chapter >> {\textcolor{green}{Getting started with \LyX{}}} >> You're in trouble here. Try typing <return to proceed. >> If that doesn't work, type X <return to quit. >> [snip] >> The resulting DVI has the appropriate colors on the appropriate text, so >> I don't >> know what the LaTeX errors are complaining about. > > This is a weird problem. It's got something to do---I don't know what, > yet---with the way LyX is handling "LyX" and "LaTeX". These get converted > to custom macros, and they are not playing nice for some reason with > \textcolor. I'm cc'ing this to the devel list so someone will take care of > it, or at least explain it.
Note also that you're in a chapter header here. Richard, you may want to look at how the \protect mechanism works here. >> Furthermore, I find that I have to wait at least 10 seconds for Yap to >> update >> its display after generating new DVI, and this is on what should be a >> pretty >> fast machine: a dual-core newish Thinkpad with 2GB of RAM. Sometimes >> I've had to wait over 30 seconds for Yap to update. > > You don't say which documents you are compiling. Even on my spankin' new > quad core monster, the Extended Features manual can take a while to > compile. This is a LaTeX thing. Given the references, figures, and stuff, > there's a lot to do. LaTeX runs three times, at least. (If you launch LyX > from a terminal, you can see what's going on.) If you were really going to > write something as long as that manual, it'd be a good idea to break it up > into chunks. I suppose that one's not broken up because it's intended to be > readable online, via the Help menu. Anyway, it depends on what you are > doing. And I guess it depends upon Yap. Maybe it's slow as dirt? What do > other people use around here? Anyone? (I'm on Linux.) > > It'd be nice if compiling happened in the background. I know that's on > several people's radar, but no-one has gotten to it. It's only slow the first time, and only if generating pixel fonts (which is usually the case for DVI IIUC). With PDF and/or PostScript outline fonts (and also second and later runs), mo speed problem (for me). - Martin