{arrows} is about drawing arrows, usually in {math-mode} or inside {diagrams}.

learn more… | top users | synonyms (1)

141
votes
8answers
40k views

Is it possible to change the size of an arrowhead in TikZ/PGF?

I'm trying to draw an arrow with a bigger head than normal. Is it possible without changing the style of the line itself?
44
votes
6answers
16k views

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

Like this: .------<------. | | v ^ | | '------>------' I am currently using \begin{scope}[very thick,->] \draw (-4,1)--(-4,0)--(0.1,0); \draw ...
27
votes
4answers
5k views

How to draw arrows between parts of an equation to show the Math Distributive Property (Multiplication)?

there is a part of my paper where I use the distributive property and it's not that clear for the reader to see (I'm using in proposional logic for a proof). The logic equation (part of) is: (l_{1}) ...
27
votes
1answer
11k views

How to set default style for arrow tips in TikZ?

I am creating multiple TikZ pictures within one document and would like to set the default style of arrow heads for all the pictures to the latex style, i.e. like -latex does, so that I don't have to ...
25
votes
1answer
17k views

How to make bend lines/arrows with TikZ?

I've been testing out TikZ lately, but I'm still quite new to it. What I want to do is to create a line to indicate that a parameter belongs to a part of the drawing. For example "This surface that ...
25
votes
1answer
5k views

Draw a diagonal arrow across an expression in a formula to show that it vanishes

I would like to find a way to cross out a term in a mathematical expression with a diagonal arrow pointing from lower left to upper right and with a little "zero" next to the pointy end of the arrow.
22
votes
2answers
1k views

Can I combine arrow tips in TikZ/pgf?

I'd like to draw an arrow using TikZ where I can specify more than one tip (or tail). This is presumably technically possible since the >> tip is a "doubled" tip: defining >=diamond produces ...
21
votes
4answers
1k views

How to draw arrows from cell to cell at the borders of a table

How can I draw arrows from cell to cell at the borders of a table? More precisely I'd like to get something like this: It would be nice to have a solution using TikZ. Edit: Since I have other ...
21
votes
3answers
4k views

Fancy arrows with TikZ

I would like to draw an arrow like this using TikZ: This is taken from Workflow diagram. I didn't succeed in reproducing the arrow; is somewhat beyond my (extremely limited) TikZ abilities. I don't ...
20
votes
6answers
824 views

Generating Random arrows in tikz

I would like to draw this figure : Hence, I resort to TikZ. But, it seems to be very difficult drawing arrows precisely in TikZ with the precise locations (x,y). I have achieved this: Here is the ...
20
votes
2answers
2k views

Meaning of bend right or left in TikZ?

