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
1answer
11 views

Arithmetic in tikz coordinates (parentheses)

I want to use parentheses in coordinate calculation in tikz. There should be a simple way, but I couldn't find it. For example, \def\x{10}; \draw (0,0) -- (1+1/\x,0); this works fine. But, ...
-1
votes
0answers
56 views

How to create this type of logo in latex? [on hold]

Dear friends, How to create this type of logo in latex kindly help me. (Inside hexagons put images or letters)
2
votes
3answers
121 views

Random non erratic domain in tikz

Is there a way to draw something like this In tikz, without being overly erratic like Drawing random paths in TikZ ?
1
vote
1answer
51 views

Parametric tikzset style with argument

I am working on a way to curtomize @percusse from Simulating hand-drawn lines to make it parametric. My idea is to have something like: \draw[penciline={jag ratio=2},decorate,thick] ...
1
vote
1answer
31 views

Clipping only the bottom of a graph in pgfplots/tikz?

Is it possible to clip only the bottom of a graph? I have a graph with a node above the area of it; when clipping over the entire thing is enabled, the node is cut away. However, no clipping means the ...
1
vote
1answer
52 views

Replacing tree-dvips, connect nodes in a tabular environment

I want to get rid of tree-dvips since it is not compatible with xelatex and ps-tricks since it does not compile efficiently with xelatex. I have the following figures: They were typeset by using ...
4
votes
2answers
49 views

Adjust node level using phantom node

Consider the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
5
votes
3answers
107 views

Horizontal - Vertical connectors in a tree (in place of slanted lines)

