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

placing invisible links at certain coordinates?

Does anybody know if this is possible using TikZ? I'm trying to create links over a picture that i have layed on the background of a frame or at least placing them on some nodes in a TikZ code.
2
votes
0answers
331 views

Why arrow head not shown for this code? [closed]

\begin{tikzpicture} \tikzstyle{every node}=[draw,shape=circle]; \node (v3) at (4, 0) {$v_3$}; \node (v5) at (2, -2) {$v_5$}; \draw [->] (v3)--(v5); \end{tikzpicture} The above code gives me: ...
9
votes
1answer
418 views

pdflscape and tikzpagenodes problem

I am having problems getting the tikzpagenodes package to work with the pdflscape package. I want to access the nodes (current page text area) and (current page marginpar area) when rotating a page to ...
4
votes
2answers
1k views

Draw a grid for obtaining coordinates to pass to includegraphics' viewport option

I want to include only parts of an image. For this, I use the viewport option of graphicx's includegraphics. To find the coordinates, I go by trial and error, adapting the viewport argument until I ...
5
votes
1answer
2k views

tikzpicture vertical line from one node to the other [duplicate]

Assume there are two nodes A and B, with B below A. These nodes are of different width. Connecting A.south to B.north results in a slanted line. I wonder how I can connect A.south to B with the ...
2
votes
1answer
1k views

Blurry Show Background

I am trying to create a frame for each of my figures. Something's like this - a plain white rounded rectangle with a blurry shadow. Could this be done in latex? Could you show me how?
8
votes
1answer
2k views

SWOT Matrix using TikZ

I am trying to draw a SWOT matrix using TikZ. Clearly the procedure that I present in the MWE is not optimized. Also the text (namely on the left side) is not correctly aligned. \documentclass[10pt]...
4
votes
2answers
3k views

tikz - trapezium node - fix angle and height, adjustable width

Using TikZ, I want to draw trapezium nodes all of which have a fixed height and angle(s), but whose widths vary. I can't find any combination of parameters that does what I want. Specifically, with ...
5
votes
1answer
473 views

How to eliminate spacing in tikzpicture?

It seems that, when using Tikz, nodes and/or the tikzpicture environment add space around a drawing. An example is shown in the following MWE, where a simple square is drawn three times. First it is ...
1
vote
1answer
839 views

Disable “clip” and “use as bounding box” in TikZ

Problem I use a tool which generates TikZ-Code (R with tikzDevice, to be precise). But the generated picture has a wide white border which I want to remove. When I manually (or with a script) remove ...
10
votes
2answers
2k views

Is it possible to load a TikZ library locally?

Is it possible to load a TikZ library and make it local to a tikzpicture? I'm writing a long document, and feel like the different TikZ libraries required for different diagrams are "littering" the ...
4
votes
2answers
1k views

Displayed Math in tikz-cd diagrams

I have been using tikz-cd package to produce diagrams however I'm not finding a way to use displayed math within it. My point is that when I use the product sign for instance inside of it, it simply ...
0
votes
1answer
417 views

How to get horizonzal alignment right for nested rectangles?

I know that nesting tikz pictures is considered bad, but I did it anyway as I don't want to mess around with manual positioning. I'm nesting several rectangles similar to another question for circles. ...
9
votes
1answer
437 views

Setting weekend background color

I'm making a calendar in LaTeX with tikz-pgf and I would like to set to gray the background color for the weekend. In the examples I found on the Internet and in the documentation, I can see how to ...
3
votes
1answer
282 views

TikZ arrow tip is displaced

