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
1answer
156 views

tikz and math spacing problem: \: [closed]

I'm having a problem with math mode medium spacing (\:) in conjunction with tikz: \documentclass[12pt]{article} \usepackage{tikz} \begin{document} \begin{equation} \alpha \: \beta ...
2
votes
1answer
1k views

text above arrow in question “drawing-mechanical-systems-in-latex”?

With reference to the first answer in this: Drawing Mechanical Systems in LaTeX I want the text x above the arrow, simple as that, also how can I control how high above the arrow it is? So I tried ...
3
votes
2answers
365 views

How to automatically place points names of a polygon on the bisector lines?

Let us consider the simpler one which is a triangle. According to the pst-eucl, the point names will be placed on the bisector lines. The below example is contradictory to the above statement. ...
6
votes
1answer
254 views

boxing a matrix column with tikzpicture, how to ensure sides don't bend around contents?

When using tikzpicture to draw a rectangle around subsets of matrix elements, how can I be sure of getting a rectangle, rather than a shape that has wonky sides because it takes account of the varying ...
7
votes
2answers
962 views

Getting an arbitrary point of the circle in TikZ

I wrote a code using tkz-euclide to randomly pick a point on a circle and work from there as you can see in my question How to control label positions in tikz-euclide. I have seen several questions ...
7
votes
1answer
725 views

Calendar with TikZ; only print week days

I'm trying to compose a TikZ calendar, but only want workdays printed. From the manual (I'm using v2.1): 57.1.2 Checking Dates ... workday Passed by Mondays, Tuesdays, Wednesdays, ...
1
vote
1answer
807 views

Orthogonal path routing

TLDR; Is there a way I can specify a start and end point it it would route (hopefully orthogonally) around all nodes and other paths. I'm converting a large number of visio flow charts to TikZ ...
14
votes
2answers
1k views

Highlight a group of nodes in a tikz tree

To make it simple, I want to highlight a group of tikz nodes like in the following picture It was borrowed from the JLatexEditor. I would like to know which Tikz commands I can use to do the job in ...
31
votes
3answers
1k views

How to make TikZ faster?

I have a long document containing plenty of TikZ figures and it is painfully slow to compile it. Is there any specific TikZ tips / good practices you could recommend me so that I can write figures ...
5
votes
2answers
411 views

TikZ: child inheriting arrows

