David Kastrup
Tue, 16 Mar 2010 03:45:59 -0700
Brendana The Sims <fantis...@hotmail.com> writes: > Normally preview-latex seems to print equations in the colour set in > preview-appearance: preview reference face: foreground. (Henceforth > known as the proper colour) > > However when using the eqnarray mode only the first equation appears > in this colour, its equation number appears in black and all > subsequent equations and equation numbers appear in black. > > Using eqnarray* gives all of the equations in the proper colour, as > does using an array or matrix in equation mode. The equation number in > the equation mode is in the proper colour as well. > > So something funny seems to be happening with the way equation numbers > are handled for multiline equations that always leads to them being > printed to the screen in black. Do you have any idea why this happens > and how I can fix it?
You likely use color.sty or something similar. This will reset the colors to the document colors at places that LaTeX considers appropriate. Since preview.sty really has no good way to distinguish which colors are set by such document mechanisms, and which colors are set on purpose in graphical inclusions, it can't do much better than set the drawing colors at the start of the preview and not mess with them afterwards. It is likely that using a different color engine (dvips, dvipdf, various color packages and helpers) yields different results. Please note that preview coloring has been for years on the "this is impossible to do different than in the printed document" tab until I got tired of people complaining with non black-on-white frame colors. I doubt that this can be "fixed" with reasonable effort, since guesswork is involved. It would probably entail messing with colors inside of preview.sty at the LaTeX level: right now the color changes are done purely in PostScript by setting up initial drawing colors. -- David Kastrup _______________________________________________ auctex mailing list auctex@gnu.org http://lists.gnu.org/mailman/listinfo/auctex