My quetion is twofold: 1) I want to have a timeline graph with some intervalls. This is my code: \draw[->|] (8,5)--(10,5); \node[] (sh4) at (9.5,5.5){$s^{\text{h}}_{4}$}; \draw[|<-] (10,5)--(...
15
votes
1answer
240 views

Is there a nag package for TikZ?

It turns out that I've been using several deprecated commands, such as \tikzstyle and right of. Is there any way to have TikZ or pdfLaTeX warn in those cases, such as nag does?
6
votes
1answer
497 views

Adding a normal vector to a curved mesh area

How can I put a normal vector on the outer blue mesh? TeXample \documentclass[12pt]{article} \usepackage{tikz} \usetikzlibrary{positioning} \usepackage{amsmath} \usetikzlibrary{arrows} \usepackage{...
6
votes
2answers
662 views

TikZ matrix decoration

What I'm trying to achieve is a code structure to draw this kind of diagram: I need to decorate a two-rows matrix grouping one or more columns with a square bracket above them, and then again with ...
2
votes
1answer
2k views

opacity and shading of an ellipse

I am making a picture of the tidal force effects on the Earth. My current picture is decent but I would like where the bulging occurs on the edges to be little bit darker in blue, but I don't want ...
5
votes
2answers
604 views

How to use declared TikZ functions in \foreach condition?

How is it possible to use a declare function in the condition of \foreach? Here's my MWE: \documentclass{article} \usepackage{tikz} \begin{document} \begin{tikzpicture}[declare function={a = 0; b = ...
7
votes
1answer
596 views

How to shade a line and how to offset a line?

Newbie here. Could anyone tell me how to (1) shade a line and (2) how to offset a line? I have a very simple graph, This is a mesh used in finite element analysis, I have already used tikz to build ...
3
votes
1answer
434 views

Automated table for excercise points in tikz

I'm a computer science student. And I write most of my excercises in LaTeX. So I often have to create a table for excercise points, with different numbers of excercises and different amounts of points ...
12
votes
1answer
837 views

How to draw an unbalanced curly brace in TikZ?

How can I draw curly braces where the "pinch" is not in the middle of brace, i.e. one of the "legs" is longer than the other, using TikZ?
5
votes
1answer
3k views

Adding coordinates to grid in tikz

Is there a simple way to add coordinate (left and bottom) to the grid in tikz?
0
votes
0answers
40 views

How to draw \leadsto line? [duplicate]

I wish to replace straight line with the \leadsto line. I tried \draw[leadsto] (s2)--(s3); however it can not work. Below is my code \documentclass[tikz]{standalone} \usepackage{tikz} \begin{...
9
votes
1answer
2k views

How to make a zero-size node?

How can I make a node with zero size and node distance, such that a node that is positioned to the right of it lies on the same spot? My solution to the first node in a node-drawing loop was to start ...
3
votes
1answer
110 views

How to refer to the corner of a node?

Is there a node suffix for the corners of a node? I'd like the brace in this example to go from the lower-left corner of the first box to the lower-right corner of the last. \documentclass{...
2
votes
0answers
31 views

node at sloped path and/or not respecting every path/.style [duplicate]

I'm producing a schematic Nyquist plot, and I want to create an arc between the x-axis and a straight line, which should be denoted PM (phase margin). I use the intersections library to find the ...
17
votes
2answers
1k views

Creating a triangular table

Is there a way to create something that looks like this? I have looked at the \rotatebox command, but that will not get the same "jagged" edges on the bottom, and looked at How to draw a diagonally-...
2
votes
1answer
261 views

ray from the origin of a sphere to the radius

In my previous post shifting a sphere, I have two spheres which were lifted from texexamples.net On the left bottom side, there is a sphere with a ray from the center to the radius of the sphere. I ...
3
votes
1answer
355 views

Shifting a sphere in code from Texample.net

From Texamples - Stereographic and cylindrical map projections, I decided to use the first sphere. However, I want to setup two spheres. When I add another sphere, only the shaded circle shifts ...
3
votes
1answer
751 views

Equivalent of QTikZ for PSTricks

I have recently seen the very useful QTikZ program for interactive viewing of TikZ diagrams. I was wondering if a similar program exists for drawing PSTricks diagrams.
12
votes
5answers
659 views

Parsing hexadecimal numbers to binary and iterating over bits

I'm currently working on a software for an graphic display, so I recreated it in TikZ for documentation purposes: I currently use this to set individual pixels on the display: \setpixel{x}{y} ...
5
votes
1answer
256 views

Is possible to draw graphics with a function or any function?

Let us want to draw a function y=x^3(the first figue) and y=x^4(the second figure),, like graphics this following and i use Microsoft mathematics to draw it.
4
votes
0answers
288 views

Making a family of graphs in TikZ by a few definitions [closed]

I am trying to make in TikZ a family of graphs, as in included pictures. I can make them one by one, using nodes (circle/square/triangle, black/white) and joining them. However it seems to me, that ...
5
votes
1answer
976 views

How to draw a scheduling scheme?

I would like to draw an arbitration scheduling scheme. I tried to draw one with xfig, but the result is... not so nice ;-): Does anyone know a good way to draw this in LaTeX? The result don't have ...
4
votes
1answer
913 views

Vertical alignment of TikZ within text

I have a bit of TikZ in my text, namely: \documentclass[]{standalone} \usepackage{tikz} \begin{document} Some text (\tikz{\node[scale=0.5,solid,draw,thick,blue,rectangle,fill=white] {A};}), ...
5
votes
1answer
908 views

How to get text above fork style edges in a TikZ tree

I'm new to TikZ and have a problem with a decision tree. In the example below I would like to have text above the horizontal line of an edge. Something like: Check A | ...
7
votes
1answer
330 views

Error message with hobby package

I am trying to use the hobbypackage with this minimal example from the manual: \documentclass{article} \usepackage{tikz} \usetikzlibrary{hobby} \begin{document} \begin{tikzpicture}[scale=.5,use Hobby ...
1
vote
0answers
68 views

Draw a cone in TikZ [duplicate]

How could I do something like this in TikZ?
3
votes
1answer
338 views

Paragraph Spacing within a Tikz Environment

I am looking to replicate the look of paragraphs within a tikz environment (actually a minipage). \documentclass[letterpaper,12pt]{book} \usepackage{tikz} \usetikzlibrary{shapes,snakes,backgrounds,...
11
votes
4answers
1k views

Trapezium rule for integration using TikZ

I have problem to draw graphic with LaTeX (especially TikZ)? Like this:
2
votes
1answer
504 views

how to make mindmap nodes links within presentation

Wanting to make secondary and tertiary nodes links to other frames within presentation. A great example would be linking the mountain bicycle node to the frame titled "mountain bicycle". The code I ...
8
votes
2answers
852 views

how to make mindmap fit on frame?

I'm in the process of creating a Beamer presentation using some tikz concepts, how do I make a mindmap fit to the slide? My code is as follows: \documentclass[T]{beamer} \definecolor{links}{HTML}{...
5
votes
1answer
338 views

question about pgf-blur package in xelatex

Here is my code: \documentclass{article} \usepackage{pgfplots} \usetikzlibrary{shadows.blur} \begin{document} \tikzfading[name=fade down, top color=transparent!30, bottom color=...
6
votes
1answer
489 views

Create a Frequency Allocation Diagram

I need to reproduce a frequency allocation diagram in TeX. I prefer TikZ but open to PSTricks. I can create a simple bar allocation char using \node but unsure how to create layered blocks like the ...
9
votes
1answer
169 views

Where is the trailing space after TikZ node text gone?

I've been fiddling with TikZ nodes to get framed text (part of mdframed boxes, but that's beside the point) when I discovered something that puzzles me. If you run the code below: \documentclass{...
7
votes
2answers
3k views

How to elegantly create a pyramid hierarchy in tikz

I want to create a pyramid hierarchy in tikz with smooth sides (unlike this step-pyramid) and place text in each level. Shown below is how I am currently doing this, is there a better way? \...
3
votes
1answer
1k views

how to draw double circle nodes in tikz more clear?

I like the drawing final states in Peter Linz's Book, more clear than final states in tikz. can do it with apply an option in tikz, or other packages?
6
votes
2answers
1k views

How to make an image for backgrounds with exact A4 dimensions?

In order to make a background image that fits the page perfectly, I have tried two things. The first is to use a document class where the dimensions of the page can be set to that of A4, which ...