New answers tagged

0 votes

Arrow between two graphics

A small variation of @Miyase answer: plots are named, arrows coordinates are determined by plots names axis styles are collected in common \pgfplotsset xtick7s and their label are in ˙pi units \...
user avatar
  • 250k
1 vote
Accepted

Arrow between two graphics

I'd put both plots in the same tikzpicture and use a scope environment for the second one to shift it globally. Then you can use a simple \draw to add an arrow between them. Also, avoid \resizebox, it ...
user avatar
  • 585
1 vote
Accepted

How to disable rendering of certain package content (draft mode)

I propose this solution: \documentclass{article} \usepackage{tikz-cd} \usepackage{xifthen} \newboolean{draftMode} \setboolean{draftMode}{true}% turn on (true) or off (false) \usepackage{verbatim} %...
user avatar
  • 240
1 vote
Accepted

Draw dots on specific points of a line

Try replacing the line like this: \path (1.2*\x,0) -- node[circle,fill,label=above:\small$\i$] {} (1.2*\xx,0); instead of \path (1.2*\x,0) -- node[circle,fill,above, font=\small] {$\i$} (1.2*\xx,0);
user avatar
  • 336
6 votes
Accepted

Draw this scheme on TikZ

Welcome to TeX.:SE! Reproduction of your image: is done by: \documentclass[margin=3mm]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw[very thick](-6,0) -- (-3.84,0) -- ++ (...
user avatar
  • 250k
3 votes

Center-align stacked molecules with chemfig

It is not necessary to use \subscheme or \chemmove, shorter code is possible. It is possible to insert the arrow inside the molecule without the \arrow command \documentclass[12pt]{article} \...
user avatar
  • 1,270
4 votes
Accepted

Center-align stacked molecules with chemfig

The issue is a space that you don't want after \chemfig{ M(-[0]M{\sim}) (-[4]{\sim}M) }. Add a % to remove the whitespace at the end of the line. \subscheme{ \chemfig{H_2C=[@{bond}]CH_2} \...
user avatar
  • 19.8k
1 vote
Accepted

Tikz: Arrow tip overlaps with node

You can definitely shorten all arrowtips by the amount of a dot radius via \tikzset{shorten >= 2pt} \documentclass{article} \usepackage{tikz} \usepackage{xcolor} \colorlet{qqwwqq}{green!50!black} ...
user avatar
  • 1,814
3 votes

Tikz: Arrow tip overlaps with node

Place the node at the desired coordinates with shape and label information, and give it a name (I used Y). Then draw the line to the node, not to the coordinates, using \draw [->] (5.9,0.74) -- (Y);...
user avatar
  • 19.8k
1 vote

Arrow with reversed head

Using tikz-cd. \documentclass[a4paper,12pt]{article} \usepackage{tikz-cd} \begin{document} If you want to create \begin{tikzcd} a & [-1.4em] \arrow[l, no head, tail] b \end{tikzcd} a text \end{...
user avatar
  • 46.1k
1 vote

Arrow with reversed head

This also will helps: \documentclass{article} \usepackage{pstricks-add} \begin{document} \begin{pspicture}(2,2) \psline[ArrowInside=-]{-<}(2;2) \end{pspicture} \end{document}
user avatar
  • 10.9k
3 votes

Arrow with reversed head

TikZ has -< as a built in arrow head. To get the same size and shape arrowhead of LaTeX \to requires the arrows.meta library. To get the same length as the \to arrow requires some tweaking. \...
user avatar
  • 19.8k
6 votes

Arrow with reversed head

What is wrong with -<? \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture} \draw[-<] (0,0) -- (1,0); \end{tikzpicture} \end{document}
user avatar
  • 16.3k
4 votes
Accepted

Arrow with reversed head

You could start with something like this: \documentclass{article} \usepackage{tikz} \newcommand{\ot}{\tikz[baseline=-.5ex] \draw[-to reversed] (0,0) -- (1em,0);} \begin{document} \[ a \ot b \]...
user avatar
  • 19.4k
2 votes
Accepted

Draw arrays tree with tikz

Here is a solution using forest: The basic idea is that the diagram is a tree that grows north (grow'=north) and has arrows pointing backwards (latex-). Each node (other than the leaves at the top) ...
user avatar
  • 19.8k
3 votes

Interface for diagrams and example

A small variation of the nice @Sandy G answer (+1) which gives wee bit shorter code. For exercise :-) \documentclass[border=3.14159]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta, ...
user avatar
  • 250k
4 votes
Accepted

Interface for diagrams and example

It's true—TikZ can be intimidating at first. The 1000+ page manual is downright terrifying. But it's worth it! Start with some of the tutorials at the beginning of the manual. You'll be drawing ...
user avatar
  • 19.8k
1 vote

Concise code to get four identical diagrams equally spaced in four quadrants

Your question is not entirely clear, especially where are arrows and box with some description. Since in comment you say, that is not desired that I would edit my first answer, I delete it and decide ...
user avatar
  • 250k
3 votes
Accepted

Concise code to get four identical diagrams equally spaced in four quadrants

I add bounding box for each entry in order to see effect. You could comment those lines to make the entry without bounding box. Here are two versions of the code: Diagrams in first row aligned at ...
user avatar
  • 1,278
1 vote
Accepted

Arrow is not showing correcting in Tikz Flowchart

Something like this should work: \draw [arrow] (dec1.east) to node[anchor=north] {no} ++(0:2) |- (pro2.east); The 0 in (0:2) refers to the angle, and the 2 refers to the distance in that angle (in cm)...
user avatar
0 votes

question about drawing a Markov chain using Tikz

Here is a suggestion for you. \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure} \begin{center} \begin{tikzpicture} \def\a{2.5} \path[nodes={circle,draw,minimum size=12mm}] ...
user avatar
  • 13.4k
