6
votes
1answer
63 views

Arrow from brace to node

I would like to draw an arrow from the tip of a curly bracket to a node, but if I do the following, an extra arrow point is drawn just above the tip of the brace. \documentclass{article} ...
2
votes
2answers
96 views

How do I draw shapes inside a tikz node?

I know how to draw different shapes using tikz, like this: \documentclass{minimal} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (0,0) ellipse (1 and 1.5) (0,2.5) circle (1) ...
5
votes
1answer
72 views

Change node style in a tikz picture

I'm trying to change the node style so a node looks like a cylinder with a variable height. currently i'm using this code \documentclass{scrartcl} \usepackage[utf8]{inputenc} \usepackage{tikz} ...
3
votes
1answer
83 views

Customizing itemize inside a node in beamer

I am working with the MWE below and I am trying to do something that seems to be easy, but I cannot figure out. \documentclass{beamer} \usepackage{tikz} ...
3
votes
2answers
149 views

Tikz: How to Align the Text of simple Nodes?

I tried to put up a nice little graphic, to make an example for String-Matching. My Problem is the "b" is not aligned with a and c and i can't find a way to handle this: \begin{figure}[h] ...
3
votes
1answer
63 views

Syntax for the node command

Look at the two diagrams at the top of page 50 and the diagram at the top of page 220 in the manual at the following web site. http://mirrors.rit.edu/CTAN/graphics/pgf/base/doc/pgfmanual.pdf I have ...
6
votes
2answers
134 views

How to force nodes to have the same size in tikz matrices

Is there some intelligent way to have several tikz nodes have the same height and width? Consider the following example with output below. I'd like every node in each row to have the same height ...
9
votes
3answers
193 views

How can I move a single node in a tikz plot?

I can't find an answer online, please help me. The following plot shows the percentage of 3 groups. The red line is the average (and needs to stay at 13.8). How can I move ONLY the node "2.9" a ...
2
votes
1answer
93 views

Draw nodes in ring form

I want to use this drawing of a neural network and extend it to a recurrent neural network. To do so I'd like to arrange the hidden nodes to a ring and connect every hidden node with the other hidden ...
0
votes
1answer
53 views

How can I connect centers of nodes defined using let in a foreach loop?

I want to create a star polygon using a \foreach loop to make nodes for the vertices and another \foreach loop connecting, say, every 4th node. \documentclass[12pt]{amsart} \usepackage{tikz} ...
3
votes
1answer
86 views

change position of TikZ node halfway

I am trying to move the node "H" to one of the two positions shown in red below: I am not sure how to position it at 'intermediate' positions such as I am suggesting. How could this be done? Is ...
9
votes
3answers
188 views

Sloped Tikz node with rotation and scale

There should be an easy way to place a sloped node along a path. Using sloped works great (as in the black text). However, if there is a rotate= applied then the text is no longer along the path (as ...
3
votes
2answers
94 views

Adding arrows to a Gantt chart?

(To-the-point question at the end of the post) I am using the following snippet to draw Gantt diagrams, taken from this source: % GanttHeader setups some parameters for the rest of the diagram % #1 ...
4
votes
1answer
62 views

TikZ: How to center the text in a node with the scrartcl class

I want to draw a probability tree. In Beamer it looks good. But in scrartcl the texts in the node are aligned right. I want the text to be centered. How can I solve this? ...
2
votes
2answers
58 views

pgfplots- Adding a mark at the origin

I'm trying to show the beginning of a sketch of the graph y=xe^x, and this is what I have: \documentclass[10pt]{article} \usepackage{tikz} \usepackage{pgfplots} ...
0
votes
0answers
16 views

How to debug the “Argument of \XC@definec@lor has an extra }” error in Foreach statement? [duplicate]

First, I draw three nodes each of which has three parts. Everything is OK. The code and the image are as follows. \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[]{tikz} ...
4
votes
0answers
96 views

TikZ: turn a box into a shape

I want to turn a rectangle with ports in the top and bottom into a shape I can use with a node. How can I do this? \documentclass[tikz,14pt,border=10pt]{standalone} %%%< \usepackage{verbatim} ...
5
votes
3answers
162 views

