ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Help : pdf figure is black !
@ 2003-03-04 10:29 Maurice Diamantini
  2003-03-04 14:06 ` Jens-Uwe Morawski
  2003-03-04 20:43 ` Hans Hagen
  0 siblings, 2 replies; 4+ messages in thread
From: Maurice Diamantini @ 2003-03-04 10:29 UTC (permalink / raw)



Bonjour à tous,

I'm trying to switch from Latex + pstrick to latex3 and Metapost 
(alias context :-)

For now, I'm trying to reproduice a Latex + Seminar + pstricks slides.

Before to switch to Metapost, I'd like to include the pstricks figure 
as pdf external file (from eps file)
The figure is OK and I can see it with xpdf or acroreqad.

But when I use it in ConText, the background is all black.
I've been unable to play whith the  various option :

    2
    \externalfigure
        [01-problematique.pst.pdf]
        [width=0.4\textwidth,
         % bfactor=0.9,
         % raster=0.9,
         background=screen,
         % background=color,
         backgroundscreen=1.0,
         backgroundcolor=yellow,
        ]
    3

Any idea ?

P.S.
I think that the "Context" name is a bad choice, because it's
difficult to find on the web (to much pages are found)
It would be better to name it "ConTeX" !

Maurice.


-- 
Maurice.Diamantini@ensta.fr      -       ENSTA/LMA
École Nationale Supérieure  de  Techniques Avancées
 Laboratoire    de     Mathématiques    Appliquées 
     http://www.ensta.fr/~diam

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: Help : pdf figure is black !
@ 2003-03-05 15:14 Maurice Diamantini
  0 siblings, 0 replies; 4+ messages in thread
From: Maurice Diamantini @ 2003-03-05 15:14 UTC (permalink / raw)
  Cc: Maurice Diamantini


Jens-Uwe Morawski said :

> > - ucp_context_test.pdf :
> >   the first try whith context and all the black figures
> >
>
> only xpdf has the problem with black backgrounds. Using Acrobat Reader
> 5.0.5 or GhostScript everything is fine.

Yes !
xpdf show the pdf figure well, but not the figure in de pdf
file generated by ConTeXt!
No problem with gv nor with acroread :

Thank you very much!


Hans Hagen said:

> \setupcolors[state=start]
> .... [background=color,backgroundcolor=white]
>
> should work ok

It does change anything (see the bug from xpdf)


Hans Hagen said:

> btw, there is a module m-pstricks that some of the users on this
> list are using that you can use to directly include pstricks code.

Thank you: so I find the .../cont-tmf/tex/context/base/m-pstric.tex file
and tried the following code.

    \Topic{Test intégrant du pstricks }
    
    % pstric
    % \startPSTRICKS[offset=2pt] ... \stopPSTRICKS
    
    works in both dvi and pdf mode
    \usemodule[pstric]
    
    A--
    \startPSTRICKS
      \pspicture(0,0)(10,10)
        \dorecurse{10}{\psline(0,0)(\recurselevel,10)}
        \dorecurse{10}{\psline(0,0)(10,\recurselevel)}
      \endpspicture
    \stopPSTRICKS
    --B

But for now, it doesn't work 
(but it doesn't mater as I can import pdf file)



--
Maurice.Diamantini@ensta.fr      -       ENSTA/LMA
École Nationale Supérieure  de  Techniques Avancées
 Laboratoire    de     Mathématiques    Appliquées
     http://www.ensta.fr/~diam

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2003-03-05 15:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-03-04 10:29 Help : pdf figure is black ! Maurice Diamantini
2003-03-04 14:06 ` Jens-Uwe Morawski
2003-03-04 20:43 ` Hans Hagen
2003-03-05 15:14 Maurice Diamantini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).