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)

2
votes
1answer
50 views

I put \pgfresetboundingbox after \clip, what should the bounding box be?

Short question After a \clip and a \pgfresetboundingbox, the bounding box is permanently (0,0)rectangle(0,0). How can I turn on the bounding-box calculation and obtain a fairly small bounding box? ...
1
vote
0answers
82 views

Making a timeline in Tikz?

I am working on my thesis and I would like to make a simple "technology timeline", probably something like this (although I prefer horizontal timelines): Are there useful packages that I can use? ...
1
vote
1answer
74 views

How to connect nodes with circular arcs in TikZ?

I need creating a diagram like the one in the picture below. After creating nodes, how do I connect them with circular arcs centered at the centre of the triangle? Thank you all!
2
votes
1answer
61 views

Load custom TikZ nodes from an SVG file?

I want to use custom nodes in TikZ, with shapes loaded (or otherwise converted) from an SVG file because I don't have enough time to learn pgf to draw the shapes I want. How can I do that?
1
vote
0answers
15 views

Use tcolorboxes as nodes to create arrows with tikz [duplicate]

I'm trying to draw an arrow between 2 tcolorbox. But I don't know how to do it, because tikz requires "nodes" If I have this: \documentclass{article} \usepackage[utf8]{inputenc} ...
8
votes
1answer
118 views

Error when implementing TikZ-Feynman package

Today I downloaded and installed the new TikZ-Feynman package to draw Feynman diagrams. I included the packages \usepackage{tikz} \usepackage{tikz-feynman} \tikzfeynmanset{compat=1.0.0} ...
2
votes
0answers
128 views

how to draw this using tikz?

I am trying to illustrate something like this using tikz or pstricks. I almost have what I want, which is essentially a 3 dimensional object spanned by the vector. I would like to add faces that ...
3
votes
1answer
77 views

Decorating a page with pgfornaments