I am trying to draw some Feynman diagrams using TikZ but seem to run into trouble where the arrow of a parent is also applied to the child, giving me two arrows on one line. (I have been using the ...
3
votes
1answer
263 views

Dynamic path positioning between nodes

I'm trying to find the best way of dynamically positioning the blue path. The important part is its position relative to b and c. I currently am using \path [line,blue] let \p1=(a.south), \p2=(c) in ...
5
votes
1answer
120 views

How do I get arrows and nodes in my commutative diagrams to line up?

I use tikz-pgf for typesetting my commutative diagrams. I generally use the matrix of math nodes which has the pleasant effect of ensuring that all of the entries in a row are aligned according to ...
2
votes
1answer
474 views

putting tikzpicture inside beamer

I am trying to add tikzpicture inside Beamer. However, I cannot use such functions as \pause, enumerate etc with TikZ. Here is what I got thus far. I would like to change the enumerate environment ...
3
votes
1answer
326 views

Running Sample Tikz Code

I am running Ubuntu version 11.04 with PGF package version 2.00-1. I have trouble running this sample code posted to How to generate all possible Venn diagrams (with the case below) efficiently? ...
2
votes
1answer
165 views

Class with template parameter

AFAIK pgf-umlcd does not support classes with template parameter (std::vector<T> for instance). Does anybody have a workaround allowing the drawing of such classe? Is there a simple PGF/Tikz ...
1
vote
0answers
158 views

xelatex multilingual book with framed pages [closed]

I am compiling a multilingual book (Arabic+English), ~1400 pages, using the memoir class, and have been trying to frame each page with a simple black border using the following: ...
3
votes
3answers
273 views

Make TikZ compute the x-coordinate of the margin

The command \hrulefill prints a line that fills all empty horizontal space with a line. I would like to do something similar with TikZ. What I would like to know is can I do something similar like ...
0
votes
1answer
891 views

tikz - command node - text

my MWE is: \documentclass{book} \usepackage{tikz} \usetikzlibrary{intersections} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture}[domain=0:2*pi] \draw[xstep=pi/4, ystep=0.5, dashed, ...
2
votes
0answers
121 views

Tikz Venn Diagram [duplicate]

Possible Duplicate: How to generate all possible Venn diagrams (with the case below) efficiently? I want to shade a diagram involving three sets A, B and C. The specific region that needed ...
4
votes
2answers
209 views

Hard binomial lattice requests (color, arrows and more)

I wish to replicate the image in this post. However I can't do any of it except the basic stuff that my code does. Thanks for any help. The exact coloring doesn't matter. Also I don't actually want ...
3
votes
2answers
538 views

Make line extend beyond endpoint and intersect with line

Is it possible to have a line go through two coordinates and then extend until it intersects with another line? The line in question is not horizontal nor vertical (otherwise I could use the ...
2
votes
1answer
335 views

Use special objects of xy-pic with beamer

When I try to use the general format for labels (cf. xyguide, §2.2) together with beamer overlays, the part that should show up later isn't formatted properly. I guess, beamer doesn't convert the * ...
5
votes
2answers
880 views

Differences among commands in coloring node labels in tikz

I wonder if there are fundamental differences among the following label coloring procedures in TiKZ (aside from defining a style as mentioned in the manual) since they seem to produce the same effect, ...
2
votes
1answer
309 views

Vertical line in binomial tree is ruining node coloring

How do I stop the dummy nodes from being colored? \documentclass{article} \usepackage{tikz} \usetikzlibrary{matrix,fit,backgrounds,calc} \begin{document} ...
5
votes
1answer
997 views

Pgfplot barplot with cluster of stackedbars

How can I create a pgfplot that have two stacked ybar for each "point in x axis" ? I wan't something like this: I already have a graph that have one stacked bar for each x point. Some hint on how ...
1
vote
1answer
101 views

TikZ compiles fine with pdfLaTeX but all labels are placed at origin with pdfTeX [closed]

I have the following code that works just fine when I compile with pdflatex, but does not work right with latex. In the second case, the lines are fine (at least to my eyes) but all labels are written ...
9
votes
1answer
590 views

How to draw tangent lines at control points of a path in TikZ?

I'm drawing smooth paths by using the \draw plot[smooth, tension=.7] coordinates ... command. Now I would like to draw tangents at the specified coordinates. I alreade tried Jake's answer, but I ...
4
votes
2answers
397 views

Vertical line in middle of a binomial tree (lattice)

This is a really tough problem that I have no idea how to solve. I wish to have a dotted veritcal line in the middle of my binomial tree, with a $\tau$ underneath.. The kind of thing I want is as ...
2
votes
1answer
280 views

Making 1 skinny column in TikZ binomial tree

I have a binomial tree with arrows pointing backwards. I currently have short arrows pointing towards the left-most node (which is invisible). This first colum is taking up very little visual space, ...
1
vote
2answers
173 views

correcting kerning for tikz shapes as accents in mid-word

I'm trying to place arrow shapes above certain letters in a text. I tried compensating for the extra space of the tikzpicture in mid-word, using execute at begin picture and its end pair. The results ...
4
votes
3answers
866 views

Highlighting some nodes of a TikZ binomial tree

In this binomial tree I have 4 columns of nodes. I want the entire last column to be highlighted with light blue, and perhaps a border around this highlighting. Something like a opaque blue-ish ...
3
votes
1answer
490 views

Problem with pgf-pie and \newcommand use

I am currently using pgf-pie package and I face a problem when I write the pgf-pie content using \newcommand instruction. The following MWE \documentclass{standalone} \usepackage{pgf-pie} ...
13
votes
1answer
592 views

TikZ: decoration - random steps: how to get twice exactly the same shape?

I'm creating a beamer presentation, in which I use TikZ. I am making a figure, on which I would like to highlight something (using \only<> command). My figure contains an ellipse that is ...
6
votes
2answers
337 views

How to use option fill (fill=white) in a postaction decorate text path?

I use this command to draw some text along a circular path. But this text overlaps a vertical line (for example). Will I wish that the text appear “in front of” and what is behind the text is thus not ...
8
votes
1answer
159 views

Partway calculation along a bend

I apologize if this question has been asked. I think it should be fairly simple, but I've looked around a bit and I can't find anything that does what I'm looking for. I know you can calculate, ...
3
votes
0answers
238 views

*** glibc detected *** error from texmaker in tikzpicture environment [closed]

I am facing a very strange problem. Texmaker quits with an error under a very specific condition, which has nothing to do with compilation, but rather what I type. Say for a minimal working example, I ...
3
votes
1answer
241 views

Error in start node of path

Getting a strange error where any path from a certain node starts in the incorrect place. The red paths are identical in code. The image on the left is what I expect, but the image on the right is ...
10
votes
4answers
768 views

How to randomly shuffle a sliced image?

I have no idea to shuffle the following grids of a sliced image. How to do this in (La)TeX or PostScript level? \documentclass[pstricks,border=12pt]{standalone} \usepackage{multido} ...
5
votes
1answer
1k views

Ground symbol from circuits.ee.IEC library

I wish to draw a ground symbol in a circuit diagram using the circuits.ee.IEC TiKZ library. The example in the PGF Manual (pdf) on page 311 shows exactly what I want. However, when I try to draw it, ...
12
votes
1answer
398 views

How this shading effect would be applied to an mdframed environment?

I'd like to apply the following shading effect proposed in " Fake sheet effect " as a background for a mdframed environment. How can this be achieved?
2
votes
2answers
549 views

Drawing a complex figure in Tikz

I want to draw this figure in Tikz (apologies for poor image quality): However, I can't quite figure out a good way to go about it. The only way I know how to draw this is as follows: Declare a ...
5
votes
1answer
1k views

Create custom colored PGFPlots ybar with consistent spacing

I am trying to create a ybar graph that has consistent spacing between a set of columns. I have obtained the color scheme I need in the following example, based off guidance from this question on ...
9
votes
2answers
1k views

Node positioning relative to 2 other nodes

I'm wanting to align/position a node relative to 2 others. Basically I'd like everything to be in rows and columns (whose is determined by the largest member). In this specific instance, I'd like node ...
8
votes
2answers
1k views

Workflow diagram

I would like to make a workflow diagram like this: I found TikZ, but the sequence diagram example seems a bit obscure…
9
votes
1answer
770 views

Node spacing based on node boundaries [duplicate]

TLDR: Is there a way to get the nodes to space based on their 'tips'. Thus avoiding the x-scale=#cm all over the place to get things just right. I am in the process of converting a bunch of visio ...
3
votes
1answer
646 views

Plot marks filled and drawn, but not the path

Is it possible to have it so that the plot marks would be filled and drawn, but the actual path wouldn't be drawn? Here is example where it is otherwise the way I'd like, except those dots' should be ...
9
votes
1answer
2k views

TikZ: turning edges into arrows using “child” notation

I'm using TikZ for the first time to draw a simple Kripke model, and I'm using the child notation to produce new nodes. How can I turn my edges into arrows? \begin{tikzpicture} \node [circle,draw] ...
2
votes
1answer
98 views

TikZ: lineto to a just created node

Often, when drawing diagrams with TikZ, I’d like link nodes by edges just as I draw them. But when doing it the naive way, e.g. \draw (0,0) node {A} -- (1,0) node {B}; the line intersects with the ...
18
votes
2answers
339 views

Does a zero-length line with an arrow make sense? Is it a bug?

\documentclass[pstricks,border=12pt]{standalone} \usepackage{pstricks-add} \begin{document} \multido{\i=0+30}{12}{% \begin{pspicture}(-2,-2)(2,2) \pscircle{1} \pnode(1;\i){R} ...
7
votes
3answers
849 views

Draw only part of a rectangle in Tikz

How can I draw only parts of a rectangle? I want to omit a small part of the rectangle to put some text in. As I'm using various complex rectangles, I do not want to construct own "open rectangles". ...