Questions tagged [tikz-pgf]
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.
8,751
questions
518
votes
8
answers
180k
views
Drawing on an image with TikZ
Recently, I have learned how to draw simple stuff with TikZ. I really like it. Now I wonder if it is possible to draw with TikZ on an image. Instead of pasting an image in Illustrator and adding some ...
247
votes
2
answers
125k
views
Should \tikzset or \tikzstyle be used to define TikZ styles?
The PGF/TikZ manual states in section 12.4 Using Graphic Options, page 120 (v2.10), that TikZ styles can be set using:
\tikzset{my style/.style={<tikz options>},...}
However, in several places ...
139
votes
1
answer
44k
views
Difference between "right of=" and "right=of" in PGF/TikZ
In the PGF/TikZ manual, sometimes I see the option right of=somenode instead of right=of somenode. They look very similar, but the effects are different. The distance between nodes positioned with ...
70
votes
8
answers
16k
views
How can I invert a 'clip' selection within TikZ?
I wish to draw an arc for a reflex angle on the outside of a triangle with coordinates (A), (B) and (C).
If I wanted to draw the arc inside the triangle I could use something like
\begin{scope}
\...
303
votes
2
answers
132k
views
Manual/automatic line breaks and text alignment in TikZ nodes
How can I insert a line break in a TikZ node? Simply putting \\ where I want the break doesn't work (see MWE).
Is there a way to make lines break automatically at some specified width?
And can I ...
137
votes
7
answers
61k
views
Cool Text Highlighting in LaTeX
LaTeX has soul. ConTeXt, of course, has beautifully marked up "sharpie" highlighting, where you can put sweet hightligher under your text for free!
In the pictured example, you can see highlights ...
308
votes
17
answers
299k
views
Good way to make \textcircled numbers?
This question led to a new package:
circledsteps
I'm trying to make some good-looking numbers in a circle, using the simple command:
\textcircled{1}
However, the circle is misaligned vertically ...
105
votes
10
answers
19k
views
Materials for learning TikZ
I feel intimidated in learning TikZ. I was wondering if there are some nice materials (or just your replies) at different level:
for providing big picture, which is
important to beginners to not lose
...
83
votes
2
answers
21k
views
Mindmap tikzpicture in beamer (reveal step by step)
I want to include a tikzpicture (mindmap) in beamer and I want the children to appear one after the other.
So I use \visible but it don't works -- also not with \pause command. I get errors regarding ...
141
votes
9
answers
114k
views
TikZ: How to draw an arrow in the middle of the line?
Like this:
.------<------.
| |
v ^
| |
'------>------'
I am currently using
\begin{scope}[very thick,->]
\draw (-4,1)--(-4,0)--(0.1,0);
\draw (0,0)--...
37
votes
2
answers
8k
views
Proper nesting of tikzpicture environments: Reset all PGF values to their defaults
Sometimes, nesting tikzpicture environments seems inevitable, e.g., if you want a node to contain a TikZ picture on its own. (Is it?) However, nesting tikzpicture environments is problematic, also ...
362
votes
8
answers
280k
views
Is it possible to change the size of an arrowhead in TikZ/PGF?
I'm trying to draw an arrow with a bigger head than normal. Is it possible without changing the style of the line itself?
57
votes
4
answers
22k
views
Vertical and horizontal lines in pgf-tikz
It is easy to produce a path between two nodes consisting of a single horizontal and a single vertical line (from the manual):
\begin{tikzpicture}
\draw (0,0) node(a) [draw] {A} (1,1) node(b) [...
24
votes
2
answers
13k
views
Using a pgfplots-style legend in a plain-old tikzpicture
I am using a plain-old tikzpicture to produce a pie-chart-like plot. Now, all other plots in my paper are handled using pgfplots (which doesn't do pie charts) and have their legend typeset by pgfplots....
69
votes
5
answers
26k
views
Extract x, y coordinate of an arbitrary point in TikZ
I need a macro to extract the x and y coordinates from an arbitrary point, like (3,4), or like (A), or like ([xshift=-2pt] A.north west), where A is the name of a node.
I've seen the solution
\...