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.

learn more… | top users | synonyms (3)

2
votes
0answers
34 views

How do I embed an external image within tikzpicture?

I tried the following: \begin{tikzpicture}[] \pgftext{\includegraphics[width=150pt]{pic1.png}} at (0pt,0pt); \pgftext{\includegraphics[width=150pt]{pic2.png}} at (100pt,0); \end{tikzpicture} ...
0
votes
1answer
26 views

Broken tikz chains

I tried to use the tikz chains feature today, and all was good for a few hours, but now I get an error every time I try to use chains ./test.tex:7: Package pgfkeys Error: I do not know the key ...
2
votes
1answer
33 views

How to add cyrillic text to tikz image?

I tried the following: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{backgrounds, shapes, arrows} \begin{document} \begin{tikzpicture} \node at (10pt, 50pt) {Đ™}; ...
4
votes
1answer
30 views

pgfplots: Splitting xlabel on two lines

I want to split xlabel into lines. My MWE is below: \documentclass{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.7} \begin{document} \begin{tikzpicture} \begin{axis}[ % xlabel ...
2
votes
1answer
79 views

Help With TikZ: Recreating Diagrams from e/m Ratio Experiment—Helmholtz Coils and Circuitry

I have two images I need to recreate in TikZ. The first is that of Helmholtz coils and their spacing in the experiment: And the second being the wiring for the coils: My (very) Minimal working ...
7
votes
2answers
90 views

How to add legend to contour plots?

The following does not work: \documentclass{standalone} \usepackage{tikz,pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[view={0}{90},legend entries={foo,bar}] % 'legend entries' causes ...
3
votes
1answer
99 views

how to make this circles?

I would like to make in LaTeX these circles. How can we add the words in them? The color for the big one?
3
votes
1answer
58 views

How to color numbers in axis?

I want to color the numbers 3 in blue and -1 in green as show in the picture below. My code is this : \documentclass[12pt,a4paper]{article} \usepackage[utf8]{inputenc} \usepackage{amsmath} ...
2
votes
0answers
58 views

Scale font in TikZ plots

I have a lot (~100) of TikZ plots, autogenerated with a popular matlab script. I want to resize the font of the plots, because it is currently too large. I googled a bit, and found some answers (even ...
7
votes
1answer
120 views

Help creating solid cylinders along a path in Tikz for crystal lattice diagram

I am trying to draw a diagram using Tikz that will show the crystalline lattice structure of diamond. It should look like the following illustration (reference). I have managed to figure out the ...
7
votes
1answer
59 views

pdflatex nonstopmode with TikZ stops compiling

I compiled a TikZ code using pdflatex -interaction=nonstopmode. Depending on code errors, compiling stops. I want to know what went wrong. Let me show you two cases, both of which involve a code error ...
2
votes
5answers
383 views

Draw an aircraft with Tikz

I want to draw a plane using the Tikz tool. You will find, attached, a screenshot.
0
votes
0answers
37 views

Write lindenmayer systems/ L-systems in Tikz, documentation? [closed]

I would like to create l-systems with Tikz, and I've noticed that there is a specific library for it ( lindenmayersystems ). Online I've found several examples in tex-code, but I cannot find any ...
0
votes
0answers
49 views

Missing number treated as zero \end{tikzpicture}

I got this error and I try all suggestion in many website, also I canceled some chapter that I got the error from it. but I got another error. Please can any one help me, this is the text ...
1
vote
2answers
60 views

Calc and \settocdepth break \tikzexternalize

This might well be the strangest TeX behaviour I've ever seen and that's saying a lot. The following really is a MWE as far as the header is concerned: \documentclass{memoir} \settocdepth{subsection} ...
0
votes
0answers
178 views

Title page report with TikZ [closed]

I want to make the front page shown in the attached PDF. Someone! help me?
8
votes
3answers
166 views

Parallel lines on a grid and circle best practices?

I am a TeX/LaTeX noob, but I am learning rapidly. I am about to attempt to draw the following figure using LaTeX/TeX/TikZ I already have a, (I think) good working knowledge of how to draw circles, ...
4
votes
2answers
82 views

Boxing a number and aligning it vertically along the baseline

I am making a big list of exercises and I'd like to box the number of the exercise at each line. I found this: \tikzstyle{square}=[minimum width=0.5cm, minimum height=0.3cm, rectangle, rounded ...
3
votes
1answer
89 views

Right Angle Symbol Alignment with TikZ/Calc

I used a solution from @Jake from this post Insertion of Perpendicular Symbol at Intersection of Two Lines, but the alignment is not quite right. I have my suspicions why, but I don't understand the ...
2
votes
1answer
63 views

Text decoration is trimmed off with standalone package

I am decorating an arc with text as shown in this MWE using the standalone class: \documentclass[10pt,class=article]{standalone} \usepackage{tikz} \usetikzlibrary{decorations.text} ...
0
votes
1answer
51 views

Where is the pattern list gallery for pgfplots?

Where is the list, or gallery of the patterns available for pgfplots?
3
votes
1answer
41 views

Vertical path to node in TikZ trees

How can I set the path between two specific nodes to "vertical" rather than "direct"? Currently my tree looks like this: \begin{tikzpicture}[level distance=1.5cm, every ...
5
votes
1answer
84 views

Circular Arrows and Text on Path

I did some basic tikz figures, but i have absolutely no idea how to do a figure like this: Each text block should be aligned on a circular path and centered within the arrows. Could anyone please ...
2
votes
2answers
87 views

'Figure' in tikz makes image move 'forward'

I have a weird problem, whereby if I make my existing tikz picture a 'figure', it suddenly moves forward, as in, past the paragraph that comes after it in the code. That is, if the code that makes ...
1
vote
1answer
49 views

Vertical lines in pgfgantt

I'm using the package pgfgantt to create Gantt charts. I've seen that with the "today" key one can have vertical line drawn in the chart. However, only one today key is allowed. How can I have several ...
4
votes
1answer
122 views

Constructing dag-like diagrams

I want to draw diagrams that look a bit like this. Mathematically, you could describe them as directed acyclic graphs with dangling arcs. They're somewhat reminiscent of route diagrams. Desired ...
4
votes
1answer
92 views

How do I place braces on a line segment?

So I have this code here, \begin{tikzpicture} % Draw the axes \draw [->,black] (-1.5,0) -- (3,0) ; \draw [->,black] (0,-1.5) -- (0,3) ; % Draw the line ...
1
vote
0answers
28 views

headlines are not shown with tikz input (plain TeX) [duplicate]

I'm usign plain TeX with custom headlines. If I load Tikz packages with \input tikz then headlines are blank. The following are my headlines (some commands don't belong to plain TeX, but I think ...
3
votes
3answers
94 views

Insert text inside a image in eps format

UPDATE:I tried the solution with overpic and it works fine. But the problem is, sometimes, my experimental setup changes and I have to reproduce the eps file using different parameters from Matlab. ...
3
votes
2answers
112 views

How can I draw a wave diagram in Tikz/PSTricks

Sorry for the undetailed title, I didn't know what to call this. How can I draw the image below in TiKz or PSTricks?
4
votes
2answers
76 views

How to place a symbol under an arrow in Latex when using tikz package

I'm using the tikz package in LaTeX to construct a feedback loop for a control system as a part of a paper on control systems. The problem I'm running into is that I would like to place symbols under ...
3
votes
1answer
45 views

How can I display tick marks on only one axis of a pgfplots graph?

How can I display tick marks on only one axis of a pgfplots graph? Here is some simple code to work with: \documentclass{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document} ...
6
votes
2answers
104 views

Styling every node without affecting coordinate styles

I am trying to draw a diagram and connect the nodes. Since i want to Place the labels above the lines I use every node/.style={above=.4ex, anchor=base}. However sometimes I draw coordinates at ...
6
votes
2answers
47 views

Increasing vertical space between two subpictures

I'd like to increase the distance between the upper pictures and the lower ones (a-c and b-d are too close to eachother). I'm new to tikz and I really don't know where to put my hands on. Thank you. ...
24
votes
3answers
447 views

How to project text onto a plane?

I'm trying to create the impression that the text "slice" in the example below is written on the cube slice. What is the best solution? To slant the text? \documentclass{standalone} ...
3
votes
1answer
55 views

PGF's \foreach when list requires completion

Please is there anything I am doing wrong that PGF's \foreach is failing here? \def\alist{} \foreach\x in {% 2pt_A,4pt_A,...pt_A,10pt_A }{% \xdef\alist{\alist\ifx\alist\@empty\else,\fi\x}% } ...
1
vote
0answers
72 views

Plotting a histogram from a dat file using pgfplot

I want to create a histogram from a dat file with two columns, error and frequency. It also has a large amount of bins, 501. I have followed instructions provided elsewhere on this site but the data ...
5
votes
2answers
112 views

Tell TikZ not to draw paths with least one coordinate outside clipping region

Using Paul Gaborit's code for drawing subregions of Penrose tilings, I've created this image: The code to produce this is: \documentclass{article} \usepackage[active,tightpage]{preview} ...
0
votes
1answer
63 views

spherical coordinates in tikz 3d

Can we specify direction in spherical coordinates? I know we can do polar (angle:radius) but what is we are using tikz-3d and want to specify (r, theta, phi) where theta is the azimuthal angle?
0
votes
1answer
47 views

latexmk pointing to a line of code with an error that I don't see [closed]

When trying to compile my code, latexmk keeps hitting me with an undefined control sequences. I have checked above, below, and the line it says is causing the issue, but I don't see anything wrong. ...
6
votes
1answer
83 views

Using nan values in pgfplots

I use addplot to plot a data set which has nan values. The data file contains 5 columns. First column is the x-axis (time), the second and fourth is the wavelenght (same element, but 2 measurements) ...
2
votes
1answer
56 views

how to centerlize a box in the very center of the paper?

I am trying to draw a box in the center of the current page (A4 size). I try the following code \documentclass{article} \usepackage{graphicx} \usepackage{tikz} ...
0
votes
0answers
38 views

TikZ triming text based on an other node placement

I am using tikz to create a page layout comprising different nodes, each node containing a bit of text. The nodes are placed relative to each other. What I would like to achieve is that for some ...
4
votes
3answers
127 views

Adding variables in tikz

I tried looking here for an answer but didn't find anything. I'm trying to do this (taken from objectmentor.com): So far, I've got this: \documentclass{standalone} \usepackage{tikz} ...
1
vote
0answers
35 views

TikZ rectangle single rounded corner [duplicate]

How to round just one (or two, or three) corners of a TikZ rectangle? I can only get none or all rounded! \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture} \node [fill=red, ...
7
votes
2answers
119 views

Create custom node to draw this

I'm very very new to tikz, I've already done this: With this code: \documentclass{article} \usepackage[spanish,es-noquoting]{babel} \usepackage[latin1]{inputenc} \usepackage[T1]{fontenc} ...
2
votes
1answer
61 views

What is the nodename.number in the following example?

What is the nodename.number in the following example? For example a.345? Changing number arbitrarily rotates the arrows. How to decide on the numbers so that it remains parallel ? ...
3
votes
3answers
194 views

Drawing system architecture in Latex

I want to draw a system architecture as in the picture below Can you help me?
2
votes
1answer
102 views

How do I generate in LaTeX a list of random questions avoiding repetitions?

How do I generate in LaTeX a list of random questions avoiding repetitions? \documentclass{article} \usepackage[pdftex]{exerquiz} \usepackage{enumitem} \usepackage{tikz} ...
3
votes
1answer
89 views

Drawing a big commutative diagram in tex

I am trying to draw a big commutative diagram for my paper. The diagram is quite easy, it looks like a 4 by 8 matrix but the labels of the vertices and those of the arrows are quite large. For this ...

1 2 3 4 5 89