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
2answers
54 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
102 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
35 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
122 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
59 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
46 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
89 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
60 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
50 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
43 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 ...
1
vote
1answer
30 views

Positioning a node relative to two other nodes

I am using the following TeX code to draw 3 shapes using Tikz library. \documentclass[a4]{article} \usepackage{tikz} \usetikzlibrary{shapes,positioning} \begin{document} \begin{tikzpicture} ...
2
votes
2answers
63 views

TikZ \draw creates very tiny lines

I'm trying to create vertical lines in a tikzpicture, but they're being drawn at very small scales. My code: \documentclass [10pt] {article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} ...
2
votes
2answers
150 views

How to draw this diagram in Tex

I am trying to draw the attached diagram in Tex (the attached is from Microsoft Word). Happy to make some tweaks, but it needs to look something like this. Thank you very much! edit: could you give ...
6
votes
1answer
222 views

Drawing a tube around a function

I'm looking for a way to draw a tube around a function. I already defined my function (see code below). The distance between tube and function shoulb be equal in each point -> see for example arrows ...
1
vote
0answers
34 views

Positioning \tkzLabelAngle Inside Angle

I'm interested in getting the text of \tkzLabelAngle to always position inside the angle. I'm randomly generating these triangles, so I'm hoping there is a general solution that will work for all ...
3
votes
2answers
60 views

How to get rid of vertical space before first list item in custom environment

I'm using a \rule in a custom list environment to push down the text, but doing this seems to add vertical space both before and after. You can tell there is vertical space because the first item does ...
2
votes
1answer
82 views

Draw line between equal balls, and dashed between different balls

I am trying to recreate the following image in latex. Where I want to vary the number of white and black balls. As indicated in the title, I am also trying to draw a line between balls of same ...
4
votes
1answer
51 views

Change node label after creation

I have to place several nodes in my TikZ picture, so I create them with a \foreach that also gives them a name (an ID variable is defined in the \foreach). Now my problem is that after the creation I ...
2
votes
1answer
71 views

How to draw an arenium ion with chemfig?

This question is fairly straightforward, I hope. I want to achieve this, including the plus and the incomplete circle. I can already draw the benzene bit with chemfig, positioning the plus and ...
4
votes
2answers
53 views

How to autoscale and autoalign a TikZ picture to the surrounding text?

I'm designing some icons with TikZ to be used in my text. As a working example for this question let's a take a simple arrow: \tikz[->]{\draw[>=stealth] (0,0)--(1,0);} How can I treat this ...
4
votes
2answers
82 views

How to resolve conflict between versions of TeXLive and pgf?

To resolve the problem I described here, I need to use pgfplots version 1.13, which required that I updated to TeX Live 2015. Doing so lead to a problem with the command \heightof as can be seen by ...
3
votes
1answer
51 views

I want to draw a transition in automata exactly as shown below. From state q7 to state q1

Here is the code \documentclass[landscape, 12pt]{report} \usepackage{tikz} \usepackage{lipsum} \usepackage{enumitem,amsmath,amssymb,latexsym} \usepackage{mathtools} \usepackage{cmap} ...
3
votes
1answer
47 views

tcolorbox: how to set a coordinate in the box which can be used by the finish key?

I'm trying to connect the frame of a tcolorbox with some of the content but have difficulties to set a suitable tikz node: The finish environment seems not to use the remember picture key and so ...
1
vote
1answer
74 views

Unexpected gap in Tikzpicture

To include margin figures in my documents, I extensively use the following code. I copy/pasted and modified some pieces of code found here, so I do not fully understand the code. However, it works ...
4
votes
2answers
200 views

Increasing thickness a portion of the circle's boundary in tikz

I have drawn a circle in tikz and for two particular coordinates on the boundary of the circle I wish to increase the thickness of the circle's boundary. How can I do that? A minimum working example: ...
3
votes
1answer
61 views

Problem with node position

Why the last node, named kap2, does not change its position when I replace at (1,0) by at (3,0)? [I want to change the position of the comment "Killing vectors"] My MWE: \documentclass{beamer} ...
0
votes
1answer
56 views

Decreasing the font size in one node in a TikZ diagram

I have a diagram in which the font size for a node containing the measure of an angle is too big. What is the default font size for a node? What is the font size, in units of pt, for the ...
3
votes
1answer
49 views

2x2 subfigures with tikz graphs

I saw that this has been asked before, but none of the solutions appear to work in my document. I am trying to set an 2x2 grid of sub figures, each filled with a tikz graph. However, no matter how ...
3
votes
2answers
58 views

Computing midway coordinates of nodes and joins in TiKz

This is a part of what I want to do. Please keep in mind, that in the original the width of the boxes/nodes is variable, and the length of chain B and C ist not everytime the same. % --- --- ...
2
votes
2answers
127 views

Area diagrams in Tikz

