Questions tagged [tikz-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Fixing node size and text alignment in Neural Network

I was able to modify the Latex Neural Network in the answer given by Aymon here Neural Network Tex However I can seem to do a few things get the outputs to be equivalent to the output nodes, for ...
5
votes
2answers
175 views

tikzpicture shape label with curves

This may be a very simple question. To the square I have below, how would I add the label shown in yellow? \documentclass[]{article} \usepackage[margin=0.5in]{geometry} \usepackage{pgfplots} \...
0
votes
1answer
56 views

In tikz, can I write single long nodes as multiple short nodes?

Suppose I have the following in tikz: \node[right] at (0,0) {$A=\{1\}$}; But I would like to write this as five separate nodes, each representing a character in the above. In other words, one node ...
2
votes
1answer
33 views

Add note with text in 3D plot

I basically want to use this command \node at (0.1,0.1) { \colorbox{white}{\textcolor{black}{$A$}}}; and just add one dimension for 3D. Unfortunately this does not work and the internet just explains ...
0
votes
0answers
34 views

Why there is no default text align to produce a line break inside a node?

Example: \documentclass[letterpaper]{letter} \signature{Assistant director of the intergalactic unit} \usepackage{tikz} \begin{document} \address{Gallifrey, Binary Start System} \begin{letter}{My ...
0
votes
1answer
38 views

Label intersection point of two curves in pgfplots

I want to label the intersection point of the green and red curve. Anything I tried didn't work. Can somebody help me? This is my code so far. \usepackage{pgfplots} \pgfplotsset{compat=1.11} \...
1
vote
1answer
50 views

Align node text in tikZ graph

I have the following tikz picture but I can't figure out how to properly align the characters on the left (A,B,C,D,E). I'm pretty sure there's a better way than how I did it with the node labels. Any ...
1
vote
1answer
47 views

Edge between two tikz pictures

I am trying to draw some edges between tikzpictures in latex. I will post the code sample and a picture of what it looks like and a pic that gives an idea of how I would like the edges to look. I have ...
4
votes
1answer
44 views

Spacing between figures in \matrix of tikz

I'm trying to put 4 figures with unequal heights in a matrix. My code which you can compile here is: \documentclass[journal=aamick]{achemso} \usepackage{tikz} \usetikzlibrary{matrix,positioning} \...
0
votes
1answer
32 views

Creating a node for an optical splitter

Could you please help me creating a node of an optical splitter, that has two input ports and two output ports? The shape is as follows: \documentclass[tikz,border=10pt]{standalone} \usetikzlibrary{...
4
votes
3answers
160 views

Missing node when using Tikz package

I am using the Tikz package to create a flow chart in LaTeX. When I compile the code below I get two errors: The node for Group 1b (and the nodes below it) that derives from Level B1 is missing from ...
0
votes
0answers
36 views

Latex Beamer: draw arrow and text on resized tikzpicture but text should have same font as presentation

I make a presentation and there I have a tikzpicture scaled with resizebox. I now want to draw an error to a tikzmark, but the node text at the arrow should have the same font size as the rest of the ...
1
vote
1answer
35 views

Circuitikz, draw a component within a node

using circuitikz (siunitx), I would like to draw a diode within a rectangle, but the option to place text within a node doesn't allow that: \draw (0,0) to node[draw,rectangle, fill=white] {a diode ...
0
votes
0answers
19 views

Custom node shapes without low level pgf

Is there a way to define custom node shapes in TikZ without having to deal with a lot of low-level pgf? So, imagine I have some TikZ commands that draw some shape, a TikZ path giving the bounding box ...
0
votes
1answer
53 views

TikZ: Node names with a “.”

In TikZ, for some node (x), one can use e.g. (x.west) to refer to anchors of the node x. If I try to by hand define a coordinate with a "." in the name, this doesn't work: \coordinate (x.test) at (4,...
1
vote
1answer
35 views

Use tikzpicture vector lengths to specify node dimension

I would like to create a node with minimum width=αx, where x is the length of the x-coordinate vector specified in the tikzpicture environment, e.g. \begin{tikzpicture}[x=0.1cm,y=2.5ex]. Is this ...
0
votes
1answer
91 views

How can I draw this diagram that has nodes and arrows?

How can I draw this ? A related diagram (more complicated) is here Tikz draw neural network outline I did tried to modify the code provided by @Zarco but I just could modify the nodes. I end up ...
0
votes
1answer
52 views

How to fix the positioning when rotating text nodes in tikz?

% When I try to rotate nodes it jumps to the second page. How can I fix this? \documentclass[20pt]{extarticle} \usepackage[utf8]{inputenc} \usepackage{geometry} \geometry{paperheight=61.1cm,...
2
votes
1answer
35 views

How is text indented and glued within TikZ node contents?

This is my MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture}[draw=red,very thin, align=left,every node/.style={draw,rectangle}] \node ...
4
votes
1answer
105 views

Tikz: Problem with “sloped” in cyclic tree

I am trying to get sloped text on an edge in a tree. \documentclass{article} \usepackage{tikz} \usetikzlibrary{trees} \usetikzlibrary{graphs} \usetikzlibrary{positioning} \renewcommand{\...
2
votes
4answers
93 views

tikz Shifting node horizonally

I have the following code, \documentclass{article} \usepackage[latin1]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \pagestyle{empty} \definecolor{cloral}{RGB}{230, ...
3
votes
2answers
72 views

Trouble by recalling nodes to filling path in pgfplots

I'm try to store some coordinates of a pgfplots diagram into node in order to use them in a second time. For example I define three nodes by \node[inner sep=0pt] (A) at (axis cs:2,2) {}; \node[inner ...
4
votes
2answers
156 views

tikz rectangle nodes fail to align

I'm trying to align 2 nodes (instr0 and instr1) to the left. I've followed How can I align two nodes to the left in TikZ? however it doesn't quite work as I'm getting the following error: ! Package ...
6
votes
1answer
137 views

Draw a line that encloses some objects in TikZ

Given an array of circles, I want to draw a line that tightly encloses the circles. Since a picture is worth a thousand words: The code to produce the array of circles is as follows: \documentclass[...
2
votes
1answer
43 views

How do I access the position of a node's label?

This is an extract of my code: \node (secondsong) [matrix,draw, rounded rectangle,label={song}]{ \node (fstittel) {\_tittel}; \node (fstittelvar) [right=of fstittel, rectangle, draw] {``Money'...
0
votes
3answers
76 views

Multiple Color PGF Shape

I have a Two shapes I use as a nodes. Currently I have Two styles, which overlap, which limits the number of nodes I can have by half. What I am trying to do is create a pgf shape so that both shapes ...
2
votes
1answer
54 views

Text in a node in tikz does not seem to be vectorial

I am trying to draw a nuclides chart in tikz. But when I look at the different elements names (C, Be, etc.) I notice that my text does not seem to be vectorial... What is very strange is that some of ...
7
votes
3answers
121 views

Vertical alignment of node contents

In TikZ, I know that the relevant properties to control the shape and text-alignment of a node are: minimum width and minimum height (outer shape) AFAIU baseline is used to align the nodes themselves,...
2
votes
1answer
128 views

Tikz node without text

I have a lot of diagrams with shapes where I draw lines between certain points on the boundary of those shapes. With Tikz I can use nodes to draw shapes, and use anchors like "node.west" to draw lines ...
0
votes
1answer
59 views

macros expanding to a TikZ node

I want to create rectangular nodes, given two coordinates bottom left and top right, with a macro. The difficult part is that I want to use the macro where a node name can be used; for example, in the ...
3
votes
2answers
75 views

i want to draw self loop at node

Question: In my graph i just want to draw a self loop at node v9. How can i do this? MWE: \documentclass[10pt]{article} \usepackage{pgf,tikz,pgfplots} \pgfplotsset{compat=1.15} \usepackage{mathrsfs}...
2
votes
1answer
51 views

Tikz path crossing over first node

I'm working on a Python script to automatically draw pinout diagrams for IC's with Tikz. An example drawing with the TeX file obtained are shown below. As you can see I'm almost done except for a ...
2
votes
2answers
117 views

Add an icon to a node in tikz

I would like to add an icon on the border of a node. I can do it easily for one node: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[draw] (A) {content};...
2
votes
1answer
47 views

How could I create a black border around the title area?

How could I create a black border around the title area? I have this code so far: \documentclass[answers]{article} \usepackage[utf8]{inputenc} \usepackage[framemethod=TikZ]{mdframed} %Textbox \...
0
votes
0answers
27 views

Text not aligned on baseline in TikZ [duplicate]

I have a problem in TikZ with text inside a node being aligned to total height, instead to baseline, as shown below. Notice how "Source" and "Load" are aligned to the baseline, but "Storage" is not ...
1
vote
1answer
56 views

Change the size of spaces between words in TikZ environment

I tried to change size of spaces between all words (inter word spacing) in a TikZ node but it seems not working. Anyone knows another approach that could work? \documentclass[12pt]{article} \...
0
votes
0answers
29 views

Plot a weighted graph with nodes being images

I want to plot a graph where nodes are images. I am aware that one can use the tikz package to plot weighted graph, but how can I customize it so that the nodes would be images that I have? The result ...
0
votes
2answers
47 views

Change style of nodes after first alignment

I have a graph which I draw with my own command. I have to use that very often but normally in different colors. There are no problems with edges becaus I simply can use \draw[style=green](x)--(y) to ...
2
votes
1answer
88 views

Placement and Opacity of tikz nodes

I've got the following MWE, which I would like to use as a kind of road map for the defense presentation. It basically all works and looks good, but there are two things, I don't know how to fix. The ...
1
vote
1answer
54 views

Place Node Text on Line

\path [line] (switches) -- node {[[1, 0, 1], [0, 1, 0], [0, 1, 0], [0, 1, 0]]} (switches-ind); places the text right of the line, above places it left. How can I place it exactly in the middle of the ...
7
votes
2answers
168 views

How to perform arithmetic for a node in TikZ?

I have an array of boxes and I would like to number them quickly using TikZ. My idea was to use something like this: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[...
2
votes
1answer
72 views

New shape format of a singe node in tikzcd (rewrite cells option)

I need your help. How to get a new custom shape of a node in a tikzcd diagramm which uses option cells={nodes={ellipse}}? I've tried to use a trick with |[cells={nodes={draw=red, rectangular}}]|, ...
1
vote
1answer
49 views

Drawing a number line

I am going through the TikZ tutorial in the manual, and I am trying to make my own examples. However, I cannot understand why my code is not woking as intended. I would like to draw a number line, ...
1
vote
1answer
19 views

Lablenode does not move vertically

I am trying to move the two lines with the 2 and the 3 on top down, so that this line connects with the top left corner of the y-axis. Somehow it doesn't move. I know that the scaling is weird and ...
1
vote
2answers
65 views

Horizontal arrows between nodes in tikzpicture

I have the following picture: \documentclass[preview,border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{center} \begin{small} \begin{tikzpicture} [...
0
votes
1answer
86 views

Shrinking padding of node with label options

I am trying to implement command — let's name it fn — aimed to behave like overset command and underline the lower word with some curve. Doing this using TikZ. The lower word is made as node text, and ...
0
votes
0answers
41 views

dynamically adjust font size based on length of input name

I have a document where title page includes the name of client. Font size for the name is fixed and for short names it works fine. However, whenever I have a client with longer name, my text goes over ...
6
votes
1answer
404 views

How to adjust arrow head size of arrow-node?

I am trying to use single arrow node from shapes.arrows TikZ library. The problem is with the proper adjustment of the arrow tip span - with the argument single arrow head extend. MWE: \documentclass{...
1
vote
1answer
42 views

Node spacing when drawing line between them

I want to draw line between specified nodes with the following code: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node [name=A, inner sep=0pt, outer sep=...
1
vote
1answer
198 views

! Package PGF Math Error: Unknown operator `=' or `=1'

I'm trying to use a command that calculates a number of days in the context of defining the minimum width for a tikz node: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \...

1 2 3 4 5 6