Linked Questions

27
votes
5answers
5k views

How can I force TikZ pin angle?

I'm trying to draw a resultant force diagram like so: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) -- (90:2.7) -- ++ (-13:12) node[shape=...
24
votes
3answers
3k views

How to build parallel paths between nodes?

I want to create a figure with TikZ: I tried first with the following code (remark: Complete MWE on bottom): \begin{tikzpicture} \node [block] (A) at (0,0) {\rule{2cm}{2cm}}; \node [block] (B) at (5,...
12
votes
1answer
7k views

Edge nodes, auto and node distance

Consider the following MWE \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0)--(1,1) node[auto,midway] {$A$} -- (2,0) node[auto,midway] {$B$}; \end{...
8
votes
4answers
10k views

How can I draw the following directed graph?

How can I make such a graph using tikz? I can draw the circled nodes and the arrows, but I can't change their position. (e.g. the one that starts from node 1 and ends at node 3). Edit: I would ...
10
votes
1answer
816 views

Labeling non axis parallel braces in tikz

Given two points, the following code draws a brace connecting them and labels it. \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc,decorations.pathreplacing} \begin{document} \begin{...
6
votes
2answers
775 views

Orthogonal shift of a line

I want to shift a line by some amount in some direction. Here the direction is fixed, orthogonal to the line. One difficulty is that the line should be drawn like it would be at the origin position. ...
2
votes
1answer
2k views

How to draw bigger circular states and multiple transitions in automata?

I want to draw something like this. I have three difficulties: How to draw bigger circular states and dashed circular state? How to draw multiple arrows between states? (Ex. In the state "App ...
4
votes
1answer
614 views

Placing edges side by side?

I have two nodes which should be connected by edges, one going from A to B and one from B to A. The problem is, that they do overlap but I want to show them as separate arrows - so one might shift ...
4
votes
1answer
664 views

A line parallel to an edge in a TikZ picture

I have a graph in TikZ built using code like the following \node[...] (1) at (0,0) {1}; \node[...] (2) at (1,1) {2} edge (1); I would like to add a short line (with an arrow) parallel to the ...
0
votes
1answer
745 views

Parallel arrows between nodes of varying size

I am using this solution to the question TikZ parallel Edges between Nodes to draw figures with parallel arrows next to edges. Minimal working example \documentclass[tikz]{standalone} \...
5
votes
1answer
122 views

TikZ node label is not being placed where I want it

Why is the following MWE not placing the label along the correct angle? \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[every path/.style={line ...