Graphics, Figures & Tables.jpg inside PStricks

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

.jpg inside PStricks

Post by justincase »

Hey

I'm tryin' to get a .jpg image inside a PSTricks image. The reason why I want to do it is, that I want to describe it with textboxes and arrows and stuff like that.

Maybe someone can help me :)

Greetings
Last edited by justincase on Fri Sep 10, 2010 7:12 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

.jpg inside PStricks

Post by CrazyHorse »

justincase wrote: I'm tryin' to get a .jpg image inside a PSTricks image. The reason why I want to do it is, that I want to describe it with textboxes and arrows and stuff like that.

Maybe someone can help me :)
as usual with package {auto-pst-pdf} and running
the document with "pdflatex -shell-escape file"

Herbert
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

.jpg inside PStricks

Post by justincase »

Okay I've made an mistake.

As I figured out in the other Thread I'm using PDFTricks to run PSTricks and I'm using the profile Latex => PS => PDF. This works just fine for PSTricks images in this environment:

Code: Select all

\begin{figure}[htb]
% New style inside the PS-Figure to set a opacity of 0 for the frameboxes
\newpsstyle{fill}{opacity=0,fillstyle=solid,fillcolor=black!30,framearc=0.3}
\centering

\begin{pdfpic}
  \begin{pspicture}(0,0)(5,5)
[...]
  \end{pspicture}
\end{pdfpic}
\end{figure}
And I'm using this package:

Code: Select all

\usepackage{ifpdf}
\ifpdf%
  \usepackage{pdftricks}
  \begin{psinputs}
    \usepackage{pstricks}
  \end{psinputs}
\else
  \usepackage{pstricks}
  \newenvironment{pdfpic}{}{}
\fi
As I said it works just fine but not if I'm trying to use a .jpg inside my PStricks environment.

Edit: Okay if anyone read this topic - I found the failure in using the pst-circ package :) Anyway, if someone know how to get the .jpg inside this environment to work I'd be happy :)
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

.jpg inside PStricks

Post by CrazyHorse »

justincase wrote: Edit: Okay if anyone read this topic - I found the failure in using the pst-circ package :) Anyway, if someone know how to get the .jpg inside this environment to work I'd be happy :)
that is not possible. Convert the image to eps.

Herbert
justincase
Posts: 25
Joined: Sat Sep 04, 2010 1:56 am

Re: .jpg inside PStricks

Post by justincase »

Yaiks, why hadn't I this idea :D

Thanks :D
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

.jpg inside PStricks

Post by localghost »

Now that the problem is solved, please be so kind and mark the topic accordingly as clearly desribed in Section 3 of the Board Rules.


Best regards
Thorsten
Post Reply