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
2answers
1k views

Big block matrix with tikz

I know this is very similar to plenty of questions. The matrix below s actually bigger, so I realized that I had to use tikz. In this array, A, A',…,L', T are square matrices, and I filled with ...
4
votes
1answer
249 views

mdframed+tikz to display overfullrule

This may or may not be a bug, so I'll first ask it here before reporting. In the following test case: \documentclass{article} \usepackage[framemethod=tikz]{mdframed} \overfullrule=5pt ...
3
votes
1answer
768 views

Generating a box inside algorithm in beamer

I would like to create two boxes (or two frames) and one arrow which goes from the center of right side of one box and do half a circle and point on the other box. Below is an example of code: ...
1
vote
1answer
252 views

How to put tikzpicture aligned with the footerline?

I would like to put a tikzpicture near the footer line. The tikzpicture is used to show the page number on top of an image. The problem i am having is the tikzpicture is centered on the footer. ...
6
votes
3answers
345 views

drawing a line without coordinates

I want to draw a line that goes through a point A en B but does not stop at A nor at B. Can anybody help. I want to use it for constructions in optics. \documentclass{article} \usepackage{tikz} ...
15
votes
1answer
358 views

Is there a listings configuration for TikZ as used in PGF/TikZ manual?

I want to create a tutorial how to use TikZ now. Is there a listings configuration for TikZ as used in PGF/TikZ manual? For example, I want to make \ as an integral part of tikz in \tikz, relevant ...
5
votes
2answers
483 views

tikz \foreach dynamic list with environment arguments

