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)

5
votes
1answer
302 views

relative positioning in multipart nodes

Is there a way do draw a line from the beginning of the tip of the brace, using relative positioning? \documentclass{article} \usepackage{tikz} ...
5
votes
1answer
1k views

Gradient color on TikZ tree

Mindmap creates connection line composed of the parent/child colors. Is it possible to apply such effect on normal parent/child trees to connect the parent and child nodes with a gradient of their ...
12
votes
1answer
235 views

Inserting a proof-reader's remark in a presentation title

How can I insert a word in a presentation title that looks like a proof-reader's remark. For example, consider the following: \documentclass{beamer} \begin{document} \title{Lorem ipsum sit amet} ...
6
votes
1answer
432 views

TikZ picture overlaps with text (not wanted)

I am new to TikZ and I can't explain the following behavior when I compile this (with pdflatex or lualatex): \documentclass[ fontsize=12pt, DIV=calc, %draft, %parskip=half, ...
10
votes
2answers
2k views

Inserting text inside an arrow in Tikz

I want to draw an arrow between two nodes (a) and (b), and write text inside the arrow. How can I modify this command to control the size of the arrow head and insert the text? \draw[->, ...
15
votes
2answers
960 views

How to attach a 2D rectangular image to a 3D curved surface with TikZ or PSTricks?

I want to do so called texture mapping which is to attach an image to a curved surface. How to attach a 2D rectangular image to a 3D curved surface with TikZ or PSTricks? For the sake of ...
12
votes
2answers
1k views

How to avoid covering nodes with connection lines

When drawing connection lines (edge) between nodes, the lines will be drawn over the nodes (due to the drawing sequence). If having many connections, it may problematically cover the nodes, and ...
5
votes
2answers
363 views

Adjust the length of an arrow to that of another arrow in tikz

I have created a commutative diagram using tikz, and I feel like I'm nearly there. Here is what I did so far: \documentclass{standalone} \usepackage{tikz} \usepackage{amsmath,amsfonts} ...
6
votes
1answer
959 views

Custom sibling angle for child nodes

As I explored the TikZ manual and available examples; the position of child nodes are defined within the parent node. This means that all child nodes spread on the same radius from the parent with ...
3
votes
0answers
592 views

Illustrating Hooke's law with TikZ [duplicate]

Possible Duplicate: Draw mechanical springs in TikZ I'm trying to draw a nice looking spring to demonstrate Hooke's law. Essentially something which would have the following: One spring ...
3
votes
1answer
809 views

Floating TikZ picture within text in mdframed

When there is not enough space for TikZ picture at the end of a text, it will goes to the next page, and leaves an empty space after the text. Is there a standard method for putting TikZ picture in ...
10
votes
2answers
347 views

Why are just-created TikZ shapes “unknown”?

I'm using TikZ's \foreach iterator to create a series of nodes and then draw edges between them. First I iterate to create the nodes; then I iterate through the nodes to link them to each other. ...
15
votes
2answers
2k views

Common baseline in TikZ and Mathmode [duplicate]

Possible Duplicate: How to align a series of TikZ pictures at the baseline I want to mix my formulas with some TikZ graphics. For example: \documentclass{article} \usepackage{tikz} ...
10
votes
2answers
837 views

DB diagram's (entity relationship) - tikz chamfered rectangle with split zones

I try to draw an association type for an entity-relationship diagram. How can I draw a chamfered rectangle with split parts=2 or 3 ? I found this ref : Horizontally enlarged hexagon with TikZ but it ...
8
votes
1answer
433 views

How to use ball shading on non-circle shapes?

If using ball shading on non-circle elements, it will well apply the shading effect, but it will use the default blue color. How to use ball shading with the element color. \node[text ...
7
votes
1answer
946 views

How to draw a joining line between two picture tikz-pgf

I'am having draw two tree using the tikz-pgf package \begin{frame} \begin{columns}[c] \begin{column}{2cm} \begin{tikzpicture}[scale=0.5] \tikzstyle{level 1}=[sibling distance=10mm] ...
17
votes
4answers
2k views

A line of length \textwidth in TikZ

Why does the following latex document: \documentclass{minimal} \usepackage{tikz} \begin{document} \noindent \begin{tikzpicture} \draw (0,0) -- (\textwidth,0); \end{tikzpicture} ...
19
votes
4answers
919 views

TikZ: How to determine the vector between two co-ordinates

Given two co-ordinates say, X.south east and X.south west, is it possible to determine the length or the vector between the two? In the MWE the width, has been calculated using traditional TeX ...
15
votes
2answers
2k views

How to align a series of TikZ pictures at the baseline

I am trying to align a series of pictures made up of letters, using TikZ. Having tried almost all combinations of the baseline key it is obvious I am missing something. Here is a MWE (currently ...
8
votes
1answer
911 views

How to shade mindmap concepts?

I tried to add a shade on my mindmap's concepts with \begin{tikzpicture}[mindmap, text=white, every concept/.append style={circle,shading=ball, ball color=black!20!white!20}] but the problem is ...
14
votes
2answers
2k views

How to decrease the size of single node in mindmap?

In tikz's mindmap, I want to change the concept size for individual parents or children (not the entire system). It is simply possible to increase the size of a child node, by introducing minimum size ...
4
votes
1answer
2k views

TikZ: Draw a line up to a curve

Is it possible to draw a line upto a curve. Something like extend... I do not know to get the pont on the curve to stop the line. \documentclass{standalone} \usepackage{tikz} \begin{document} % ...
3
votes
2answers
531 views

tikz positioning. How to place a node below of another only by y coordinate, leaving x alone

I have 2 chains in different columns of a table. I need to shift the second chain in a such way that the {mv r0 <- a} would be below the {br a = 0 $end}, as it is depicted : right below the red ...
5
votes
2answers
489 views

Explanations about functions in postscript

I try to create some symbols from bc-logo with pgf. These symbols are defined in .mps file. I have some difficulties with 0 0.19284 dtransform truncate idtransform setlinewidth pop [] 0 ...
3
votes
1answer
1k views

tikz - node covering several columns

Is there an easy way to stretch a node in a matrix environment in TikZ over several columns? In the following example I want to merge the three nodes in the second row as one wide node. Any idea? ...
2
votes
0answers
591 views

Plotting line contours using pgftikz [closed]

Is there a way to plot line contours from a data file specifying the value of the line such as the one shown in example here. It takes a lot of time to plot, export and enter the PDF in to the thesis. ...
7
votes
1answer
7k views

How to position the labels of the path in automata?

This is my tikz code : \documentclass[a4paper,10pt]{article} \usepackage{verbatim} \usepackage{pgf} \usepackage{tikz} \usetikzlibrary{arrows,automata} \usepackage{graphicx} \usepackage{amssymb} ...
6
votes
1answer
365 views

TikZ: Random characters with tikz, fontenc and input

I am getting random characters displayed in my TikZ images: I have just noticed this recently. I am not sure what this might be caused by. I am using the latest TikZ build from TeXample. I only ...
4
votes
1answer
497 views

Define “block” and “connector” commands in TikZ?

How can I define two commands, block and connector in TikZ so that I could use them the same way as umlpackage and umlimport in uml-tikz. E.g. I want to be able to say something like: ...
8
votes
1answer
8k views

Change bend angle and swap node position on arrow

I'm trying to draw an automata as follows: \begin{tikzpicture}[>=stealth',shorten >=1pt,auto,node distance=2.8cm] \node[initial,state] (q1) {$1$}; \node[state] (q2) [right ...
5
votes
1answer
362 views

putting a box over an image in beamer presentation

In a Beamer presentation, I want to put a box over a graphic file. For example, in one slide, I want to put a graphic file: And, in the next slide, I want to put a box on the image: This style of ...
4
votes
1answer
515 views

how to draw tree with a specified width between nodes

Below is what picture i want Words of level 1: Rule Words of level 2: Length Pattern Arcs Words of level 3: T1 T2 A1 Words of level 4: term_index term ...
0
votes
2answers
160 views

tikz doesn't work with L7x encoding in beamer

In my beamer document I use L7x encoding and I want to import tikz picture, however, it doesn't work, so what's the best way to import it in my presentation? My idea is to make a printscreen of this ...
5
votes
1answer
335 views

Is there a way to change styles in imported EPS files?

I know how to replace simple textual tags in imported EPS files using psfrag; but to ensure a consistent appearance for graphics in my documents, I would like to also be able to make substitutions to ...
7
votes
1answer
514 views

Linking the columns widths of two tikz matrices

I have two figures containing a tikzfigure with a matrix. Both matrices are related, i.e. have the same columns, and I would like tikz to assign them the same column widths, just as if I had all rows ...
5
votes
1answer
1k views

LaTeX Cartooning

Are there any Latex packages (or any other text based methods) to assist in cartooning i.e. creation of simple images representing real-life objects. Something as simple as the images on xkcd is good ...
3
votes
1answer
646 views

How to draw communication based diagram in tikz?

I want draw such a diagram. Is there any tikz package for drawing such thing? Is there any example tex code for the same? How do I draw such diagrams? I have tried drawing it. My tex code is as ...
5
votes
1answer
7k views

How to reduce font size in tikz nodes?

This my tex code. \documentclass[a4paper,10pt]{article} \usepackage{tikz} \usepackage{verbatim} \usepackage[margin=15mm]{geometry} \usetikzlibrary{shapes,arrows,fit,calc,positioning} ...
5
votes
2answers
533 views

Foreach loop with command inside Tikz matrix

This question is directly related to Foreach inside a TikZ matrix. But I can't expand it with a macro inside, such that: \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix} ...
13
votes
1answer
974 views

Automatically set file name of externalized graphics equal to the file name of the tikz/PGF file

As the title says, is it possible to set some options for the externalize library in order to for the filename of the externalized graphics to be equal to the filename of the TikZ-file without using ...
4
votes
2answers
600 views

Kiviat diagram with axis labeled and different sizes

I am trying to use the package tkz-kiviat to draw a kiviat. The following example produces the image below: \documentclass[]{scrartcl} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} ...
24
votes
2answers
934 views

Drawing a flag with TikZ

I am trying to create a flag in TikZ but aesthetically it's not the best. Here is my MWE: \documentclass[letterpaper]{article} \usepackage{fullpage} %\usepackage{amsmath,amssymb,amsthm} ...
5
votes
1answer
312 views

How to change the spy connection path

Is there a way to change the spy connection path to looks more like these in red on the picture beneath? Thx in advance. \documentclass[frenchb,11pt,a4paper]{report} %Type de ...
13
votes
2answers
5k views

Change linestyle within a plot to add dashed trendline?

I'd like to add a dashed line to the end of a plot to indicate a future projection as opposed to real data. I can do this by adding a second plot, as in the example below. However this isn't really ...
10
votes
3answers
7k views

How to draw curved arrows in tikz?

I am getting something like this: This certainly doesn't look good. Curved arrows cross the blocks. Is there any better way of drawing curved arrows or any other solution? I am putting my code: ...
5
votes
1answer
367 views

commutative diagram having drawings as objects

I need to draw a commutative diagram having drawings as objects, like in this link which is also shown below. I have some problems: xy-pic "slants" the objects; "matrix" library in TiKZ is not ...
2
votes
1answer
718 views

How to update pgf 2.0 to 2.1?

I have installed TikZ/PGF using Synaptic Package Manager. Still it contains version 2.0. Now How do I update it?
9
votes
1answer
401 views

Alignments by means of the tikzmark macro

This is a follow up of my previous question Issues and potentiality of the tikzmark macro: dynamic box adaptation. I thought should have been better to ask two questions although they are related to ...
11
votes
2answers
984 views

Issues and potentiality of the tikzmark macro: dynamic box adaptation

Since I discovered the tikzmark macro I've been enthusiastic about it. I think that it is possible to distinguish at least two versions of the command: a basic one (two examples: ...
9
votes
3answers
1k views

TikZ multipart nodes: How to set text attributes (opacity) for some/all parts

I am using TikZ with the rectangle split multipart node (detailed on pp 450ff in the PGF 2.1 documentation). I need to influence the text opacity of all parts, but whatever I try seems to work only on ...