# Tag Info

## Hot answers tagged tikz-arrows

6

Just for fun, you could have used the decorations.markings library instead of all those calculations. \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{decorations.markings} \begin{document} \begin{tikzpicture} \tikzset{arrowedcircle/.style={ postaction=decorate, decoration={ ...

6

If you load the bending library this works as expected: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,bending} \begin{document} \begin{tikzpicture} \draw[->,thick] ({sqrt(2)},{sqrt(2)+2}) arc (45:225:2); \draw[->,thick] ({-sqrt(2)},{-sqrt(2)+2}) arc (225:405:2); \draw[->,thick] ({sqrt(2)+4},{sqrt(2)+2}) arc (45:225:2); ...

6

Part of your image: \documentclass[margin=3.141592]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta, automata, positioning} \begin{document} \begin{tikzpicture}[ > = Stealth, node distance = 22mm, every edge/.style = {->, draw, thick, bend angle=15}, every label/.style= {inner sep=1pt, font=\small}, ...

6

With forest is simple: \documentclass[12pt]{article} \usepackage{forest} \usepackage{tikz} \usetikzlibrary{arrows.meta, positioning, quotes} \begin{document} \begin{forest} for tree = { circle, draw, math content, edge = {draw, semithick, -{Straight Barb[scale=0.8]}}, /tikz/E/.style = {draw=red, very ...

5

You may try x post scale=0.5 and y post scale=0.5 to scale down the axis. Note: I changed \draw [fill=uuuuuu] (7.,0.) circle (2.0pt); to \draw [fill=black] (7.,0.) circle (2.0pt); in the code below because it was producing erros. Maybe some package error since you did nor provided your preamble. EDIT: For scaling down the whole picture you can use \adjustbox{...

4

You already did almost everything on your own, congratulations. Here's what you can add to complete your picture. EDIT I edited my post (and the picture) to fix some issues in the creation of the matrices (now everything is drawn on grid) and to add the open ended that you wanted in the first place. \documentclass[tikz,border=3.14mm]{standalone} \...

4

Here is a very manual way to do it by placing everything by hand. \documentclass[tikz, border=20]{standalone} \colorlet{myGreen}{green!50!black} \begin{document} \begin{tikzpicture} \draw[<->,>=latex] (0, 4.2) -- (0, 0) -- (4.2, 0); \draw[ultra thick, myGreen] (0, 0) -- (1.8, 0); \draw[ultra thick, myGreen] (2.2, 0) -- (4,...

4

The gap is caused because you define the connection point on the arrow as a node, which has not zero width. Instead of it, you should use a coordinate. Besides this I recommend: for straight-line use syntax \draw (<coordinate 1>) -- (<coordinate 2>); for units use the siunitx package I would draw your image on the following way: \documentclass[...

4

As starting point: \documentclass[margin=3.141592mm]{standalone} \usepackage{newtxtext} \usepackage{tikz} \usetikzlibrary{arrows.meta, chains, positioning} \begin{document} \begin{tikzpicture}[ node distance = 4mm and 8mm, start chain = going below, arr/.style = {{Straight Barb[scale=0.8]}-, rounded corners=1ex, ...

4

As mentioned in the comments, one approach is to define nodes and shift them relativ to each other, draw lines to specific points of the node, ... Q1 How should I get the rightmost "column" of nodes to have the same horizontal distance as the center "column" have relative to the leftmost "column"? As mentioned in the comments, \...

3

\documentclass{article} \usepackage{amsmath} \begin{document} $\begin{array}{ll@{}r} 1. & [0,&0.30]\\ 2. & [0.3,&0.6]\\ 3. & [0.6,&1] \end{array} \xrightarrow{\text{some text here}} \begin{array}{ll@{}r} 1. & [0,&7]\\ 2. & [7,&12]\\ 3. & [12,&30] \end{array}\\$ \end{document}

3

How about this? I'm not sure whether you want to align your intervals somehow. The following solution requires the amsmath-package. \begin{tabular}{ll} 1. & [0, 0.30] \\ 2. & [0.3, 0.6] \\ 3. & [0.6, 1] \end{tabular} $\xrightarrow{\text{Some text here}}$ \begin{tabular}{ll} 1. & [0,7] \\ 2. & [7,12] \\ 3. & [12,30] ...

3

Heres one way to do it using the tikzmark library and then adjusting node positions with the calc library: \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \usetikzlibrary{calc} \begin{document} \[ (\tikzmark{a}ax + \tikzmark{b}ay) = \tikzmark{c}a(x + y) \tikz[remember picture, overlay, baseline=0pt] { \draw[...

2

\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{automata,positioning} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[node distance=30mm and 35 mm] \tikzstyle{arrow} = [thick,->] \tikzset{stepbox/.style = {rectangle,fill=yellow!20, draw, rounded corners, minimum width=60mm, minimum height=2em, }} ...

2

End of arrow head is at given coordinate. In your case this mens. zhan the bottom bar border is at given coordinate. If I understand you correctly, you like to have, that at given coordinate is verical center of bar. This means, that you need to prolong line for 0.5\pgfplineswidth: \documentclass[border=3.141592]{standalone} \usepackage{tikz} \begin{...

2

Building on the suggestion by Jasper Habicht and removing your own color restrictions, this is what I came up with: \begin{document} \begin{tikzpicture} \begin{scope}[every node/.style={circle,thick,draw}] \node (0) at (0.0,0.0) {$0$}; \node (1) at (2.0,-1.5) {$1$}; \node (2) at (3.5, 0.0) {2}; \node (3) at (3.5,-3.0) {3}; ...

2

An edit of the (+1) excellent answer by @chsk making it significantly shorter in code \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (-6,0) -- (6,0) ; %edit here for the axis \foreach \x/\y in {-6/{$x_0 = a$},-4.5/{$x_1$},-3/{$x_2$},-1.5/{$\cdots$},0/{$x_i$},1.5/{$\cdots$},3/{$x_{N-2}$},4.5/{\$x_{N-1}...

2

This is caused by the greater height of the b in the last node label, so perhaps the easiest fix is to \smash that one: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (-6,0) -- (6,0) ; %edit here for the axis \foreach \x in {-6,-4.5,-3,0,3,4.5,6} % edit here for the vertical lines \draw[shift={(\x,0)},color=black] (0pt,...

1

I suspect that you after the following: For changing arrows' heads in tikz-cd diagrams you need to define something like this (for global settings in document's preamble): \tikzcdset{arrow style=tikz, diagrams={>=Straight Barb} } For similar changes in tikzpictures, you need to define them by \tikzset in document preamble for ...

1

By using the [in=<angle>,out=<angle>] option provided by tikz and shifting the ending point of a path as @Jasper Habicht suggested I've come up with this notice also that I've added a midpoint: (3-5). This is used so that the red arrow does not overlap with the rest of the figure. If you want to change the distance of the arrow from the figure, ...

1

Peraphs in origin the commutative-diagrams is done with xy package and the fonts of mtpro2. PS: Excuse me very much @egreg for the tips that you not like. :-( \documentclass[a4paper,12pt]{article} \usepackage[all]{xy} \usepackage{newtxtext,newtxmath} \usepackage{calrsfs} \DeclareMathAlphabet{\pazocal}{OMS}{zplm}{m}{n} \begin{document} \xymatrix@C=1pc{ & ...

1

Update: With the 6 April 2021 release of the dynkin-diagrams package, you get: just by adding [Bourbaki-arrow] as an option to the package: \documentclass{amsart} \usepackage[Bourbaki-arrow]{dynkin-diagrams} \begin{document} \dynkin F4 \dynkin G2 \end{document} Old answer: Just for Dynkin diagrams. I am not sure if you want straight lines or arcs (like ...

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