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)

1
vote
0answers
33 views

Is it possible to use \usetikzlibrary inside a figure?

It seems that whenever I use \usetikzlibrary in the context of \begin{figure}, the library is not loaded. I often put the content of my figures in separate files, and I'd like to place the library ...
6
votes
1answer
193 views

How to create a correctly aligned tree proof in logic with 4 branches, columns of line numbers and justifications?

I'm looking for a way to make a Logic Tree with three columns (line number, tree itself and commentary). I've tried using a tikz matrix, and it worked very well, except when I get more than two ...
0
votes
0answers
31 views

pgfplotsset error

I am running the following code \documentclass[% reprint, amsmath,amssymb, aps,onecolumn,showkeys, %pra, %prb, %rmp, %prstab, %prstper, %floatfix, ]{revtex4-1} \usepackage{graphicx}% Include ...
4
votes
1answer
39 views

Round corner not correct

I wish to draw a round corner but below code seems not as expected. The upper right corner is turn to a wrong direction. \documentclass{article} \usepackage[pdftex,active,tightpage]{preview} ...
1
vote
1answer
39 views

Coordinate of the end of arc in tikz

I was trying to calculate the coordinate of the end of an arc in tikz but there seems to be an error I couldn't fix. Any ideas? Many thanks in advance! \documentclass[a4paper, 11 pt]{article} ...
6
votes
1answer
76 views

How to make some adjustments and centralize these graphs

These are the graphs I am trying to reproduce: This is what I've done: My problems are: How to make those arrows in each loops in the second graph. (If possible) How to decrease the letter's ...
2
votes
1answer
51 views

Problem with forget plot in the 1.12 version?

If you comment the line \pgfplotsset{compat=1.10}of this MWE: \documentclass{amsart} \usepackage{tikz,pgfplots} \pgfplotsset{compat=newest} \pgfplotsset{compat=1.10} \begin{document} ...
3
votes
1answer
174 views

Create Sierpinski-like triangle in tikz

I would like to adopt this example How to create a Sierpinski triangle in LaTeX?, for a slightly modified Sierpinski triangle: The first step (the whole triangle is black) should be the same. Then in ...
3
votes
0answers
76 views

Make a Sheme in LaTeX Tikz?

I have this CSV-file ... Lineare Algebra TÜ [Übungsraum (3322-316)],01/28/15,08:15:00,01/28/15,10:00:00 Lineare Algebra TÜ [Übungsraum (3322-316)],02/04/15,08:15:00,02/04/15,10:00:00 Lineare Algebra ...
6
votes
2answers
70 views

Problem declaring newcommand with tikzpicture inside

I plan to put some common commutative diagrams and short exact sequences as new commands in my *.sty file. However, putting this code in my *.sty file \ProvidesPackage{myLayout} ...
2
votes
1answer
55 views

Plot file could not be opened

The following code is from the "gallery of examples in the manual - PGFPlots". \documentclass{article} \usepackage{pgfplots} \pgfplotsset{compat=newest} \pagestyle{empty} \begin{document} ...
10
votes
3answers
1k views

Pascal's Triangle + Fibonacci Numbers

How can I draw this picture in LaTeX, with those skew lines? Any hints?
1
vote
2answers
55 views

Different space between nodes for Tikz legend

I want to add a legend to my graph, explaining what different arrows mean. I thought I might be able to do it using coordinates, but the spaces between them are the same as spaces between the nodes ...
1
vote
1answer
36 views

How to align a group of nodes with respect to the widest one

Consider the following figure: How can I align the horizontal-text nodes so that their .west nodes are vertically aligned with respect to the widest node in the group? Also, how can I add the ...
2
votes
1answer
48 views

How to draw and label a vertical line from datapoint to x-axis in pgfplots

I have the following figure that consists of only four different values of $x$. Each of these $x$ values corresponds to a certain dataset and I need to label it in the figure. Therefore, I want to ...
4
votes
0answers
55 views

Add label to a rotated doubly linked list

I have done a doubly linked list as below but I still not satisfy the label annotation of begin and end. I know it's a bad style now but don't how simplify it. \documentclass{article} ...
11
votes
3answers
244 views

3n arguments in a macro (n is an even number) for curves whose thicknesses increase or decrease