I want to decorate pages in my document by using the package pgfornaments. To make things easier, I created the command \pageornament: \newcommand{\pageornament}[2]{% \begin{tikzpicture}[remember ...
3
votes
1answer
56 views

setting beamer background with rounded corner rectangle

I am trying to set my background for my beamer theme. I want a white rectangle with a rounded north east corner. I used a provided code. My outer theme looks like this: \mode<presentation> ...
4
votes
1answer
53 views

Why can’t I use “execute at begin node” together with “align”?

I want to design a tikz style that will modify a node content according to some function of mine. As suggested in an answer to the original question, I can use the “execute at begin node” key for ...
1
vote
2answers
56 views

Braces alignment in Tikz

I have the following code to create a timeline with events labelled. In the second figure, between the events $(\tau_1+\frac{x_1}{K_1},x_2)$, I would like to place a curly bracket below, saying ...
3
votes
2answers
91 views

create node of own macro with tikz

i would like to draw a network of multiple queues. To build one node i would like to make a node out of this macro (DrawStation) and give it a name. \usepackage{tikz} \usetikzlibrary{positioning} % ...
3
votes
0answers
54 views

Specifying the point via “intersection of” in TikZ - a problem

I aimed at drawing a square (using TikZ) with a red dot inside it, placed on the intersection of its diagonals: And while the following method worked fine: \documentclass[12pt]{article} ...
0
votes
0answers
43 views

problem with calendar in Tikz since upgrading to debian 8

I recently upgraded to debian 8 and one of my latex file does not function properly anymore. pdfTeX version is no: Version 3.14159265-2.6-1.40.1. I do not know what it was before that. Here is a ...
2
votes
2answers
88 views

Simple Ramp Diagram with Ball

How would I make the following diagram and label the values? I would prefer it if instead of a box, there were a ball rolling down the ramp and the horizontal ground displacement were labeled as well. ...
1
vote
0answers
24 views

Tikz package to draw series-parallel graphs with many vars in series/parallel?

Goal versus the result: notice that the variables 2 and 3 on the right are inferior to 1 while the purpose was to have the variables 1, 2 and 3 equal like on the left. The code from here and its ...
1
vote
0answers
34 views

How to draw a background in tikz baposter?

How I can do the following picture in tikz for put in a poster?
1
vote
1answer
32 views

Automatic position of variable name in axis with pgfplots

I am looking for a code - probably inside {axis}[options] - that automatically puts the variable name (for example, x, and y) at the end of each axis. I am aware of the method to do this manually, ...
1
vote
2answers
41 views

Tikz node text vertical align with linebreak

I want to vertical align text in a chain of nodes. One node has a linebreak. What is the best way to do this? This is my current example: \documentclass{minimal} \usepackage{tikz} ...
3
votes
0answers
30 views

tikz bounding box / cropping: too much space for curves

I have a problem with TikZ's auto-cropping/auto-calculating the bounding box for a tikzpicture. Look at the following example: \documentclass{article} \usepackage{tikz} \begin{document} Lorem ipsum ...
1
vote
1answer
37 views

geometry margins and text width don't add up

I'm making a set of cards with text elements read from a csv file and placed on each card. I've simplified my layout problem in the example below. (The full version has additional graphics, hence my ...
-1
votes
0answers
38 views

How to convert a RGB color code to rgb color code?

I am using a logo produced from a pgfplot in which the color is defined as colormap={mygreen}{rgb255(0cm)=(3,151,201); rgb255(1cm)=(13,151,211)} and wish to use the same color for the slogan. Then I ...
0
votes
0answers
24 views

Approaches to automatically scale figures

I am trying to come up with a general rule of thumb to scale figures such that their vertical size and horizontal size does not exceed a certain limit (assume 300pt). The monkey patching way to do ...
5
votes
1answer
58 views

Drawing solid-circle or dots in legends

I'm trying to create plot with solid circles in the legend. Please see the image below for what I've got so far: I'm unable to get my legend right, ideally I would like to draw solid red circle ...
4
votes
0answers
49 views

tikzpicture negative gamma function

I'm trying to plot the following graph in tikzpicture: However, I have a hard time defining the function properly, as my MWE currently is this: \documentclass[12pt]{article} \usepackage{pgfplots} ...
4
votes
1answer
47 views

TikZ: Drawing a line segment from arrowhead to node

How can I make the line segments going to the arrowhead labelled "ds" in het picture below actually go to the arrowhead point? I faked it by using a coordinate near the arrowhead, but it just looks ...
3
votes
1answer
81 views

How to control where curves are in tikz

I am attempting to draw the following graph in tikz. My attempt so far has gotten me to here. \documentclass[border=3mm]{standalone} \usepackage[dvipsnames]{xcolor} \usepackage{pgfplots} ...
3
votes
2answers
53 views

How to have an empty TikZ picture (with absolutely placed content) be ignored for spacing?

I want to use a TikZ element to place absolutely on the page. Unfortunately, no matter what I do, the TikZ picture is treated like a character, which causes it to be treated like a paragraph when not ...
2
votes
1answer
40 views

How to add symbols on edges to say they are same length?

There are some edges having the same length. I want to add little symbol on it as in the picture: How do I do? Thanks. \begin{tikzpicture} \coordinate (Base1) at (0,0); \coordinate (Base2) ...
0
votes
1answer
43 views

Combine tikzpicture and tikztimingtable enviroment

As the known about tikz-timing package, we have: tikztimingtable enviroment \begin{tikztimingtable} Name & hLLLLh \\ Clock & 20{ c } \\ Signal & z7D { Text } z \\ ...
5
votes
1answer
54 views

Strange interference between two TikZ pictures with common “\tikzset”

Please, consider the following MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{calc,positioning,chains,scopes} \tikzset{ node distance = 10mm and 30mm, on grid, start chain ...
4
votes
2answers
55 views

angle appear longer in tikz

The tip of the red angle sign is bigger. How to fix this. \begin{tikzpicture}[thick, scale = 1.5, transform shape] \coordinate (origo) at (0,0); \draw (0,0) ellipse (2cm and 1cm); \draw [->] ...
5
votes
2answers
132 views

Surrounding an arbitrary path?

Given an arbitrary path in Latex, e.g. drawn with Tikz, I want to surround this path by a larger path which has a fixed distance to the original path, e.g. 1 cm. Here is a sketch of it: Note that ...
4
votes
1answer
61 views

Using tikz inside align* environment

I am new to TikZ and I am trying to use it inside the align* environment. The approach I am taking works within the center environment but not in the align environment. There are no errors but the ...
3
votes
0answers
44 views

Tikz: Add arrow tip to path instead of replacing part of path

When I add an arrow tip to a path, a part of the path is replaced so that the overall length stays the same: \documentclass[margin=10pt]{standalone} \usepackage{tikz} \begin{document} ...
1
vote
1answer
41 views

Define position of line by parameters (Tikz)

It is possible to give in the coordinate of the point by an outside variable? For example, I have a simple line: \begin{document} \draw (0,0) -- (5,5); \end{document} I would like to parametrize ...
0
votes
0answers
30 views

Circuitikz: Package pgfkeys Error

When trying the minimal example for circuitikz: \documentclass{article} \usepackage[utf8]{inputenc} \usepackage[english]{babel} \usepackage{circuitikz} \begin{document} \begin{center} ...
2
votes
2answers
89 views

How to limit the range of a function in TikZ?

I have code like this: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \draw [->,thick] (-5,0) -- (5,0) node[right] {$x$}; \draw [->,thick] (0,-5) -- (0,5) ...
3
votes
1answer
33 views

\textdagger and related symbols give error in point meta=symbolic in pgfplots

When using \textdagger in point meta={symbolic=\textdagger} this gives me an error when compiling ! TeX capacity exceeded, sorry [input stack size=5000]. \curr@fontshape ->\f@encoding ...
2
votes
1answer
55 views

Reverse clipping in a 3D figure - Projection issue

I have an issue with a reverse clipping on a 2D surface represented in a 3D space. Although the reversed clipping is working, the cut part is not projected on a plane. Here is the MWE: ...
2
votes
2answers
52 views

If (interior.north west) is the north west anchor A of a tcolorbox, how can I draw a line from this point to A + (1cm,1cm) (for instance)?

Ok thanks to cfr, I have a much simpler reformulation of my question. Using an example from the tcolorbox doc \begin{tcolorbox}[enhanced,title=My Title, overlay={% \begin{tcbclipinterior} ...
3
votes
2answers
101 views

Aligning benzene wrt. its centre, in chemfig

Back again, with more questions. This time, I need to align a reaction scheme involving benzene. This is what I currently have: \diagram[1.0]{ \schemestart[0, 1.5, thick] ...
4
votes
1answer
34 views

How to pass style options to \pgfextra nodes

According to this answer, I created a style for drawing rectangles with double lines. The problem is, if I pass options like fill=color or thick to the node which I create with the style, these ...
5
votes
2answers
119 views

How to create a bounding box the size of the page?

I was attempting to create a bounding box across an entire page (as I've seen here in beamerinnerthemetexsx.sty). However, the box will not flush with the left margin. As can be seen in this example, ...
2
votes
1answer
56 views

How to reference nodeparts in TikZ graphdrawing library?

Context: I would like to connect nodeparts in a TikZ graph that is positioned by the graphdrawing library. Unfortunately it fails to find the node, when I do attach the .first, .second, ... suffix. ...
2
votes
0answers
44 views

stacking histograms in pgfplots

The stacking is not working correctly. This is what I get: This might be a problem of different bins, but even restricting them is not working (slightly related questions about common bins are ...
3
votes
2answers
86 views

Horizontal fixing of Tikz nodes

(Please feel free to offer a better and more precise subject title.) I have two vertical chains with different count of nodes in it. But I want to visualize that some nodes of the right belong to one ...
3
votes
1answer
57 views

Can multiple milestones be placed on the same line in pgfgantt?

I'm writing a funding proposal and have used pgfgantt to make a chart of timescales for personnel hiring and work package developments, but I would also like to be able to indicate the plans for ...
1
vote
1answer
41 views

package tikz error with pgfgantt

I need to draw a gantt chart in my LaTex document and found the pgfgantt package that does just that. Unfortunately, it requires the TikZ` package, and it looks like I'm having trouble with it, and I ...
3
votes
1answer
41 views

Include TikZ figure located in subdirectory with spaces using the standalone package

I want to include a TikZ figure located in a subdirectory that has a space in its name using the standalone package with the option mode = buildnew. However, I encounter an error, which seems related ...