# Tag Info

4

The latest version of PGF has a node contents=<node text> key which can be used in place of the {<node text>} in a node. It could be used like this: \documentclass[tikz, border=5]{standalone} \tikzset{node text/.style={node contents=\transformtext{#1}}} \def\transformtext#1{\ttfamily(#1)} \begin{document} \begin{tikzpicture} \foreach \l ...

1

The problem is that you first write the Gate label and you then draw another line over the top of it. If you just swap the last two lines in your tikzpicture environment then you get what you want: Here is your hacked code: \documentclass[margin=10pt]{standalone} \title{Analogue Synthesizer block diagram} \usepackage{tikz} \begin{document} %Define ...

0

In this proposal, the solution moves down the overlapping label associated to green bar (E) via adding a local option shown below with a conditional yshift test for coordinate=1 or 3 or 4 or 5 because the current coordinate index is stored in the macro \coordindex (starting from 0,1,2...): Moreover, myred and mybrown plots has a signle movement too. nodes ...

5

Labels are also nodes. So TiKZ is setting each label in a circle. Since larger labels need larger circles, those labels are set further away from the labelled node. You can avoid this by explicitly specifying the usual rectangular shape for labels: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} [ every node/.append ...

2

Here is a possible solution (if I understand the question): \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning,calc,backgrounds,fit} \tikzset{ every node/.style={font=\ttfamily} } \begin{document} \begin{tikzpicture} \node (n11) {x}; \node (n12) [right=of n11,xshift= 5mm] {x}; \node (n21) [below=of ...

2

Instead of scopes, with TiKZ 3.0 is possible to use pics. If a name is assigned to a pic, this name acts as name prefix and is appended before any internal node name. An example will be more clear than my english: \documentclass{standalone} \usepackage{tikz} \begin{document} %\tikzstyle{vertex}=[circle,draw,fill=black!20] ...

3

Two approaches were proposed here. Since the every pin style is defined. Use of pin skill will have yellow color as shown on the top. However, the OP wants the [19] to be blue without yellow background then label skill is used. The basic idea: to draw the extra lines is needed for one pin to multiple points. If label style is prefered. \node[label ={[label ...

4

If you daw the nodes you made you will understand that in one case you connect points in the other one you connect "boxes" aka nodes : \documentclass[border=5pt]{standalone} \usepackage{tikz} \usetikzlibrary{arrows,backgrounds,patterns,shapes.geometric,calc,positioning} \tikzset{small dot/.style={fill=black,circle,scale=0.25}} \begin{document} ...

10

Instead of drawing rectangles, define a node like: \tikzset{mynode/.style={fill= MainRed,rounded corners,minimum size=2cm,text width=2cm,text=white,align=center} } and use it. \documentclass[tikz,border=5]{standalone} \begin{document} \definecolor{MainRed}{rgb}{.6, .1, .1} \def\bigrectangle{(-7,-1) rectangle (6.5,4.7)} ...

4


4

You can use tikzmarks \documentclass{article} \usepackage{tikz} \usetikzlibrary{tikzmark} \begin{document} \begin{tikzpicture}[remember picture, myarrow/.style={->,yshift=.3em,shorten <=3pt,shorten >=3pt}] \node (1) at (0,0) {text1\tikzmark{t1} \phantom{$\rightarrow$} \tikzmark{t2}text2}; \draw[myarrow](pic cs:t1)--(pic cs:t2); ...

7

You can let the transformation apply to nodes via transform shape key. \begin{tikzpicture}[ style1/.style={circle,draw,fill=white,minimum size=7mm,font=\Large}, style2/.style={rectangle,draw,fill=white,minimum size=7mm,font=\Large}, transform shape ] \foreach \x in {0.5,1,...,4}{ \begin{scope}[scale=\x,yshift=2cm] \node (node1) ...

2

Another solution. It uses fitting library but with shifted or auxiliary coordinates. The cyan frame uses fit to encompass all three boxes \node[frame=cyan,fit=(Foyer)(Pote)(FoyerPote)] (cyan) {}; The yellow frame uses |- -| syntax to adjust fitting frame \node[frame=green,fit=(IRFoyer.north-|Foyer.west) (IRFoyer.south-|Pote.east)] (green) {}; The blue ...

3

This is one solution where minimum width and height are used for the frames style. Since the flowchart occupies the full A4 paper, this solution needs to adjust the node distances to pack all blocks in one page. Code \documentclass[a4paper]{article} \usepackage[margin=0cm]{geometry} \usepackage[english]{babel} \usepackage[utf8]{inputenc} ...

Top 50 recent answers are included