# Tag Info

43

I'm a bit late.. however this is what you need with my original code: \documentclass[svgnames]{article} \usepackage{tikz} \usetikzlibrary{fadings,shapes.arrows,shadows} \tikzfading[name=arrowfading, top color=transparent!0, bottom color=transparent!95] \tikzset{arrowfill/.style={top color=OrangeRed!20, bottom color=Red, general shadow={fill=black, ...

42

One suggestion, borrowing from David Robertson's comment. A couple of scopes are added, to set the same style easily for all the nodes within them. The weights are set in the center of the line (so left, above etc. are removed), and filled with white, to cover the underlying line. If you really want that, the arrows.meta library lets you set the arrow tip in ...

40

There are two different places to use -|/|-: In a coordinate specification. This is what you have used, the general form is (a -| b) where a and b are named nodes or coordinates. This means the coordinate that is at the y-coordinate of a, and x-coordinate of b. Similarly, (a |- b) has the x-coordinate of a and y-coordinate of b. For example, the ...

29

With the arrows.meta library in pgf 3.0 (released December 2013), combining arrow heads is pretty simple and can be done in advance or in-line: \documentclass[border=0.125cm]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \tikzset{% tipA/.tip={Bar[sep]Triangle[open,angle=45:4pt]}, tipB/.tip={Bar[sep]Square[open]} } \begin{document} \begin{...

27

Add rounded corners to the path properties. You can control this by setting a value. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[anchor=east] at (0,0) (text) {A}; \node[anchor=west] at (5,5) (description) {B}; \draw[rounded corners=10pt](description) |- (text); \draw[red, rounded corners=25pt](description) |- ...

26

In TikZ the arrow heads are often related to the line width since the arrow head placement requires some calculations to place it correctly. To be able to detach that link you can use the same path twice one thick without arrow and one thin with arrow. But you need to place it manually with shorten or do some calculation yourself depending on the line width. ...

24

The red box is the official bounding box. The green box is the bounding box of the arrowhead. The blue box is the fictional bounding box that is calculated using the green box instead of the convex hull. Playing code \documentclass[border=9,tikz]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \foreach\i in{1,...,60}{ \tikz[line width=.1cm]{...

22

One more answer by the tikZ package with a customized arrow shape in order not to disturb the line spacing to much (as mentioned in the comments). \documentclass[11pt]{article} \usepackage[T1]{fontenc} \usepackage{tikz} \usetikzlibrary{shadings,shadows,shapes.arrows} \newcommand*{\tikzarrow}[2]{% \tikz[ baseline=(A.base), % Set baseline ...

22

Here is an idea: use dashed, and define a decoration which draws the vertical line which crosses each dash to produce a plus: \usetikzlibrary{decorations.markings} \tikzset{ pluses/.style={ dashed, decoration={markings, mark=between positions 1.5pt and 1 step 6pt with { \draw[-] (0,1.5pt) -- (0,-1.5pt); } }, postaction=...

22

++ instructions are pen instructions (in PostScript lingo). What it does is to lift the pen and move that much added to the current point. Single + is another instruction but in the end the pen is brought back to the current point. So effectively what you are doing is \draw[line width=4] % Set pen properties (coorda) % move to coorda labeled point. This ...

22

Here's a start, based on my answer at Handwritten comments and annotations in margin. There, I make use of the Teen SPirit font, which is a handwritten font (by way of \fontfamily{fts}\selectfont). Looking at the glyph set of that font (page 2 of http://www.tug.dk/FontCatalogue/teenspirit/teenspirit.pdf), there are several choices for hand drawn line (e.g.,...

21

Use the TikZ library arrows.meta and then you can scale the arrow heads as you wish. Here are a few examples. \documentclass{amsart} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \draw[->,line width=4pt] (0,0) to (1,0); \end{tikzpicture} \begin{tikzpicture} \draw[-{>[scale=2.5, length=2, ...

20

My solution leads to: The code to realize it is: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,calc,fit} \tikzset{box/.style={draw, rectangle, rounded corners, thick, node distance=7em, text width=6em, text centered, minimum height=3.5em}} \tikzset{container/.style={draw, rectangle, dashed, inner sep=2em}} \tikzset{line/.style={draw, ...

20

This is what the transparency group feature is for: wrap your arrow in \begin{scope}[transparency group, opacity=0.5] ... \end{scope}: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [line width=10pt, cyan] (-1,0) -- (1,2); \begin{scope}[transparency group, opacity=0.75] \draw[-stealth,line width=12pt, red] (0, 0) -- (...

19

You need \usetikzlibrary{arrows} and -latex' most probably, when doing the copy-paste from the original code, you got an incorrect character ’ in -latex’. The complete code: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \usetikzlibrary{arrows.meta,arrows} \begin{document} \begin{tikzpicture} [auto, ...

18

\matrix is something I always like to promote for these kinds of diagrams: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,scopes,arrows} \tikzset{ > = angle 60, mymx/.style={ matrix of nodes, nodes=mynode, row sep=1.5em, column sep=1.5em, row 2/.style={nodes=rnd}, row 1 column 2/.style={yshift=-1em}, row ...

17

Below I have defined a macro \Arrow (based on Workflow diagram) that can be used for this: The default parameters are specified in the My Arrow Style, but you can use the optional first parameter to adjust as desired. Most of the options that are used below should be almost self-explanatory: fill= specifies the fill color align= is used to control the ...

17

An alternative solution is using a basic tree, placing the nodes in a clockwise fashion. I suggest switching to circle nodes: they have all the same shape, and the same size, therefore making the scheme a bit pleasing too, beyond being functional. I have decreased the font size a bit, but it's still big enough to be read with ease. The arrows have been done ...

16

implies is the name of a TikZ arrowhead (defined in the arrows TikZ library). It has to be combined with a hyphen (as in my code); it cannot be used as a PGF key on its own (as in your MWE). The following code produces the desired output: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} \draw[implies-...

16

amssymb has one called \rightsquigarrow, but you may find that it's not long enough: $a\rightsquigarrow\overline{a}$

15

You just need to fix a minimum size large enough, but applied to state, not to the tikzpicutre: state/.style={circle, draw, minimum size=2cm} The symmetry can be obtained changing the drawing order: \documentclass{article} \usepackage{tikz} \usetikzlibrary{automata,arrows,calc,positioning} \begin{document} \begin{figure}%[H] \centering \...

15

using tikz libraries arrows.meta and decorations.markings with drawing arrows on line almost equal to tangent (manual adjustable) at selected position. the result is not perfect, but it's close to it. award for this is relative short code: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows, % not used in this mwe ...

15

The second (?) problem concerns the effect of arrow-tip caching. When an arrow tip is first used, it is cached. This is a specific tip e.g. Stealth with such-and-such length and so-and-so width etc. When the same tip is used again, the cached tip is used. This saves compilation resources. [Thanks to percusse for pointing out that this is an example of '...

14

TikZ 3.0.0 provides a bending library for arrow tips placed on non-straight paths (see 16.3.8 Bending and Flexing on pgfmanual). Loading the library makes flex=1 the default choice, but sometimes it worth to use custom values: \documentclass[tikz,border=3pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta,bending} \begin{document} \begin{...

14

It is usually easier to draw 3D figures with Asymptote. Here's a solution: \documentclass{standalone} \usepackage{asymptote} \begin{document} \begin{asy}[width=10cm,height=10cm] import three; // 1st field triple X(triple p) { return (-p.y, p.x, 0 ); } // 2nd field triple Y(triple p) { return (p.x*p.z, p.y*p.z, -(p.x*p.x + p.y*p.y)); } // unit ...

14

edit (2): in the first solution the definition of clip area doesn't work in all circumstances. with some small changes in provided code escape this limitation see if the following code is close to what you looking for: \documentclass[tikz,margin=3mm]{standalone} \usetikzlibrary{arrows.meta, calc, decorations.markings, quotes} \begin{document} \begin{...

13

See the Section 74 (also 23) of PGF documentation (mine is version 2.10) to obtain a lot of arrow tips. Just put on preamble \usetikzlibrary{arrows} \pgfarrowsdeclarecombine{twotriang}{twotriang}% {triangle 90}{triangle 90}{triangle 90}{triangle 90} and then you can use \draw[twotriang-twotriang] (0,0) -- (2,0); Here is the output. Here is a part of the ...

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