The following code actually comes from the PGF manual. It works fine, but I have a difficult time in understanding it (I'm new to TikZ) \documentclass{article} % say \usepackage{tikz} ...
20
votes
2answers
3k views

Arc between arrows in TikZ (automata library)

Here's what I have for now: \begin{tikzpicture}[->,>=stealth',shorten >=1pt,auto,node distance=3.5cm, semithick, bend angle=35] \tikzstyle{every ...
19
votes
2answers
5k views

Tikz: Arrowheads in the center

For arrows I have gone through options like ->, ->>, <-, <<- but havent found one for making the arrowhead appear in the center of the line of the curve (something like ->-) How do I do it in ...
19
votes
2answers
1k views

Tikz: purely vertical arrow from nodeA.south to nodeB.north

I have the following tikz code % compilation command: pdflatex --jobname=Diag-f1 Diag.tex \documentclass{book} \usepackage{tikz} \pgfrealjobname{Diag} \begin{document} \beginpgfgraphicnamed{Diag-f1} ...
19
votes
2answers
9k views

\xRightarrow (text)

I know it's possible to have \xrightarrow (text), but if I try to do \xRightarrow (text) I get an error each time. Does anybody know if it's a syntax error or if there is a other way to produce the ...
18
votes
3answers
2k views

How can I visualize Matrix operations?

I would like to visualize some matrix operations like that: How can I do that (preferably something that also works for mathjax)?
18
votes
2answers
720 views

Modifying `*` and `o` style tikz arrows so that they are centered at the end of line

I would like to use tikz * and o arrows to indicate included/excluded endpoints in plots of piecewise functions, like for example the following one: However, it seems that tikz always aligns the ...
17
votes
3answers
4k views

How to draw a coordinate system with LaTeX?

I want to draw a coordinate system like this: I would like to specify the width and height of the coordinate system and where the origin begins (upper left corner). I also want to specify the x and ...
17
votes
3answers
5k views

How to get correct arrow orientation on TikZ arc?

I'm trying to fix the following TikZ figure, where the circle device in the middle should be embraced by two bended arrows pointing counter-clockwise. I have drawn these arrows with an arc path, ...
17
votes
1answer
3k views

Is there a left-handed equivalent of \implies?

I’m aware of and use the \implies and \iff commands to denote right-handed implication and if and only if (so A=>B and A<=>B). I’ve been looking for a similar command for left-handed implication ...
17
votes
3answers
4k views

Making an arrow in a pgfplot figure from one point to another?

How can I make an arrow from one point in a tikz picture to another point? In the following example, I would like to draw an arrow from the word data--which is approximately the coordinate (1982, ...
16
votes
5answers
1k views

Matching arrowheads in TikZ with math mode arrowheads

TikZ is great at drawing diagrams but there is one feature which I find quite annoying and that's the fact that the default arrowhead provided by TikZ does not necessarily respect the math mode in ...
16
votes
3answers
803 views

Detexify couldn't help me find >— and —<, can you?

These symbols are like arrow, except the arrow heads are inverted. Some ASCII art: >-- or --< Could you help?
16
votes
5answers
3k views

arrows with tikz package

I use tikz, and try draw a directed graph with \begin{tikzpicture} \node[draw, circle] (1) {1}; ...
16
votes
1answer
2k views

How to create a squiggle arrow with some text on it in TikZ?

I need to define a new command to create a squiggle arrow with some text on it. Something similar to what \xrightarrow command produces but with wiggly arrows as in \rightsquigarrow. The length of the ...
16
votes
2answers
788 views

Making the size of the arrow head proportional to the magnitude of a vector field in TikZ

Consider a scaled vector field v = (-x, 2x+y-1) living on the triangle at (0,1), (1,0), and (0,0): \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \coordinate (A) at ...
15
votes
3answers
447 views

Angle brackets with an underset arrow

I am trying to make a pair of angle brackets of variable height enclosing a main box along with a box beneath each bracket and an arrow of variable length between these lower boxes. Since I'm sure ...
15
votes
1answer
2k views

Smooth option sometimes produces incorrect arrow tips in PGFplots

It seems that the smooth option applied to lines sometimes effects the arrow tips and produces incorrect results. No problem with vertical lines, but any other seems to have a problem. Is this a ...
15
votes
3answers
848 views

Long Dashed Right Arrow

Is there a \dashrightarrow equivalent of: \xrightarrow{\hspace*{4mm}} or \longrightarrow or a similar way to fudge it?
14
votes
1answer
1k views

$\overrightarrow{a} \otimes \overrightarrow{b}$ looks unpleasant

As the question says, $\overrightarrow{a} \otimes \overrightarrow{b}$ looks rather unpleasant because the arrow over the a is so much lower than the arrow over the b. I'm not sure that just raising ...
14
votes
2answers
639 views

Optimizing code for dimension arrows (CAD) in TikZ

In Engineering it is customary to denote small dimensions with arrows as shown below (in binding correction and trim top): Variants exist such as Currently they are all hardcoded as for ...
14
votes
2answers
512 views

Complicated tikzpicture for theorem of multivariabe continuous functions

I'm attempting to construct a tikzpicture that looks like this: Here's what I have: \documentclass[12pt]{article} \usepackage{amssymb} \usepackage{amsmath} \usepackage[english]{babel} ...
14
votes
1answer
4k views

Extending arrows with overset text

I'd like to extend an arrow to allow better readability of characters which are overset using \overset{}{}. Right now I have \overset{k_1}{\rightleftharpoons} which produces: and this leaves ...
13
votes
3answers
1k views

How can I create this game-tree in Latex?

I have the following figure: As of now I create this in Word/Powerpoint and paste the screenshot in a LaTeX file. Is there a way to create this natively? Also, what would be the advantage of doing ...
13
votes
2answers
436 views

How to draw arrows between circled coefficients of polynomials using tikz

After reading Gonzalo's answer to Arrow between parts of equation in LaTeX, I thought I would be able to modify it so that I could have the corresponding coefficients circled and an arrow going from ...
13
votes
2answers
294 views

Two coloured arrow

I would like to draw arrows in diagrams that have two colours split along the axis. (This shall represent a mixed case in colour-coded case distinction.) Here's a sketch: Here is a MWE to play with: ...
13
votes
2answers
20k views

\Rightarrow with text above it [duplicate]

When using the command \Rightarrow is there any way to put text above it? I have tried \overbrace but is there a way to do it without this?
13
votes
2answers
1k views

Two-Headed Arrow Over Formula

I have a quantified formula. I want to show what happens when the order of quantifiers is reversed. To do this, I like to use a two-headed arrow over the formula, like this: Is it possible? I don't ...
13
votes
1answer
341 views

Decorate a path with little arrows parallel to it

I want to decorate a path with little arrows (with definable length) parallel to it. I tried to modify an example from the manual, but I was only able to get arrowtips and not complete arrows where I ...
13
votes
1answer
585 views

Circular Arrows and Text on Path

I did some basic tikz figures, but i have absolutely no idea how to do a figure like this: Each text block should be aligned on a circular path and centered within the arrows. Could anyone please ...
13
votes
2answers
5k views

Extensible \vec instead of \overrightarrow

Instead of changing to \overrightarrow{}, which uses a usual extensible arrow and puts it above the argument, I would like to get an extensible \vec{} symbol. My intention is to obtain a new command ...
13
votes
1answer
1k views

How can I draw arrows between words in linguistic examples?

This is what I'm after: I'd like to have the sentence 'John loves his mother.' displayed with an arrow running from 'his' to 'John'. I looked at gb4e, but I found the documentation confusing and I ...
12
votes
3answers
633 views

How to create simple causal chains with TikZ

I have a problem trying to create a simple causal chain, as it can be seen on the attached file: List of available TikZ libraries with a short introduction. I'm having two main issues: I would like ...
12
votes
2answers
288 views

Getting arrows underneath numbers

I want to draw curved arrows underneath my numbers, does anyone know how to do this? I've tried the command \curvearrowleft but TeX doesn't recognize that line, either because I don't have the package ...
12
votes
3answers
1k views

How can I draw the outline of a path in tikz?

Using the arrow tip library, I can draw thick arrows with triangular tips, like so: \begin{tikzpicture} \draw[line width=2ex, rounded corners=2ex, triangle 90 cap reversed-triangle ...
12
votes
3answers
6k views

Chemistry Equations

I have the following Chemistry equation: 2LiOH(s) + CO2(g) -> Li2CO3(s) + H2O And I have the following LaTeX code: \ce{2LiOH_{(s)} + CO_{2(g)} -> Li_{2}CO_{3(s)}+ H_{2}O_{(g)}} But I ...
12
votes
1answer
2k views

Tikz - move/reposition arrow decorations (arrowhead length/size)

I'm trying to build a 'dimension line' macro for Tikz: \documentclass{article} % note: with \documentclass{minimal}, this example fails with: % ! Undefined control sequence. % ...
12
votes
1answer
360 views

Parallel flowcharts: conjoined nodes, arrow routing and alignment

Transitioning from GraphViz to TikZ is hurting my brain... My task is to generate flowcharts of the following variety: In particular, I need a method to position nodes that share borders ...
12
votes
1answer
235 views

\rightarrow^* flipped to the left?

Is it possible to create something like $\rightarrow^*$ only flipped to the left? Someone suggested using $\mathbin{{}^*\leftarrow}$ but this still doesn't give me the same spacing.
12
votes
2answers
680 views

Repositioning and resizing arrow tip on circular (arc) path

I'm working with some graphs, and I'd like to indicate a certain orientation of edges incident on a vertex. With some help I've managed to get this far: \documentclass{article} \usepackage{tikz} ...