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

learn more… | top users | synonyms (1)

9
votes
1answer
314 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
2answers
3k views

Changing arrowheads size in pgfplots axes

I need to change the default axes arrowheads size of pgfplots when using the option axis lines=center. Following this answer, I tried this code: \documentclass{standalone} \usepackage{pgfplots} ...
9
votes
1answer
6k 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 ...
9
votes
2answers
713 views

How to create a zero vector?

$\vec{0}$ and $\overrightarrow{0}$ generate the following: The first arrow is decentered (it assumes an italic font), the second one is clearly too large. How to get an upright version of \vec?
9
votes
3answers
690 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
402 views

Using tikzcd in newcommand (for inline arrows)

I’m using tikz-cd for diagrams, and have a medium-sized diagram that I want to re-use several times. However, when I try using a definition like: \newcommand{\myarrow}{$\begin{tikzcd} A \ar{r} & ...
9
votes
1answer
404 views

Illustrate distributive law with “broken” arrows

I would like to obtain the following formatting.
9
votes
2answers
2k 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
2answers
546 views

arrowhead rotation

I want the arrowhead to look more natural as opposed to goofy (which is the present state) \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.new, decorations.markings, calc, fadings, ...
9
votes
1answer
761 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
2answers
946 views

TikZ: How to decorate a path with the open diamond arrow tip that “bends” with the path?

I have a curved path that I want to put an open diamond arrow tip on. Here is a MWE with my best attempt: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,decorations.markings} ...
9
votes
1answer
328 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
2answers
743 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
345 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
873 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
430 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
313 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 ...
8
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 ...
8
votes
2answers
867 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
2k 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
5answers
10k views

How can I label \rightleftarrows above and below?

How can I label $\rightleftarrows$ above the top arrow and below the bottom arrow?
8
votes
2answers
648 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
397 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 ...
8
votes
2answers
1k 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
331 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
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
3answers
616 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
7k 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
2k 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
316 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
1k 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
1answer
3k 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 ...
8
votes
2answers
704 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
4k 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 { ...
8
votes
1answer
1k 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: ...
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)) = ...
8
votes
2answers
278 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
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: ...
8
votes
1answer
290 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 ...
8
votes
1answer
491 views

Quiver plot with pgfplots: scale arrowheads with arrowsize

It is my understanding that the quiver plot with pgfplots keeps a constant arrowhead size, irrespective of the size (should I say length) of the arrow itself. Is there a way to have the arrowhead size ...
8
votes
1answer
376 views

Adding arrows on 3D curves in Asymptote

I am trying to plot (1D) trajectories in 3D with Asymptote (because I am also plotting surfaces with opacity and do not want to use hacks for hidden surfaces). Each curve is defined by points in an ...
8
votes
1answer
2k views

How to draw slanting arrows between columns of a table?

I'd like to draw some simple slanting arrows between cells in a table. The two cells can be in almost any position in the table. For example given this table: How can I modify it to obtain: ...
8
votes
2answers
883 views

Bold arrows in xymatrix

How can I produce a bold arrow in the package \xymatrix? I've tried with \ar@{\bf{->}}[r] and similar alternatives without success.