Tagged Questions

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)

9
votes
2answers
569 views

Animating TikZ without beamer

I have the following code: \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{frame} \begin{tikzpicture} \fill[white] (1,1) circle (2pt); \foreach \n ...
38
votes
2answers
3k views

How can we draw a Hannukah Menorah with decorations, using TikZ?

In the spirit of the festive season and How can we draw a Christmas tree with decorations, using TikZ?, I would like to use TikZ for drawing a Hannukah Menorah. There are many different styles of ...
16
votes
2answers
650 views

tikz: Ignore one path in bounding box calculation

I want to ignore one specific path for the bounding box calculation in the middle of a tikz picture (I need the path only to get an intersection point and had to make it quite long, to be sure that ...
0
votes
1answer
268 views

Error with TikzEdt after updating LaTeX packages [closed]

I upgraded LyX and consequently updated LaTeX packages. After this TikzEdt producing compilation error even with new files (see image below). I re-installed TikzEdt but no use. I'd highly appreciate ...
2
votes
1answer
2k views

matlab2tikz for surf plots: reducing data?

I was really happy to see that matlab2tikz also supports surf plots. Unfortunately, it produces too much data, so I run into the well-known memory problem. I tried compiling with lualatex instead of ...
6
votes
1answer
337 views

Overlay diagrams in TikZ

I want to join the vertices labeled as (1), b, abc, and ac but could not succeed. I'd highly appreciate if you point me out what I'm doing wrong and what is the solution. Thanks ...
6
votes
1answer
683 views

TikZ/PGF - how to draw a node as a line (rectangle with zero height)?

I want to a sequence of nodes, finished by a line. I tried this: \documentclass{article} \usepackage{tikz} \tikzstyle{st1}=[circle, inner sep=1.5pt, draw] \tikzstyle{st2}=[rectangle, inner xsep=2pt, ...
12
votes
2answers
209 views

TikZ/PGF - switching off shading

Is there a way to switch off shading for one node, in a scope where the nodes are shaded? In other words, I want something like shading=none, but did not find it. Motivation: \documentclass{article} ...
9
votes
1answer
604 views

Circular sequence diagram (tikz?)

Apologies in advance for the slightly-crappy camera phone picture: I'd like to include some figures like this in something I'm working on. I've just started learning tikz, which seems like it could ...
5
votes
2answers
645 views

individual path distance between nodes

I have been using the Tikz package to draw NFA's and DFA's, and it's a good package to do so with, but sometimes I have to be extra creative in my setup of it. It would be much easier if there was a ...
14
votes
3answers
939 views

TikZ parallel Edges between Nodes

I'm looking for a simple way to draw the following picture using TikZ. Namely, I would like to only specify the coordinates of the cities and then to connect them by edges using a \foreach loop. This ...
5
votes
3answers
471 views

How to submit a set of tikz command with pgfkeys?

I would like to send a serie of tikz keys to a tikz path with the pgfkeys interface. I succeeded with the following code but is there a simpler way to do that ? Can I do the same thing with something ...
28
votes
3answers
2k views

How can I draw nucleosomes with wrapped DNA in tikz or pstricks?

The nucleosome is the fundamental unit of DNA packing in cells, and I am trying to generate some figures for regular use in manuscripts and presentations. The nucleosome is commonly abstracted to a ...
3
votes
2answers
302 views

How do I create a McKelvey resource classification diagram using tikz?

How do I create a McKelvey resource classification diagram as shown below using TikZ?
4
votes
2answers
1k views

How to draw nested nodes?

I want to draw the following png graph generated by the dot program. After some quick research I decided to give a try to matrix nodes. Using it I successfully created the first Pipeline block. ...
9
votes
1answer
185 views

Checking whether or not a node has been previously defined

I use the following code to draw a line to connect two nodes in my graphic: \draw ( p-\prow-\col) -- (p-\row-\col); At the edge of the figure, however, not every node will have a predecessor from ...
2
votes
2answers
512 views

tikz graphs: draw an edge from a node without a goal node

Is it possible to write an edge going from a node but out into nowhere, see image below (ignore the trace of goal node that is visible)
34
votes
1answer
889 views

Chutes and Ladders

I am trying to make a Chutes and Ladders style game. I have managed to piece together a board, but I plan to change the location of squares, ladders, and slides for future boards. The ladder is a ...
7
votes
1answer
817 views

Gantt chart with title list in minutes and hours

I am trying to use the pgfgantt package to create a deployment event timeline for a cubesat. The various stages of deployment that the cubesat undergoes are on the order of seconds, minutes, and ...
8
votes
2answers
322 views

How can I remove leading and trailing spaces from a macro argument?

Consider this minimal working example: \documentclass[a4paper]{amsart} \usepackage{tikz} \tikzset{graph/.style = {every node/.style = { draw, shape = ...
6
votes
1answer
199 views

TikZ's extended line penetrates the figure caption

Here is an example: \documentclass{article} \usepackage{tikz} \begin{document} \begin{figure}\centering \begin{tikzpicture}[extended line/.style={shorten >=-#1,shorten <=-#1}] \draw [very ...
7
votes
2answers
585 views

Can't get rid of strange underfull \hbox with TikZ fit library [duplicate]

Possible Duplicate: Badbox from PGF layer using fit This peace of code is compiled with 'Underfull \hbox (badness 1484) in paragraph at lines 23--23' message. Line 23 is \node[draw, inner ...
5
votes
1answer
351 views

Pointing (an arrow) to a tabular node in beamer is buggy (ignorenonframetext)

Maybe a bug in beamer, works OK while using the minimal document class. Again, following the example over there, and also after playing with Circling/framing and referring to a bunch of nodes, the ...
5
votes
1answer
650 views

Adding double arrows to the middle of a line with TikZ

I am using tkz-euclide package and I am drawing a figure where I would like to put two arrows in the center of the line, exactly as seen in this figure: Ideally, I may want to create a single ...
5
votes
1answer
494 views

TikZ callout pointing to nested nodes

In the following MWE I want to create a TikZ callout pointing to a node within a node. The outer node is for the highlighting environment \tikzMe the inner node is for the \tikzmark. Somehow I do not ...
2
votes
1answer
489 views

Creating a circular shade with an intermediate color

I need to draw a circle that represents a density that's constant up to a certain value of radius, then begins to descend. What I mean, is something like this: \documentclass[12pt]{article} ...
5
votes
1answer
267 views

Strange movement of objects when highlighted item in beamer is uncovered

Can anyone explain to me why there is this strange "shift" of objects when passing from the first to the second slide in the below MWE? \documentclass{beamer} \usepackage{beamerthemeshadow} ...
2
votes
1answer
243 views

Connecting two nodes in tree rectangular

I want to draw a tree like this: The closest I could get to this was the following code: \documentclass{minimal} \usepackage{tikz-qtree} \begin{document} \begin{tikzpicture} \tikzset{level ...
12
votes
2answers
401 views

My polygon graph ends up “wonky” and I don't know why

For a document I am working on, I wanted to be able to draw polygon graphs. The graphs are to be labelled with the integers from 0 to n - 1, for some n. I wanted to write a macro that could be called ...
6
votes
3answers
1k views

drawing a syntax tree in tikz

I would like to draw a syntax tree, which resembles the below syntax tree. I know that I can use tikz to draw syntax trees, but I can't seem to figure out how to draw a straight line down to a node, ...
4
votes
1answer
127 views

Tikz: using functions for calculaton x, y parts of the coordinate in the stream of path operations

Is it possible to write something like this? \draw[dotted] (pi*0.5,sin(pi*0.5)) -- ++(10,0); I would like to use the trigonometric functions when entering x, y-parts of the coordinates. I got ...
9
votes
1answer
279 views

Latex Standalone always rebuilds / apostroph in filename?

I have started toying around with Martin Scharrer's standalone package because tikz external does not work with todonotes and I feel that the workflow for standalone makes more sense as far as I have ...
13
votes
3answers
800 views

In a tikzpicture, how can I “shift” by a multiple of the current x-vector (say)?

Suppose that I have a tikzpicture begun like this: \begin{tikzpicture}[x = 20mm, y = 10mm] Now let us suppose that I want to put a subpart of the picture inside a "scope" environment and I want all ...
35
votes
5answers
2k views

Please improve my logo to resemble our TeX.SX logo

It is free to use TikZ or PSTricks to answer my question. I want to recreate our TeX.SX logo. But my attempt is far from perfect. Please help me to make it more similar to the original one. ...
6
votes
1answer
462 views

Presentations with flexible page layout

I'm new to presentations with LaTeX; can the Beamer class be used to create flexible page layouts, such as shown below (yellow boxes will be filled with either images or text)? Each page may use a ...
2
votes
0answers
27 views

How I can delete frametitle after pagebreak in mdframed box? [duplicate]

Possible Duplicate: How I can delete title after pagebreak in mdframed box? I try to make a box with the title "Summary" by mdframed package. With the code I attach, the title "Summary" ...
6
votes
2answers
385 views

How can I draw a vertical line in a table cell?

I hope the explanation will be clear: I have a table with 4 rows, and one of the columns there is a value that is identical in all rows. I want instead of copying it 4 times for each row, just put it ...
6
votes
1answer
356 views

Aligning TikZ graphic vertically to neighbor in multicol

For my documentation of a blocks world problem in Prolog, I'd like to show the example code (using the listing package) next to the real world equivalent, which I made using TikZ. For this I used the ...
22
votes
3answers
2k views

How can I make plots with TikZ which look like the new Mathematica 9 plots

The new Mathematica 9 is out! I would love to know how to make similar plots to the one's advertized, particularly the following: and Here is a simple plot to get started. %& -shell-escape ...
4
votes
1answer
428 views

Tikz library : command \draw … to… with out and in specification

I would like to ask how the following command works: \draw [] (0,0) to [out=20,in=120] (50,20) to [out=-60, in=110] (90,20); I wonder what part .. to [out=20,in=120] .. makes. The result is a ...
1
vote
1answer
603 views

Complicated Tikz logic drawing

This is a follow-up to this question Complicated logic circuit drawing with Tikz - two input buffer gate? Any ideas how can I draw this next element IODELAY2, should I use Resistance symbol? For me ...
59
votes
2answers
2k views

Summary of Tikz commands

Many times, when I'm coding a tikz-picture, I don't remember the command syntax or the name of one option, and I have to look in pgf-manual is not very short. Does anybody has a summary of Tikz ...
4
votes
1answer
821 views

Filling area between two lines and an arc

I have the following diagram I would like to convert (approximately) to tikz: So far, I've succeeded at doing everything except the shading. I am a newbie to tikz and learning the best I can so ...
6
votes
1answer
439 views

TikZ change coordinate system so Y points downwards

How can I change the default coordinate system of TikZ, so the Y coordinates go downwards, instead of upwards. This is because in the picture I'm trying to draw it is more natural to reference points ...
5
votes
1answer
274 views

Some issues concerning a plot created as a `tikzpicture`

The above tikzpictureplot was created mainly adapting the code of Create xkcd style diagram in TeX . I located the dots and labels by trial and error. What are the better options? To create the ...
4
votes
1answer
521 views

Adjusting font size for fake perspective

I'd like to add text on the paths on the left side with font size continuously adjusted from \Huge to \tiny to achieve a perspective like effect. The font size steps shouldn't be \Huge, \huge, \LARGE, ...
2
votes
1answer
387 views

Using ps2pdf colour and fonts change when TikZ picture added on beamer slide

When compiled with LaTeX + dvi2ps + ps2pdf the pdf output of the below MWE shows a strange behaviour: On the first slide (without TikZ picture) fonts and colours are slightly different from the ones ...
4
votes
2answers
384 views

Using \caption for tikzpicture

I needed to move a picture to the right side of a slide, so I used tikzpicture! but with using the \caption, it will put the caption right in the middle of the picture. How can I move the caption? ...
1
vote
0answers
361 views

Problem with tikz and pgfplots [closed]

I have received some LaTeX code from a colleague which compiles successfully on his computer but not on mine. I get the following error messages (some of them more than once): ! Package pgfkeys ...
4
votes
1answer
219 views

tikz-qtree mangles edge anchors in trees [duplicate]

Possible Duplicate: tikz-qtree spoils tikz trees When I draw a tree using TikZ, for example \documentclass{article} \usepackage{tikz} \begin{document} \tikzset{every ...