Questions tagged [tikz-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
1answer
680 views

Fitting text in the node, for neural network

I am trying to make a neural network with some text inside the nodes in the hidden layer. My code is here which is a modified version of one I found on tex stackexchange: \begin{tikzpicture}[ plain/....
3
votes
1answer
73 views

TikZ: node-in-picture-in-picture can be referenced but is in the wrong place

This is an issue with an answer to a previous question: The proposed solution uses a picture-within-a-picture. As its author noted: Note: (foo) and (age) will not be defined in the final ...
3
votes
1answer
192 views

TikZ: Why does moving anchor= to a style change the result?

Here is code which renders as expected. I want to refactor it. \documentclass[tikz,border=10pt,a4paper]{standalone} \usetikzlibrary{arrows,intersections,shapes,backgrounds,scopes,positioning,fit,...
2
votes
2answers
192 views

TikZ: explicitly-named node in a matrix offers anchors in the wrong place

I have put \node commands inside a TikZ matrix of nodes. I am aware that this breaks automatic m-1-1 node naming, but when I give the name of a node explicitly, the anchors are in the wrong place. ...
2
votes
1answer
1k views

How to add text next to nodes and prune (cut) parts of a tree?

I am having problems with how to align text next to nodes and also how to prune a tree. So far I have the following code and please ignore mistakes, I am not familiar with TikZ or LaTeX. \usepackage{...
0
votes
2answers
211 views

How to correctly connect nodes in tabular

I would like the nodes created in the table to be connected by a line. Ideally, the lines connect from the right-middle edge of the border for the nodes on the left, and the left-middle edge of the ...
1
vote
1answer
792 views

How to make nodes the same height

I want to make the outer boxes in the diagram below the same height: Here is the code: \documentclass[border=10pt]{standalone} \usepackage{tikz} \usetikzlibrary{positioning,fit, calc} \definecolor{...
4
votes
1answer
1k views

Prevent tikz tree nodes from overlapping

I'm drawing tree structures of sentences with tikz, where nodes contain words, which may be longer sometimes. If that occurs, they are likely to overlap with neighbouring nodes. How can I tell tikz to ...
5
votes
1answer
1k views

How do I set a really exact radius for a node?

Creating an energy level diagram, I used this answer to make the node circles equal radius: How to set exact radius for a node? \documentclass{report} \usepackage{tikz} \begin{document} \begin{...
12
votes
2answers
8k views

How to make all nodes same size in TikZ?

I'm draw a TikZ figure, but I came across two problems. First one is that all the nodes have the different size due to the size of the text inside the nodes. I read in some other question here, that ...
4
votes
1answer
3k views

how to position text in node precisely?

I want to put the text A into the right bottom corner of the node rectangle without changing any other stuff. Please help me. \documentclass[10pt]{standalone} \usepackage{tikz} \begin{document} \...
6
votes
1answer
10k views

Text position of a TikZ \node

Here is my code: \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{arrows.meta} \begin{document} \begin{tikzpicture} \node (circle) [draw, circle, minimum size = 20mm] at (0, 0) {} ...
2
votes
2answers
2k views

How to position a tikzpicture properly?

% I need to know how I can keep this tikzpicture centered. It tends to shift to left and right. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[paperheight=14in,paperwidth=8.5in,...
3
votes
1answer
413 views

Make TikZ nodes connect to TikZ tree edges

This is a question from a comment in this question: Drawing a frame or box around parts of a syntactic tree using tikz-qtree I'm not getting any answer to my comment, which is why I'm asking a new ...
3
votes
1answer
5k views

How to draw rectangular boxes with TikZ?

I want to draw rectangular box around some text, and use arrows to point from one of them to the other. But, one text is a bit longer, so I also want to split it into to lines. I have the following: \...
1
vote
1answer
65 views

Label error on scope rotation

Within the provided code, I want to define a TiKz scope and to scale the contents of such scope. \documentclass{beamer} \usepackage{tikz} \tikzstyle{result}[blue] = [draw=#1,rounded corners,align=...
4
votes
2answers
3k views

Add text under tikz rectangle

I want to write some text under the rectangles drawn using tikz, to draw an array and its indices. Here is a mwe: \documentclass[tikz,border=2mm]{standalone} \usetikzlibrary{arrows, chains, fit, ...
0
votes
1answer
576 views

Circuitikz: npn error

I try to do some schematics with circuitikz. The result is as expected, but I always get errors from pdflatex and can not figure out what causes these annoying errors. I installed the most recent ...
7
votes
1answer
2k views

Trapezium size issues Tikz

I have a code that generates a flow chart. It's not entirely complete, it just needs arrows which is besides everything. This issue I have is the process nodes, trapeziums, aren't the same size even ...
2
votes
0answers
194 views

Nested tikzpicture using \node

I want to make comments onto a matlab2tikz figure. One way is to nest the matlab generated code using a \node inside a tikzpicture. However, when I do so, the axis labels and axis tick labels get "...
4
votes
2answers
1k views

Blocks with TikZ

For a beamer presentation I am using TikZ for creating a rounded block with some text in it. The following is the working example: \documentclass{beamer} % \usetheme{CambridgeUS} \usepackage[latin1]{...
2
votes
1answer
172 views

Point of concurrency in triangle using nodes

Using the tikz manual I've come up with this: \documentclass[letterpaper,10pt]{article} \usepackage{tikz} \begin{document} \begin{figure} \centering \begin{tikzpicture} \draw (0,0) -- (2,0) node [...
1
vote
2answers
348 views

How should one align nodes/shapes in tikz

In my math class, I'm learning to write math papers. It's actually an interesting class. It's like an English class that makes sense. In the paper we wrote on Polyhedra, I wrote a proof for why ...
5
votes
2answers
2k views

TikZ: Anchor current page north west isn't where expected

I want to use TikZ page anchors to draw a sheet with a mix of text and graphics. So I started with a simple rectangle that would cover the entire page: \fill[red] (current page.north west) rectangle (...
1
vote
1answer
104 views

Subnodes on border of ellipsis

I want to place some subnodes on the border of a node. This is what I have: \documentclass{article} \usepackage{tikz} \usetikzlibrary{positioning} \begin{document} \begin{tikzpicture} \node[...
6
votes
2answers
1k views

How to position an element relative to an anchor?

My code is: \begin{center} \vspace{-20pt} \begin{tikzpicture}[mybox/.style={rectangle, draw, minimum width=10mm, minimum height=10mm}] \foreach \addr/\val [count=\x] in {$0$,$1$/$28$,$6$/$\...
5
votes
1answer
2k views

Creating a (tensor) network using TikZ [duplicate]

I am trying to draw a very simple network diagram. My code: \begin{tikzpicture} \node[draw, shape=circle] (v0) at (0,0) {$v_0$}; \node[draw, shape=circle] (v1) at (1,0) {$v_1$}; \...
0
votes
1answer
258 views

a0poster: Poster second column not starting from beginning of a page but shifted down

I am making my first poster with the use of a0poster package, based on code I forked from rOpenGov poster repo. I have a problem with editing the second column of a content: the first node is ...
5
votes
2answers
1k views

Tikz circle node pie

I would like a tikz circle node to be a pie chart. I have following code: \tikzstyle{bus} = [draw, circle, minimum size=2em,inner sep=0pt] \tikzstyle{busg} = [draw, circle, minimum size=2em,inner sep=...
4
votes
2answers
160 views

How can I guarantee that the arrow drawn with path between the nodes is absolutely horizontal?

This is probably a question about aligning of nodes among themselves, but I hacked together this little diagram and tried to place them side by side, connected with an arrow by using offsets. There ...
1
vote
1answer
372 views

How to display array nodes with tikz?

I need to display arrays (vertically, not latex ones, basically a consecutive sequence of values) with their implicit positions and use the result as a node within a TikZ picture (or more precisely I ...
7
votes
3answers
1k views

Change position of node inside rectangle

is there any way to change the position of nodes inside the rectangle drawn for the node itself? For example I got this: \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage[...
6
votes
1answer
300 views

How can I render filled paths correctly within blend groups in TikZ?

Based on the examples in the TikZ manual around page 341, I expected the following code \begin{scope}[blend group=overlay] \fill [ball color=red] (90:.6) circle (1); \fill [ball color=...

1
3 4 5 6
7