Skip to main content
Share Your Experience: Take the 2024 Developer Survey
27 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 ...
AlexG's user avatar
  • 55.2k
22 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 ...
Rufflewind's user avatar
14 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....
samcarter_is_at_topanswers.xyz's user avatar
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} \...
Ulrike Fischer's user avatar
14 votes
Accepted

Changing opacity of included graphics without tikz

You can use the transparent package: \documentclass{article} \usepackage{graphicx,transparent} \begin{document} \includegraphics[width=0.4\textwidth]{example-image.png} \texttransparent{0.5}{\...
Ulrike Fischer's user avatar
12 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 = ...
LaTeXer's user avatar
  • 1,522
11 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 ...
Steven B. Segletes's user avatar
10 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}}} ...
samcarter_is_at_topanswers.xyz's user avatar
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} \...
CampanIgnis's user avatar
  • 4,624
10 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 ...
cfr's user avatar
  • 202k
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{...
Stefan Pinnow's 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} \...
Mark Wibrow's user avatar
  • 70.5k
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{...
AndréC's user avatar
  • 25.4k
8 votes
Accepted

TikZ: Node fill which is opaque to entities in tikzpicture but transparent to background color/image?

As @cfr said, this is viewer dependent. \documentclass[tikz]{standalone} \usepackage{pagecolor}\pagecolor{red!30} \begin{document} \begin{tikzpicture}[transparency group=knockout] \node(A)...
Symbol 1's user avatar
  • 36.9k
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.
Elisa Schaeffer's user avatar
8 votes
Accepted

svg package interfers with opacity

Update newer version of the transparent package avoid the clash and the work-around is no longer needed. Old answer The transparent package, loaded by svg, clashes with the tikz code for opacity. ...
Ulrike Fischer's user avatar
8 votes
Accepted

Transparency/Opacity of figure in a block with uncover in Beamer

I am just building on top of @samcarter great answer and making a new command \uncovergraphics for it, for simple reuse (personally I place it in my custom beamer theme): \newcommand<>{\...
PlasmaBinturong's user avatar
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 ...
JLDiaz's user avatar
  • 55.8k
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 ...
David Purton's user avatar
8 votes
Accepted

Opacity does not work on first page

If you add after your \AddToHook a \ShowHook{shipout/background} you will get -> The hook 'shipout/background': > Code chunks: > pgfrcs -> \put (\hoffset -1in,\voffset -1in){\pgfutil@...
Ulrike Fischer's user avatar
8 votes
Accepted

How to clip text from a drawn rectangle in Tikz?

You can use a knockout group, but is is not supported by many viewers. You can also use a tikzfadingfrompicture like this \documentclass[tikz, border=1cm]{standalone} \usetikzlibrary{fadings, patterns}...
hpekristiansen's user avatar
7 votes

Transparent foreground watermark

With a current latex version, you could use the shipout/foreground hook to add a watermark: \documentclass{beamer} \usepackage{tikz} \AddToHook{shipout/foreground}{ \begin{tikzpicture}[remember ...
samcarter_is_at_topanswers.xyz's user avatar
7 votes
Accepted

Transparent text: what alternatives to the transparent package?

EDITED to use Daniel's comment to make the undertext transparent, using a tikz node. The OP mentions in his/her comment to Daniel the presence of "some space after Hello", but I'm not sure how that ...
Steven B. Segletes's user avatar
7 votes

Balancing opacities between fill and draw

Dirty hack: If the lines of your particular shape are a tiny bit broader, you don't need to worry about any fill colour as the lines fill the whole shape: \documentclass{standalone} \usepackage{tikz} ...
samcarter_is_at_topanswers.xyz's user avatar
7 votes
Accepted

Balancing opacities between fill and draw

I think to proper solution is this. I found it in the manual: Remove opacity from the "hyperedge" style: \tikzstyle{hyperedge} = [fill, cap=round, join=round, line width=60pt] Put every edge in its ...
Mathiassa's user avatar
  • 193
7 votes

LaTeX equation that has white text on a transparent background

With the standalone documentclass one can create a document which just contains an equation and (in case PP/keynote cannot directly import a pdf) convert it into a .png with transparent background: \...
samcarter_is_at_topanswers.xyz's user avatar
7 votes

Cross out words with TikZ: line opacity

You can use the cross out shape node like that: \documentclass{article} \usepackage[T1]{fontenc} \usepackage[utf8]{inputenc} \usepackage{xcolor} \usepackage{tikz} \usetikzlibrary{shapes.misc} \...
Hafid Boukhoulda's user avatar

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