Table of x-y values with first and second order differences

I would like to code a pages of notes that has the layout shown in the picture below. My question is the most efficient way to do this with LaTeX. I would think tikz with lots of nodes and edges, but ...
3
votes
2answers
45 views

Place node above specific path segment

I am trying to put a node above a specific segment of a path that is "bent" using "|-" (kind of broken into segments). A minimal example follows here: \begin{tikzpicture} \node[rectangle,draw] ...
6
votes
3answers
197 views

Make a polygon with automatically labelled nodes according to their coordinates

The goal: Make a polygon (and a circle containing that polygon at the nodes of the polygon, without the polygon's lines) with automatically numbered nodes according to their coordinates (x,y) [which ...
1
vote
1answer
78 views

A dotted circle: control size of dots and distance between them

My MWE is: \documentclass{minimal} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \draw[red,dotted] (0,0) circle (2); \draw[black,thick] (5,0) circle (2); ...
4
votes
3answers
97 views

Nodes and text positioning

I want to use tikz to draw circle nodes with inside a text in math mode that has the following structure. A variable plus potentially a subscript and/or a superscript. I want the position of the ...
6
votes
1answer
145 views

ADC in tikz (circuitikz)

How it is possible to draw an ADC (analog to digital converter) with tikz library ? Some Simple ADC like this ? What is the right way to place nodes on such rectangle so that i can use it further ...
4
votes
1answer
84 views

Is there a way to forget node names between TikZ pictures?

I have a document with several TikZ pictures in it. I generally use simple names for the nodes such as: \node (A) at ..... \node (B) at ..... and so forth. Because of this I have name clashes ...
3
votes
0answers
33 views

Why does the meaning of “above” seem to change when my “shift” coordinate changes?

The only difference between these two examples is the size of the xshift. The MWE with xshift=-1.5in and xshift=-1.0in places the text where I expect, but not with xshift=-0.75in and xshift=-0.5in: ...
5
votes
1answer
57 views

Tikz fit library: fitting only one dimension and accumulating calls

The fit library is very useful for adjusting the size of a node to fit other nodes inside it. It is also useful in conjunction with shift to make a node span to the width/height of other nodes but ...
6
votes
1answer
121 views

Insert text in a pie chart

I try to insert text in nodes and need help. How to fix the placement of each text ? Thanks \documentclass[border=10pt]{standalone}%{article} ...
1
vote
2answers
75 views

tikz-qtree: Beginners Problems

Hello im not a Linguist and have some trouble with trees. \begin{tikzpicture}[grow'=up] \Tree [.a [.b [.c [.d e]] [.f g] ...
7
votes
1answer
110 views

Text doesn't fit the box

I created the following picture with Inkspace and made export to tikz. The problem is that the text doesn't fit the boxes. And the arrows should be colored with a gradient, but it's not so important. ...
2
votes
0answers
74 views

Colour of edges according to edge value

I am currently modelling traffic and my map of roads consists of nodes connected with lines. For each road there is maximum capacity and amount of traffic and each road therefore has a utility value ...
1
vote
0answers
49 views

Straight lines look out thicker than diagonal [closed]

I am currently creating a graph of connected nodes i tikz. When I draw a diagonal connection using: \draw[solid] (a) --node[midway,right](){0.3} (b) the line looks much thinner than when a draw ...
4
votes
1answer
87 views

Place numbers on edges between nodes in tikz

I am creating a graph of connected nodes and I want to have numbers on all edges that connect the nodes. At the moment it looks as follows: \begin{figure}[H] \begin{tikzpicture} \node[shape=ellipse, ...
4
votes
1answer
86 views

Overlay edge between two tikz nodes

I want to have two nodes in Tikz, filled with text. Then I want an edge from one position in the first node to another position in the second node: This is what I tried: Inside the tikz nodes text, ...
3
votes
1answer
65 views

Text alignment in nodes

Why 360 is not vertically aligned with Angle ? I changed text width but it's not better ... \documentclass[tikz,margin=3pt]{standalone} \pgfkeys{/tikz/.cd, BLS/.store in=\BLS, ...
5
votes
1answer
56 views

Understanding tikz inheritance with the positioning library

I have trouble understanding the tikz inheritance model while using the positioning library. Consider the following example: \documentclass[]{scrbook} \usepackage{tikz} \usetikzlibrary{positioning} ...
1
vote
1answer
27 views

\fill left of a node using the positioning library

How can I position a \fill relative to a node? I would position a node in the following way, using the positioning library: \node (mynode) at (2,4) {text}; \node [left=of mynode] {o}; But if I try ...
5
votes
1answer
51 views

Minimum width for 2 nodes at once

In this MWE, I can put a minimu size by hand, but how determine it automaticaly: let say max width of the two nodes + 4pt on each side ? \documentclass[french]{article} \usepackage{tikz} ...
6
votes
1answer
89 views

Global use of values obtained in draw let

In one of my tikzpictures, I found an angle I labelled \n2. I would like to use this value to rotate a node. However, when I try, in the node options, rotate = \n2, I am told undefined control ...
2
votes
0answers
87 views

Lattice or Per Gelosia multiplication - how to avoid the use of the fp package

Is there a simple way to improve the harmony of the nodes in particular of the upper row and the right column distance ? Edit Thanks to egreg the node are more in harmony. Still : Is it possible to ...
7
votes
4answers
236 views

How to label the curve of a function at any point along it in tikz?

In my example, I have to simple curves y = sqrt(x) and y = x. I would like to be able to attach a label along each curve, say at the middle of the curve. Right now, I am doing it by trial and error ...
4
votes
1answer
86 views

Remove node name from tikz style

I have this code which I have adapted for my use case. I am creating a bunch of nodes and connecting them together. The problem is, the node name appears in the figure (namely h1,... and v1...). I ...
1
vote
1answer
81 views

Tikz: How to combine orthogonal edge syntax with coordinate calculation? [duplicate]

I'm trying to combine the syntax for orthogonal edges (p |- q) with the syntax for calculation relative coordinates ($ (a) + (1,0) $). Example: \draw ($ (node1.south) + (1,0) $) to ( ($ (node1.south) ...
7
votes
1answer
145 views

How to “outline” a path in TiKZ?

I have a drawing in TiKZ (of a graph, say) and I want to highlight two paths in the drawing. Is there a way to do that using my already-defined node names, without explicitly making new coordinates? ...
4
votes
1answer
60 views

Fit node to another node in a seperate scope that has been shifted and canvas transformed

I want to fit a node to another node which is defined in a different scope which has been subject to the options "(x)shift and transform canvas" (see example code and image). Without any canvas or ...
3
votes
1answer
134 views

Different shading for multi-parted tikz node

Please consider MWE below: \documentclass{standalone} \usepackage[usenames,dvipsnames,svgnames,table]{xcolor} \usepackage{tikz} \usetikzlibrary{positioning,shapes,shadows,arrows} \usepackage{lipsum} ...
12
votes
5answers
299 views

How to force nodes on different lines to have equal y-positioning

I have, hopefully, a very simple question. I use tikz to make a figure for confirmatory factor analysis (CFA). In the minimal example there a 6 arrows going from the circle to a fixed place. However, ...
2
votes
0answers
97 views

Node at each end of arrow, Tikz

I'm drawing a vertical arrow and I want to have a node at each end, but tikz seems to be putting the lower node in funny places: This is the arrow with the node above in the right place: ...
4
votes
0answers
127 views

What exactly does `inner sep` mean when node shape is circle

inner sep is not behaving as I would expect: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[every node/.style={circle,draw}] \coordinate (P1) ...
5
votes
1answer
127 views

trouble getting Tikz matrix to compile

In advance of a summer class I'm teaching, I decided to try compiling my notes, which I haven't touched in any way, shape or fashion for 4-5 months. However, in that interval, I've updated laTeX ...
6
votes
1answer
57 views

Node centered instead of flushed right

Why the this three nodes are centered instead of be flushed right ? \documentclass{article} \usepackage{tikz,fourier} \begin{document} \xdef\LW{.99*241pt}%\linewidth \xdef\BLS{\baselineskip} ...