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)

12
votes
1answer
485 views

Nested node class with pictogram decoration

I'm wondering how can I define custom TikZ node class mynode thats allows my to use following syntax: \node [mynode,fill=yellow!40] {component} \child{ \node [mynode,fill=yellow!40] ...
2
votes
0answers
177 views

Defining multipart nested node with pictogram in north east corner [closed]

I'm trying to set up a node style that allows me to draw nodes like UML2 components diagrams, etc. What I consider as a good idea for a syntax is: \node {node} child{ \node {other node} ...
21
votes
1answer
2k views

TikZ picture shapes

I am very new to the TikZ package, and I need to draw some flow chars by using the following shapes. However I couldn't figure out how to draw the 4th and and 6th ones below. It would be very nice ...
8
votes
1answer
485 views

centering rotated tikz labels

I have a series of five image generated from a code that I wish to include one under the other in a figure. I would like to include labels on the left, right and bottom of each of them (left and ...
6
votes
1answer
168 views

How to use pdf:bann and pdf:eann into a tikz node?

(This question follows up How to emulate \pdfstartlink and \pdfendlink with xetex?) Note: I used the last CVS version of TikZ/PGF. With xelatex, I would like to create annotations in tikz nodes. ...
6
votes
2answers
602 views

TikZ: Image Matrix - shifting connected paths

I currently use TikZ matrix for arranging images and their nodes for putting some labels on the edges. Take a look at the attached image. For some reason, i am unable to shift connected paths. For ...
14
votes
1answer
717 views

Scalebar Overlay and TikZ spy

This question uses code snippets from How to add a scalebar to an image and Drawing on an image with TikZ. I have an image with a scalebar (absolute positioning) overlay. Its length is determined by ...
5
votes
1answer
828 views

Scaled ticks with ymin and ymax

For a publication I am preparing multiple plots with PGFPlots and would like to have them all look alike, i.e. having the same axis and identical ticks. For this I intended to use ymin and ymax, but ...
6
votes
1answer
146 views

Drawing a line betwen two nodes which are in separate images

Is it possible to draw a line between two circles in the below code? \documentclass[border=1cm]{standalone} \usepackage{tikz} \begin{document} \tikzset{ crcl/.style={draw, thick, shape=circle } ...
9
votes
1answer
297 views

Using tikzcd in newcommand (for inline arrows)

I’m using tikz-cd for diagrams, and have a medium-sized diagram that I want to re-use several times. However, when I try using a definition like: \newcommand{\myarrow}{$\begin{tikzcd} A \ar{r} & ...
25
votes
3answers
761 views

How do I make a superellipse node shape in tikz?

A superellipse is a kind of closed curve which can be used as a "intermediate" shape between ellipse and rectangle. A parameter can control its "roundness". I find it a pleasant alternative to the ...
4
votes
1answer
362 views

Drawing Feasible region of a LP with big numbers on constraints

I am trying to draw feasible area of the following LP: \documentclass [11 pt, xcolor=pdftex,x11names,table]{beamer} \usepackage{tikz} \begin{document} \begin{frame} \setbeamercovered{invisible} ...
10
votes
2answers
2k views

How can I draw a Karnaugh map

Can you please help me drawing the kmap as shown in the link. A sample of the circles around the 1's is sufficient. *Edit** I made the following code. Can you help me now in completing this ...
28
votes
1answer
792 views

Polar histograms

I recently stumbled upon this post, that explains how to make polar histogramms with R. An improved version of R-package can be found here. Even though it looks unfamiliar, the result of is quite nice ...
4
votes
1answer
161 views

mtpro2 and tikzmark conflict

The \tikzmark command (as in here) does not work within the \PARENS command provided by the mtpro2 package. Here is a MWE (requiring at least two runs): \documentclass{article} ...
14
votes
2answers
980 views

Typesetting a calendar with pgfgantt

How can I use pgfgantt to typeset a calendar for 2013? I would like to have calendar that displays the day-dates of the corresponding months; instead of the number 1 to 365 it should give ...
10
votes
2answers
997 views

tikz External: \tikzsetnextfilename and \tikzpicturedependsonfile

Consider the following MWE. If \tikzpicturedependsonfile is commented out, the code runs as expected. A.dep is created stating the dependency of A.pdf on A.dat. Now, lets try to add the tikz source ...
31
votes
4answers
2k views

tikz: Distribute evenly and randomly circles

I want to fill a part of a picture with more or less evenly and randomly distributed circles which should not overlap. It would be okay if circles are only partly inside the shape. The density should ...
3
votes
2answers
607 views

Draw two circles with line connecting them as in attachment

Would you please help me in drawing two circles with a line (middle arrow) connecting them. O-->--O Sorry I could not post the image. Edit* Thank you so much. Can you help me more? Here is my ...
19
votes
2answers
1k views

Tikz: purely vertical arrow from nodeA.south to nodeB.north

I have the following tikz code % compilation command: pdflatex --jobname=Diag-f1 Diag.tex \documentclass{book} \usepackage{tikz} \pgfrealjobname{Diag} \begin{document} \beginpgfgraphicnamed{Diag-f1} ...
5
votes
1answer
382 views

tikzscale and \tikzsetnextfilename do not work together

\tikzsetnextfilename does not work with tikzscale package. In the MWE, included file is A.tikz which should produce A.pdf. MWE works if tikzscale is not used. MWE: \documentclass{report} ...
6
votes
1answer
263 views

How to draw visual representation of relations with TikZ

My included graphics are too blurry so I decided to find out, how to draw the following four graphics in TikZ. I never really worked with TikZ, so can someone explain how to draw such graphics?
2
votes
1answer
365 views

Footnote on graph title

I'd like to add a footnote to the graph title. After adding the footnote, it disappears! Here is my MWE: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pagestyle{empty} ...
9
votes
2answers
2k views

pgfplots with percentage on the axis

I am trying to draw a graph with percentage in x-axis and categories on y-axis. I cannot make the graph to show % sign. Here is my MWE: \documentclass{article} \usepackage{pgfplots} ...
2
votes
0answers
81 views

Embossed and debossed text [duplicate]

Possible Duplicate: Letterpress effect through PSTricks or Tikz Can one produce embossed and debossed text in LaTeX? (E.g. using Tikz.)
7
votes
0answers
1k views

Getting snakes to work (latex+tikz) [closed]

A Latex+tikz question for you: I can't seem to get snakes to work (scientific linux 6.3). I've been looking at the tikz manual; sure would like to know how to get those snakes! ...
5
votes
1answer
357 views

array and line how to draw?

I want to know how can I draw the line that appears in the right of the image below, and also how can I write this array that appears in the left of the picture.
4
votes
1answer
505 views

Tikz: Styling a node to display text on the right of a dot

I am trying to create a LaTeX document using the Tikz library, more particularly an E/R Diagram. I have downloaded the tikz-er2 additional library, but I am having an issue with the display of ...
6
votes
1answer
317 views

Division by 0 when combining tikzpicture and resizebox

To draw a larger tree, I tried to use \documentclass[11pt]{article} \usepackage{tikz-qtree, tikz-qtree-compat} \tikzset{every tree node/.style={align=center, anchor=north}} ...
5
votes
2answers
730 views

Help with installing gnuplot in MacTex and using it with LaTeX

I have to draw a lot of PDF and CDF graphs in my document/presentation and in order to do that I installed gnuplot. In order to install gnuplot I took the following steps: 1- Download the sources ...
6
votes
3answers
703 views

Use circuitikz voltage source icon as a node

I'm using circuitikz to draw a single line diagram: But I have no idea how to get rid of the line on top of the voltage source. Is there a simple way to do it? Here's my current code: ...
5
votes
2answers
904 views

Define a (real valued) variable in TikZ/LaTeX

I want to generate a TikZ image from a foreach loop, where some coordinates change within this loop. How can I do something as simple as float x = 0.5; x += 0.1; in TikZ/LaTeX? I searched on ...
5
votes
2answers
474 views

Big diagram in LaTeX with the help of PGF/TikZ

I managed to make this big diagram in Inkscape adding the codes in LaTeX using the plugin textext. See this question for more. I wish I knew how to draw the big diagram about dual linear spaces ...
15
votes
2answers
436 views

Layer between a node and its text

My question is similar to Transparent node with opaque text? . The difference is that i want the red circle to be above the green rectangle and below the word "Node". And also I do not want to draw ...
2
votes
0answers
322 views

TikZ arrows do not draw with pdflatex [closed]

I am using the answer from Arrow between parts of equation in LaTeX. \documentclass{article} \usepackage{tikz} \newcommand{\tikzmark}[1]{\tikz[overlay,remember picture] \node (#1) {};} ...
7
votes
2answers
284 views

Add label to right-angled connector -

I'm try to add a label to a right-angled connector in a TikZ figure. Below is the code I'm using: \begin{tikzpicture}[every node/.style={minimum height={1.5cm},thick,align=center},node ...
10
votes
2answers
365 views

Wrong place for hyperref link in scaled tikz picture

I have a TikZ picture with a node containing a minipage with an itemize environment; each item is a hyperref to other sections of the document. When scaling the image (for example with ...
8
votes
1answer
497 views

TikZ shadings and printing incompatibility

I would like to use some effects provided by the shadings library of tikz. More specifically, I am trying to use the ball and radial shadings (tikz 2.10 manual, p. 412-). The resulting pdf looks ok ...
2
votes
0answers
838 views

“Fatal error” when using TikZ externalize [closed]

So I'm having problems with TikzExternalize. I have a paper with a large amount of dynamically built graphs. I get to a certain point in my files and I can't build anymore. Once I get to this point I ...
3
votes
2answers
932 views

Tikz, Tree without overlaps

I'm trying to get a nice tree without the overlaps, can anyone help me to improve my code? \documentclass{standalone} \usepackage{amssymb} \usepackage{amsmath} \usepackage[utf8]{inputenc} ...
7
votes
1answer
160 views

Recover scaling factor in TikZ

Does it exist some tikz register (let say \zoomfactor) that provides the curent scale factor. For example can I do something like : \begin{tikzpicture}[scale=2] \begin{scope}[scale=1.5] ...
5
votes
1answer
642 views

How to fix a certain distance between a TikZ matrix border and its nodes?

I want to draw a TikZ matrix with its border and I would like to define the distance between most external matrix nodes and matrix border. Something like a matrix inner sep. If I change inner sep in ...
11
votes
1answer
842 views

How could I draw the projection of a three-dimensional domain of integration onto the xy-plane by TIKZ/PGF

I want to draw the following picture by using TIKZ: But I do not know how to hatch the projection, that is the two-dimensional domain: ${(x,y,z} \mid z=0, x^2+y^2\leq 4}.$ And I do not know how to ...
14
votes
1answer
394 views

Different image in every page's footer

I found Using fancyhdr to create an image based header and footer which is helpful and gave some ideas but I want to basically put in the bottom right or center of the footer a different image file ...
2
votes
1answer
1k views

circuit schematic symbol for buffer with control input

circuitikz has an op amp component type with two inputs, output, and up and down ports, usually used for power supply rails. There's also a buffer component type (which I think is provided by tikz ...
11
votes
2answers
298 views

Clipping using the folding library of tikz

I have the following minimal example: \documentclass{scrartcl} \usepackage{tikz} \usetikzlibrary{folding} \begin{document} \begin{tikzpicture} \tikzfoldingdodecahedron[folding line length=2cm,face ...
3
votes
0answers
804 views

Bode plot : any good alternative to bodegraph [closed]

I'm wondering if there is any alternative to "bodegraph" for plotting bode graph with latex. Especially I would ideally be looking for something easy to run (avoid external computation like with ...
0
votes
0answers
49 views

Array of linked list [duplicate]

Possible Duplicate: array of linked lists I want to implement an array of linked lists in latex: the array elements are the numbers{1,2,3} and every number in the array is ahead of linked ...
8
votes
1answer
199 views

Aligning relatively positioned nodes in TikZ

\documentclass{standalone} \usepackage{standalone} \usepackage{amsmath} \usepackage{amssymb} \usepackage{tikz} \usetikzlibrary{shapes, positioning} \begin{document} \begin{tikzpicture} ...
9
votes
2answers
409 views

TikZ Scaling: Cannot scale a tikzpicture

Please take a look at the picture below. scale pgfkey works for the inner tikzpicture but not for the outer one. MWE: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{positioning} ...