Tag Info

0

It is possible in this simple case to use a commutative diagram with tikz-cd. \documentclass[12pt]{standalone} \usepackage{tikz-cd} \tikzcdset{arrows={line width=.5}} \begin{document} \begin{tikzcd} 1 \arrow[r] & 2 \arrow[r] & 3 \end{tikzcd} \end{document}

1

This version aligns the tops and bottoms. \documentclass{standalone} \usepackage[demo]{graphicx} \usepackage{tikz,tikz-cd,pgf,makecell,smartdiagram,lmodern,ragged2e,array,caption,graphicx,booktabs,tabularx,subfig,xcolor,} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \node (MTRX) { \resizebox{4cm}{4cm}{% Resize table ...

1

Change your \draw line into this: \draw [->] (1) edge (2) (2) edge (3); You can also use the tikz library arrows.meta like this: \documentclass[tikz]{standalone} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture}[thick, every edge/.style = {draw, -to}] \node (1) {1}; \node (2) [right of=1] {2}; \node (3) [...

4

\documentclass{standalone} \usepackage[demo]{graphicx} \usepackage{tikz,tikz-cd,pgf,makecell,smartdiagram,lmodern,ragged2e,array,caption,graphicx,booktabs,tabularx,subfig,xcolor,} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node (IMG) { \includegraphics[width=6cm]{figures/EEG} }; \node[...

1

Like this? \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta} \newcommand\TBox[3][]{% \tikz\node[draw,ultra thick,text width=#2,align=center,#1] {#3};} \begin{document} \TBox{6cm}{% \TBox[fill=blue!30]{5cm}{A} \\ \TBox[fill=cyan!30]{2.5cm}{A1}\quad\TBox[fill=magenta!30]{2.5cm}{A2}} \tikz[baseline=-7mm]\draw[->...

3

Here are two ways to obtain Bezier curves. The first one using the syntax [out=70,in=20,looseness=2] see the section 74 To Path Library of the pgfmanual and the second one using the syntax ..controls (-2,-4) .. see the section 14.3 The Curve-To Operation Update (with polar coordinate) As Ignasi say \documentclass[tikz,border=5mm]{standalone} \...

2

I simplified the loops so that the iteration is done on a single variable since the second one is a constant, it is useless to loop on a constant. \documentclass[xcolor=dvipsnames]{beamer} \usepackage{times, pgf,verbatim} % pgf added for the umbc4 sty \usepackage{tikz} \usetikzlibrary{positioning,shapes.multipart,calc,arrows.meta} \usetikzlibrary{shapes....

5

I offer a slightly more compact solution, drawing all inside \foreach commands. \documentclass[border=2mm]{standalone} \usepackage{tikz} \tikzset {% styles for the nodes s/.style={fill=red!20}, p/.style={fill=green!20}, d/.style={fill=blue!20}, f/.style={fill=yellow!20} } \begin{document} \begin{tikzpicture}[scale=1.5, y={(0cm,-1cm)},line cap=rect] ...

8

Maybe something like this: \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathreplacing,decorations.markings,arrows.meta} \begin{document} \begin{tikzpicture}[x=2cm,y=2cm] \tikzset{% dot/.style={fill=orange!20,circle}, gdot/.style={fill=violet!20,circle}, set/.style={postaction={decorate,...

1

Here's an alternative method of achieving the jumping arc which uses my spath3 library. It locates the intersection of the paths and automatically places an arc at the intersection point in the over path. It additionally breaks the under path at the arc. \documentclass[10pt, border=1in]{standalone} %\url{https://tex.stackexchange.com/q/594585/86} \...

0

Here's one way to do it with just nodes and arrows manually setting the sizes of all boxes. \documentclass[tikz, border=20]{standalone} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \node[minimum width=4cm, minimum height=2cm, draw] (A) at (0, 0) {}; \node[minimum width=4cm, minimum height=1cm, draw] (B) at ($(A) + (0, -3)$) {...

1

\documentclass{article} \usepackage{tikz-cd} \begin{document} \begin{tikzcd}A \arrow[tail, two heads, dashed]{r} & B\end{tikzcd} % \begin{tikzcd}A & B \arrow[tail, two heads, dashed]{l}\end{tikzcd} \begin{tikzcd}A \arrow[tail, two heads, dashed]{d} \\ B\end{tikzcd} % \begin{tikzcd}A \\ B\arrow[tail, two heads, dashed]{u} \end{tikzcd} \end{...

2

I think what you're looking for, is the property "inner sep". In the following picture, the first arrow is generated with \ar[r, "\sim"], while the second is generated with \ar[r, "\sim" inner sep=.3mm].

2

Use controls if you want curvy connection of nodes: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[rounded corners,draw=black,minimum size=2cm] (a) at (1,1) {a}; \node[rounded corners,draw=black,minimum size=2cm] (b) at (-3,-3) {b}; \node[rounded corners,draw=black,minimum size=2cm]...

0

\documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes.geometric} \begin{document} \begin{tikzpicture} \node[circle, draw] (a) at (0,0) {a}; \node[circle, draw] (b) at (1,0) {b}; \draw[->] (a.east) to (b); \node[circle, draw] (c) at (0,-1) {c}; \node[circle, draw] (d) at (1,-1) {d}; \draw[->] (c) to (d); \end{tikzpicture} \end{document}

1

You only need to draw the \nodes (A,B,C,...) and the arcs. To draw an arc you need to write \draw (1,2) arc (0:90:3); which means that you are drawing an arc starting at point (1,2) with inital angle 0, ending angle 90 and radius 3. Something like this: \documentclass[border=2mm]{standalone} \usepackage{tikz} \usetikzlibrary{babel} % just in case \begin{...

3

With your document example is not possible to reproduce showed images. Showed image is not produced by provided code. Anyway, your image code can be rewrite into concise and much shorter code which consider recent syntax for defining of common picture elements styles, use positioning syntax defined in positioning library: \documentclass{article} \usepackage{...

4

You can start drawing the central node and from it the arrows with nodes at their ends. \documentclass[tikz, border=2mm]{standalone} % Definition of blocks: \tikzset{ input/.style = {coordinate}, % Input output/.style = {coordinate}, % Output suma/.style = {draw, circle, inner sep=.4mm, minimum size=2mm} } \begin{document} \begin{tikzpicture}[...

2

If the intention is only to separate the arrow edit the following code as \draw[->] (-1,-.5) node[left] {\tiny $X_2$} -- (sum1.south west);

4

First are determined nodes positions, than is drawn edges between them: \documentclass[border=3.141592]{standalone} \usepackage{tikz} \usetikzlibrary{arrows.meta, positioning} \usepackage{lipsum} \begin{document} \begin{tikzpicture}[ > = Stealth, node distance = 5mm and 10mm, sum/.style = {circle, draw, label=center:$+... 2 In addition to the great comment from Sandy G, I recommend to create a tikzset for this, to let you use it even with predfined nodes and not having to do any calculation everytimes. \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{arrows.meta} \tikzset{% revarrow/.style={-{<[length=#1]},shorten >=-#1}, circ/.style={circle,... 3 I fixed some parts of your code (put some comments in the MWE) and plotted the arrows using the coordinated as starting and end point. The result looks like this: \documentclass[border=5pt]{standalone} \usepackage{pgfplots} \begin{document} \pgfplotsset{ compat=newest, mystyle/.style={ ybar, xtick={1,2,3,4,... 2 Changes on OP code. use positioning library changed deprecated tikzstyle to tikzset defined parametric style for almost all boxed elements to save some typping added desired arrows The result \documentclass[a4paper,10pt]{article} \usepackage[left=24mm,right=30mm,bottom=25mm,top=25mm]{geometry} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{... 1 I have removed the fadings definition since it is giving errors -- the arrows can be easily drawn with the start point as the compass anchor of the node -- see if you can expand -- in case of difficulty please revert \draw[arrow](prvi.west)to ($(prvi.west)+(-1,0)$)|-(drugi.west)node[rotate=180,above,sloped,pos=0.3]{text}; \draw[arrow](prvi.west)to ($(...

3

As suggested in the comments, probably the easiest way would be to play around with the in/out angles and/or the looseness of the arrow, to see which path doesn't cross the DPs and still looks alright to you. For example: \documentclass[a4paper]{article} \usepackage[margin=0.5in]{geometry} %\usepackage[utf8]{inputenc} \usepackage[linguistics]{forest} \...

6

Just for fun, you could have used the decorations.markings library instead of all those calculations. \documentclass[tikz,border=3.14mm]{standalone} \usetikzlibrary{decorations.markings} \begin{document} \begin{tikzpicture} \tikzset{arrowedcircle/.style={ postaction=decorate, decoration={ ...

7

As mentioned in the comments, one approach is to define nodes and shift them relative to each other, draw lines to specific points of the node, ... Q1 How should I get the rightmost "column" of nodes to have the same horizontal distance as the center "column" have relative to the leftmost "column"? As mentioned in the comments, \...

3

\documentclass{article} \usepackage{amsmath} \begin{document} $\begin{array}{ll@{}r} 1. & [0,&0.30]\\ 2. & [0.3,&0.6]\\ 3. & [0.6,&1] \end{array} \xrightarrow{\text{some text here}} \begin{array}{ll@{}r} 1. & [0,&7]\\ 2. & [7,&12]\\ 3. & [12,&30] \end{array}\\$ \end{document}

6

If you load the bending library this works as expected: \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows.meta,bending} \begin{document} \begin{tikzpicture} \draw[->,thick] ({sqrt(2)},{sqrt(2)+2}) arc (45:225:2); \draw[->,thick] ({-sqrt(2)},{-sqrt(2)+2}) arc (225:405:2); \draw[->,thick] ({sqrt(2)+4},{sqrt(2)+2}) arc (45:225:2); ...

3

How about this? I'm not sure whether you want to align your intervals somehow. The following solution requires the amsmath-package. \begin{tabular}{ll} 1. & [0, 0.30] \\ 2. & [0.3, 0.6] \\ 3. & [0.6, 1] \end{tabular} $\xrightarrow{\text{Some text here}}$ \begin{tabular}{ll} 1. & [0,7] \\ 2. & [7,12] \\ 3. & [12,30] ...

5

You may try x post scale=0.5 and y post scale=0.5 to scale down the axis. Note: I changed \draw [fill=uuuuuu] (7.,0.) circle (2.0pt); to \draw [fill=black] (7.,0.) circle (2.0pt); in the code below because it was producing erros. Maybe some package error since you did nor provided your preamble. EDIT: For scaling down the whole picture you can use \adjustbox{...

Top 50 recent answers are included