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

Exact Tikz coordinate at geometry layout

I place several images on one page using Tikz. I use geometry layout. I would like to find out exact coordinate of the left top corner of the layout page (not the real page). I have found out ...
2
votes
2answers
571 views

Plotting and labelling points on a graph

I'm using Beamer and I desperately need to have a picture of the following image: the elliptic curve $y^2=x^3+17$, with points R = (-2, -3), -R = (-2, 3), P = (4,9) and Q=(2,5). I'd also like a ...
2
votes
1answer
45 views

How to Make Connections Look Better

I have created the following "table" as part of a larger document: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{lmodern} \usepackage[fleqn]{mathtools} \...
2
votes
2answers
584 views

Root locus plots using LaTeX

On my homework, I need to create a root locus plot. Wondering if anyone out there has good suggestions for a package that is able to create root locus plots, or a general plotting package that is ...
2
votes
2answers
91 views

Drawing a perpendicular line with the package tkz-euclide

How to draw a perpendicular line from "P" to segment "AB"? Here is the code: \documentclass{standalone} \usepackage[utf8]{inputenc} \usepackage{tikz,tkz-euclide,xcolor,graphicx} \usetkzobj{all} \...
2
votes
2answers
171 views

pgfplots - tikz external - legends are missing

I'm using tikz external to get plots rendered faster. But legends in the plots are missing if external is used. Update: I'm using label to create legend. The same issue does not occur if \legend is ...
2
votes
0answers
212 views

Using the TikZ spy library to spy on a pixel value in beamer [closed]

I tried to use the TikZlibrary spy to zoom in on a certain pixel image; I am drawing in the image using a scope and red about the problem concerning coordinates in scopes here Magnify part of picture ...
2
votes
1answer
3k views

How to make a connection in a tree with a dashed line?

please refer to the answer of how to draw a process flow figure? Now I want to change the line of "and->path1" to the dashed line, i added [style=dashed], unfortunately it doesn't change, why? \...
2
votes
3answers
240 views

Overlaying or nesting graphs in tikzpicture with different axis scales

I need overlay or nest a figure in a graph. I try with \pic, but the results aren't good for figure scale, according to graph scale. I try also to define the figure in nodes, to place it in the graph,...
2
votes
1answer
333 views

How can I coerce TikZ trees to have directed edges? [duplicate]

Consider the following \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node{A} [grow=east] child {node{B} child {node{C}}}; \end{tikzpicture} \end{document} which ...
2
votes
0answers
389 views

How do I replace an XYZ coordinate system on an already available plot? [closed]

