TikZ is a higher-level drawing language built on top of the PGF graphics framework. For questions specifically about the PGF layer use {pgf-core} instead. Both tags are possible on the same question. The tag {diagrams} is also compatible with this tag.

learn more… | top users | synonyms (3)

1
vote
0answers
16 views

Tikz spy makes move hyperref links

I have some troubles with the Tikz library spy. When I use the spy, it creates a new hyperref link at a new position. Thus there is 2 links where only one is wanted (see the image with 2 cyan box ...
2
votes
1answer
45 views

Trial Profile with TikZ

I want to create a "Trial Profile" chart with TikZ. My data is as follows: Height (Y axis) and time between checkpoints (X axis). y x 0 0 10 3 20 3 40 ...
5
votes
1answer
48 views

How to draw torsion prismatic beams in tikz?

I'm new in Tikz but I want to draw this objects: Can anyone give some good advice, or help?
0
votes
0answers
61 views

reproduce a figure with latex

I would like to draw the figure with latex, but I have no knowledge of design with latex , could you help me please Thanks you !
4
votes
2answers
38 views

Positioning of node with two measurements

The following quote is found Chapter 17, section 5.3 in the pgf manual. ("This option" refers to the specification of the location of a node by two measurements.): The effect of this option is the ...
2
votes
1answer
30 views

How can I draw slide with dashed hidden lines

I tried to draw hidden lines as shown in this picture but i could not figure out how to do it. Please help me to fix this problem, I try this code \begin{document} \begin{tikzpicture}[z={(3.85mm, ...
1
vote
0answers
36 views

Commuting diagrams with two cells in tikz

I have been using xymatrix for all my diagram typesetting. However, when it comes to typesettings diagrams in 2-categories, I think I might prefer a tikz approach -- just from my experience tikz ...
2
votes
0answers
38 views

I need an ellipse with semi-axes irrational measures. How to proceed?

\documentclass[border=3pt]{standalone} \usepackage{tikz} \usetikzlibrary{calc} %calculos no ambiente tikz \begin{document} %ok \begin{tikzpicture} \draw (0,0) ellipse (2 and 1); ...
3
votes
1answer
23 views

Positioning a node with “above”

Units do not need to be declared in the specification of the height of a node above a given coordinate using above. The comment in the following example in Chapter 17, Section 5.3 indicates that the ...
1
vote
0answers
27 views

Including graph using tikz causes not including bibliography file

I am experiencing problems using package tikz. I have produced a graph in R and want to include it in my tex file using package tikz. After I include the the tex file with graph in myfile.tex with ...
2
votes
2answers
54 views

Two timelines with tikzpicture?

I'm trying to create two timelines with tikzpicture. The top one looks as I want, but I'm having troubles with the bottom one. Instead of having little vertical tick marks I'm generating big ...
3
votes
2answers
78 views

drawing curve line between predefined edges

Im trying to draw the following figure in LaTeX format: My question is how can I draw the curved line passing through the nodes shown in the figure? And how to change the color of the nodes left ...
4
votes
2answers
66 views

Undefined control sequence error in using spy TikZ library

My minimal working example is as follows. \documentclass{article} \usepackage{xcolor} \usepackage{tikz} \usepackage{graphicx} \usepackage{pgfplots} \usetikzlibrary{spy} ...
2
votes
1answer
30 views

Duplicate values when writing value near coordinate

I am using this code, taken from my question here. The problem arises when two x values have the same y value. Then the label I want to write near the coordinate overlaps with the other one. How can I ...
3
votes
1answer
35 views

Write a value near a coordinate in a plot

I want to do it from a file, rather from inside the document like I do it now: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture} ...
2
votes
1answer
24 views

Problem connecting nodes from and axis environment and using /tikz/scale

Consider this almost-MWE: \documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots}\pgfplotsset{compat=1.9} \begin{document} \begin{tikzpicture}[] \begin{axis}[clip=false, width=12cm, ...
6
votes
3answers
150 views

Drawing the diagram associated with the Second Homomorphism Theorem

I have code for a diagram that resembles the typical display associated with the Second Homomorphism Theorem in Group Theory. In the diagram, $H$ and $K$ represent subgroups of an abelian group G; so ...
1
vote
0answers
55 views

Install TikZ Knots Library [on hold]

I am trying to install the TikZ knots library, but I am having some trouble. My computer is running Mac OS X 10.10.2 with MacTeX (but I don't remember the version/year). spath3 has been downloaded ...
3
votes
0answers
46 views

TikZ: Drawing an arc from an intersection to an intersection

I want to draw an arc with a given radius from the point the arc intersects with a given circle to the point where the arc intersects with another circle. I have been reading through a lot of the TikZ ...
6
votes
3answers
112 views

Using the “foreach” option in TikZ to make a table

To show that the probability of rolling two die and getting a sum of 7 is 1/6, I wanted to make a table using "foreach" option in TikZ. The following code gives me a table of all the possible rolls. ...
1
vote
2answers
49 views

Getting an error when defining a macro in a TiKZ picture

I like a certain style of vertices in my tikz drawings so I want to define a macro to save time formatting. It has two arguments, one names the node, the next is its location. It should have a blank ...
0
votes
0answers
41 views

Two minipages side-by-side

I want one minipage with text, to be next to another minipage with two tikzpictures. I have this code: \subsection*{7. Bereken exact de lengte van lijnstuk $TP$.} \begin{minipage}[l]{0.6\textwidth} ...
0
votes
0answers
23 views

LaTeX pgfgantt move inline label above the bar not working

I'm trying to move my already inline labels to above the bar and have attempted to add bar inline label node /.style=north or bar inline label anchor=north or bar inline label anchor/.styles = north ...
0
votes
0answers
25 views

avoid hyphenation in chapter title using tikz and titlesec

[This question is similar to the one here, but the solutions given there do not work in my context] In a (fairly complex) book I'm using titlesec and tikz to produce fancy chapter headings, basically ...
1
vote
1answer
77 views

Command already defined (custom command)

When compiling following code, I the compiler tells me that a command is already defined (the name is \c@b...). \documentclass{article} \usepackage{calc} \usepackage{ifthen} \usepackage{tikz} ...
0
votes
1answer
17 views

pstool + pgfplots/tikz + parskip conflict resolved

A while back a question about a conflict between pstool, pgfplots and parskip packages was asked. I came across a similar problem using the pstool, tikz and parskip packages in concert, and happened ...
5
votes
1answer
57 views

trigonometric function inside newcommand

I want to know if there is a way to define a variable that depends on a trigonometric function, like this. \newcommand{\cosTheta}{cos(30)} Such that it is parsed before using it in a tikz segment, ...
2
votes
2answers
67 views

Typesetting two lines of code in a node command

In the following code, TikZ is to draw four nodes at the vertices of a parallelogram. In two of the nodes, I would like to put two lines of text. I indicate this using //. I thought that using the ...
0
votes
1answer
67 views

Tikzpicture in wrapfigure affects rest of the pages

The wrapfigure does its job. I wanted two tikzpictures to be at the right side of the page. Like this: But then if I look at the next page, it's like the wrapfigure just goes on at the right side: ...
3
votes
2answers
118 views

TIKZ: Stacking two nodes with equal width without double drawing the overlapping shapes

I am trying to stack 2 Tikz nodes directly below each other with no space and without having the double-thick shape between them. Furthermore, both nodes should have the same width, either fixed or ...
4
votes
1answer
62 views

Passing tikz style to custom object

I am trying to create a custom tikz object (mainly based on Complex objects in TikZ: pgfkeys scope and best practice), called blk, which is basically a node with some additional anchor points and ...
1
vote
1answer
26 views

How to reduce length of and edge between two nodes without affecting a custom line marker?

I'm drawing some nodes with to and from edges with some of the edges red, and with a cross through it. I have a custom decoration for the cross, and draw a red arrow head at the end of the line. In ...
0
votes
0answers
23 views

pgfplots axis label positions change unexpectedly

I want the axis labels to appear at the ends of the axes -- the arrows should "point" to them. They are correct in this MWE: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} ...
3
votes
0answers
64 views

Draw an arrow on a closed path in TikZ [duplicate]

Like this, only it doesn't work: \documentclass{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw [->] (0, 0) ellipse [x radius = 2, y radius = 3]; \draw [->] (0, ...
2
votes
0answers
64 views

Draw the plane x+y=1 in three dimensions in pgfplots

I want to draw the plane x+y=1 in pgfplots. In this example, z is free and is not explicitly a function of x and y. So I cannot use \addplot3[surf, fill=blue, opacity=0.1, fill opacity=0.4] ...
-1
votes
0answers
50 views

How to draw 3D pyramid using tikz [on hold]

How can I draw this pyramid using tikz? APT is 90 degrees by the way
0
votes
0answers
50 views

Standard timeline with different circle colors

I just saw this amazing post and I was wondering if there was a slight addendum which could be used to make some of the circles in a different color. I also wanted to be able to modify the length of ...
2
votes
1answer
45 views

Drawing elliptical arc with desired major and minor axis

So I am given two points and wish to draw an elliptical arc joining them. More specifically, my code is as follows: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}[H] ...
3
votes
1answer
39 views

Color Mixing/Overlapping Mechanism

Ideally I would imagine that if I overlap the red, yellow, blue three glasses, then I would see more or less a black color in the overlapped region. However by doing this in LaTeX, it seems I was ...
8
votes
1answer
101 views

Why do coordinates in Bezier curves add to the padding in TikZ?

I have a little tikzpicture drawn with a Bezier curve, that I use in the text. I noticed that it has an unusual amount of horizontal white space, more than e.g. a circle: \documentclass{article} ...
3
votes
1answer
47 views

Edit position of nodes in tikz mindmap

I'm trying to make a mindmap with tikz but I want to add some fading (smooth transition between clear blue and dark blue) between the colour of the root node and his childrens. ...
3
votes
1answer
64 views

TikZ: Problems with relative position

I have a problem using relative positioning in TikZ. As shown in the MWE below, my "vertex circles" are not placed correctly when putting two figures side by side using \node[right = of ...] syntax. ...
2
votes
2answers
99 views

Tikz: Node positioning relative to external image height or node height

I have an external picture and I want to put some labels on it. The code below works fine, but I want to automate the calculation of the vertical label positions in case of resizing the imported ...
2
votes
0answers
50 views

A question about the \draw command

The following code is not compiled. I got it out of the manual. Please tell me what is wrong with it. Also, please tell me where in the manual the options in the command node(b)[circle, draw]{A ...
0
votes
0answers
32 views

Graph not drawing correctly when within a node

I am having a problem getting a graph to come out correctly. \documentclass[journal]{IEEEtran} \usepackage{graphicx} \begin{axis}[ title={}, xlabel={$q$}, ylabel={Time /seconds}, xmin=6, ...
1
vote
0answers
22 views

Drawing arrows using tikz library [duplicate]

I am trying to implement a visual representation of linked list using tikz library. The code written so far: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} ...
18
votes
3answers
302 views

Plotting a graph with several values of a parameter

I'm trying to plot the function q(t) = (4.9/ (w^2))*(cosh(w*t)-cos(w*t)) for several values of the parameter w. That is, I want to plot whole graphs of q vs t, where I plug in say w=1, w=2, w=100, or ...
1
vote
0answers
41 views

Flowchart spanning mutliple pages Tikz [duplicate]

I created a flowchart which is quite big in Tikz. I spans three pages. I used \newpage to create page breaks in between. Some nodes in the first page are connected to the last one and vice versa. So ...
15
votes
5answers
526 views

Connecting from in the middle of |- line

\documentclass{beamer} \usepackage{tikz} \usetikzlibrary{arrows} \begin{document} \begin{frame} \begin{figure}[h] \centering \begin{tikzpicture}[ % type of arrow head ...
4
votes
1answer
72 views

Tikz: how to change the order of overlapping objects?

I want to draw some overlapping rectangles, for example: \documentclass{article} \usepackage{tikz} \usetikzlibrary{shapes,backgrounds} \begin{document} \begin{tikzpicture} \draw [fill=blue,ultra ...