For some mathematical figures it's nice to be able to vary curve thickness smoothly along a path, to reproduce hand drawn mathematical figures made with inking liners for instance. One way to do it ...
4
votes
1answer
36 views

Increasing the distance between nodes from the 1cm default using “right=of” option

The following code has TikZ drawing parallel line $\ell$ and $m$ and intersecting line $k$. I drew line $m$ by first positioning the origin, labeled O, on it, and using \coordinate[left=of O](P); and ...
5
votes
1answer
74 views

Segmenting a Bezier curve into equal lengths in tikz/pgf

I'm trying to draw two curves and then create equal sized segments/arcs using pgf/tikz but for some reason the segments are not equally sized. I want to go on and fill each segment with a different ...
1
vote
0answers
23 views

Box around some of the elements in an enumerate list [duplicate]

I need to put a box around the label of an enumerate list. This is solved in Colored box around enumerate labels but, my problem is that I need to do that just in some of the elements marked, for ...
2
votes
1answer
66 views

Weird behavior of cylinder shape in TikZ

I am trying to draw a cylinder to represent a database in a diagram of mine. I have written this code, inside a much bigger document \documentclass{article} \usepackage{tikz} ...
2
votes
0answers
53 views

Animating tikz pictures using beamer

I have two pictures drawn using TikZ. When I place them in two different frames in beamer they perfectly show up. But I want to animate them, that is, I want one picture after the other at a mouse ...
1
vote
2answers
57 views

Defining my own custom white-boxed digital circuit component

Tikz has a bunch of useful digital circuit components, basic or complex. Here, I need some of my own, not necessarily even one of the convenient ones. But let's take one, rather convenient example: A ...
3
votes
2answers
63 views

Aligned circle around letter - tikz

I am using the following tikz-based command to create a circle around a letter. \newcommand*\circled[1]{\tikz[baseline=(char.base)]{ \node[shape=circle,draw,minimum size=4mm, inner sep=0pt] ...
4
votes
4answers
242 views

Change labels on x-axis in TikZ plot

I have the following code to create an axis on which trigonometric functions must be plotted (in degrees). It is to be printed out and used as part of a mathematics test paper. However, x axis must be ...
1
vote
0answers
33 views

tikz being mishandled by manuscriptcentral

I'm submitting a paper through manuscriptcentral. The paper uses tikz. Here is the code for one of those figures: %in preamble \tikzset{box/.style={draw, minimum width = 1.cm, minimum height = ...
1
vote
0answers
36 views

TikZ Calendar Example Fails: Undefined control sequence \@EveryShipout@Output

I just love the TikZ calendar at http://www.texample.net/tikz/examples/feature/calendar-library/a-calendar-for-doublesided-din-a4.tex . It compiles fine on my iPad TeX Writer with PGFPLOT 1.11 ...
1
vote
1answer
62 views

Tikz and figures in 3-space

How can I draw this in LaTeX? I can do with a lot of segments but I think that there is other easy way to do it. And how can I add this gray blackground to images that give that spatial view.
2
votes
1answer
38 views

Improvement of tikz code and color the cone

The following code produces (if you can call it like that) a sphere, a cone and the axis. \definecolor{uuuuuu} {rgb}{0.26666666666666666,0.26666666666666666,0.26666666666666666} ...
4
votes
2answers
93 views

tkz-berge, renumbering vertices

This TikZ code for drawing an icosahedron and labeling gives only a partial answer to my question. With the following code \documentclass{article} \usepackage{tkz-berge} \begin{document} ...
2
votes
0answers
31 views

Count the number of items in a TikZ foreach statement [duplicate]

One sometimes defines macro's for TikZ as: \newcommand{\foo}[1]{ \foreach \x in {#1} { %do something } } Thus where the argument given to \foo is used in a \foreach loop. ...
4
votes
1answer
51 views

Differences that implementation of `\node` and `\coordinate` have on display

Here are four TikZ environments to draw two parallel line segments. In all of the environments, one endpoint of the first line segment is specified with either \coordinate(A) or \node(A){$A$};, and ...
5
votes
2answers
208 views

Drawing Kano Model

I was wondering if someone can indicate me the easiest way to sketch the following picture. I started using the axis environment from pgfplots package as you can see from my code below, but then I got ...
5
votes
1answer
64 views

Paths of `pgfimages` in beamer templates

I am working on a beamer template for my institute in which I am using \pgfdeclareimage for images. I have quite a lot images and logos for different projects/experiments/groups and I organised the ...
0
votes
1answer
72 views

Not able to plot parabolas in an array

The following two TikZ environments should give similar displays. I am trying to get five graphs of parabolas, each on the Cartesian plane, and to put a label of a.), b.), c.), d.), or e.) at the ...
0
votes
0answers
22 views

