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)

9
votes
1answer
547 views

How to translate tikz calendar names?

TikZ-calendar uses English names like Monday, Mon, Tuesday, January, February etc. How to I automatically translate them to - say - German? Looking at the pgfcalendar.code.tex file I see all those ...
4
votes
1answer
726 views

Span TikZ Picture Across Two Columns

I'm restricted to writing a paper with\documentclass[twocolumn,11pt]{article}, but I want to create a tikzpicture that spans across both of the columns, filling the width of the page. I have tried ...
5
votes
1answer
326 views

How to change the color scheme to make this figure more elegant?

Here different colors means different weight of the edge, and the color of the points is arbitrary. The tex code: \documentclass[aps,prl,superscriptaddress]{revtex4} \usepackage{subfigure} ...
6
votes
1answer
234 views

Decorate tikz path with cyrillic text

I'm trying to decorate tikz path with cyrillic symbols without any success. I can use ASCII symbols but not cyrillic. \documentclass{standalone} \usepackage{tikz} \usepackage[utf8]{inputenc} ...
2
votes
2answers
88 views

Putting text next to a kmap

I want to put the equation next to the kmap, but it seems the kmap is located higher. How can I align the text and the kmap to start at the same height? \documentclass[12pt]{article} ...
2
votes
0answers
150 views

TikZ dash pattern generates an offending PDF [closed]

Consider the following MWE: \documentclass{standalone} \usepackage{tikz} \begin{document} \def\dotsize{1} \def\spacesize{2} \def\linesize{4} \begin{tikzpicture}[% dash pattern=% on \dotsize pt ...
5
votes
1answer
163 views

Why the edges of my rectangle is not parallel to axis?

\documentclass{minimal} \usepackage{tikz} \usepackage{tikz-3dplot} \tdplotsetmaincoords{70}{110} \begin{document} \begin{tikzpicture}[scale=3, axis/.style={->,thick},thick, ...
7
votes
2answers
270 views

Special tree in tikz

I'm trying to draw a tree like this: The root has three children and every of this two... The nodes in the first two tiers has additional informations.. I searched for examples like that, but could ...
8
votes
1answer
155 views

Why doesn't “double” work in the options list of a scope?

An example document: \documentclass[convert={size=320}]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture} \begin{scope}[line width = 2pt, red] \foreach \x in {1, 2, 3, ...
7
votes
1answer
403 views

How to create a weekly based schedule (for a complete year)?

I want to create a simple week-based schedule in some automatic fashion. Like a cleaning schedule among roommates, a winter-service schedule among neighbors etc. Basically I want to transfer a simple ...
10
votes
1answer
1k views

Tikz callout: positioning start of pointer

The pointers of my Tikz callout rectangles always start in the middle of the rectangle. But that kind of pointer sometimes gets in the way of other objects (e.g. the pointer start should be more to ...
5
votes
2answers
5k views

Adjusting the size of an arrow

I would like to make the width of an arrowhead larger. Is there a simple way to do this without defining a new arrowhead type? For instance, I would like to be able to write something like ...
2
votes
1answer
357 views

How to label arrows in this commuting cube?

I would like to draw a commuting cube, where all the edges are also labeled. Below is my cube but I don't know how to do this, as the stackrel doesnt seem to work. \documentclass[12pt]{article} ...
7
votes
0answers
923 views

Something like PGF/TikZ for HTML5/web? [closed]

For everyone who knows and loves PGF/TikZ: Is there something that has a similar powerful expressive high-level “graphic description language” like TikZ for HTML5? I want to convert high-level ...
3
votes
1answer
197 views

How to determine minimum width of rectangle with distance between two nodes

From similar questions and given examples about how to calculate distances between two points in the TikZ manual, I was not able to figure out how to extract from them a solution for my (probably ...
3
votes
1answer
474 views

Tikz: Division and Addition for Node Names

I am trying to draw a graph that is essentially just a long line with a triangle at one end and a square at the other end. I need there to be a chain of length 26 between the triangle and the square. ...
2
votes
1answer
1k views

How to center a tikz figure in a beamer frame

I was told to use the standalone package, which I use, but it does not seem to center the figure. What options to do I miss? Concretely, here is the main file: \documentclass{beamer} ...
32
votes
1answer
1k views

How can we draw a 3D Christmas gift box, with TikZ?

In the spirit of How can we draw a Christmas tree with decorations, using TikZ? Can you draw a 3D Christmas gift box with as many details as possible(bow tie, elevated lid/bow, patterned wrapping ...
3
votes
1answer
656 views

Message Sequence chart

I'm drawing a sequencediagram with LaTeX. By now it looks like this: Is it possible to remove the grey boxes? Is it possible to put a space between handshake and ws.connect? This is my Code: ...
38
votes
3answers
2k views

Your best snowflake with Tikz

Christmas is coming, show me your best snowflakes made with Tikz :) \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{decorations.fractals} \usepackage{pgfplots} \begin{document} ...
8
votes
1answer
340 views

Avoiding `Dimension too large' and `ill-formatted floating point' errors in tikz

I am attempting to draw some pictures using tikz, with the decorations library, and am encountering a `Dimension too large' error. I have read the 20+ other questions/answers about this error, and ...
6
votes
1answer
347 views

DVI compiling problem with TikZ

The following code compiles in both DVI and PDF format. However, if I draw anything after the \end{scope} command, it won't compile in DVI, and I get the following error message: Latex> ! ...
3
votes
0answers
179 views

{tabular} styled like blocks in beamer.cls based upon booktabs.sty markup

beamer tables In Table looking like a block, two methods are shown to give tables a look similar to the block environment in the beamer class. Both require that header and content rows are split: the ...
11
votes
2answers
306 views

Typography and Beamer

I'm facing a difficulty to transpose my idea of slide into LaTeX code. Here is the idea Basically it's formed with 3 description items sub item description text curly brace with the same font of ...
3
votes
2answers
542 views

line/ arrow to node with rounded corners [duplicate]

A line to/from a rounded corner ends at the position 'north east' and not at the line around the node. Is there a simple way to end the line/arrow at the drawn line around A? MWE: ...
9
votes
2answers
498 views

Riemann Sum Conundrum

The following approach to Riemann Sums first draws an arbitrary curve (which may later be tweaked), then forms rectangles based upon intersections. Unfortunately, the filled rectangles hide portions ...
7
votes
1answer
246 views

Flatten transparency in tikz

I have a document which I need to compile PDF/A-1b compatible, which means that transparency is not allowed. I have (several) tikz sources directly in the document, and I think they look better with ...
7
votes
2answers
420 views

Is this possible in Tikz?

I am wondering if it is possible to quickly create something like this in Tikz. In particular, I am concerned with making the zig-zag line, which has these properties: Each star is on a clearly ...
4
votes
0answers
145 views

How to define a pgf curve with points instead of controls? [duplicate]

The syntax to produce a Bézier curve in pgf is \pgfpathcurveto{first control point}{second control point}{target} This defines the curvature by control points. Considering the degrees of freedom ...
2
votes
0answers
56 views

How does \pgfdecoratedpathlength work?

I am trying to understand how it works the decoration pgf module, in order to solve the unanswered question Fiber-Optic-Style decoration. I am having an hard time with some macros, for example ...
3
votes
1answer
797 views

kTikZ and extra packages

Is there any way of loading extra libraries within KtikZ with the \usepackage{} command, like in other LaTeX documents? I could not find any documentation. And, of course, a MWE in this case is not ...
2
votes
1answer
226 views

Node for arrowhead

I want to have one arrow point to another arrowhead. How do I roughly make a node surrounding an arrowhead? \documentclass{memoir} \usepackage{pgfcore} \usepackage{pgfplots} \usetikzlibrary{arrows} ...
1
vote
1answer
553 views

Creating text symbols with TikZ

I seem to recall a macro which was used to create symbols which could be inserted into text, but cannot remember the name nor find it using search. I could do it myself easy enough ...
4
votes
1answer
3k views

Incompatible color definition when using tikz with color package

I am using the tikz package to draw some diagrams. In addition, I need the color package for some highlighting. As the wikibooks page of the color package states, it has to be used before the tikz ...
2
votes
2answers
341 views

How to fill a specified area using TikZ

I want to fill some regions which are only parts of a shape in a TikZ drawing (marked as "Here" in the following drawings): \documentclass{standalone} \usepackage[tikz]{bclogo} ...
1
vote
1answer
117 views

Using TikZ library `external` with images that require multiple compilations

I have a fairly large LaTeX document that requires compiling a number of times (because of a lot of (cross)references, appendices, etc.). Part of this document are a number of TikZ images that require ...
6
votes
3answers
318 views

insert text on chart

I am trying to achieve the chart as in the image attached. I tried with this code but I have difficult to insert the texts. Please suggest me if there is a more elegant way to achieve this. ...
15
votes
2answers
1k views

Zigzag on a matrix diagonal

Is there a way to draw a continuous zigzag diagonal better than this one ? my code : \documentclass[]{standalone} \usepackage{tikz} \usetikzlibrary{matrix} \usepackage{fullpage,amsmath} ...
3
votes
2answers
302 views

Halftone shading with TikZ

I try to do a cover for a documentation. For this, I need to do a shading between two colors. And to be more elegant I would like to make a halftone shading with TikZ, like shown in the picture.
3
votes
0answers
28 views

Two calls to cycle, only one appears to work. Why? [duplicate]

I'm curious by the two tikzpictures below behave differently. \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture} \node[circle,draw,inner sep=2pt] (t1) at (0,0) ...
5
votes
3answers
306 views

Move graph nodes on a circular path while keeping the circle

I would like to show nodes on a graph. The graph shape should be a circle. I would like to move the nodes while keep the circular shape. The following is what I can create with four nodes and it ...
9
votes
1answer
633 views

Plot a triangular grid inside of a hexagonal grid?

I have made the following grid: With the following code: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{tikzpicture} [hexa/.style= ...
0
votes
1answer
139 views

Error using \tikzexternalize and different graphical inputs

How can this issue be stated more precicely and finally solved? Having a large document and using \input{...} within figure enviorement for including gaphics by tikz and pdf's, png's. Each figure ...
6
votes
2answers
1k views

How do I use QTikZ on a standalone file

My file is quite simple, e.g., \documentclass{article} \usepackage[landscape]{geometry} \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw (-1.5,0) -- (1.5,0); \draw (0,-1.5) -- ...
2
votes
1answer
293 views

How to scale a tikzpicture in an external file for a beamer slide?

I have this tikz diagram in a separate document. I use the standalone package to include it into my presentation. However, I experience several problems: Setting the included picture size Scaling ...
1
vote
1answer
283 views

45 degrees line and blank spots

Trying to show the how discontinuous an equation is, I would like to graph the following diagram. How do we make the 45 degrees line? Also, how do we make the blank spots? My code so far is: ...
5
votes
1answer
709 views

Lualatex, Pdflatex fail with \externalize

Here is my problem: I have a 100+ page document with ~100 tikz plots. Some plots contain 9000+ points, and compiling them with pdflatex -shell-escape (or whatever main_memory_size) fails. I can ...
1
vote
1answer
454 views

Reduce vertical distance of “above right” to label a plot

How can I label a plot using above right but with reduced vertical distance? I tried a syntax like above right= value1 and value2 but this isn't working for me. For example in the following plot: ...
8
votes
1answer
412 views

How to align these two tikz figures better?

I'm quite new to latex and I'm trying to get two tikz figures side by side. I've honestly just looked up "tikz figures side by side" and taken code and re-adjusted it to give the figures I want, so ...
9
votes
1answer
859 views

Custom Tikz arrowhead with bar before triangle 45

How do I make a custom arrowhead in Tikz having a perpendicular bar before a triangle 45? I would also like to adapt this solution to a bar before a square, open square, etc. For example, imagine ...