# Tag Info

11

This is not a perfect solution. Used missing child to ‘make’ two nodes have the same child. \documentclass[border=3mm]{standalone} \usepackage[T1]{fontenc} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \begin{tikzpicture}[ every node/.style = {shape=rectangle, rounded corners, draw, font=\small, align=center, fill=white}, ...

8

\documentclass[border=12pt]{standalone} \usepackage[edges]{forest} \begin{document} \begin{forest} for tree={align=c,draw,rounded corners, tier/.option=level, anchor=base, l sep'+=10pt}, forked edges, before typesetting nodes={ where content={}{phantom}{} }, before drawing tree={ where n children=0{ if={>O{!u.phantom}}{ ...

7

Something like this? tikz-cd allows you to use glyphs for arrow tips. (I had to define a slightly wider version in order to avoid the symbol from being clipped.) \documentclass{article} \usepackage{tikz-cd} \makeatletter \pgfdeclarearrow{ name=xGlyph, cache=false, bending mode=none, parameters={\tikzcd@glyph@len,\tikzcd@glyph@shorten}, setup ...

6

The following might serve as a place to start from: \documentclass{article} \usepackage{tikz} \tikzset{ mybox/.style={rounded rectangle,draw=black,align=center}, } \usetikzlibrary{positioning,shapes.misc} \begin{document} \begin{figure} \centering \begin{tikzpicture}[>=latex] \node[mybox] (Charlie) {\textbf{Charlie}\\ text text text text\\ text ...

6

You can name the nodes near coords and use them. \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=1.16} \pgfplotsset{% https://tex.stackexchange.com/a/75811/194703 name nodes near coords/.style={ every node near coord/.append style={ name=#1-\coordindex, alias=#1-last, }, }, name nodes ...

6

Use \xhookrightarrow from mathtools, e.g. \documentclass{article} \usepackage{mathtools} \begin{document} $C_p^\mathcal{U}\hookrightarrow C_p(X)$ $C_p^\mathcal{U}\xhookrightarrow{\quad} C_p(X)$ \end{document} Here, \quad is just an example. This is an extensible arrow, which will adjust its size to what it written above (or underneath) it, even if this is ...

6

The canonical way to plot something like this is to use the groupplots library in order to arrange the plots, and the fillbetween library for the fills. \documentclass[border=5mm]{standalone} \usepackage{amsmath} \usepackage{pgfplots} \pgfplotsset{compat=1.16}% <- if you have an older installation, try 1.15 or 1.14 \usepgfplotslibrary{groupplots,...

5

another starting point ... used are arrows.meta, positioning, quotes, shadows and shapes.misc TikZ libraries: \documentclass[tikz, margin=3mm]{standalone} \usetikzlibrary{arrows.meta, positioning, quotes, shadows, shapes.misc} \begin{document} \begin{tikzpicture}[auto, node distance = 18mm and ...

5

With the help of \pgfplotsset{colormap=...} you can define your own color map colors. \pgfplotsset{colormap={CM}{rgb255(1)=(4,50,4) color(5)=(yellow)}} will for example give a dark green to yellow gradient: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat = newest} \usepgfplotslibrary{colormaps} \pgfplotsset{colormap={...

4

Disable auto for current arrow by setting: \ctikzset{i/.append style={auto=false}} \documentclass[border=3mm]{standalone} \usepackage{circuitikz} \ctikzset{i/.append style={auto=false}} \begin{document} \begin{tikzpicture}[auto] \draw (0,0) to[L, l=$L$, i=$i_L$] (3,0); \draw (0,-1) -- ++(4,0) node[midway]{\texttt{auto} works}; \end{tikzpicture} \end{...

4

I feel you would be better off if you posted a complete minimal working example, and refer to the earlier posts that you intend to keep using. This answer provides working codes and links (and in case someone shows up stating things become so much simpler when using quotes: please take such statements with a grain of salt ;-). I added two versions, one with ...

4

One usually strongly recommends to use \saveboxes when one is to use a tikzpicture in a node. This also applies to the contents of forest nodes, which I would use to draw this. So the circuits go into forest nodes, and the rest is more or less standard with the caveat that the lower part of the tree is drawn by hand since merging branches is not really ...

4

It is fairly straightforward to draw this with forest. Whether or not this is the most efficient way, I do not know. \usepackage[edges]{forest} \usetikzlibrary{decorations.pathreplacing,calligraphy} \begin{document} \begin{forest} for tree={grow'=0,align=left,l sep=6em, anchor=center,parent anchor=east,child anchor=west, edge={...

3

Nesting tikzpictures is normally frowned upon (search for "nesting tikzpicture" here...), because the results are not guaranteed. In these cases, when the circuit has to be repeated, I usually define a macro to draw the circuit relative to a parameter which is a coordinate. Into the macro, I define a set of coordinates that are then useful to build the ...

3

Here is a solution with matrix of nodes. Note that Its recommended to use tikzset instead of tikzstyle. Read: Should \tikzset or \tikzstyle be used to define TikZ styles? text width=3cm is set to make the nodes have same width. An intermediate node is added in the second row so that the arrow to final column can be drawn horizontally. Some vertical ...

3

One possibility is to use the angles and quotes library. I also removed unnecessary duplications of paths. \documentclass[12pt,a4paper,oneside]{article} \usepackage{tikz} \usetikzlibrary{angles,quotes} \begin{document} \begin{tikzpicture} \draw (-4,0) -- (4,0) (0,-4) -- (0,4); \draw (0,0) coordinate(O) node[circle,draw,inner sep=1pt,label=below ...

3

Welcome! You can give the label a name and a style. \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{arrows,positioning,shapes.misc} \begin{document} \begin{tikzpicture} \node (secondsong) [matrix,draw, rounded rectangle, label={[name=song, rounded rectangle,draw,yshift=1em]:song}]{ \node (fstittel) {\_tittel}; \node (fstittelvar) [right=...

2

This is a proof of principle (as opposed to a fully automatic, super elegant solution). The issue is that \chemmove uses overlay, which, by definition, interrupts/discards the bounding box. However, there is, as far as I know, no way to annotate a pre-existing tikzpicture without overlay. What one could, however, do is to see by how much some points of the ...

2

One variation of possible answers ... here the library quotes is exploited also for edge labels, circle is drawn by circle: \documentclass[12pt,a4paper,oneside]{article} \usepackage{tikz} \usetikzlibrary{angles, arrows.meta, quotes} \begin{document} \begin{tikzpicture}[auto=right] \draw (0,0) coordinate[label=225:0] (O) circle[radius=...

2

It might help to use a pic for the graphs. \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{backgrounds,fit} \begin{document} \begin{tikzpicture}[pics/graph/.style={code={ \tikzset{graph/.cd,#1} \begin{scope}[local bounding box=temp] \draw[thick,red] plot[variable=\t,domain=0:0.9,samples=101,smooth] ({\t},{\pgfkeysvalueof{/...

2

If you use tikzmark, please consider using its command \tikzmarknode, which allows you to use the anchors, and so on. \documentclass{book} \usepackage{amsmath,xcolor,marginnote} \usepackage[skins,breakable]{tcolorbox} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document} \definecolor{cyn}{cmyk}{.15,0,0,0} \definecolor{bl}{cmyk}{1,0.9,0.1,0} \...

2

\documentclass[pstricks]{standalone} \usepackage{pst-func,amsmath,xfp} \def\GaussI#1{\fpeval{1/(1+exp(-0.0706*(#1/0.5)^3-1.598*#1/0.5))}} \begin{document} \psset{yunit=4cm,xunit=3} \begin{pspicture}(-2.1,-0.2)(2.1,3) \rput[lb](0.6,0.5){\textcolor{red}{$\sigma =0.5$}} \rput[lb](-2,0.5){$f(x)=\dfrac{1}{\sigma\sqrt{2\pi}}\,e^{-\dfrac{(x-\mu)^2}{2\sigma{}^2}}$}...

1

If you really want to use tikz and not forest to draw this decision tree, you could use \documentclass[tikz,border=3mm]{standalone} \usetikzlibrary{shapes.geometric,positioning} \begin{document} \begin{tikzpicture}[% decision/.style={diamond,draw, text width=4.5em, text badly centered, inner sep=1pt}, io/.style={trapezium, trapezium left angle=70, ...

1

Like this? \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning,calc} \tikzset{% block/.style = {draw, thick, rectangle, node distance=3em, minimum height = 3em, minimum width = 3em, align=center} } \begin{document} \begin{tikzpicture}[auto, thick, >=triangle 45] \draw node [block] (b) {B}; \draw node [...

1

Note that I do not claim that this is a realistic representation of the power of the field emitted by an antenna. This is just to say that you can do parametric plots with tikz-pgf, with which this question is tagged. \documentclass[tikz,border=3mm]{standalone} \begin{document} \begin{tikzpicture} \draw plot[variable=\t,domain=0:360,smooth,samples=51] (...

1

There are many ways you can swap labels. Here are three of them: You can swap the labels with every arrow/.append style={swap}. You can swap individual labels by adding [swap] to the arrows. If you use the quotes syntax, swapping the labels is as simple as adding a prime. Example codes: \documentclass{article} \usepackage{tikz-cd} \usepackage{amsmath} \...

1

Your "flowchart" on a bit different way: With use of the forest, its forked edge option, grouping s sep distance, anchoring of nodes at west. The coloring of nodes and tier option are borrowed from Schrödinger's cat's first version of his answer, styles of nodes are similar as are in @nidhin answer. The MWE is: \documentclass[tikz,border=3mm]{standalone} \...

1

Such diagrams are called trees, and a convenient tool to draw them is forest, which is based on TikZ. There the alignment can be achieved by setting appropriate tiers. \documentclass[tikz,border=3mm]{standalone} \usepackage[edges]{forest} \usetikzlibrary{shadows.blur} \begin{document} \begin{forest} for tree={grow'=0,rounded corners,text centered,draw, ...

1

You can use tikzmark library to do this. \documentclass{book} \usepackage{amsmath,xcolor,marginnote} \usepackage[skins,breakable]{tcolorbox} \usepackage[framemethod=TikZ]{mdframed} \usetikzlibrary{calc,tikzmark} \begin{document} \definecolor{cyn}{cmyk}{.15,0,0,0} \definecolor{bl}{cmyk}{1,0.9,0.1,0} \definecolor{org}{cmyk}{.02,.12,.15,0} \definecolor{forg}...

1

Welcome! You are loading but not using positioning, and \tikzstyle is deprecated. \documentclass{article} %\usepackage[showframe]{geometry} \usepackage{geometry} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,arrows,positioning} \begin{document} \pagestyle{empty}% \noindent \begin{tikzpicture}[node distance =0.8cm, auto] % Define ...

Only top voted, non community-wiki answers of a minimum length are eligible