Here is the MWE: \documentclass[landscape]{article} \usepackage{tikz} \usetikzlibrary{shapes,arrows} \begin{document} \tikzset{ treenode/.style = {align=center, inner sep=2pt, rounded corners = ...
0
votes
0answers
90 views

Examples to convince people Tikz is simply awesome!

During todays lunch break, we got into a little argument about why Tikz is more awesome than other "drawing" software (illustrator, visio, omnigraffle, but also 3d). Unfortunately, me and my ...
0
votes
0answers
39 views

How to control the size of the figure?

Without using the include graphic, placing directly within the text a design using TikZ, you can control the size of the figure?
1
vote
3answers
50 views

I want to draw a dot / small sphere in a TikZ 3D Plot

I got a 3d coordinate system and I want to mark a point with a dot. \begin{tikzpicture}[x = {(0.866cm,0.5cm)}, y={(0cm,1cm)}, z={(0.866cm,-0.5cm)},] \draw[thick,->] (-15,0,0) -- (15,0,0) ...
5
votes
1answer
55 views

pgf path decoration with corners awareness

I try to create pgf decoration that will be able to tell in each segment whether the its start is a sharp corner on the input path, but I can't figure how to do this. Take for example the following ...
3
votes
1answer
53 views

create new TikZ key with code and style tags

Assume I want to perform a complicated calculation within a TikZ key defintion. What is the recommended way to do this? Reading through the manual and digging around in other questions led me to ...
2
votes
2answers
35 views

tikzpicture and array side by side in subfigure won't align

I am trying to align side by side a tikzpicture (an image of a network) and an array (a matrix) but no matter what I do they wont align properly. Two arrays side by side and two tikzpictures side by ...
-1
votes
1answer
63 views

Reproducing image of text boxes in a cycle using TikZ

I'm looking for a way to create a loop of text boxes such as the one below. I tried creating the image myself, however I couldn't find a way to place the arrow heads ontop of the circle, the circle ...
2
votes
0answers
51 views

! Dimension too large in pgf

I have no familiarity with TEX, PGF, etc -- but somebody was kind enough to offer me code to produce something I'd like to use. Unfortunately, I get a Dimension too large error when I run the ...
5
votes
2answers
131 views

Nodes on arrows not aligned nicely

I've written the LaTeX for an automaton that looks like this: As you can see, the 'b' on the arrow from q1 to q3 is positioned lower than the 'a, b, c' on the arrow from q3 to q2. Also, the 'b' ...
10
votes
1answer
88 views

Rotating tikzpicture messes up intersections

I'm working on a picture using TikZ and I'm using intersections to draw some points (the $α(t_{j+i}$). I saw that the picture would fit better into the page if I rescaled it and rotated 90 degrees, ...
6
votes
1answer
77 views

PGFplots: How to add a legend to “superimposed” plots

I have "superimposed" different plots on the same graph (i.e., I have two axises environments in one tikzpicture environment.) Now I would like to add a single legend for both of the plots and ...
5
votes
1answer
50 views

Problems combining clip, layer and pic when multiple instances are included in the same tikzpicture

I'm having trouble figuring out how I am supposed to combine (or if I am supposed not to combine) pics, clipping and layering when more than one instance of a pic is included in a single tikzpicture ...
5
votes
1answer
80 views

Logarithmic bar plot

I'm currently trying to create a diagram, with a logarithmic scale on y axis. This mostly works, except that the value of nodes near coords is wrong. Without ymode=log it shows e.g. 20551 as label. ...
1
vote
1answer
34 views

absolute positioning of tikzpicture in memoir

I need to position some graphic using some graphic material in the upper left corner of the stock (page is smaller). Consider the following example: \documentclass[a3paper,showtrims]{memoir} ...
6
votes
4answers
96 views

Incomprehensible behaviour of calc library with a “foreach variable”

If I compile the following code : \documentclass[12pt]{article} \usepackage[french]{babel} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \foreach \i in ...
3
votes
1answer
45 views

Trouble with directing lines between elements with tikz

In the following code, I would like to draw a line from the last diamond to the topmost diamond as shown in the ascii-art below /\ |---/ \ /\ | \ ...
2
votes
1answer
121 views

Ideas for high-level data structure visualization?

I want to create a (graphical) representation for a custom HL7 v2 message structure. In this scenario, I'm only concerned with the high-level message structure - the arrangement and usage of the ...
2
votes
0answers
56 views

“There is no p in font nullfont” when drawing arrow [on hold]

I have studied that problem on Internet and I still cannot the solution to the following warning. In .log file I get 20 times Missing character: There is no p in font nullfont! Missing character: ...
5
votes
1answer
510 views

Why do I need to wait about 30 seconds or more to generate a new set of questions in this code?

This is a follow-up question to this question: Generate exam from a question bank? In the following code by @Werner, I am curious to know why do I need to wait about 30 seconds or more to ...
0
votes
1answer
92 views

Technical Drawing Fill

So far I have my drawing like this: Having this code: \documentclass[14pt,letterpaper]{report} \input{Preamble} \begin{document} \begin{tikzpicture} \draw[double,double distance=5mm] (0,0) ...
3
votes
0answers
32 views

Using node after pic results in error in TikZ [duplicate]

Consider the following code: \documentclass[tikz]{standalone} \begin{document} \begin{tikzpicture}[corner/.pic = { \path[pic actions] (0,0) -- (1,0) -- (0,1) --cycle; }] \pic[draw] ...
1
vote
1answer
49 views

circuit buffer input with inverted bubble

The related question Circuitikz inverter bubble shows how to invert an input on an AND gate. How can I do this on a buffer gate? (rightward facing triangle) I can't seem to find the documentation. I ...
1
vote
0answers
40 views

Indentation inside tcolorbox

I have a environment solution created with xparse and tcolorbox. I do not understand why package \usepackage{indentfirst} does not work inside solution. \documentclass[12pt]{book} \usepackage{xparse} ...
7
votes
0answers
97 views

3d cube with a surface

I want to draw a unit shell showing the arrangement of the atoms as shown here. (Zumdahl, Chemical Principles, 5ed., Houghton Mifflin, p. 773.) I've come up with the following code that draws the ...
1
vote
3answers
688 views

Technical Drawing Using LaTeX

I wanted to draw this particular image in LaTeX but I don't know where to start: I have no minimal working example I am just asking for directions please don't ridicule me.
8
votes
1answer
104 views

Tikz objects drawing

I am trying to draw a mathematical drawing in latex but I have difficulties with it.Could someone help me how to draw it as it is shown in picture below. Best regards Here is my code and how ...
3
votes
2answers
79 views

Underline with arrowhead using tikz

I would like to underline a math object with an arrowhead (from tikz) without adding extra space to the line skip, like so The object C has an underline with an arrowhead → from tikz. The ...
8
votes
2answers
194 views

TikZ plot dealing with infinities

I have a couple of problems while drawing a picture with TikZ. The picture I would like to obtain is like the following: . Here is my code: \documentclass[10pt]{article} \usepackage{pgf,tikz} ...
5
votes
0answers
50 views

Style with 'transparency group'

Can we define a style telling "put all arrows on the same transparency group as the path" ? In the following example, I would like to redefine ephemeral style such that the blue and the red arrows ...
4
votes
1answer
123 views

xslant mathematically

How is the xslant coordinate transformation operation of tikz defined mathematically? For example, let A = (x_0, y_0) and xslant = k. What is the mathematical expression for the transformed ...
13
votes
2answers
241 views

Define decoration with cloud shapes to resemble smoke

I want to create a decoration that would decorate a path with gray transparent clouds with random shifts, random number of puffs and scaling size. The idea is that it should look like smoke coming up. ...
2
votes
0answers
45 views

tikz pattern north west lines dashed

Hello I am trying to create a figure with tikz. Im using patterns to define a few different regions. zone 0 is gray zone 1 is north east lines z2 is north west lines For some reason the diagonal ...
3
votes
2answers
72 views

Align first line in tikz picture with surrounding text

I would like to align the baseline of the first row of the tikzpicture with the baseline of the surrounding text to get something like Let A → B be a function from A to B a → f(a) but at the ...
2
votes
1answer
53 views

Tree with tikz looks the way it's meant to look but still errors are popping up

I just started learning LaTeX and to do so I tried to create a PDF of my last logic assignment. Therefore I had to create a resolution tree. After Googling I found some examples for using tikz-trees ...
0
votes
1answer
62 views

Array with arrows and a cell outside

I want to draw the array in the picture with a cell outside, the arrows, the border and some cells coloured. Could you please tell me how?
3
votes
1answer
57 views

Making the automata diagram still better

I have drawn an automaton using the tikz library automata. I need help in refining the diagram. I am not able to : Align the edge labels (kr, ur, etc.) to the center meaning exactly between two ...
2
votes
1answer
38 views

How can I define a shifted point with tkz-euclide?

I would like to re-create the following image: Source: https://de.wikipedia.org/wiki/Datei:Feuerbachkreis_radius.svg I have everything, execpt for the horizontal lines. To create them, I think ...
14
votes
1answer
260 views
+100

How to draw points in TikZ?

Very often we need to draw points. Every one of us has it's favorite method to do this. What is yours ? Do you use nodes, pics, marks, ... ? In a style ? Some backgrounds In the tikz/pgf manual ...
6
votes
2answers
132 views

Drawing knots with tikz - no visible crossings

I'm trying to draw some knots with tikz. I've got this far: \documentclass{article} \usepackage{tikz} \usetikzlibrary{knots} \begin{document} $\begin{tikzpicture}[domain=-2:2, scale=0.3] \begin{knot} ...
3
votes
1answer
46 views

TikZ crosses-decoration does not work

When trying to compile the examples from the manual like \documentclass{article} \usepackage{tikz} \usetikzlibrary{decorations.pathmorphing} \begin{document} \tikz \fill ...
5
votes
1answer
48 views

Problems with pgfmath

I drew a parabola graphic y = 0.5 - a x^2 which crosses the x axis at the "roots" points 0.75 and -0.75 and has a bend at coordinate (0, 0.5). And I want to mark a point on the parabola, which has a ...
4
votes
2answers
75 views

Position labels in automatic way at end of a line

Using tkiz, I would like to position labels at line ends in automatic way. Unfortunately "auto" centers labels at ends of line. Example \documentclass[a4paper]{article} \usepackage{tikz} ...