Introduction: I'm currently doing some research in the field of continuum percolation, and I need to create relevant diagrams according to the following specifications: The diagram consists of ...
2
votes
1answer
58 views

Drawing a curved arrow between a set and its image under a rotation

I have two triangles drawn on two displays of the Cartesian planes. One is the image of the other under a rotation about the origin of 90 degrees. I would like to draw a curved arrow with the letter ...
0
votes
1answer
62 views

Front Cover for document part 3

This cover page is building from the solution posted in Front Cover or document part 2. I am now trying to place a minipage and a logo with a blur shadow on the cover page like this: Here is the ...
0
votes
0answers
56 views

Insert a gnuplot-plot in tikz environment

I cant manage to get my plot into a tikz environment. I am using BaKoma Tex Word with newest MikTex. %&latex \documentclass{article} \usepackage{tikz} \begin{document} \section{About ...
5
votes
1answer
90 views

Front Cover for document part 2

This question is building from the post found here. I would like to get the code to produce this cover page that is found here: I am still not successful in getting the full page of the tikz image ...
3
votes
1answer
69 views

Tikz local style within subfigure

I've many "tikzpicture"s which are part of a "subfigure" environment. I don't want to use a global "\tikzstyle". I can write them in each of the "tikzpicture"s. This creates time, space, and editing ...
1
vote
1answer
54 views

Join multiple tikz-chains (with different lengths) into one last node at their end

I have multiple vertical chains of different lengths (node count). I want all these chains at the end coming together into one last node. How could I do that? \documentclass{article} ...
2
votes
1answer
82 views

Drawing a fiber bundle?

Fiber bundles are ubiquitous creatures in mathematics which are appealing in a bunch of ways. In many of my notes I would like to include pictures and diagrams of fiber bundles. Online I have found ...
1
vote
1answer
71 views

Changing the Color of a Tikz Spline Midway

As stated in this brilliant answer tikz splines can be genrated this way (code is shamelessly copied): \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw ...
1
vote
1answer
30 views

Tikzpicture: Strechting a specified interval (axis) of a diagram

In a collaboration I managed to create the following diagram. The last modification I need is ti emphazise that point B is located right to A (regarding the x-axis). Therefore I want to stretch the ...
5
votes
1answer
68 views

Can tcolorbox enhanced boxes be combined with TikZ externalisation and save boxes? If so, how? If not, what's the best workaround?

I am getting the following compilation error when combining TikZ-enhanced boxes from tcolorbox with TikZ's externalisation: ! Argument of \tikzexternal@laTeX@collect@until@end@tikzpicture has an ...
0
votes
4answers
208 views

What's the easiest way to draw block matrices?

I would like to draw block matrices with special structures like shown in the picture below. What's the easiest way to do that?
4
votes
1answer
70 views

Adjust horizontal space between vertical TiKz-chains the elegant way

The example below work and looks ok. But I think about if there is a more elegant/generic/tikz way to manipulate the space between different chains. Elegant here means, that it would be nice to ...
16
votes
2answers
705 views

Is there a triangular protractor shape built-in to TikZ?

I know you can draw a protractor with TikZ. The problem is that my students use the triangular shaped one like this. So in order to make it a little bit more familiar to them, I am wondering if there ...
1
vote
0answers
74 views

iterating over multiple variables with \foreach it TikZ

Note: I'm aware of another response here, but its solution was a quick-fix rather than the underlying issue. Say I want to create the following diagram but using iteration: \begin{tikzpicture} ...
3
votes
1answer
73 views

Draw arches between variables

I want to draw arches (possibly overlapping or nested) between variables, in an equation, and the line straight down. A replication of the image above. If possible I would like the arches to have ...
4
votes
2answers
104 views

Step Function, except with graph filled on the left side and not filled on the right?

MWE: \documentclass{article} \usepackage{amsmath} %plots \usepackage{pgfplots, pgfplotstable} %cdf graphing (see ...
1
vote
2answers
79 views

How to plot graphs in tikz using large number of data points?

I have my experimental data in a tabular form in word document format. I want to plot the data points using tikz. How to export the data points from data.doc to tikz plot? These are the data points. I ...
3
votes
1answer
72 views

Copy Horseshoe object and move/shrink it in circle TiKz

i want to implement this graphic with TiKz: I tried to make the object inside the circle with the plot statement. Is there any better way to do it? And how can I create an object, move it and ...
2
votes
1answer
63 views

Variable battery1 symbol in circuitikz

Is it possible to produce a variable battery1 sign (battery with one up slanted arrow) in circuitikz? There are options for vR and vL (variable resistor) but not for the battery1. I need it to ...
15
votes
3answers
405 views

Turn tikz drawing into a macro

I have created my own method of drawing a randomly generated closed loop. Here is my code: \documentclass[tikz]{standalone} \usepackage{pgf} \pgfmathsetseed{\number\pdfrandomseed} \begin{document} ...