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
792 views

Arrow decoration in TIKZ [duplicate]

Possible Duplicate: TikZ: How to draw an arrow in the middle of the line? I'd like to use Tikz for drawing Feynman diagrams. I found an example in TeXample, but it looks inefficient. One ...
4
votes
1answer
582 views

Putting an arrow on an arrow in Tikz

In the MWE below: \documentclass{report} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{tikz,pgf} ...
3
votes
0answers
51 views

Tikz arrow head same as arrows in latex? [duplicate]

Possible Duplicate: Matching arrowheads in TikZ with math mode arrowheads How do I make the arrow head in latex same (or at lest very similar) to those that e.g. \leftarrow produces? ...
2
votes
1answer
551 views

Tikz Graph Example – all nodes stacked

I try to reproduce the \graph example of the pgf manual 2.10 page 208: \documentclass{article} \usepackage{tikz} \usetikzlibrary{graphs} \begin{document} \tikz \graph {a -> { b , c } -> d}; ...
8
votes
1answer
432 views

String diagrams for monoidal functors a la McCurdy

Almost surely you don't know who Micah McCurdy is, but here is a sample of his diagrams, on pages 20-21, for example, or page 27 for something fancier. I asked him how he did them, and unfortunately ...
3
votes
1answer
291 views

Customize |<->| arrowhead in Tikz

I am quite happy with the |<->| arrowhead in Tikz but I would like to control the length of the |. Is there a simple way to achieve this? In tikz.code.tex, I could find ...
6
votes
1answer
370 views

How to assign values with foreach?

I have trouble to assign values with \foreach. Can somebody help me? The following code is wrong. The purpose is to asing the values: \lx1=1, \ly1=2, \lz1=3, for example. \foreach \x/\y in ...
14
votes
2answers
523 views

How to compute rotated bounding boxes?

Edit: As suggested by percusse's answer, I can use transform shape option. My first question is now solved. But although the second bounding box is now locally aligned, it is not correct. In fact, ...
4
votes
1answer
1k views

How can I draw snake arrow in automata using tikz?

I find: \begin{tikzpicture} \draw [->,decorate,decoration=snake] (0,0) -- (2,0); \end{tikzpicture} in TikZ manual, but dose not work! How can i draw snake edges in automata using tikz?
4
votes
1answer
1k views

Grouping nodes in tikz

For the MWE below: \documentclass[a4paper,11pt,twoside]{report} \usepackage[left=2.5cm,right=2cm,top=2cm,bottom=2cm]{geometry} \usepackage[T1]{fontenc} \usepackage{amsmath, graphicx, tikz, enumerate, ...
5
votes
2answers
551 views

Creating an automated table of signs

When solving some inequalities in the context of algebra-precalculus course it is sometimes useful to sketch the behavior of the factors involved using a table. All becomes clear with an example - say ...
8
votes
1answer
1k views

Using \addplot+ and \foreach in pgfplot

I have four text files with each 21 columns, and I want to plot, for each file, the first column as x, and then the 20 next columns as y. For each file, then put it all together on the same graph. ...
9
votes
3answers
544 views

How to avoid empty space caused by TikZ

When adding a background image by TikZ on a custom page, it leaves an empty space where the TikZ code is incorporated into the document. For example, \documentclass{article} \usepackage{lipsum} ...
10
votes
2answers
2k views

inclusion arrow in TikZ

How can I give shape to some arrow in tikz, to draw the inclusion arrow? I read a similar question How to typeset inclusion arrow? with given answer, but the answer didn't really used tikz and I ...
3
votes
1answer
200 views

Tikz text not adjusting itself for the arrow

I have the code below which produces the image (unfortunately the code doesnt work since the image files are not available here). The text "Done" is for some reason getting placed well below the ...
4
votes
1answer
433 views

How can I append switches to the existing value of the TikZ font key?

Is it possible to append switches to the existing settings for the TikZ font key? For example, suppose that I want all nodes to be in the \sffamily typeface. This can be done by setting every ...
4
votes
2answers
829 views

Is setting every node style anchor compatible with relative positioning in TikZ?

I'm trying to create a diagram and would like my nodes left aligned using the anchor=west option. I'd prefer to use relative positioning to make my diagram more flexible to changes. Here's my example: ...
5
votes
1answer
2k views

Update TikZ/PGF on mac

the TeXLive 2012 distribution on my Mac is shipped with TikZ version 2.10 - I want to use (try) the CVS (most updated beta(?) version). Here's what I've done so far: Downloaded the the TDS package ...
6
votes
1answer
309 views

Displaying [ ], |, etc. in a TikZ matrix node

I would like to typeset a specrtal sequence using TikZ, as suggested in this post, but the entries of my spectral sequence contain brackets and vertical lines, e.g. [x|...|x]. If I type them naively, ...
1
vote
0answers
693 views

tikzpicture fails when externalization is enabled [closed]

In a document of mine I'm trying to use the external library. For the record, I downloaded the CVS version of TikZ, since I want the better update checks. Anyway, I have a figure in my code which ...
7
votes
3answers
333 views

Overlapping fills

I would like to create a graphic representing a stack of rectangles. I would ideally like a simple command like \stack{5} to create a stack of 5. I can use the following code: \draw[fill=blue] ...
6
votes
2answers
259 views

How to share selected options between different nodes in TikZ?

(I didn't find a better title for the question. Suggestions are welcomed.) I have created some new shapes in TikZ and I would like to put one of them below another one when a certain key is passed to ...
30
votes
4answers
1k views

Filling a complex region with TikZ

I'm trying to fill a complex region which is defined by six intersections of 4 hyperbolas. As you can see here: In particular I want to fill the region which is bounded and defined by the 6 points. ...
3
votes
3answers
418 views

Join arrows and wide nodes with tikz

I want to create a flow chart with tikz that looks like this: ------------------------------- | wide node | ------------------------------- | ...
4
votes
1answer
526 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
732 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
907 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
631 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
154 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 ...
9
votes
2answers
362 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
763 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
809 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
598 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
335 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
174 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 ...