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

learn more… | top users | synonyms (1)

9
votes
4answers
5k views

How to use \leadsto in LaTeX2e?

I tried to draw an arrow with the command \leadsto But I get the following exception: ! LaTeX Error: Command \leadsto not provided in base LaTeX2e. So how can I draw such an arrow? I tried to ...
9
votes
4answers
517 views

How can I get curly arrow underneath a state in a state transition diagram

I have a simple state transition diagram that I'd like to render in latex ideally using regular mathmode markup. The arrows show the probability of going between states. \underbrace{\boxed{A}}_{1/4}...
9
votes
3answers
2k views

Arrows from cloud cross the outer line

I'm using TikZ to draw a cloud. Also I'm drawing arrows from the cloud to some nodes. But the startpoints of the arrows are in or outside the cloud but not exactly on the outer line. I think the ...
9
votes
3answers
376 views

Inserting an image properly in a table

I'd like to insert those lines that from "Foo" point to the four different rows in the table. I've tries inserting an image but it doesn't come out right (please ignore the bad quality of the ...
9
votes
3answers
820 views

How to put arrows pointing to equalities to explain each step

What´s the best way to explain every equality? With arrows like in Anything similar to this
9
votes
5answers
13k views

How can I label \rightleftarrows above and below?

How can I label $\rightleftarrows$ above the top arrow and below the bottom arrow?
9
votes
3answers
2k views

How can I strike-out arrows in tikz?