0 votes
Accepted

Displaying moderator analysis with 3 variables with LaTeX

This should solve your problem. Next time, please add a MWE as @SebGlav suggested. \documentclass[tikz,border=4]{standalone} \usetikzlibrary{arrows.meta} \usetikzlibrary{calc} \usetikzlibrary{...
user avatar
  • 240
2 votes
Accepted

question about drawing a Markov chain using Tikz

This is because you drew the circles which are not nodes, so TikZ doesn't know it has to start the arrows on their borders. You'd better give your nodes a minimum size and a shape (circle, here) and ...
user avatar
  • 16.3k
1 vote
Accepted

Branching Arrows 1-to-2 using Tikz?

The reason of offset is you using \overset in your equations. Without the \overset the arrows will be pointing to the center of the equations. There is a solution: \documentclass{article} \usepackage{...
user avatar
  • 1,278
5 votes
Accepted

Drawing subgroup lattice of G in Tikz

You're pretty close. Use the positioning library. Then the correct syntax is below=of G, not below of=G. The node distance is measured along the diagonals, which is preventing the rows from lining up, ...
user avatar
  • 19.8k
2 votes

A path below the nodes

Thanks to @SebGlav, here is the solution: \documentclass[a4paper,english,hebrew,numbers=noenddot]{scrartcl} \usepackage{amsmath} \usepackage{amsthm,tikz,twemojis} \usetikzlibrary {backgrounds} % <==...
user avatar
  • 2,377
2 votes
Accepted

Why does my text along the line intersect nodes?

Huh, your MWE is very (to my opinion unnecessary) complex (consequently in it can be easily lost) My suggestion is mostly off-topic -- possible solution is already mentioned in @SebGlav comment -- ...
user avatar
  • 250k
1 vote

How to draw a path near the nodes?

Alternatively, you can specify the north west anchor of node e as target for the arrow. With inner sep of node e you can then adjust the distance. \documentclass{article} \usepackage{tikz} \begin{...
user avatar
  • 2,390
3 votes

Adjusting the starting coordinates of an arrow precisely inside a TikZ node

With use of the chains library and define arrows start position by perpendicular coordinate systems: \documentclass[border=3.141592,tikz]{standalone} \usetikzlibrary{arrows.meta, ...
user avatar
  • 250k
1 vote

Adjusting the starting coordinates of an arrow precisely inside a TikZ node

This should help you reach your goal: \documentclass[tikz]{standalone} \usetikzlibrary{arrows.meta} \usetikzlibrary{calc} \usetikzlibrary{positioning} \usetikzlibrary{shapes.multipart} \begin{...
user avatar
  • 11
3 votes
Accepted

Drawing not simply connected domain

You are overcomplicating this. Draw all three closed curves with one \draw command using even odd rule to fill the area between the curves. Decorate with arrows and labels using \node in the ...
user avatar
  • 19.8k
2 votes
Accepted

How to draw a path near the nodes?

Using \draw[blue,dotted,->, shorten >=3pt] plot[smooth,tension=0.5, left] coordinates {(s) (a1) (e)}; you have:
user avatar
  • 28.7k
2 votes
Accepted

Problem raising a tikz picture in wrapfigure enviroment

Use \setlength\intextsep{0pt} to eliminate extra top and below space of the wrapped figure. \intextsep is the vertical space placed above and below all floats not just a wrap figure. To affect only ...
user avatar
  • 24.4k
0 votes
Accepted

How to change vertex style

I guess that you may liked (or you after) the following solution \documentclass{article} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{arrows.meta, chains, ...
user avatar
  • 250k
4 votes
Accepted

coding the arrows in flowchart

based on my answer on your previous question I would not use white text, fill color of nodes is not sufficient dark that it can be easy to read code lines for arrows, which are your problem, are in ...
user avatar
  • 250k
1 vote
Accepted

How to position the edges of the automaton\graph

With use of the chains, fit, positioning and \quotes` libraries, most of nodes are positioned in loop: \documentclass{article} \usepackage{geometry} \usepackage{tikz} \usetikzlibrary{arrows.meta, ...
user avatar
  • 250k
2 votes
Accepted

Shading parabola and changing the arrow head

All images has the same coordinate system and their scope, which are shifted from each other. By this the images code are simplified. Edit (1): ups, I forgot on Feynman diagrams. Now are added/...
user avatar
  • 250k
2 votes

How to position the edges of the automaton\graph

I would just \draw them separately: ... (p) edge node [itslabel] {\(1\)} (q) (q) edge node [itslabel] {\(\varepsilon\)} (r) (r) edge [shorten >=1em] node [itslabel] {\(0\)} (s); \draw[->, ...
user avatar
  • 19.8k
2 votes

how to change the angle between the edges of the automaton/graph

You can just use normal Tikz drawing commands to draw the lines in different places. Here's an MWE (note the inclusion of preamble materials to make it easier for others to run this code). \...
user avatar
  • 270
3 votes
Accepted

how to change the angle between the edges of the automaton/graph

You can add a yshift to the appropriate nodes: \node (d) [above right=of c, yshift=-.375cm] {}; ... \node (h) [below right=of c, yshift=.375cm] {}; Here is an alternative using forest, which ...
user avatar
  • 19.8k
0 votes

Place text along a path

It is not entirely clear, what you looking for. I guess, that for something like this: i.e. that text is on the first straight solid arrow and not on dashed curve. \documentclass[margin=3mm]{...
user avatar
  • 250k
3 votes
Accepted

Extend arrows in tikz picture

Add an additional point to connect those three lines. I added it at (-1.5,0): \foreach \l [count=\i] in {1,2,n} \draw [<-] (input-\i) -- ++(-1,0)node [above, midway] {$I_\l$} -- (-1.5,0);
user avatar
  • 19.8k

Top 50 recent answers are included