Take input from csv file and use it to create a custom-made table in tikz

I have a csv file that looks like this: Scott, William, Todd,Esben, Martin, Jesper, Alexander W.L Right now, the names are written this line \aebuildtable{20}{Scott,William,Todd,Esben, Martin, ...
2
votes
2answers
43 views

fancyhead gradient doesn't match bg colour

I have a "fading line" from white to grey in my header. I wanted to add a page with a different background colour, and therefore fade from this colour instead of white. The problem is that the start ...
1
vote
1answer
45 views

move the “.10^-2”

Move it to the right so it will be aligned with the other yticklabels about 0.2cm or more Thanks \begin{tikzpicture} \begin{groupplot}[group style={group size= 2 by 3,horizontal sep =1.5cm,vertical ...
4
votes
3answers
174 views

Name tikz pic as if it was a node

I'm confused about tikz pics. I can freely define them without issue, and even add coordinates inside that will be available by name inheritance like (-A) as for example in \pic (S) at (0,0) {myPic}; ...
2
votes
1answer
29 views

plotting statistical data, putting years at the Xticklabel PGFplot

I want to plot these data and i can't figure out how to put the years at the X axis, I want to display all the years not a 5 year step. \begin{tikzpicture} \begin{axis}[width=8cm, x tick label ...
3
votes
2answers
74 views

Not able to plot a parabola

I am making a multiple choice problem. (Here, I display two of the choices.) I am trying to plot parabolas using pgfplots. Why is TikZ not compiling my code? I put a % in front of the parabolas ...
2
votes
1answer
27 views

Package pgf Error: No shape C_1 is known

I was trying to compile a latex code of a graph. However, I got many errors. It shows me Package pgf Error: No shape C_1 is known. The error appears for all the nodes in the Graph. Here is the code I ...
7
votes
5answers
538 views

Plotting the Cantor function

I would like to know if there is an (easy?) way of plotting the Cantor function (devil's staircase) using LaTeX. Doing it manually with TikZ seems like madness somehow and my knowledge of plotting ...
3
votes
1answer
35 views

setotherlanguage{arabic} makes inline-tikz not to be typset inline

\documentclass{article} \usepackage{fontspec} \usepackage{tikz} \usepackage{polyglossia} \setmainlanguage{french} \setotherlanguage{arabic} % comment that line, the problem disappears. ...
1
vote
0answers
35 views

Points in rectangular coordinate system - specifying coordinates as function values

I am trying to locate the vertices of a rectangle and to color the rectangular region. I specify the y-coordinate as a function value, like \sqrt{3}/2 or \sin(60). I am getting an error. ...
1
vote
0answers
50 views

tikz - drawing an edge that splits to reach two targets

I'm using tikz and want to have an arrow from one node that leaves and goes straight for a while and then splits into two arrows going to different nodes. Here is a picture I drew a while ago. I ...
3
votes
1answer
25 views

revisiting tikz text location within node

I'm following the answer I got here for a previous question about how to control text location within a large node in tikz. I would like a slanted box to surround 4 smaller boxes, and then ...
1
vote
0answers
101 views

PSTricks algebraic coordinates going from MikTeX to TeXLive

I am using PSTricks and some tikz functions for preparing some sketches. This snipped worked perfectly fine MikTeX on Windows 7 \documentclass[]{scrartcl} \usepackage{amstext} \usepackage{amsmath} ...
2
votes
1answer
52 views

mirroring antenna symbol in CircuiTikZ

I want to change the left to right antenna to right to left one as the receiver requires mirror image of transmitting antenna. This is my simplified code \documentclass[12pt,a4paper]{article} ...
3
votes
2answers
63 views

How do I make partially shaded nodes with tikz without hardcoding coordinates?

How do I make partially shaded nodes with tikz without hardcoding coordinates? A plain MWE is as follows: \documentclass{article} \usepackage{tikz} \begin{document} ...