37 votes
Accepted

Blend/transparency styles in pstricks and TikZ

Both pstricks and PGF/TikZ can produce all the required blend modes. However it seems that pstricks.tex in TeXLive 2013 (a) only defines some of the blend modes supported by ghostscript (at least from ...
user avatar
  • 68.9k
26 votes
Accepted

How to set up beamer to grey out past items but hide future items?

From the beamer manual, section 17.6 (Transparency Effects), use \setbeamercovered to set the default cover behavior, and override it for old items with the again covered option. \documentclass{...
user avatar
  • 19.8k
26 votes
Accepted

pgf's and pstricks's opacity is not working

Ghostscript-9.52 introduced new operators for setting fill and stroke opacity (.setconstantfillopacity, .setconstantstrokeopacity), deprecating the hitherto existing .setopacityalpha. Starting with GS ...
user avatar
  • 50.9k
22 votes
Accepted

Text reflection effect

Here is a solution: \documentclass[tikz,margin=2mm]{standalone} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture} \def\mytext{Reflec\textcolor{red}{t}ion} \tikzset{mynode/.style={...
user avatar
  • 67.8k
19 votes

Relative transparency in TikZ?

This is done via transparency groups and relies mostly on PDF rendering so sometimes it might go awry. Here is an example that within the scope everything is as usual overprinting with respect to ...
user avatar
  • 154k
17 votes

Multiple PDFs with page group included in a single page warning

Martin Schröder has done a wonderful job of explaining the underlying cause, so I won’t repeat that here. Other than telling pdfLaTeX to shut up, the solution would be to remove/strip the page groups ...
user avatar
14 votes
Accepted

Including an image with a faded border

Here is an attempt with TikZ, using the calc and fadings libraries. The code is heavily inspired by some drop-shadow work done by Caramdir at Faded drop-shadow using tikz-based rounded rectangle? I ...
user avatar
  • 28.1k
14 votes
Accepted

TikZ, transparency and PDF/A

pgf stores the blend mode in an array, that is allowed (but deprecated in pdf 2.0) but the validator seems not to like it. You can patch the command to use only a name: \usepackage{etoolbox} \...
user avatar
13 votes

Inkscape SVG with opacity exported to PDF in pdflatex document not displayed correctly on Mac OS X

I have seen this problem as well if Inkscape images are embedded via pdflatex and then displayed on on a PDFKit-based viewer. (PDFKit is the built-in PDF rendering engine of OS X and used by Skim, ...
user avatar
  • 36.4k
13 votes
Accepted

Tikz and ctable incompatibility, gives error when printing

Package ctable loads package transparent. Both package transparent and tikz implements transparency. This needs access to a page resource, a dictionary ExtGState for the transparent values. Unhappily, ...
user avatar
12 votes
Accepted

Tikz opacity does not work with beamer, works for article

Removing pst-node solves the issue. Don't collect packages - look for another collecting passion, I heard stamps are good to collect. Or maybe this: Borrowed from @PauloCereda, I hope you don't mind....
user avatar
11 votes
Accepted

tikz: opacity of colours

Apparently you need to define a fading with the transparency first: \documentclass[tikz,margin=1pt]{standalone} \usetikzlibrary{fadings} \tikzfading [name = viesturs fading, inner color = ...
user avatar
  • 1,452
10 votes
Accepted

Generating a transparent image from LaTeX

You have multiple options to create a Scalable Vector Graphics (SVG) image, or a raster Portable Network Graphics (PNG) file from the compiled PDF. For creating an SVG from the PDF file I'd recommend ...
user avatar
  • 4,629
10 votes
Accepted

Pgfplots plot transparency does not work

I am using TeXLive 2016, and I think I got exactly the opacity you wanted with your code: \documentclass{memoir} \usepackage{tikz,pgfplotstable} \begin{document} \begin{tikzpicture} \...
user avatar
  • 4,439
10 votes
Accepted

Vary transparency of colorbox in a sentence

In the comments with the OP, it would appear that transparency was just the means, but not the ends of the question. I propose merely using different colorbox colors as the means. It does not have ...
user avatar
9 votes
Accepted

Invisible and unselectable text

LaTeX has an undocumented but very useful feature: \phantom{text} \hphantom{text} \vphantom{text} will create “phantoms”; they occupy the same space of text, but \hphantom just for the width (no ...
user avatar
  • 984k
9 votes
Accepted

pgfplots mark opacity

Using simply draw opacity=0 works perfectly fine for me. \begin{filecontents}{data.dat} 0 0 0.25 0.25 0.5 0.5 0.75 0.75 1 1 \end{filecontents} \documentclass[border=5pt]{standalone} \usepackage{...
user avatar
9 votes
Accepted

Fill object in TikZ and make area transparent

You could do the whole picture as a fading 🙃 \documentclass[border=5]{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \begin{tikzfadingfrompicture}[name=figure] \foreach \x in {0,...,5} \...
user avatar
  • 68.9k
9 votes

Cross out words with TikZ: line opacity

It is enough to draw the cross in a single path instead of two: \draw[red,draw opacity=0.5, line width=1.5pt] (A.north west) -- (A.south east) (A.south west) -- (A.north east); \documentclass{...
user avatar
  • 23.2k
8 votes
Accepted

PNG as a background?

You just have to run pdflatex twice for the transparency to kick in for your original tex source. The package actually prints out a message to say that when you run it the first time.
user avatar
8 votes

Good way of ignoring \draw, \fill or \node

\documentclass[tikz,margin=5pt]{standalone} \begin{document} \begin{tikzpicture} \draw (0,0) rectangle (10,10); \draw[draw=none] (0,0) -- (2,2); \draw[draw=none] (0,1) -- (2,3); \node[font=\nullfont]...
user avatar
8 votes
Accepted

How to create invisible item in Beamer Overlays case by case?

\invisible is your new friend \documentclass{beamer} \setbeamercovered{transparent} \begin{document} \begin{frame}{Programming Basics} \texttt{Comments are followed by \underline{\hspace{2cm}}} ...
user avatar
8 votes
Accepted

How can I create a transparent background in a logo?

The background of tikzpictures is transparent by default. Avoid filling it and it stays that way. Here's a demonstration, with TeX fonts and images available in all standard distributions substituted ...
user avatar
  • 183k
8 votes

Fill object in TikZ and make area transparent

Disclaimer: Horrible, horrible hack. Please, forgive me, consider it only as a proof of concept... The output: The trick: Draw (without actually drawing it) the star, including the numbered nodes ...
user avatar
  • 54.4k
8 votes
Accepted

LuaTeX/PdfTeX: Incorrect transparency for fonts with overlapping glyphs -- achieve effect similar to Adobe InDesign/Tikz in text mode

This is not a solution to this question, and is being posted here only to showcase what can be achieved with tikz/pgf (as instructed in question). Update: PGF only answer Here's an optimised solution ...
user avatar
  • 23.6k

Only top scored, non community-wiki answers of a minimum length are eligible