Questions tagged [tikz-node]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1
vote
2answers
774 views

The simplest way to fill a matrix of nodes?

Code: \tikzstyle{matrici}=[ matrix of math nodes, nodes in empty cells, column sep=-\pgflinewidth, % to avoid double borders in contiguous cells nodes={ ...
1
vote
3answers
263 views

Tikz node text misplaced

I am trying to create a box of fixed size with some text in the center using tikz, but I am having some problems positioning text. I compile the following code: \begin{tikzpicture} \draw (0,0) ...
2
votes
3answers
646 views

Matrix draw with tikzpicture

I have this code \tikzstyle{matrici}=[ matrix of math nodes, nodes in empty cells, nodes={draw=gray, align=center, inner sep=0pt, text width=1cm, minimum height=1cm}] \begin{tikzpicture} \...
0
votes
1answer
442 views

Tikz - Dynamic Node Naming

I need to dynamically create the ids of the nodes in TiKz with a counter, so that I can position the new nodes in terms of the previous ones. The counter is created as follows and gets increased for ...
3
votes
1answer
680 views

Aligning of nodes in tikz

The second, third and fourth formulæ should be on the right side of the point like the formula in the first line. MWE \documentclass{scrartcl} \usepackage{amsmath} \usepackage{tikz} \begin{document}...
2
votes
1answer
69 views

colorspace generates cryptic errors if used for a lable of a node

I tried to use the package colorspace to get true colors for printing. However, I obtain the following error: ! Undefined control sequence. \color@&spot ...->\c@lor@arg {#2}\edef #1{\spc@ir\...
0
votes
0answers
277 views

Best practices for drawing a planning graph diagram?

I am currently trying to represent the following diagram in tikz. However, the the representation does not have to be identically the same. I am mostly wondering about the easiest ways to build up a ...
4
votes
1answer
877 views

Compiling error with TikZ

In this TikZ manual, beginning of page 76, a simple code is presented. After trying to compile a document with it, \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{...
2
votes
1answer
126 views

Can't increase radius for angle between two lines

I want the angle label gamma to have a larger radius, but the radius parameter won't change anything. Here is my code \documentclass[]{article} \usepackage{tikz} \usetikzlibrary{backgrounds} \...
2
votes
1answer
461 views

How to draw a triangle as a part of a pentagon using TikZ

I have a regular polygon using TikZ like this: \begin{tikzpicture} \node[regular polygon, regular polygon sides=5, shape border rotate=-18, fill=blue!20, minimum size=5cm, thick, draw] (Funfeck)...
2
votes
1answer
216 views

Adding text in TikZ-picture at position determined by combining tangent and intersection

Question How to add text to arbitrary positions in TikZ-pictures relative to certain objects (maybe even following their shape) ? Situation I have combined two solutions to Tikz-questions found ...
4
votes
1answer
91 views

Unexpected behaviour of TeX condition in \draw macro

Let's consider code below \documentclass[tikz]{standalone} \usepackage{amsmath} \usetikzlibrary{arrows} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \foreach \i in {1,.....
2
votes
2answers
598 views

Vertically align Tikz nodes and getting arrows to work right

I want to align sibling nodes of a Tikz tree vertically so that their tops, rather than their centers, are at the same level. I've tried doing this with the anchor=north option (see the MWE below), ...
1
vote
1answer
3k views

Draw a path from a node to another path

I have a digraph and I would like to draw a path that starts, let's say in node 2 and ends at the near start of path 2->4. IT's slightly different from a loop from 1 to 1. What I am trying to achieve:...
5
votes
1answer
395 views

Nesting tikz nodes

I want to put a tikz graph (a Feynman diagram using tikz-feynman) inside other tikz nodes, but it doesn't seem to work. A MWE is below. It has to be compiled with lualatex as I'm using graphs. \...
3
votes
2answers
1k views

how to draw two boxes side by side in tikz?

I want to draw two boxes with text inside, side by side in one "tikzpicture", since I'm a newbie in tikz, I managed to do this(MWE), could you please help me to achieve it, I would be grateful. Here ...
12
votes
1answer
1k views

Tikz - Filling a node with random smooth, closed shapes

I am trying to create the following illustration. Using Tikz, I managed to achieve a partial effect as shown below (please ignore the dimension mismatches). The code I used (MWE) for arriving thus ...
0
votes
4answers
630 views

How to stack rows of nodes in TikZ?

I am try to create a diagram similar to the following in Tikz: I know how to create each individual row I think, I'm doing something similar to: \tikzstyle{cell} = [rectangle, rounded corners=5pt, ...
1
vote
2answers
121 views

How to reference a node's anchor by optional parameter (#2) inside a style when that node is referenced by parameter (#1) itself?

I have a style (POSITION) that references a node by parameter \documentclass{standalone} \usepackage{tikz} \usetikzlibrary {% positioning, shapes.geometric } \tikzset {% ...
3
votes
2answers
249 views

How to prevent a node exceeding minimum size by making its contents scale-down if they are about to enlarge the node?

Is there a way to fit a text inside a node, without resizing the node, rather than fit a node around some text (which, of course, would resize the node)? Output (first triangle is empty and is ...
0
votes
2answers
1k views

Aligning a node at center of another node

I want to align a black circle at the center of another bigger white circle (it must be look like to Activity Final Node of UML). The most straightforward is to simply explicitly place the bigger ...
10
votes
2answers
1k views

TikZ inside TikZ-node with given text width does wrong positioning

This code \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[text width = 3cm]{ a a a a a a a a a a a a a a a a a a a a\\ \tikz{\draw (0,0) node ...
2
votes
2answers
513 views

Tikz: Modify node coordinates within line drawing

I would like to draw lines (arrows) between nodes but do not want the line to "go the full way" but rather stop somewhere before. Here is what I have: \begin{tikzpicture} \node (xx) at (1.5,0) {$...
1
vote
1answer
376 views

How to use a list of fractions with foreach?

I want to use the list of fractions flist to label some angles. They will be in the place of the "A". \begin{tikzpicture} \edef\r{1} \edef\anglist{{30,45,60,120,135,150,210,225,240,300,315,330}} ...
0
votes
1answer
329 views

Positioning a node with node label

This question is related to a question I'd asked earlier on this thread: Drawing a Cayley tree I have some for loops creating a graph and I'd like to position a node OVER another node whose co-...
2
votes
1answer
408 views

How to prefix node names inside tikz graph environment

I have a graph with two chains like this: \begin{document} \tikz [] \graph [layered layout, components go right top aligned, nodes=draw] { {[nodes={name prefix=cat1}] cat1 -> {100, 200 [>...
3
votes
2answers
277 views

`latex` and `pdflatex` produce different colors given the same TikZ picture

Consider the following LaTeX manuscript featuring a TikZ picture* containing an empty, red-bordered node placed at the picture's origin. \documentclass{article} \usepackage{tikz} \begin{document} ...
1
vote
1answer
332 views

The TikZ pipeline: A path's 'draw' option has no effect on a 'behind path' node

Still trying to figure out the TikZ pipeline (i.e. the sequence of low-level actions that a TikZ path is converted to as it is being "executed") by analysing the source code, specifically <tex ...
2
votes
1answer
220 views

The TikZ pipeline: relative order of rendering of pre-actions and 'behind path' nodes

I'm interested in the TikZ pipeline, i.e. the sequence of low-level actions that a TikZ path is converted to as it is being "executed". Unfortunately, this is described only fragmentarily in the TikZ &...
2
votes
1answer
139 views

Add label to top of axis using Tikz Picture

I am trying to find a better way to add a letter above each point on a simple single axis. I got the result I needed using this: \begin{tikzpicture}[line cap=round,line join=round,>=triangle 45,x=...
0
votes
1answer
259 views

The start of an edge when this start is a node

The description of the edge operation \path ... edge[<options>] <nodes> (<coordinate>) ... opens with the following explanation (p. 246, chapter 17 'Nodes and Edges' in the TikZ ...
2
votes
1answer
125 views

Creating a PGF node in the middle of a PGF path

Consider the following LaTeX manuscript featuring a PGF path consisting of two successive diagonal line segments intercepted by a rectangular text node. \documentclass{article} \usepackage{pgf} \...
0
votes
1answer
85 views

A PGF node with a user-defined shape renders as a long, thin, and empty PDF file

Consider the following LaTeX manuscript featuring a PGF picture of a node whose shape is the user-defined shape, myshape. \documentclass{standalone} \usepackage{pgf} \usepgfmodule{shapes} \begin{...
0
votes
1answer
83 views

\anchor vs. \deferredanchor (of a PGF node)

What is the difference between a PGF node's anchor and a PGF node's deferred anchor? the TikZ & PGF manual for version 3.0.1a describes the command \deferredanchor{〈name〉}{〈code〉} thus (p. 1037): ...
1
vote
1answer
222 views

The center of a PGF coordinate node

According to section 101.5.3 (Command for Declaring New Shapes) of chapter 101 (Nodes and Shapes) of the TikZ & PGF manual for version 3.0.1a (p. 1034), the following code-snippet is the ...
0
votes
1answer
128 views

Creating a new PGF node: placement of the label inside the node's shape

Section 101.5.3 (Command for Declaring New Shapes) of chapter 101 (Nodes and Shapes) of the TikZ & PGF manual for version 3.0.1a describes the placement of a node's label with respect to the node'...
4
votes
1answer
304 views

tikz ´draw … to …´ combined with ´node´ along path

I have found a strange behavior in TikZ. When using the \draw ... to ... syntax and trying to place nodes along the line with the node[...]{...} syntax, the nodes do not turn up at the expected ...
0
votes
1answer
671 views

Showing a graph algorithm

I'd like to make a couple of slides on Beamer to show the way a graph algorithm works. What I need is to be able to have in the beginning a graph. To be able to have an additional label of the nodes,...
1
vote
1answer
2k views

Animated tikz matrix inside a flowchart node

I am trying to create an animated flow diagram with Tikz, and I want to use the Tikz matrix inside the nodes of my flow diagram as you can see bellow The idea is that the matrix A as well as B would ...
2
votes
2answers
541 views

How to shade or highlight the lower triangular part in a matrix with tikzpicture?

I was wondering how I can so something similar to the answer given here How to shade or highlight the upper or lower triangular part in a matrix? by Bibi but for the lower triangular part. Can ...
5
votes
1answer
505 views

How to use variables in node keys in TikZ

I have used variable \x while drawing nodes using TiKZ. The drawing part works well without any problems. I have also added keys to the nodes so that they can be linked later. I am facing a curious ...
2
votes
0answers
100 views

fit irregular set of nodes in TikZ [duplicate]

Is there any automated way to tightly fit an irregular set (say tree-shaped) of nodes in TikZ? The standard approach (using fit = (v1) (v2) ... (vk)) uses predefined shapes (eg. circle or rectangle) ...
4
votes
0answers
116 views

Accessing a node defined inside a pic outside its definition [duplicate]

I am trying to access a node defined inside a pic definition outside its scope. I found this example in the PGF manual v3.0.1a on page 254. The example given is as follows. \documentclass{standalone} ...
2
votes
0answers
342 views

Adding a new edge to Tikz graph breaks layout

Whilst laying out a flow diagram using Tikz algorithmic graphing capabilities, my code renders the following output (reasonably sufficient to convey the key ideas). Now, I intend to connect the 'no' ...
4
votes
1answer
431 views

Tikz - \graph command explicitly place one parent node below another parent node (connected to same child)

In the following Tikz flow diagram constructed specifically using the automatic placement of graphs using \graph construct (i.e. instead of placing nodes using the fit library), , how can I have ...
0
votes
0answers
34 views

centered anchoring in TikZ automata [duplicate]

I am trying to draw an oriented regular polygon with TikZ/automata using the following code: \begin{tikzpicture}[shorten >=0.5pt, node distance=1.2 and 1.5, on grid,auto,>=stealth'] \def \p {10}...
2
votes
1answer
328 views

Drawing a rectangle around a tikz node that fills up for example an a4-page, causes a page break — why?

The following tikz node fills up a whole a4 page. The page gets cropped afterwards using the crop-package (just for demonstration purposes, commenting the package out, doesn't seem to change anything)....
5
votes
1answer
1k views

TikZ node positioning and keyvals

What's the best way to specify a node position on a path? The ways I found are not equivalent, which bothers me. Why is below right different to below, right and right, below? Why is below right ...
5
votes
1answer
7k views

How to set distance between nodes in TikZ

I'm trying to draw a web graph for a paper, using TikZ to draw the individual pages as nodes. When I typeset, however, the graph sits in one small corner of the line, and the nodes are too close ...
0
votes
1answer
251 views

How can I set the Branch length in a tree to be like this?

I am still new to latex, but i tried to search for the below type of a tree, but i couldn't find any. is it possible to have such a tree? if yes please tell me how. Update: what i am actually trying ...

1
3 4 5
6
7