I have a document set up with a number of pictures with a set transparency like this

\begin{figure}[ht]
  \transparent{0.4} 
  \includegraphics[width=50mm,scale=0.5]{2.png}
\end{figure}

I then tried to put in a figure I made using LaTeX Draw. (It's the first time I've used this program)

It requires the pstricks package to display the figures it creates. The problem is, now I get errors at every instance of transparency in the existing figures. These are all the libraries I'm using

\usepackage[utf8]{inputenc}
\usepackage{color}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{graphicx}
\usepackage{pstricks}
\usepackage{transparent}

I'm pretty new to latex so I don't totally understand how the packages work but it seems like pstricks is somehow blocking transparency from working? How can I fix this? Is there a way to say "use this package only here and nowhere else"? or do the packages necessarily apply to the whole document?

  • 1
    Welcome to TeX SX! I don't know if there's a conflict, but do you know pstricks has anopacity=… key, which you may set with \psset? – Bernard Nov 10 '16 at 10:11

Your Answer

 

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.