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

learn more… | top users | synonyms (1)

126
votes
8answers
31k 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?
37
votes
6answers
12k 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 ...
23
votes
4answers
4k 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}) ...
22
votes
1answer
7k 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 ...
22
votes
2answers
957 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 ...
20
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 ...
20
votes
3answers
3k 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
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 ...
20
votes
1answer
14k 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 ...
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
572 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} ...
17
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)?
17
votes
1answer
4k views

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

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. :) ...
17
votes
2answers
623 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
3k 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
3answers
3k 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 ...
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
1answer
1k 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
524 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
2answers
4k 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 ...
15
votes
3answers
384 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
5answers
2k views

arrows with tikz package

I use tikz, and try draw a directed graph with \begin{tikzpicture} \node[draw, circle] (1) {1}; ...
14
votes
3answers
3k 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, ...
14
votes
1answer
867 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
548 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 ...
13
votes
3answers
712 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
1answer
1k 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 ...
13
votes
2answers
244 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
416 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} ...
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
2answers
168 views

Long Dashed Right Arrow

Is there a \dashrightarrow equivalent of: \xrightarrow{\hspace*{4mm}} or \longrightarrow or a similar way to fudge it?
13
votes
1answer
305 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 ...
12
votes
3answers
479 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
268 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
5k 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
306 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
212 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
1answer
3k 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 ...
12
votes
1answer
379 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 ...
12
votes
1answer
371 views

Single arrow with heads on both sides pointing in same direction

Please consider the following example of an arrow I would like to draw in a tikzpicture-environment: My MWE draws a single arrow but only with one head. Does anyone know how I can add a second head ...
12
votes
1answer
701 views

Various arrow shapes above letters

I needed to type vectors with bend arrows, (in the debate arrow- bold, I vote for arrow). I did not find anything about that on internet (wording problem may be) but the closest I found was Dot ...
12
votes
1answer
969 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 ...
11
votes
4answers
891 views

Merge arrows with TikZ

I am still learning to use TikZ and now I find myself in a tight spot. I want to draw three processes on the lhs and one on the rhs. These processes are represented by a circle. I then want three ...
11
votes
3answers
473 views

TikZ - “Circled” arrow

In the code below, I would like to add one text inside one "circled" arrow in gray like in the following ugly draw. Screenshot Code \documentclass{article} \usepackage[utf8]{inputenc} ...
11
votes
4answers
982 views

Oxidation/reduction arrows, overhead and below, with oxidation numbers also

I want oxidation/reduction arrows, overhead and below, with oxidation numbers also. Like the one featured in the watermark background on this very page upper left corner. Unfortunately, chemexec ...
11
votes
2answers
5k 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 ...
11
votes
1answer
527 views

Drawing a circle around a node that looks like an arrow

So I'm using TikZ, not too well-versed in it, and I would like to draw a node (unlabeled, just a dot) and with a dashed circle around it that has an arrow on it (this indicates direction). Basically ...
11
votes
1answer
2k 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 ...
11
votes
1answer
281 views

Use images for drawing an arrow

Is it possible to draw arrows (preferential with TikZ) with two images: One for the line and one for the tip? I would like to realize something like this: