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)

11
votes
1answer
232 views

problem with “crop circles” in tikz knot library

Using the knots library for tikz, I get very thin outlines of the circumferences of the clipping circles. How do I make them disappear? Here is a MWE: \documentclass{minimal} \usepackage{tikz} ...
6
votes
1answer
98 views

What causes the red frame not to align with the grid correctly?

What causes the red frame not to align with the grid correctly? \documentclass[tikz,border=12pt]{standalone} \usepackage{filecontents} \begin{filecontents*}{diagram.tex} ...
4
votes
3answers
362 views

Tikz-Place a rectangle in specific angle

I am trying to place a rectangle on top of an imaginary circle of certain radius, whose center lies in the middle of another rectangle. What I've tried so far is the following \documentclass{article} ...
5
votes
1answer
181 views

Error 'Dimension too large', with TikZ and PGF

I have adapted an example from TEXample.net (Original author: Andreas Menge, http://www.texample.net/tikz/examples/3d-graph-model/) for creating parallelepipeds with a helper grid to give perspective. ...
7
votes
1answer
269 views

Logarithmic scaling of picture in tikz

I'm looking for something along the lines of \begin{scope}[scaling=logarithmic] ... \end{scope} The reason is, that I'm trying to visualise whether the Minkowski sums of some specific sets in R^2 ...
3
votes
1answer
229 views

Recalling a specific overlay of a tikzpicture in beamer

I am making a presentation and I want to recall some pictures in my conclusion. The pictures are done using tikzpicture and are in separate files, with some overlay specifications. However, I want to ...
3
votes
3answers
361 views

TikZ - Node fit over multiple matrix cells does not want to align vertically

I'd like to align the top line of the node named ImportantStuff along the upper line of AlsoImportantStuff's upper line. How can I do that? Picture MWE (new) \documentclass[ 11pt, a4paper ] ...
3
votes
1answer
84 views

Is there a transformation in TikZ that transforms the positioning of nodes, but not the nodes itself?

I'm drawing some category theory diagrams like these: \documentclass{article} \usepackage{tikz} \begin{document} \newcommand{\dual}{\draw (-2,-1) node[below] {$X$} arc (180:0:2cm) node[below] ...
2
votes
1answer
242 views

How do you define a command for use in a tikzpicture environment?

I want to define an environment for the tikzpicture environment which defines tikz specific commands. Here's an abbreviated example for a UML environment which defines a \Class command): ...
4
votes
2answers
325 views

Can't get kerkis work properly

I am testing a few chapter styles to work with kerkis font in greek. The weird thing is that although I load the package, the fontstyle doesn't pass inside the document. My first attempt is the ...
0
votes
2answers
202 views

I want to draw these figures in the link

http://etc.usf.edu/clipart/galleries/588-fraction-pies-quarters I can draw most of the figures in this link. But the thing i want to know is how to shade a region as in the figures 3,4,5,6.
2
votes
1answer
67 views

Could foreach generating figure have coordinate?

I Encounter a problem that is foreach loop generating figure can have coordinate? this is I asked before How can I finish this about LTE diagram using filldraw rectangle now I want put this diagram ...
2
votes
1answer
383 views

How to fill logic gates in circuitikz?

How can you specify a fill color for logic gates in circuitikz? It does not work as I would have expected: \documentclass{standalone} \usepackage{circuitikz} \begin{document} \begin{circuitikz} ...
4
votes
1answer
233 views

{Tikz}{Tree} How to reduce leaves placement

Hello (and sorry for bad English...) I am working on a Tex document to produce algorithmic diagrams : it is quite good for me except that I would like to be able to reduce space used by leaves (it ...
3
votes
1answer
409 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
258 views

How to “rough up” paths of stochastic processes in TikZ?

I'm currently typing up notes for a stochastic analysis course and would like to substitute my hand drawn pictures by pictures created with tikz. I am familiar with the basics of tikz but have the ...
2
votes
1answer
315 views

Latex, Tikz, PDF's and Multiple .tex files

To give a brief background of my situation, I am currently writing a group report in LaTeX for my honours project and I'm attempting to use LaTeX for this. There are several sections in this report, ...
2
votes
1answer
149 views

How to open log window in QTikZ

Unluckily for me, I close the log window in QTikZ (small window which stand below main editor window). Does anybody know how to open it again?. I try with View -> View Log but without success.
3
votes
1answer
417 views

Automatic edge placement / avoid collisions in generated graph

I have the following graph, whose labels are generated in a for-loop: \documentclass[tikz,margin=5mm]{standalone} \usetikzlibrary{graphs,graphs.standard,quotes} \usepackage{ifthen} \begin{document} ...
5
votes
1answer
131 views

Struggling to define variable using variable previously defined

new to tikz and am struggling to figure out how to define a variable using variables I have just defined. I think the problem in the code below is coming from the following section: ...
3
votes
1answer
539 views

Customizing title page in beamer

I put the following tikzpicture, borrowed from http://tex.stackexchange.com/a/86310/10898, in my beamer title page. Nevertheless, I would like to try two things. On one hand, put the tikzfigure in an ...
1
vote
1answer
193 views

\draw via \pgfplotstableforeachcolumnelement fails outside {axis} environment, but works inside?

Consider this MWE: \documentclass{article} \usepackage{pgfplots} \usepackage{pgfplotstable} \usetikzlibrary{calc} \pgfplotstableread[col sep=space,row sep=newline,header=true]{ ts val 0.0 0.0 1.0 ...
2
votes
1answer
169 views

Double square brackets in TikZ with pgfmathparse?

Why can’t I use \llbracket in the following example? \documentclass{article} \usepackage{tikz} \usetikzlibrary{arrows,shapes,graphs,graphs.standard,quotes} \usepackage{stmaryrd} \begin{document} ...
1
vote
1answer
435 views

Marking (resampling) a point on a pgfplots curve, interpolated from table data?

I was looking for this in the pgfplots manual, unfortunately the term "resample" is not mentioned, and "sample" hits the samples key, which refers to analytical functions, not to table data; so I ...
1
vote
1answer
210 views

after end axis messes up pgfplots axis position

Latex and Tikz are going to get the life out of me... I saw Need to do some changes to pgfplots axis #39099, and that example was working fine for me; so I modified it a bit, and came up with the ...
4
votes
2answers
670 views

Arrows between two tables with multiple columns

How can I place two multicolumn tables (tableA and tableB) side by side and draw arrows from cell in tableA to another cell in tableB? I have tried this Arrows between two tables and its also ...
18
votes
2answers
637 views

“Drill holes” using glyphs or TikZ's even odd rule for text

I know how to use TikZ even and odd rule, but what I need is to apply it on a node text. Compare I need the text to be punched out such that when I use the resulting pdf on top of a background, the ...
5
votes
2answers
278 views

how to determine piecewise constant function representing binary data

I like to define function which represent binary data, but i stuck in this rather simple task ... my NWME is: \documentclass[tikz,border=3mm]{standalone} \begin{document} ...
5
votes
3answers
728 views

How to draw path between nodes of nested tikzpictures?

I'm trying to draw a path between nodes belonging to nested tikzpictures that are not in a direct parent-child relationship. The code looks like this: \begin{tikzpicture} %Container 1 \node ...
2
votes
0answers
216 views

Using tikz to create fancy chapters [closed]

I am trying to use Stefan Kottwitz's chapter style found on TeXample.net I am using the code as is but I can't seem to be able to compile it successfully. The code is \documentclass[svgnames]{book} ...
-1
votes
1answer
191 views

How to make a picture similar to this?

I would like to make a cover for my class notes! The Board I can draw. I don't know how to put the strip (which will contain the title of the Lecture Notes) on the Board: \documentclass{standalone} ...
11
votes
1answer
315 views

XeLaTeX can't use TikZ 3 features?

I copied this code from this answer. \documentclass[tikz]{standalone} \begin{document} \tikz [blend group=screen] { \fill[red!90!black] ( 90:.6) circle (1); \fill[green!80!black] (210:.6) ...
3
votes
1answer
213 views

pgfplots \closedcycle command inside \foreach returning error

The following code demonstrates the problem. It builds fine, but if I add the commented \closedcycle command, it won't build (undefined control sequence). \documentclass[tikz]{standalone} ...
3
votes
2answers
222 views

Drawing a Venn-Style-Diagramm underlying a Graph with TikZ

I want to draw a graph (the data structure) such that certain subgraphs form a sunflower (a notion from combinatorics). In other words I want to indicate that the sets overlap in the middle ...
10
votes
1answer
383 views

how to decorate a parametric function drawn with \datavisualization?

I have to plot a few parametric curves like the one on the left below, and I would like to add small arrows to represent the direction of the plot as parameter t increases from 0 to π. I know how to ...
8
votes
2answers
616 views

Positioning in TikZ flow chart?

Hi I'm new to the TikZ package (so I apologize if this is an easy question) and I'm having trouble with some formatting. Here's what I have so far: \documentclass{article} ...
4
votes
1answer
301 views

TikZ not drawing some lines in grid

When I use \draw to create a grid, several lines are missing. See the attached code and images, where, for example, the dashed red grid is missing the bottom and left boundaries. Actually the solid ...
2
votes
1answer
188 views

How to reduce the gap between the header and the figure in Latex

Please help me reduce the gap between the figure and the header in my code. I tried using position specifiers like h! or H but those take the figure on to the header slightly. I tried using vspace* ...
6
votes
3answers
286 views

Table with indices under every cell

Is possible to create a table (for example using tabular environment or tikz)in latex, but which under every cell has an index, which describes order of this cells? Something like this:
4
votes
2answers
346 views

Vertical align of a node

I have the following problem. As you see, the last nodes have a height that shrink the arrows. I want to fix the size of the arrows moving the nodes down. How can I do that? This is a example of ...
9
votes
1answer
375 views

Modifying the section, subsection and subsubsection style

I want to create this style: I want this executed every time I use the command for the section, subsection and the sub​​subsection I already have the code for the graphics, but I do not know how ...
8
votes
2answers
397 views

Connecting an arced path in TikZ

I'm trying to draw an octant of a sphere. I'm not an expert on drawing perspective, but I managed that with, among others, the arc command. With the sphere drawn I made some layers, again with the arc ...
1
vote
0answers
132 views

Flowchart arrows Using TikZ [closed]

I would like to write one continuous tex file for my entire flowchart, and let it automatically place itself on the right pages. Is there a way to do that? Currently I have to write a separate tex ...
13
votes
2answers
6k views

If-then-else inside TikZ graph?

I want to draw a graph like in the second picture of the following code: \documentclass{article} \usepackage{mathptmx} \usepackage{tikz} \usepackage{verbatim} ...
4
votes
1answer
182 views

Interpunction and tikz diagrams

I am using tikz for creating commutative diagram in a mathematical text. However, diagrams are part of text/sentences, hence I sometimes would like to end them with a comma or full stop. A standard ...
0
votes
3answers
199 views

Drawing Lines in Tikz

I am relatively new to Tikz and am trying to draw a diagram with lines in it. Here is my MWE \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,positioning} ...
3
votes
1answer
154 views

Polar pgfplots diagram adds additional whitespace with units library loaded

When doing polar plots in pgfplots (v1.10) I get additional whitespace when loading the units library. How can I get rid of that? I did not observe this before since it is related to the direction of ...
2
votes
1answer
329 views

Getting commutative diagrams in TikZ to work

I'm new to making documents in LaTeX, though I've used just math mode for a while. I've installed texlive-core via texlive-most from the Arch repositories and rendered a few basic documents. However, ...
15
votes
2answers
462 views

“Hobby” library stopped working after updating to TeXLive 2014

After upgrading to TeXLive 2014 compiling my TikZ pictures prepared with the hobby library stopped working. Consider the following MWE: \documentclass{article} \usepackage{tikz} ...
13
votes
1answer
1k views

How can text wrap around a figure in tikzposter?

While designing a poster with tikzposter I stumbled over a small issue. Usually one can use the wrapfig package to let text wrap around figures but in a box in tikzposter this seems to fail completely ...