53

There's the starburst shape in the shapes.symbols library: The code: \documentclass[tikz,border=4pt]{standalone} \usetikzlibrary{shapes.symbols} \begin{document} \begin{tikzpicture} \node[starburst, draw, minimum width=3cm, minimum height=2cm,red,fill=orange,line width=1.5pt] {BOOM!}; \end{tikzpicture} \end{document} Or a more colorful version: \...


37

This is a variation on Gonzalo Medina's answer which adds a decoration to simulate hand drawing: \documentclass[tikz,border=5pt]{standalone} \usetikzlibrary{shapes.symbols,decorations.pathmorphing} \usepackage{cabin} \begin{document} \begin{tikzpicture} \node[starburst, font=\sffamily, draw=red, minimum width=3cm, minimum height=2cm,text=red,fill=orange!...


23

Borrowing ideas from the other answers. For hand-drawn simulation I like @percusse's pencilline decoration – together with the starburst shape this could look like this: % arara: xelatex: { shell: on } \documentclass[tikz,border=5pt,convert]{standalone} \usetikzlibrary{shapes.symbols,decorations.pathmorphing,patterns} \usepackage{fontspec} \setmainfont{...


19

Here's a way to something similar in Metapost too. Just by changing the path connector from -- to .. you get the splash-shape shown on the right. Parameters: n is the number of points (up and down), so n/2 is the number of spikes; r is the amount of randomness; s is the radius of the shape. prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); n =...


18

Improved version: Remarks You have a \Ribbon command with a mandatory argument for the text that goes in the middle part of the ribbon. I used a key-value approach to easily control the ribbon attributes: color1=<color> controls the color for the "main" part of the ribbon. color2=<color> controls the color for the "shadowed" part of the folds ...


15

Each "blob" can be drawn using a technique taken from this answer, but modified to use Hobby package which produces smoother results. In the next example I define a pic which draws one of these "blobs". Being a pic is very easy to rotate, scale and translate the shape, so I draw 35 of them in a regular grid. Instead of a regular grid you can use the random ...


12

