Episode #125 of the Stack Overflow podcast is here. We talk Tilde Club and mechanical keyboards. Listen now

Questions tagged [shading]

The shading operation consists of letting a background picture be rendered with different gradients of colors or light/dark. The {shading} tag is related to questions in which a shade operation is required.

Filter by
Sorted by
Tagged with
3
votes
2answers
190 views

Stopping text from being italic in shaded environment

I'm having trouble making the text within my shaded environment appear normal without being italic. I've provided a MWE below. \documentclass[11pt, oneside]{article} \usepackage{geometry} \geometry{...
2
votes
1answer
252 views

Fading in two directions with unshaded middle - Faded rectangles create “lines at boundaries”

I'd like to do some fading of my background page from the middle to top and bottom - so far as good. My Problem is that I don't want to start the fading immediatly (e.g. the upper third is faded, the ...
32
votes
3answers
5k views

Tikz: Shading a path without any filling

How can I shade a path witout filling? In particular, I wand to draw a curved arrow that starts colored blue and ends colored green, where in between it gradually changes its color. I can't find a way ...
3
votes
1answer
136 views

TikZ: Match up diagonal shading with adjacent horizontal and vertical three-colour shadings

I apologize for the convoluted title, but I like my titles to describe my questions and couldn't think of a more condensed version. Quite a few questions already exist on custom shadings and fadings ...
4
votes
1answer
431 views

tikz - gradient along a bendy path

I'm drawing pipes (like the Pipeline game), and I want them to be shaded to give the effect that the pipes are cylindrical. A bit like the pipes below: the outer edges are black, the middle is white (...
0
votes
1answer
105 views

Extending TikZ fadings to the very ends of a character

I'm having a problem with the "custom letter" that I've already asked two questions about. The following MWE illustrates the issue: \documentclass[border=4]{standalone} \usepackage{accsupp,xcolor,...
1
vote
1answer
77 views

TikZ - Shading only the filled section of path, not offsets

I'm defining a shaded area that is offset from a origin coordinate, so that the whole of the drawing can be moved by only changing that single coordinate: \coordinate (origin) at (0,0); \shade [left ...
14
votes
2answers
1k views

TikZ shadings and printing incompatibility

I would like to use some effects provided by the shadings library of tikz. More specifically, I am trying to use the ball and radial shadings (tikz 2.10 manual, p. 412-). The resulting pdf looks ok ...
2
votes
2answers
139 views

Adjust size of shading in node

I defined a shade according to: \pgfdeclarehorizontalshading{spindiff}{0.5 cm} {color(0 cm)=(gray); color(3 cm)=(black); color(7 cm)=(gray)} \pgfuseshading{spindiff} Now I want to use the same ...
3
votes
1answer
406 views

Shading multiple areas between vertical lines in pgfplot

I'm working with pgfplots on shading areas between vertical lines. So basically to create rectangles, restricted by 2 values on the x-axis. This can be done by drawing using tikz, but I would like to ...
7
votes
1answer
452 views

How can I shift a background fading and shading in a TikZ picture?

Clearly all too naïvely, I would expect the following code \documentclass[border=10pt,multi,tikz]{standalone} \usetikzlibrary{fadings,backgrounds} \pgfmathsetlengthmacro\hyd{sqrt(5)*.5*(145mm+2ex)} \...
3
votes
1answer
300 views

Smooth joining between shaded rectangles (TikZ)

I am assembling several rectangles to make a special shading. Here is my code : \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture} \...
3
votes
1answer
179 views

Shading and fading on same path using pgf and tikz

Trying to mimic a titlepage in a word document. I figured out how to do a custom shading, but can't figure out how to apply a fading (transparency) on top of it Here is a MWE (except for the fading ...
5
votes
3answers
885 views

Fill a square with radial fading

With my MWE \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{fadings} \begin{document} \begin{tikzpicture} \colorlet{ok}{green!25!} \colorlet{bad}{red!20!} \fill[ok] (0,0) -- (0,6) ...
4
votes
3answers
337 views

Shading between a circle and two lines

I have drawn the unit circle and some tangent lines to the circle. I now wish to shade the area between the two lines bounded by the circle. Here is the tex that I have already written. \...
1
vote
2answers
165 views

Shading triangle

I'd like to use tikz to shade an isosceles triangle with points A B C and length of AB and AC are equal. Shading should go from AB (red) to AC (green) where the color on a line through A always stays ...
13
votes
1answer
596 views

Generate coloured fancy Delaunay patterns in Tikz

Recently in the world of the Internet this very fancy coloured pattern appeared: I was thinking if it is possible to generate something similar with TikZ. I saw this first example here in Drawing ...
2
votes
1answer
230 views

Why is the frame title height reduced, when using shadow outer theme?

I want to have a horizontal shading in my frame title, so I can put a logo on the right side of the title. To have this in my frames, It seems that I have to use shadow outer theme. the problem is ...
3
votes
1answer
1k views

How do I gradient shade the background of a beamer section/subsection in head/foot?

Here is a reduced example of my code. I am attempting to restyle the background of the section in head/foot and subsection in head/foot in the CambridgeUS theme to a gradient background colour. ...
5
votes
1answer
147 views

Shading grid which is fully inside slips

I have an ellipse drawn over a grid of small square, I need to shade those square in which are fully inside the ellipse, is there is way to do it without trying to shade one by one for each square? ...
1
vote
1answer
821 views

Horizontally shaded title in beamer

How to get a horizontally shaded title in a beamer presentation? There are several post to do this for block titles or frame titles but I did not find anything for the title of the title page. Edit: ...
7
votes
3answers
964 views

Diagram with a shaded region

The following MWE yields the diagram above but I would like to find a better way of showing the shaded region. \documentclass[letterpaper]{article} \usepackage{tikz} \usepackage{amsmath} \begin{...
0
votes
1answer
577 views

Reducing upper and lower margin in shaded environment

I am using \begin{shaded} from \usepackage{framed} to highlight some formulae and theorems in some notes I am writing. I would like to reduce the upper and lower margin: how can I do it?
1
vote
2answers
247 views

Inserting a box with shaded background text, in plain TeX.

I'm using Plain TeX and trying to create a box that has a shaded background, containing a mixture of both mathmode and textmode TeX. It would be great if I could add colour to the background (i.e. ...
2
votes
2answers
214 views

How Can I Decorate a Parametric Curve?

I'm trying to draw a special parametric curve, but my results are not good enough, because I'd like to decorate it. So, I've tried this: \documentclass[10pt]{article} \usepackage{pgf,tikz} \...
0
votes
1answer
1k views

Shading a frame title in PaloAlto beamer

I'm not an expert in beamer and after a few hours on the web not finding how to do exactly what I want I'm asking for help. I would like to create a beamer using PaloAlto theme with a few ...
5
votes
1answer
630 views

Shading the area between arcs with a rainbow

I am trying to shade areas between arcs in a rainbow fashion - and I want to be able to control if the red end is the lower end or at the upper one. MEW: \documentclass{standalone} \usepackage{tikz} ...
5
votes
1answer
792 views

How does the TikZ `shading angle` key work?

When answering this question, I found out that the shading angle key does not do what I expected it to do. The following MWE illustrates the problem. I've defined a shading with a sharp edge to make ...
5
votes
1answer
690 views

Asymptote Shading Gradient in HSV Color Space

Using asymptote I'm trying to fill shapes with gradient shading in the HSV color space. Unfortunately, I think that HSV is not an available color space in asymptote. However, asymptote does have the ...
1
vote
0answers
71 views

pgfplots: shade area between two table-generated curves [duplicate]

I have three statistical quantiles generated via \addplot table. I would like to shade the area between the highest and lowest quantiles (the mid one is the median). If I use \closedcycle, I shade ...
2
votes
0answers
102 views

ImageMagick fails to convert PDF files containing functional shading [closed]

Question I would like to make a GIF animation out of a series of functional shadings. But it seems ImageMagick cannot even handle one shading. Did I miss any option of ImageMagick? Or are there any ...
2
votes
1answer
1k views

Custom Fading for Rectangle

I tried to learn from How to define the distance of color regions in radial shading using TikZ? TikZ: radial shading of a ring TikZ Fading Speed and then create my own fading scheme in this MWE: \...
1
vote
1answer
411 views

How do you make a radial fading on top of a background image?

I have three objects that I want to superimpose on each other: Some text upon a background picture using a circle to create a radial fading from white to transparent so that it is possible to read the ...
0
votes
0answers
35 views

shading region bounded by several curves [duplicate]

I have the following code: \documentclass{book} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [color=red,fill=red,fill opacity=1.0] (-0.67,1.06) circle (2.41cm); \draw [color=white,...
6
votes
1answer
217 views

How can I define a key that adds a coloured border inside a closed path, but plays nice with \fill?

I want to draw polygons that have a fixed width shading or border on the inside. Here is an image made in mspaint illustrating the kind of thing I'd like to draw: This question addresses this issue, ...
3
votes
4answers
2k views

How to shade text in latex without a box?

I would like to add a background shade to my text in a report. I do not want to use a box to wrap the text though. Is this possible? MWE of my code is given below. In the code, I would like to shade ...
2
votes
1answer
467 views

How to change shadedraw color

With, this code \begin{figure}[h!] \centering \begin{tikzpicture} \shadedraw[shading=radial, color=blue] (0,0) circle (4); \end{tikzpicture} \end{figure} I get this But is it ...
3
votes
1answer
456 views

How to make a line style for drawing the ground line?

I'd like to draw a piece of "ground line" (picture below), but I don't know, how to make a line style and how to ensure proper localizations of the picture boundary. The solution of achieving an ...
1
vote
1answer
149 views

Venndiagram shading sticking out of the picture [duplicate]

My Venndiagram package went mad. The following code \documentclass{standalone} \usepackage{tikz} \usepackage{venndiagram} \begin{document} \begin{venndiagram3sets} \fillOnlyA \end{venndiagram3sets} \...
8
votes
1answer
1k views

(Kind of) photorealistic radial shading in TikZ

Is there a way to define more than one "spot" of light for one shading? Two (default white highlight and a big pink reflected light spot) were good and three were just great. I'm using \shadedraw[...
8
votes
3answers
864 views

how to shade a region bounded by straight lines and arcs in tikz

I have drawn a figure using tikz from Geobra. But I could not shade the region neeeded. \documentclass[twosides]{report} \usepackage{amsmath, amssymb, latexsym, amscd, amsthm} \usepackage[utf8]{...
3
votes
1answer
84 views

how is clipping done in regions by circles and rectangles, square?

How to shade the region like this?
7
votes
2answers
700 views

Rotate and clip shading in TikZ

I'm trying to produce a copy of the right hand side of this picture using TikZ shadings. I thought it would be a simple task but it has proven itself difficult (at least for me). First I couldn't ...
1
vote
1answer
157 views

Tikz picture dissapears when zooming pdf above certain percentage

I want some shaded lines, so, as I didn't find any specific command for this, I'm trying to do it with a very thin rectangle. I compile with pdflatex and zooming the pdf makes the lines, and, ...
2
votes
0answers
220 views

Shading in a rotation without a canvas transformation

I'm currently working on a magnifying glass as an object without making use of the spy library. It is written as a \newcommand since I have to use it to some extense. My problem is the shading for the ...
0
votes
1answer
1k views

Beamer Frankfurt/Smoothbars Remove Shadow/Shading

\setbeamertemplate{title page}[default][colsep=-0bp,rounded=false] \setbeamertemplate{frametitle}[default][colsep=-4bp,rounded=false,shadow=false] \setbeamertemplate{blocks}[rounded][shadow=false] ...
12
votes
1answer
873 views

tikz-cd: Shade faces of commutative cube

I would like to "shade" the faces of a commutative cube drawn using tikz-cd. \documentclass{article} \usepackage{tikz} \usepackage{tikz-cd} \begin{document} \begin{tikzcd} & P \ar{dl}[swap, ...
1
vote
1answer
249 views

radially increasingly opaque overlay ellipse with text

Say I have a pattern on which I'd like a radially shaded (from transparent on the outside to white on the inside) so that the background pattern fades to white around the text. How would I achieve ...
3
votes
2answers
220 views

Theorems spanning pages without losing width

I use declaretheoremstyle to declare a theorem environment. I like the format of shaded, it gives a special background color without shorten the width of a text. But one problem is that a theorem ...
4
votes
2answers
117 views

Shading applied only to the first element with foreach

I want to apply the same shading to multiple rectangles. Here is a MWE of the code I use (for a sample of 3 rectangles): \documentclass{article} \usepackage[letterpaper,textwidth=8.5in,textheight=...