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)

4
votes
1answer
527 views

Using TikZ, how can I bend the edge between two nodes in a tree?

I tried setting edge from parent/.style={draw, bend left=60}, but the line remains straight. What am I doing wrong? \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[ ...
6
votes
2answers
591 views

Chords between nodes on a clock-like diagram using TikZ

I'm trying to create a series of illustrations of clock faces with chords going between nodes. I'd like to start at the 12 o'clock position, then draw a chord to the number at n positions away ...
7
votes
1answer
733 views

Rounded corners not working in \mdf@singleextra using mdframed with TikZ

I am creating new framed environments using the mdframed package (along with TikZ) based on the digression example given in mdframed-example-texsx.tex. My code is the following: ...
3
votes
1answer
1k views

Adding a legend entry to a plot

In the following figure I want to add as legend in the figure \ldots: st. 1 ___: st. 2 Please help me. \begin{figure*}[htp] {\tiny \centering \subfloat[$U(0.5) $]{ ...
9
votes
2answers
1k views

How to get pgfonlayer to work correctly inside onslide?

I am trying to use onslide to group different picture elements together and control when and how long they appear on the slide. At the same time I am trying to use pgfonlayer to make sure some things ...
11
votes
2answers
1k views

3d axis and polyhedron with line segment towards origin

I would like to make a 3d plot containing the 3d axis and a convex polyhedron or better a Dodecahedron on the positive side for which one of its boundary edge points on its top is annotated e.g. ...
3
votes
2answers
912 views

Tangent plot on tikz [closed]

\documentclass[12pt,a4paper]{article} \usepackage{graphicx} \usepackage{amsmath,amssymb} \usepackage{tikz} \begin{figure}[H] \begin{center} \begin{tikzpicture}[scale=1.2,smooth,domain=-2*pi:2*pi]; ...
5
votes
1answer
862 views

Tabular with arrows or lines between some cells

I have a table like the one below and want to write this in Latex. what would be the best aproach? I have tried it with Tikz where i can nest a Table but failed with the lines wich connect the ...
21
votes
2answers
378 views

Can citation numbers be stored as variables, then used in my tex file?

I'm trying to create a "flow chart" of papers that shows the progression of key ideas over time. A very basic example is this: \documentclass{article} \usepackage{tikz} \begin{document} ...
5
votes
3answers
632 views

tikz picture in column disturbs other column

I would like a slide with two columns in which one column is text and the other is a tikz picture. The problem is that when I make one column a tikz picture, it does not allow the text to start at ...
1
vote
2answers
155 views

TikZ scripting upper triangular elements only

I would like to do something along the lines of the following snippet but I instead get many errors: \foreach \x in {0,...,8} { \foreach \y [evaluate=\y as \z using int(4-\y)] in {0,...,4} { ...
4
votes
1answer
259 views

Text size in decorate path

I use this code to generate text along a path (here, a simple circular path): % --- --- --- --- --- QUELQUES TEXTES \path [postaction={decoration={text along path, text={Tympan d'un astrolabe ...
8
votes
2answers
256 views

multipart node to represent a byte

I am trying to create a multipart node to represent a byte I wish I could write \Byte{0 1 0 0 1 1 0 0} or \Byte {0, 1, 0, 0, 1, 1, 0, 0} and obtain \documentclass[12pt]{standalone} ...
3
votes
1answer
142 views

Counter not working as expected in pgfplot

Using pgfplot (for the first time), I try to create a chart with horizontal bars, sort of. See the figure. I know how to do it, but because the code is quite verbose and I have lots of data I've ...
2
votes
1answer
614 views

TikZ with “remember picture” compiled with pdflatex yields different results compared to dvips -> ps2pdf

The following document \documentclass[11pt,a4paper]{report} \usepackage{tikz} \usetikzlibrary{shapes} \usetikzlibrary{arrows} \usetikzlibrary{positioning} \begin{document} ...
1
vote
1answer
332 views

Absolutely position arrow head

In my previous question about arrow: Connect vertices of a regular poly by curved arrows I'm trying to now position the very end tip of the arrowhead absolutely. Basically I have want the ...
10
votes
2answers
363 views

tikz-timing: is there a straightforward way to add a numbered time axis?

Loving tikz-timing for preparing timing diagrams for my teaching. One thing I've not been able to find, though, is how I might add a numbered time axis to a timing diagram. This is useful when showing ...
6
votes
4answers
764 views

Connect vertices of a regular poly by curved arrows

I have a diagram that is simply a set of nodes distributed evenly around a circle. How can I connect the nodes with arrows that are circular? e.g., suppose we have a pentagon with nodes at each ...
3
votes
1answer
816 views

Tikz overlay with subfig, axis & externalize

I am trying to draw lines between two different tikz-drawings, placed in subfig-environments, for example the corners of the small blue rectangle in the left image and the corners of the axis ...
9
votes
1answer
413 views

Combining paths before making them double

I must thank TeX Stack Exchange, especially for these questions: Creating gears in TikZ How can I invert a 'clip' selection within TikZ? How to use plot in a foreach loop into a single path? I ...
6
votes
1answer
287 views

As my exponentials in TikZ plot a parabolic style function, do I install CVS version, and how?

I'm very new to LaTeX. I have read Is plotting exponential graphs a known source of bugs in TikZ? and implemented the code Jake supplied and this fixed the current problem. Thanks Jake :). On this ...
10
votes
2answers
599 views

Difference between draw=none and draw opacity=0 (also for fill=none and fill opacity=0)?

What is the difference between the TikZ key-value pairs draw=none and draw opacity=0? Are they functionally equivalent, or are there situations in which one should be preferred over another? ...
5
votes
2answers
336 views

TikZ vertical alignment of circled text

I have an issue with the vertical alignment of circled text with TikZ. This basic code causes the problem I have. \texttt{some text here =} \tikz[remember picture] ...
3
votes
1answer
175 views

how to draw special line in a picture

Here is my current code for the picture: \documentclass[a4paper,12pt]{article} \usepackage{tikz} \usetikzlibrary{trees} \begin{document} \resizebox{.5\textwidth}{!}{ \tikzset{level 1/.style={level ...
5
votes
1answer
265 views

Measuring TikZ leaves and using measurements to set sibling distance?

TL;DR Summary: Is there some way to measure the width of a leaf node and pass this measurement back up the tree to be used in setting sibling distance? (One might want to do a similar thing for ...
0
votes
1answer
367 views

how to draw angle line? [duplicate]

Possible Duplicate: how to draw special line in a picture I use the code below to draw a picture, however the line is straight from s2 to s4 refer to the image. However, I want the line ...
3
votes
1answer
770 views

Block with two inputs in pgf/TikZ

I am trying to draw the following block diagram using pgf/TikZ. Actually I am struck at getting the two inputs to the first block horizontal. What is the best way to draw the above diagram using ...
3
votes
1answer
577 views

How to plot coordinate between two xticks?

I want to plot some data using pgfplot. Here is a code I have written: \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat = 1.3} \begin{document} \begin{tikzpicture} \begin{axis}[ ...
13
votes
2answers
2k views

Tikz:: shift and rotate in 3d?

I would like to translate (Tx,Ty,Tz) and rotate (roll,pitch,yaw) in 3D space an object defined in scope similar to the same way we can do in 2D space as below: \begin{scope}[shift={(7,9)},rotate=30] ...
4
votes
0answers
81 views

Nodes to angles and arcs [duplicate]

Possible Duplicate: How to place a node in the middle of an arc? A very common problem I come across drawing technical pictures is drawing zillions of angles. In general, there is no nice ...
15
votes
1answer
3k views

In Tikz, how to make the text on an edge have the same direction as the edge's?

I have created a simple node-edge graph in which I would like to have the texts on each edge aligned to the direction of the edge. \documentclass[class=minimal,border=0pt]{standalone} ...
6
votes
2answers
588 views

How to find the intersection point between line and plane in tikz-3dplot?

It is interesting that there is no question in this site about the intersection between line and plane. In 3-space, a line is passing through a plane. Finding intersection in 3-space is a very ...
8
votes
3answers
616 views

How to draw complex nodes in tikz?

I know how to draw automaton in tikz. But how to use complex nodes in that? I want draw something like this in tikz:
6
votes
2answers
212 views

how can I make these diagrams with latex?

I need to prepare several diagrams with latex and the closest match to what I need to do are these two diagrams, can anyone provide hints how to do them? I'm familiar with TikZ but these diagrams look ...
6
votes
1answer
173 views

Constraint for a decoration: only if edge is long enough

Title+Picture might make you guess my question: My goal is to modify the tikz-style companion such that in this example the text along path-decoration will only be shown if it fits, i.e. between ...
9
votes
2answers
507 views

Compiling a 870 mb latex file

I have a tikz file that is 870 mb and I want to compile it using some latex. How can I achieve this? I have tried increasing the amount of main memory to latex to the maximum and it still doesn't ...
13
votes
2answers
802 views

Is it possible to fill the complement of (A union B union C) with a solid color but the remaining regions remain transparent?

Please ignore the binary numbers. Without finding the intersection points in advance, is it possible to fill the complement of (A union B union C) with a solid color but the remaining regions ...
17
votes
4answers
2k views

How to generate all possible Venn diagrams (with the case below) efficiently?

I can draw Venn diagrams but now my question is more complicated than just drawing Venn diagrams one by one. I need to draw all possible Venn diagrams efficiently. I need a combinatorical approach ...
6
votes
2answers
1k views

Perpendicular line to two-points-line given the length

I have two points A and B, I call the line consisting of A and B as LAB:ax+by+c=0, I would like to draw a line segment starting from the point B perpendicular to LAB and with length len such that the ...
2
votes
1answer
250 views

how to make the line between two tuples longer?

I drawed a picture like a process flow, However, I found the line between two tuples is too short as seen in the following image. How to make the line longer? Here is the code: ...
5
votes
2answers
1k views

Make tikzpicture white on black

I have a simple gantt chart made using tikzpicture. How can I invert the whole thing so it is white on black? If I change the node lines to node[anchor=north west, text=white, fill=black] then this ...
8
votes
2answers
2k views

Rotate entire tikzpicture without using graphics.sty

This question is related to the one here. The question is given in the following text. \documentclass{article} \usepackage{tikz} \usetikzlibrary{mindmap,arrows} \usepackage{graphicx} \tikzset{ ...
6
votes
1answer
296 views

Draw a rectangle hiding an area of a picture

I have something drawn as a tikzpicture: \begin{tikzpicture} \node[above] at (8,13) {$...$}; \filldraw[fill=white!20] (2,0) rectangle (6,12); \draw (2,4) -- (2,12); \draw (2,12) -- (6,12); ...
5
votes
1answer
1k views

How to add decorations to tikz-qtree branches (for example, create AND-branches and OR-branches)?

Suppose I want to show the expression a IF b OR c b IF d AND e c IF f OR g as a tree, using tikz-qtree. I'd want to do something like this: \documentclass{article} \usepackage{tikz-qtree} ...
4
votes
1answer
731 views

Block quote with big quotations - white on black

There is are some very nice answers to the question of how to put large quotation marks around a block of text at Block quote with big quotation marks. Using the first answer (which uses tikz) but ...
6
votes
1answer
439 views

How to optimize TikZ code?

What drew me primarily to LaTeX is beautiful typesetting, especially its capability to render mathematical texts and figures beautifully. As a high school teacher, I use LaTeX a lot to create ...
9
votes
1answer
1k views

Mindmap/trees in TikZ

I can't get the following tikz examples to work (PGF manual 2.10, page 255). Most likely I can find a solution here that will save me time. Error: ! Missing \endcsname inserted. <to be read ...
12
votes
1answer
343 views

How to expand a macro used in the range of a foreach loop?

Motivating Example: Suppose that I want to draw the following tree: root / \ / \ / \ A B C D This is easy enough to do by explicitly drawing the two subtrees as children of ...
2
votes
1answer
706 views

problem with loading tikz

My coauthor sent me a latex file calling for tikz. I find that LaTeX chokes on loading tikz. I am using a freshly installed texlive2012 installation (but I checked same thing happens on TeX Live 2011 ...
5
votes
1answer
180 views

how to draw part of the picture to be line and the other part to be the “\leadsto” symbol

Please refer to the answer of how to draw arrow that looks like the symbol "\leadsto" in latex? in the picture all lines are changed to the \leadsto: Now i want to keep the connector ...