]> git.lyx.org Git - features.git/commit
lyxpreview: Simplify the color handling.
authorJulien Rioux <jrioux@lyx.org>
Mon, 3 Oct 2011 16:43:33 +0000 (16:43 +0000)
committerJulien Rioux <jrioux@lyx.org>
Mon, 3 Oct 2011 16:43:33 +0000 (16:43 +0000)
commit35b580fb30f266767938755140c9496141b297da
tree1093e6f74d853bea9efbb256fffbc618b5032f10
parent873f0f4297fc4c962893c67bf83b52669296d325
lyxpreview: Simplify the color handling.

Let's have this in trunk for testing. The real difference maker
when it comes to color is whether we use dvipng or ghostscript.

For dvipng:

  - The color info is passed as command-line arguments.

  - The tightpage option is not necessary, and since it adds
    ps specials to the output, we shouldn't use it.

For ghostscript:

  - The color info needs to be in the latex file.

  - The foreground color is set for each preview inset.

  - The background color is set by \pagecolor in the preamble,
    which is understood by pdflatex, but ignored in dvips mode.
    Thus dvips is handled with a ps special.

  - The tightpage option is necessary to crop the images.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@39797 a592a061-630c-0410-9148-cb99ea01b6c8
lib/scripts/legacy_lyxpreview2ppm.py
lib/scripts/lyxpreview2bitmap.py
src/graphics/PreviewLoader.cpp