I have an eps file looking like this: I have no access to the original dataset, so replotting it is not an option. I would like to replace the ugly 80s style coordinate system (Both the captions ...
2
votes
1answer
1k views

Did I install a package successfully?

On my Ubuntu system, I have already installed texlive-full under /usr/share from long time ago. I just tried a simple example with \usepackage{tikz} and it did work fine. Later, I added \...
2
votes
2answers
3k views

Putting labels on arrow mark in Tikz's picture

I've tried to manually put labels (1-2-3-4) on the arrows tip in the center of the connection lines but it seems not working good..How can i fix this? \documentclass{standalone} \usepackage{tikz} \...
2
votes
1answer
55 views

Scale a TikZ picture according to current font in math mode

I want to define a simple shape and use it as a binary math operator. This implies that it should scale when used as a subscript (e.g., the same behavior as \bigcirc). My attempts so far led me here:...
2
votes
1answer
486 views

Tikz'spicture: problems positioning shapes inside nodes and arrow's tips in the middle of the line

I need to draw the picture above with tikz's code, and i would know the better way for placing the "zig-zag" lines. Also I would like to put the arrow's tip in the middle of the connection line. ...
2
votes
1answer
340 views

using easybmat and tikz packages together?

In continuation to this question, I was looking for a way to add nice diagonal lines inside a BMAT matrix to express a band structure of the matrix. However, a LaTeX file with both TikZ and easybmat ...
2
votes
1answer
34 views

Where to install the pgflibraryqrr.shapes files when using MiKTeX in Windows

I am trying to run the code found here, but I get the error. I did not find the pgflibrary 'pgflibraryqrr.shapes.openrectangle.code.tex'..... I put the files in the directory C:\Program Files (x86)\...
2
votes
1answer
2k views

Bad math delimiter in tikz tree

I'm trying to diagram an extensive form game using TikZ trees. The following code generates errors at compile time. Specifically, it complains about missing $'s and a bad math delimiter. I've been ...
2
votes
2answers
313 views

What is the TikZ equivalent for the following PSTricks code?

I have learnt TikZ several months ago and I almost forgot because I seldom use it. I have a simple and easy object to draw as follows. % incm.tex \documentclass{minimal} \usepackage[paperwidth=...
2
votes
1answer
2k views

pgfplots and exp(x) throws error: Dimension too large

I hope, someone can help me. I've the following problem: I want to draw a Graph like this The picture shows the following graphs: exp(x), ln(x), x my code is: \begin{tikzpicture} \draw[ultra ...
2
votes
1answer
55 views

Expansion problem

In this example, I want to create nodes generically named (for the user) \N{a}, \N{b} ... in each macro but named differently (for tikz) to avoid confusion and overwriting when calling macro ...
2
votes
2answers
352 views

How to center an ellipse into a frame?

How to center an ellipse into a frame ? I've tried this but it wouldn't work : \documentclass{beamer} \usepackage{tikz} \usetikzlibrary{shapes} \begin{document} \begin{frame} \begin{tikzpicture} \...
2
votes
1answer
121 views

Using titleformat* with tikzpicture (leaving horizontal mode)?

I'd like to use the same code as in Using tikzpagenodes with crop package? - except with \titleformat*, not with \titleformat. Why? Because in the original code I got with the template for my real doc ...
2
votes
1answer
46 views

Make bands surrounding nodes with Tikz

MWE: \documentclass{article} \usepackage{tikz} \usetikzlibrary{fit} \begin{document} \tikzstyle{block} = [rectangle, draw, text width=5em, text centered, rounded corners, minimum height=2em] \...
2
votes
1answer
378 views

Tikz coordinate calculations inside foreach

As part of a drawing that will go with an explanation of diffraction, I want to draw the "outer rays" of a beam of light and draw several rays in between. An MWE of how I'm going about this is shown ...
2
votes
2answers
520 views

Fill a table cell with empty lines

This is a follow-up question of Set table background hatched and shaded using tikz. I want to specify the height of the orange cell as "number of lines" like it is done for the \ShadeCell[5] command (...
2
votes
1answer
78 views

hobby: using tangency information at a point when drawing paths

Consider the following minimum not working example, where the first figure is drawn using "standard TikZ" methods, and the second using the hobby package: \documentclass{article} \usepackage{lmodern}...
2
votes
1answer
100 views

What is the overflow limit for a named path in tikz / pgfplots?

I asked this question FillBetween library sometimes works and sometimes does not which led to this answer and discussion http://tex.stackexchange.com/a/180926/6908. There seems to be a limit of data ...
2
votes
1answer
417 views

TikZ does not use square coordinates but polar one, how to change it in order to use Cartesian coordinates?

Consider the following: \begin{tikzpicture}[thick,scale=0.8] \node (v0) at (0,0) [label=right:$\emptyset$] {}; \node (v1) at (40:-2) [label=right:$v_1$] {}; \node (v2) at (70:-1.6) [label=...
2
votes
1answer
175 views

Custom style just for width and height?

I have some pgfplot graphs in .tikz files and I want to define a custom style to them that only overrides some entries, and uses whats in the .tikz files for the rest. Example: In my .tikz file I ...
2
votes
2answers
83 views

How to create certain picture with tikz

I'd like to create the attached picture using TikZ, or any other vector graphics package. However, I have no idea how to draw the arrows and align the text. Would really appreciate your help :)
1
vote
1answer
1k views

Sequent Calculus

What is sequent calculus? See wiki: http://en.wikipedia.org/wiki/Sequent_calculus So basicaly I'd like to produce something like this: Maybe using Tikz?
1
vote
2answers
401 views

beamerarticle: pause statement in tikz

I wonder how to use \pause in tikz with beamerarticle. My MWE is below which throws errors. I know this code will work fine if I don't load beamerarticle with beamer. But I need to load beamerarticle ...
1
vote
1answer
2k views

Change arrowhead in line style definition

I'm trying to define a size for the arrowhead of a style, like this: \begin{tikzpicture} [line/.style={draw, ->, >=stealth, arrowhead=1cm}] % define nodes ... % define links \...
1
vote
1answer
451 views

Gnuplot-Tikz-TeXstudio setting problem

I am a beginner in making graphs of functions by TeX itself - until now i have solved these issues by including .eps pictures. Now i am on doing things better and nicer. I started to use Tikz packages ...
1
vote
1answer
2k views

! Package tikz Error: missing semicolon [closed]

I have found this sample of code from here: Block diagram generation in LaTeX. Initially I had some problems while I was compiling the code and I solved them due to copy paste features some of the ...
1
vote
1answer
3k views

Using scalable sizes for rectangles, circles and nodes in TikZ?

How do you define the size of a rectangle, circle or node in TikZ to be scalable, like when you position objects using (1, 2) and then apply scale=2? What I'm looking for is to be able to scale the ...
1
vote
0answers
459 views

How do I debug the message “Argument of \XC@definec@lor has an extra }” [closed]

Can anyone provide me with some intuition about what might cause an error like this? Argument of \XC@definec@lor has an extra } I am unable to produce an MWE that demonstrates the error, as it ...
1
vote
1answer
135 views

Arrows underneath numbers (Part 2 question)

I need the code for arrows underneath numbers going in the right direction. I've looked up the commands online and all I have \uarrow which goes to the left and not right.: Thank you Hendrik. My ...
1
vote
1answer
89 views

Equivalent of \providecoordinate?

I am looking for something that is the equivalent of \providecoordinate in TikZ/PGFplots. This would be easy if I knew how to test if a coordinate is already defined. There are similar questions ...
1
vote
1answer
2k views

Opacity in TikZ, ruins whole structure in Beamer [closed]

I am making a presentation in beamer. I wanted to make a TikZ picture and change it's opacity, locally on specific items. When I did, the structure color changed... I will attach my preable as well ...
1
vote
0answers
77 views

how to install Tikz and PGF on WinEdt6.0 [duplicate]

Possible Duplicate: How can I manually install a package on MiKTeX (Windows) Now I want to use Tikz and PGF, and I referred this instruction How to install a current version of TikZ? However, ...
1
vote
1answer
227 views

Tikz, childs not exactly on the same level

I'm having trouble arranging my child nodes. They don't seem to be centered, horizontally, if use the anchor=north setting. It looks like they are arrange according to their top edge of the node, but ...
1
vote
1answer
264 views

How to write a tree with no (visible) root with TikZ?

I’m trying to write a tree structure in TikZ. The trees in question are labelled on the leaf only; there is no label on inner nodes. Because I don’t use node on inner nodes, the tree structure joins. ...
1
vote
1answer
78 views

How to use sections from other tex files?

I have 8 files which I am serially listing in my main.tex file. All 8 files contain one chapter. Now I have created a diagrams.tex file which has 10-12 diagrams using tikz. I am not including this ...
1
vote
0answers
39 views

How to use a tikz image as label in enumerate? [duplicate]

Is there a way to use a TikZ image as a label of enumerate? Can I use something like the snippet below as a "styled enumeration"? \newcommand\custlabel[1]{ \begin{tikzpicture} \node[circle, fill=...
1
vote
1answer
336 views

making a box in beamer — adding labels diagonally

I would like to add a label that is diagonal to the following box, underneath the n', such that it is horizontally just below the box. Basically, I would like to "subtract" the difference between the ...
1
vote
0answers
269 views

Clash between knitr, tikzDevice and pgfplotstable

I use knitr to compile a document composed of two .Rnw. Please considered the following examples from this answer main.Rnw % !Rnw weave = knitr % !TeX program = pdfLaTeX \documentclass[final,12pt]{...
1
vote
0answers
64 views

How to draw a slash into the line? [duplicate]

I wish to add a slash into the line as described in the following picture. Here is my code,however, I don't know how to add the slash, may someone help me?: \documentclass[tikz]{standalone} \...
1
vote
0answers
146 views

TikZ based \boxed construct is causing pdflatex to hang [closed]

In standalone code this works for me, drawing a nice red colored box around my equations (based on TikX \underbrace like replacement that I use without any trouble): \documentclass{article} \...