I am using the following code to draw a Directed Acyclic Graph (DAG) using tikz: \usepackage{tikz} \small{\begin{tikzpicture}[% ->, shorten >=2pt, >=stealth, node distance=1cm, pil/....
9
votes
2answers
329 views

Polyglossia and hookrightarrow

Can someone explain why there is a gap between the tail and the head of \hookrightarrow when I load polyglossia with French support ? I'm using LuaLaTeX for producing the .pdf. \documentclass{article}...
9
votes
1answer
363 views

How to get rid of an arrow in tikz?

I want to put a crossing on an edge. I do it in the following way: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english,russian]{babel} \usepackage{tikz} \usepackage{color} \...
9
votes
1answer
7k views

What makes LaTeX typeset basic \rightarrow arrowheads differently?

Recently I typeset the same document on two different computers—once on my Mac and once on a machine running Ubuntu. (Both have the latest release of TeX Live, or whatever the standard distro is....
9
votes
3answers
941 views

Arrow pointing to subscript in equation

I'm writing an equation for the components of a contracted tensor. I want to label one of the lower (covariant) indices with the text "rth positon," and have an arrow pointing to it from below. Any ...
9
votes
1answer
2k views

tikz: Bigger arrowheads, merging lines

I'm trying to add arrows between equations using TikZ and I'm having some issues. First, I can't figure out how to make the lines thicker and the arrowheads bigger. Second, I can't figure out how to ...
9
votes
1answer
13k views

Changing line thickness of arrow

\documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{tikzpicture} \draw[step=1cm,color=gray] (0,0) grid (3,3); \draw[draw=black,solid, -triangle 90,fill=...
9
votes
1answer
10k views

TikZ: remove margin, padding, border around nodes containing images

I want to create a simple figure where images are connected with arrows. Here is what I did: \begin{tikzpicture} \node[](A) {\includegraphics[width=0.2\textwidth]{a}}; \node[right=1mm of A](B) {\...
9
votes
1answer
424 views

Illustrate distributive law with “broken” arrows

I would like to obtain the following formatting.
9
votes
2answers
3k views

Is there a short diagonal pointing arrow symbol?

I understand that the package stmaryrd has a shorter version of the \rightarrow, \shortrightarrow, I wonder if there's a short version of the diagonal arrows (e.g. \searrow) and if not, if there's an ...
9
votes
1answer
4k views

Labels in tikzcd?

For some reason the tikzcd documentation that comes with TeXLive says nothing about the following: How do I specify whether or not a label is below/above an arrow? How do I specify the size of ...
9
votes
1answer
862 views

Filling the arrow tip and not the path using two different colors

I have a small problem with some arrows but I can't seem to find a solution. Please note that this question is different from Setting fill color for TikZ arrow tips only (and not the path itself), ...
9
votes
1answer
337 views

Does \Twoheadleftrightarrow exist? How to write my own?

I'm a LaTeX newbie. I am writing a document in which I need to have a two-headed bidirectional arrow. Two-headed like \twoheadleftarrow, bidirectional like \leftrightarrow. Is there any package that ...
9
votes
1answer
2k views

TikZ: Superimpose text over arrow

I am trying to superimpose some text over an arrow with TikZ. I know it is possible to have the text over the arrow but this is not what I am trying to achieve. What I have done so far is: \...
9
votes
1answer
2k views

Harpoons in TikZ

Can I have any harpoons in TikZ? I refer to my previous question on harpoons: "How to draw protocol interaction" using amsmath. The closest thing I have found is this code: \begin{tikzpicture}[...
9
votes
2answers
965 views

tikz: How to place an arrow with label exactly in the middle of a line?

In the following example, the label is in the middle of the line. But the arrow, which acts as a marker, is not in the middle. Only its head but not the center of the arrow. \documentclass{article} \...
9
votes
2answers
355 views

How can I modify arrows to complement this drawing?

Following the answer to this question, I'm now at a point where I have very unsatisfying looking arrows. If I use the double option in the \draw command the spacing is too small, and when I ...
9
votes
2answers
943 views

Why are bent arrows with arrow tips not symmetric in TikZ?

They say a picture says more than a thousand words. Is there a good reason why TikZ draws the arrows as skewed as in the left image? Is there any easy way to get good-looking, symmetric arrows as in ...
9
votes
1answer
482 views

Drawing multiple arrows at arbitrary angles in a common direction, with overlap

I am trying to draw a diagram with tikz that has multiple arrows (here I have 4) between nodes, where the nodes are placed arbitrarily in a diagram. My best (that is, shortest and easiest to ...
8
votes
4answers
349 views

TikZ chain adjust positions of on-the-arrow node

\documentclass{article} \usepackage{tikz} \usetikzlibrary{chains} \begin{document} \begin{tikzpicture}[start chain=circle placed {at=(\tikzchaincount*30:1.5)},regular/.style={draw,circle,inner sep=0,...
8
votes
2answers
1k views

\nearrow and \swarrow together

I'm trying to get an arrow that has an arrow head pointing north east and south west, so like \updownarrow but rotated. I can't seem to find this in LaTeX at all. It has to go inside an equation ...
8
votes
3answers
2k views

Drawing Multiple Diagonal Arrows in a Table

My question is basically the same as this one, but with many arrows instead. (I'd like to see the TikZ solution--I feel like once I get it here, I'll be able to extrapolate and do it in other cases ...
8
votes
5answers
3k views

How can I draw dirac deltas with arrow heads with pgfplots

I would like to draw this in pgfplots: I've tried this, but I can't figure out how to get the arrowheads. \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \...
8
votes
2answers
763 views

Highlight and use arrows in an equation In a robust manner

I am trying to give a very simple analogy to what I am trying to do with LaTeX. I simply want to write two vectors, one below or next the other, and then, use nodes to link the last two elements of ...
8
votes
2answers
2k views

How to draw just the arrow tip in TikZ

How can one draw "just the arrow tip" from one of the arrows in the arrow tip library in TikZ? The problem is that if you try a brute-force solution, eg. \tikz \draw[-triangle 90] (0,0) -- +(.1,0); ...
8
votes
3answers
2k views

Dashed down arrow

I am looking for a solution for dashed down arrow. Have already tried packages like lucidabr and MnSymbol, but these turn my whole stuff upside down, producing a lot errors like "Something is not ...
8
votes
1answer
413 views

Tell TikZ arrow to terminate prematurely

Is it possible to tell arrows in TikZ to ease off a bit so as to not get within a thousandths of an inch of the target node? In my particular case I am using shadows which are interfering with the ...
8
votes
4answers
1k views

Better transitive closure of labelled arrow

I think the answer will be easy, but I haven't found it yet: I use labelled arrows like \xrightarrow\tau a lot. Sometimes, I need the transitive closure of such relations, which I write \xrightarrow\...
8
votes
1answer
1k views

Draw arrow not to node center but to edge of circle on this node?

This example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}% \draw[help lines] (0,0) grid (1,1); \node [draw, circle] at (0,0) {}; \node [draw, ...
8
votes
2answers
2k views

Is there a logic symbol for counterfactuals

I am looking for a symbol that looks like: []--> So far I came up with $\Box\rightarrow$. The problem with this is, that the arrow is too far away from the box: How could I achieve this so that ...
8
votes
4answers
419 views

How do I create a negated arrow on \xRightarrow?

Similar to this question, but with the \xRightarrow instead. I tried changing the 3rd version to use \Rightarrow like so: \documentclass{standalone} \usepackage{amsmath} \usepackage{amssymb} % for \...
8
votes
3answers
640 views

How to make a thick line connect completely with the side of a box in TikZ?

In my figure, I have a thick line that connects with the side of a box. However, the line does not connect completely with the box. Also, the line covers part of the box (which I don't want). So, I ...
8
votes
2answers
8k views

Self loop in an undirected graph using TikZ

How can I create a self loop without a direction on the edge? \path[every node/.style={font=\sffamily\small}] (3) edge[loop] node {$e_{1}$} (3); creates the loop I want but has a direction.
8
votes
2answers
3k views

Matrix with arrows and labels

I would like your advice on writing a matrix with latex. In order to explain the meaning of the rows and columns, the matrix should be surrounded by two arrows, one on the left side pointing downward ...
8
votes
4answers
2k views

drawing an arrow to a table cell

I have to draw an arrow to a table like in this picture.
8
votes
1answer
369 views

Arrows in tables, or matrices

I have been experimenting with LaTeX for a couple of years now, but still consider myself a neophyte. I spent much of yesterday trying to create a table. I am trying to create a table with three ...
8
votes
1answer
2k views

Dotted or dashed xrightarrow

I need a dotted or dashed arrow with text like \xrightarrow. I am aware of the MnSymbol package, but \dashedrightarrow does not allow me to write text on the arrow. Is there a package to accomplish ...
8
votes
1answer
1k views

Arrows between two tables

I'd like to connect two cells from different tables using arrows. How can this be achieved?
8
votes
2answers
727 views

Skew an Arrow in a Tikz Diagram

I am trying to draw an arrow in a Tikz diagram but I would like it to be skewed as shown below. I searched Google but couldn't find any info about how to skew objects in Tikz. Is such a thing ...
8
votes
2answers
753 views

\to arrow with tikz or tikzcd

I want to replace the usual \to short arrow by an (approximately) equally short arrow with a nicer tip. Although completely newbie, I'm fond of tikz-methods and I write all my commutative diagrams ...
8
votes
1answer
5k views

Coloring arrows in \xymatrix

Is there a way to color certain (but not all) arrows using \xymatrix? I wish the following ignorant attempt would work!! \usepackage{xypic,color} \begin{document} \[ \xymatrix { X\ar[r]\color{red}{\...
8
votes
1answer
1k views

PGFPlots Parametric Plot, Arrow Spacing by Constant Time

For a parametric plot of a particle's position (x(t),y(t)), is it possible to usepgfplots to draw arrows equally spaced in time to indicate the direction of travel? For example, with (x(t),y(t)) = (t,...
8
votes
2answers
300 views

Underarrow with smaller depth, shorter minimum length, and smaller arrow head?

I am using underarrows from amsmath to decorate messages with their direction, as in $\underleftarrow{\mathsf{msg}}$ () and $\underrightarrow{\mathsf{msg}}$ (). I am looking for a better underarrow, ...
8
votes
1answer
293 views

Enriching \to^*

I am trying to enrich $\to^*$ with a $w$ above it, and the cleanest look I could get was with the {\smash {\overset w \rightarrow}}^* command. However, I believe this to be a pretty ugly solution, and ...