I'm making an axis environment that recieves 5 arguments (the first is optional and it's 1 by default). To make the x marks on the x axis I use \foreach \x in {#2,...,#4} {\ifthenelse{\x = 0}{}{\draw ...
3
votes
0answers
43 views

addition in \coordinate [duplicate]

Possible Duplicate: Do I have to declare explicitly that point? How do you define a new \coordinate as the sum of two other coordinates? I often end up with a setting such as this ...
14
votes
1answer
1k views

3d-plane and rotating coordinate system in TiKZ

I am completely new in TikZ (starting today), but I am already amazed with all its capabilities. I would like to draw the coordinate system of a ring (a particle accelerator), showing the three ...
5
votes
2answers
631 views

How to modify a node in TikZ when using beamer's overlays

I have a matrix initialized with some colors and no values. With the help of beamer's overlays I wanted to modify the matrix in the next step, changing some of the colors and inserting some values. I ...
2
votes
1answer
676 views

What is newline symbol in beamer? [closed]

If I use \\ or $\newline$ in beamer inside a tikzpicture, I get the following error: Something's wrong--perhaps a missing \item. \end{frame} What is correct use of it? My tikz code is as follows: ...
7
votes
1answer
155 views

Double 'evaluate' in one PGF's \foreach

percusse may know if I can do the following with \foreach: \begin{document} \foreach [ evaluate=\x as \z using \x*10, evaluate=\x as \p using \x mm*3 ] \x in {1,...,5}{ \endgraf \hskip\p ...
1
vote
0answers
184 views

Drawing multiple lines with TiKz darkens background? [closed]

When I draw multiple lines with TiKz, the background of my tikzpicture darkens (i.e., from white to light gray). Interestingly, the more lines I draw, the more the white darkens. This is the code of ...
8
votes
1answer
312 views

Creating a staircase shaped tableau

I want to create a tableau of vectors in LaTeX, like the one seen on Slide 7 in these slides. But unlike in the slides, I want to have vectors like the one given by the code below \begin{pmatrix} ...
3
votes
1answer
599 views

How do I tell the arrow pointing to my start state to point from up?

I am drawing finite automata in Tex using the tikz automata library. Here is how my figure begins. \begin{tikzpicture}[shorten >=1pt,node distance=2cm,on grid,auto] \node[state,initial] (q_start) ...
9
votes
1answer
468 views

Curve synthesis - Adding two curves to get another one

Case 1: Let's say I have a few coordinates (A), (B), (C), (W), (X), (Y), and (Z) (possibily obtained through intersection, rotation, and whatnots). I draw two piecewise linear curves through (A), ...
1
vote
1answer
366 views

hyperref conflicts with todonotes and chemfig packages

I'm using TexLive 2012 from the openSUSE buildservice publishing repository, and a document that would compile with TeXLive 2011 now effects error messages such as: Package PGF Math Error: The ...
2
votes
2answers
679 views

Can I make formulae thicker?

I've just created an SVG version with TikZ and Inkscape from an old PNG version of an image on wikipedia. This is how they look like: You might notice, that the text of the left image is much ...
6
votes
1answer
239 views

tikz picture inside a tabular environment

Why does the following code fail to compile? \documentclass[tikz]{standalone} \begin{document} \tikzset{every path/.style={line width=0.66em}} \begin{tabular}{ll} $<$ 1 hour & \tikz \draw ...
24
votes
3answers
2k views

Arrow with two colors with TikZ

I want to create with TikZ a yellow arrow with black margin (border, edge). I thought I could do this by using two arrows which lie on the top of each other, e.g. with: \documentclass[12pt,twoside, ...
8
votes
1answer
539 views

Problem: tikz, pgfplots and external coordinates using overlay

I need to draw arrows from text to a pgfplots graph using TikZ. For some reason, the arrow coordinates are not where I want them to be in the pgfplots graph. Here is an example: ...
7
votes
1answer
629 views

How to draw function domain/co-domain (range) diagram?

I have seen the previous tikz example, similar with this one, but that example does not compile for me, I get 101 errors! How would one code the diagram below in tikz? Thanks, Diegis.
14
votes
1answer
181 views

An unexpected outcome from PGF's \foreach

The following example from page 508 of PGF manual 2.40 gives me a result that I didn't expect. \tikz[x=0.75cm,y=0.75cm] \foreach \x [count=\xi] in {a,...,e} \foreach \y [count=\yi] in {\x,...,e} ...
1
vote
1answer
583 views

How can I tell my edges to arc above when I draw automata with tikzpicture?

I am drawing finite automata with TikZ. Currently, transition arrows overlap between nodes because they both go across horizontally. How can I tell one arrow to arc above and the other arrow to arc ...
4
votes
4answers
474 views

Best way to draw scaled polygons in tikz

I want to draw pictures like this or this one . It is clear how to do this "manually" with TikZ. However is there a way to do it automatically. I.e. I just want to define the polygon (for ...
4
votes
1answer
232 views

Nodes being covered when using “right of” for placing nodes in TikZ

I am using Beamer and TikZ for creating some slides, and I am having some problems with positioning nodes. I incrementally display some nodes, and position them using [right of=previousnode]. On the ...
3
votes
1answer
291 views

Simplest way to draw the 3d-points in the set {0,1,2,3,4}^3 [duplicate]

Possible Duplicate: Tikz realistic 3D grid I want to draw a finite set of 3d-points. I have been looking at examples on the web, but I have not found anything to do this (the tricky part ...
34
votes
1answer
1k views

Hobby path realization in convex hull approach

Motivation In the answer Highlight a group of nodes in a tikz tree, Jake suggested combining the convex hull approach from padded boundary of convex hull with the hobby path and I was really ...
8
votes
1answer
431 views

how to add arrow between arrows, how to put an arrow on a second arrow

I have big problems to get model of evolution. I do not even know how to start. If some one show the sample code of something similar, I would be grateful \documentclass{minimal} ...
19
votes
0answers
993 views

How can I produce a .svg file from a TikZ diagram? [duplicate]

I would like to produce separate .svg files for each of the TikZ diagrams in my LaTeX document. Each of the .svg files will then be used in a WordPress web page. I have tried a number of things, none ...
3
votes
1answer
311 views

Using 3dplot package in Beamer

I'm trying to make a 3d plot by adapting the one from the beamer gallery. I'm using LyX 2.0. I keep getting an error that LyX can't compile the file because it can't find \begin{document} ...
6
votes
1answer
642 views

How to grey out edges in a tikz graph?

I'm trying to grey out edges of a graph to high a region of interest. For instance, I would like to make every edge expect for that labeled "interest" grey in the following MWE. \usefonttheme{serif} ...
9
votes
1answer
648 views

How can I add space between two separate plots, using pgfplots?

I currently have the following: Now as you can probably imagine I do not want this. I want the upper right plot to be aligned with the lower right plot. However when I do this, using the at and ...
19
votes
3answers
900 views

Tikz: joining points on a circle

I have the following figure I would like to draw portions of circles between some of the red points. More explicitly, I would like to go from ac1 to ab1 and then to ac2 following circle A, then go ...
3
votes
2answers
190 views

Include pdf-graphic without including the whole pdf

I have drawn a lattice in latex with tikz, successfully compiled it to a pdf and been able to include it in my document. However, the whole PDF (i.e. A4 page) is included and I only want to include ...
15
votes
2answers
4k views

pgfplot: plotting a large dataset

I try to plot a dataset which is large using pgfplots. Since I'm aware of problems with large files, I used the external mode. I additionally increased main_memory from 3000000 to 6000000. It crashes ...
5
votes
2answers
872 views

creating a fifo symbol with pgfdeclareshape

I'm compiling with: pdfTeX, Version 3.1415926-2.3-1.40.12 (MiKTeX 2.9 64-bit) (preloaded format=pdflatex 2011.7.8) pgf 2008/01/15 v2.10 (rcs-revision 1.12) tikz 2010/10/13 v2.10 (rcs-revision 1.76) ...
12
votes
2answers
3k views

How to center one node exactly between two others with TikZ?

How can I center a TikZ node exactly between two others? Hypothetically, \node (a) {a} \node (c) [right of=c] {c} \node (b) [between={a,c}] {b}
4
votes
2answers
398 views

Vertical node spacing

Ok. I'm trying to make the left look like the right. I'm kinda lost here. Suggestions? \documentclass{article} \usepackage{tikz} \usepackage[margin=0.5in]{geometry} \pagestyle{empty} ...
8
votes
1answer
1k views

tikz: plotting a one column file [closed]

I use tikz/pgf to plot plots with data from a file. This works perfectly fine if I have at least to columns in the file that I can choose from. However, I have a rather huge file with just one column. ...
5
votes
1answer
106 views

Node base error

Encountering a strange issue here: I have a node style that I have been using for many flow-charts. It's base has always been in the exact center of the shape, but now i'ts been translated up about ...
6
votes
3answers
1k views

Adjust spacing between text and horizontal rule

Please consider the following code: \documentclass{amsart} \usepackage{tikz} \begin{document} \noindent \tikz\draw(0,0)--(\textwidth,0); Some Text. More Text. More Text. \newline \noindent ...
9
votes
5answers
1k views

Is there a way to print two tikzpictures next to each other marked with a and b?

I have the following code that should print the two figures next to each other with an a to the left of the first figure and a b to the left of the second one. The code below does this, but everything ...
7
votes
1answer
129 views

Why do my “to path” arrowheads disappear when I upgrade to PGF 2.10?

Since I upgraded to PGF 2.10, some of my arrows drawn with to don't look right anymore. For instance, they are missing arrow-heads, and some other styles I applied to them have also disappeared. For ...
8
votes
1answer
552 views

beamer and tikz-uml package are not working together

I use pretty cool tikz-uml in my LaTeX with class report. Its works very well!!! Today, I’m start prepare presentation with beamer. I import all my tikzpictures from report TeX without problems. ...
2
votes
1answer
701 views

Matrix and Node Padding

Trying to gain a little vertical padding with a matrix of nodes and having trouble. In a regular matrix I could just add [2em] etc after the row or column delimiter to add a little padding between ...
1
vote
1answer
314 views

Outlining and aligning a Matrix

Bear with me as this is a multi-part question. First I'm trying figure out how to outline a matrix and not change the style of the nodes in the matrix. Maybe a better question is how to configure a ...
9
votes
2answers
713 views

Calculating a common height for nodes with different amounts of text in Tikz

When using labelled nodes (e.g. for a flow chart), their sizes are automatically chosen. One can enforce the same size, which must be known a priori, for multiple nodes by using "large enough" values ...
19
votes
3answers
870 views

How to make a smarter cropping with standalone or preview packages?

The arrow tail at the bottom left corner is not properly cropped. \documentclass[tikz,border=0pt]{standalone} \usepackage{tikz} \begin{document} \begin{tikzpicture}[scale=3,line width=3pt] ...
0
votes
1answer
173 views

Changing scale using TeXgraph

I'm using TeXgraph to create figures and stuff, being a bit lazy and not wanting to code everything. I chose to export the code into tikz to use with tikzpicture. The outcome is great if I don't have ...