Angus Leeming <[EMAIL PROTECTED]> writes:

> On Monday 01 July 2002 8:37 pm, David Kastrup wrote:
> > One solution: after loading the package preview, issue
> > \AtBeginDocument{\AtBeginDvi{%
> >   \special{!userdict begin/bop-hook{//bop-hook exec
> >      <343434656565>{255 div}forall setrgbcolor
> >      clippath fill setrgbcolor}bind def end}}}
> >
> > Where the 343434656565 is the rrggbbrrggbb hex string for foreground
> > and background.
> 
> David, you're obviously a wizard.

An absent-minded one, at best.  My first suggestions did not work at
all.  I am glad that this finally did it (I have to admit that I
didn't actually test it, either).  But it's really very
straightforward PostScript.  Hard to do this any simpler.

> This works beautifully.

Well, it makes the source file singularly ugly and cryptic (ok, it
probably is not intended for human consumption, anyway).  I think that
eventually we will have a proper interface for the basic color setup
in preview.sty (I would want to avoid using color.sty if possible,
although trying not to interfere with its operation in case the
document uses colors) instead of doing it by hand per image as we
currently do in preview-latex (the first PDFLaTeX enabled version of
preview-latex will need this kind of stuff, too, mainly because I
would not know how to deal with daemon mode operation for GhostScript
on PDF files, since I have no clue at all concerning PDF).

But I think it should be reasonably easy to ensure that the above will
keep working fine even when a proper interface becomes available
eventually.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum
Email: [EMAIL PROTECTED]


Reply via email to