38 votes
Accepted

How do I fill the corner of an irregular shape in TikZ?

You could use path picture: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{tikzpicture} \draw[bend right=10] [path picture={\fill[...
esdd's user avatar
  • 85.7k
26 votes

How do I fill the corner of an irregular shape in TikZ?

You could also use draw and clip on \path and clip a circle that has its center at U, like: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \begin{document} \...
Jasper Habicht's user avatar
23 votes

Reproducing a figure in tikz with text and arrows flowing round in a circle

Here's an augmented version of marmot's answer, per his request. The main improvement is the arrowheads, which now have rounded corners. I'm using a custom arrowhead for this because the \Triangle[...
Circumscribe's user avatar
  • 10.9k
20 votes
Accepted

Scaling tikz brace

Add this after decorations.pathreplacing is used. It will scale the brace if it is necessary. \makeatletter \let\pgf@decorate@@brace@brace@code@old\pgf@decorate@@brace@brace@code \def\pgf@...
Symbol 1's user avatar
  • 36.9k
19 votes
Accepted

How to have a text decorated circumference automatically equal to the length of the text?

Put the text into a new length register, for example, \newlength\circl \settowidth\circl{Herr Prof.\ Paulinho van Duck duck duck~} this should be the circumference of the circle, then do the math. ...
AboAmmar's user avatar
  • 46.4k
14 votes

How to make a glowing text?

You could use a combination of tikz and contour package. \documentclass[12pt,border=12pt]{standalone} \usepackage[outline]{contour} \usepackage{tikz} \usetikzlibrary{decorations.text} \begin{...
rakatex's user avatar
  • 489
13 votes
Accepted

Rectanglar cloud shaped node in TikZ

The following example drops the line drawing from the rectangular node. Instead, it draws the decorated line afterwards. The corners are fixed by replacing them by quarters of a circle: \...
Heiko Oberdiek's user avatar
13 votes
Accepted

Book Chapter Decoration

The adforn package has two variants:
Bernard's user avatar
  • 272k
13 votes

How to reproduce this kind of wavy line?

One possible approach using the bclogo package: \documentclass{article} \usepackage[tikz]{bclogo} \usepackage[bitstream-charter]{mathdesign} \usepackage{lipsum} \begin{document} \begin{bclogo}[logo=...
samcarter_is_at_topanswers.xyz's user avatar
12 votes
Accepted

How to decorate a segment of a filled path in TikZ?

One solution here is to use a decoration 'scope': \documentclass[tikz,border=5]{standalone} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{tikzpicture} \draw[fill=green] (1,...
Mark Wibrow's user avatar
  • 70.4k
12 votes
Accepted

Custom line style with custom decoration

Two approaches are demonstrated here. Both repeatedly use the preaction key with different line widths and colors to draw the pipe (and also the flange). The first approach uses the markings ...
Mark Wibrow's user avatar
  • 70.4k
12 votes

Decorated arrow - New math symbols

I would suggest you use a font that contains all the desired arrows such as the STIX fonts. Those are best to be used with XeLaTeX and installation of the fonts to the operating system of your ...
Jasper Habicht's user avatar
10 votes

Challenge: Add descriptions around the arrows in a Tikz flow chart?

With the use of the quotes tikz library: I took a liberty and also changed the positioning of the nodes. You can still stick with your solution with matrix and adequately changes the node names: \...
Zarko's user avatar
  • 297k
9 votes
Accepted

tikz: Right to left text within text along path

As it has been mentioned already, the reverse text effect described in the TikZ manual is what you are looking for. However, you also want to first group the letters using the group letters effect, ...
Alex Recuenco's user avatar
9 votes
Accepted

Plot decorated arrows in pgf?

Your arrows are drawn with new computations of f(x) for every x value, and since f uses rand, you obtain different values from those that were used for the curve. In order to solve this problem, I ...
frougon's user avatar
  • 24.3k
9 votes

How to make a glowing text?

Just one step further from the previous answer. This one uses the idea of Faded or blurred lines \documentclass{article} \usepackage{tikz} \usepackage[outline]{contour} \begin{document} \Huge ...
Symbol 1's user avatar
  • 36.9k
9 votes
Accepted

tikz-cd `shorten` in combination with `squiggly`

You'll need to shorten the decoration itself in addition to the path. Found an old reference to this in http://pgf-and-tikz.10981.n7.nabble.com/shorten-and-decoration-td2248.html, and seems it still ...
Torbjørn T.'s user avatar
9 votes

tikz-cd `shorten` in combination with `squiggly`

Another possibility could be replace the shortens by start anchor and end anchor \documentclass{article} \usepackage{tikz-cd} \usetikzlibrary{decorations.pathmorphing} \begin{document} \begin{tikzcd} ...
Luis Turcio's user avatar
  • 2,759
9 votes

Adding small arcs to a path in specific places

Here's two ways that spath3 can be used for this. Method 1: Given a parameter specifying a point on the path, it splits the path at that point. Then it inserts a gap of a particular width at each cut ...
Andrew Stacey's user avatar
9 votes
Accepted

How to draw coil with varying compression

Just a wild suggestion (a bit on the side of a lucky shot, because I have no time to find out the correct numbers, but...). You can draw a constant-size coil but distort the x-coordinate with a cosine ...
Rmano's user avatar
  • 41.1k
8 votes

TikZ: How to draw an arrow in the middle of the line?

This is revisited version of Loop Space's answer using pic in place of node that were not available in 2010. The main advantages is that the pic inherits the path style (line width, color, ...) from ...
Kpym's user avatar
  • 23k
7 votes

Strikethrough lines on a phonological tree

Here's a different approach to the problem which requires less manual intervention, and has an intuitive syntax. It also allows you to use it as an \edge style on an existing branch of the tree ...
Alan Munn's user avatar
  • 219k
7 votes
Accepted

Ho to write the condition of a set in several lines?

You can use aligned (or array): \documentclass{article} \usepackage{amsmath} \usepackage{mathrsfs} \begin{document} This is over two lines \begin{equation} \left\{ \langle x,y\rangle \;\middle|\; ...
egreg's user avatar
  • 1.1m
7 votes
Accepted

Decorated arrow - New math symbols

A solution with the old-arrow package and the \stackinset command from stackengine: \documentclass{standalone} \usepackage{stackengine, graphicx} % \usepackage{mathtools, amssymb, old-...
Bernard's user avatar
  • 272k

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