With tkz-euclide and \tkzCircumCenter; I left the original fitting node for comparison: \documentclass{article} \usepackage{tkz-euclide} \usetikzlibrary{fit} \begin{document} \begin{tikzpicture} \node[draw=blue] (A) at (30:1cm) {A}; \node[draw=blue] (B) at (150:1cm) {B}; \node[draw=blue] (C) at (270:1cm) {C}; \node[circle,draw=red,thick,fit=(A) (B) (C),...


10

You can use a pic for this. \documentclass[tikz,border=7mm]{standalone} \usetikzlibrary{calc,quotes} \tikzset{ multiplexer/.pic ={ \coordinate (-out) at (.8,0); \coordinate (-in-up) at (-0.8,.5); \coordinate (-in-down) at (-0.8,-.5); \draw[pic actions] (-.5,1.25) -- ++(1,-.5) -- ++(0,-1.5) -- ++(-1,-.5) --cycle; \draw[pic actions] (.5,...


9

This is one solution. The curves are drawn via draw[] (A).. controls (B) .. (C); draw[] (C) to[out=xx,in=yy] (E); and the shaded line areas are done via clip skill with scope environment. Further the text are place via tikz node. Several style macros were predefined including the B/W shading. Code \documentclass[border=10pt]{standalone}%{article} \...


8

\documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw (0,0) -- (0,2) -- (2,2) -- (2,0) -- (0,0); \node[above right] at (0,0) {1}; \node[below right] at (0,2) {2}; \node[below left] at (2,2) {3}; \node[above left] at (2,0) {4}; \end{tikzpicture} \end{document}


8

There's no need to define a new shape; the shapes.geometric library already offers you the trapezium shape; with this, you can simply define a style; the already existing anchors for the trapezium can now be easily used for the in and out parts: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \tikzset{ multiplexer/.style={ ...


8

Crop jpeg into circular tikz node is valid for any kind of node (rectangle, circle or any already defined shape), but you can also define irregular polygons with a clip path: \documentclass{beamer} \usepackage{tikz} \begin{document} \begin{frame}{I'm watching you!} \centering \begin{tikzpicture} \clip (-1,1)--++(-20:5cm)--++(75:4.5)--++(150:2cm)--++(200:3....


8

You're fairly close actually. First, you do of course need to have \usepackage{tikz} before \usetikzlibrary{..}. As for the diagram, instead of having all those settings directly in the tikzpicture options, make a new style with stylename/.style={<list of settings>}, and apply that style to your two nodes. Because you had them like that, it seems they ...


7

Update: The OP asked a second question. This solution modifies the first solution and removed some redundancy, hoping this time it compiles. Code \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \pagestyle{empty} \def\layersep{2.5cm} \tikzset{neuron/.style={circle,thick,fill=black!25,minimum size=17pt,inner sep=0pt}, ...


7

Just to show how easy to do it with basic LaTeX: \documentclass{report} \usepackage[utf8]{inputenc} \usepackage{amsmath} \usepackage{old-arrows} \usepackage[svgnames]{xcolor} \begin{document} \[ \setlength{\fboxsep}{0pt} \setlength{\fboxrule}{0.8pt}\fcolorbox{DarkSeaGreen}{white}{\begin{tabular}{c} \\ Service\\ provided \\[3ex] \end{...


7

as node with such shape: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[ oneroundedge/.style = {% minimum width=#1, minimum height=12mm, text depth=0.25ex, outer sep=0pt, append after command={ \pgfextra{\let\LN\tikzlastnode \path[draw, fill=gray!30] (\LN.south ...


7

Maybe the contour package is a solution for you (See also this answer)? \documentclass[tikz, border=2mm]{standalone} \usepackage[outline]{contour} \contourlength{2pt} % increase the white space \usetikzlibrary{patterns} \begin{document} \begin{tikzpicture} \draw [step=.25] (-2,-.5) grid (2,.5); \node[] at (0,0) {\contour{white}{$|z|^{1/3}e^{i(\theta+2\...


7

Combining minimum width with single arrow head extend seems buggy. Use inner sep instead to define the inner width: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes.arrows} \begin{document} \begin{tikzpicture} \node [single arrow,draw,inner sep=1cm,minimum height=4cm, single arrow head extend=0.8cm,anchor=west] (a) {}; \draw[|<-...


6

For this, some hacking is required. Unfortunately, due to some inconsistencies in the implementation between the circle split and the ellipse split shapes different methods must be used for both. If hacking is not desirable, then it might worth considering that a circle split shape with out the "split" drawn is just a circle shape with text stacked ...


6

An automatic and easy way to adapt (following idea of @Benjamin McKay) \documentclass[margin=2mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[blue,draw=red,thick,minimum width=2cm,minimum height=2cm] (rect) at (0,0) {$\times$}; \foreach \anc/\n in {south west/1,north west/2,north east/3,south east/4}{ \node[anchor=\anc] at (...


6

Remember that node are drawn using screen coordinates, not canvas coordinates, so you will have to do all the 3d corrections directly. To construct orthogonal axes it is easiest to pick two angles and and use polar transformations. You could also use tikz-3d, but it has its own drawbacks. Given the axes, you can determine the ratio of the y radius to x ...


6

The arc is a full semi circle since you are drawing from 0deg to 180deg (0:180:2 i.e., 0deg to 180deg with radius 2). To make it a quarter circle, draw it from 0 deg to 90 degree (0:90:2 i.e., 0deg to 90deg with radius 2). \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.markings} \begin{document} \begin{tikzpicture}[decoration={...


6

so similar to Torbjørn T. answer that I was doubt to publish because I was to late for 3 min: \documentclass[12pt,a4paper,twoside]{report} \usepackage{tikz} \usetikzlibrary{ arrows.meta, positioning, quotes, shadows} \begin{document} \begin{figure} \centering \begin{tikzpicture}[ node distance = 2mm and 55mm, > = Stealth, box/....


5

Dependently on the complexity of your use-cases and how many of these shapes you need … here is a start. The answer consists the following: A shape declaration that borrows the rectangle ee definition from the circuits.ee (which is just a borrowed rectangle shape with .input and .output anchors). I also borrow from the linked TeXample for the text inside ...


5

This solution is a bit of a hack for the top arrow. Basically any arrow that starts orthogonal to the node's border will have no problem, but diagonal arrows will "break" the make-believe, by appearing like this: The best way I could think of to deal with this is by automatically adding another node inside which border is white and is positioned on the ...


5

This appears to be a bug. The internal command \iftikz@node@is@pic is not reset after a pic on a path so any subsequent nodes (coordinates are nodes) are parsed as pics and consequently nothing is done. A temporary fix (and not guaranteed to work in every possible use case) is to put the following (with appropriate category code changes) in the preamble: \...


5

In Metapost, you can shade an annulus by filling the outer circle with the shade and then filling the inner circle with the background. Here's an attempt at your figure, which might give you a starting point. prologues := 3; outputtemplate := "%j%c.eps"; beginfig(1); path c, d, r, h; p = 89; q = 34; c = fullcircle xscaled p yscaled q; d = c scaled 1.4;...


5

I think this code, using tcolorbox and eqparbox should help. Eqparbox defines tagged boxes, so that all boxes with the same tag eventually all have the width of the widest of them (requires two compilations): \documentclass{article} \usepackage{tcolorbox} \usepackage{eqparbox} \begin{document} \begin{center} \tcbox{\eqmakebox[P]{First Part}} \...


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