35
votes
Accepted
How to get rid of the almost invisible faint lines in the Olympic rings?
Version, which uses uninterrupted circles (without faint lines), where the gaps are created by clipping. This solution does not use any white background color. The measurements and colors are taken ...
19
votes
How to get rid of the almost invisible faint lines in the Olympic rings?
This seems like a perfect problem to use the tikz library knots on! The current solution is improved from the original, which had some minor "clipping issues" (for more info, see here). I consider ...
19
votes
Accepted
How to Sharpen a PDF Drawing
As David writes, this is best done in a bitmap editor. If you really want, you can use a blend like this:
\documentclass[tikz, border=1cm]{standalone}
\usepackage{graphicx}
\begin{document}
\begin{...
16
votes
Accepted
How to bend a word around the circle
You could do something like the following with decorations.text TikZ library. I find it more simple to remove your macro, but it could be used with another \ifthenelse or \ifnum exception.
Update: ...
14
votes
How to give a name to \pic
I dig a little bit and this is what I found:
When TikZ encounters \draw(A)to(B), this is what will happen
\def\tikztostart{\tikz@pp@name{A}}; usually this is simply A;
\def\tikztotarget{\tikz@pp@...
11
votes
making a diagram like this picture
Please always read manuals first. That helps a lot, especially since you are asking for tikz basis knowledge.
\documentclass{article}
\usepackage{tikz}
\usetikzlibrary{positioning}
\begin{document}
...
10
votes
Accepted
Tikzpicture scope background image
You need to place the \includegraphics inside a \node, as in the code below. I added some comments, but it's quite straightforward, mostly just place the node at the correct location, and set the ...
10
votes
How to bend a word around the circle
The decorations.text library with its text along path is the absolutely the right approach. (You could try to manually place each letter along a curve but that's no fun.)
However, you can simply keep ...
9
votes
To draw a graph like this, what code do I need?
Have a look at the following code:
\documentclass{article}
\usepackage{tikz}
\begin{document}
\begin{tikzpicture}[scale=5]
\draw[blue] (0,0) circle (1);
\node[circle, fill=orange, label=above left :$...
9
votes
Accepted
Nested tikz pics?
This question is somewhat related to Why does the pic option get passed through to the entire object?
Drawing a pic is essentially drawing a node, so everything you know about node applies. For ...
9
votes
Accepted
making a diagram like this picture
I don't think you need a sledge hammer like tikzpicture for this diagram:
\documentclass{article}
\usepackage{amsmath}
\usepackage{rotating}
\newcommand\longvertarrow[1][]{\rotatebox{-90}{$\...
8
votes
Accepted
TikZ: Bug (?) with `.pic`: misalignement of nodes
I don't know the cause for this problem, it's probably related to the path construction with .pic. But if you explicitly say that the node should be in the path midway it works normally:
\...
8
votes
To draw a graph like this, what code do I need?
A version in Metapost, wrapped up in luamplib. Compile with lualatex.
\RequirePackage{luatex85}
\documentclass[border=5mm]{standalone}
\usepackage{luamplib}
\begin{document}
\mplibtextextlabel{...
8
votes
Accepted
How should I prevent a .pic definition inside a document environment, but outside a tikzpicture, from adding a space to the typeset output?
This is how .pic is defined in tikz.code.tex line 4636-4640
\pgfkeysdef{/handlers/.pic}{%
\edef\pgf@temp{\pgfkeyscurrentpath}%
\edef\pgf@temp{\expandafter\tikz@smuggle@pics@in\pgf@temp\pgf@stop}%
...
8
votes
Accepted
How can I draw this figure about Hidden Markov Model?
For exercise (how to draw dashed line and use empty cells):
\documentclass[margin=3mm]{standalone}
\usepackage{tikz-cd}
\usepackage{amsmath}
\begin{document}
\begin{tikzcd}[nodes in empty cells]
...
8
votes
Accepted
How to use xcolor color names in tikzpicture style?
The package tikz (by way of package pgfcore) loads the xcolor package.
In your case, the standalone class with the option tikz also loads the tikz package (and configurates other settings so that it ...
7
votes
Accepted
Various questions on the pic command from the Tikz angles library
It seems to me that you must use coordinate names. My guess is that the internals use \pgfpointanchor or some such, which requires a named node. It's probably good form to name your coordinates anyway!...
7
votes
How can I make scaling affect TikZ-pics within a tikzpicture?
transform shape is your friend. Usually, stuff like nodes (and obviously pics) are not scaled. With transform shape, you can enforce this. Note that this also scales text.
\documentclass[tikz, border=...
7
votes
Tikz Payoff Matrix
Just to show you don't need a TikZ matrix to draw your table, some nested tabulars are enough.
For convenience, I used a macro for the couple of payoffs, as in marmot's answer.
\documentclass[12pt]{...
7
votes
Tikz and lines with the Q letter
You need to define nodes anchors, for example anchor=center:
\documentclass[tikz, margin=3mm]{standalone}
\usetikzlibrary{matrix}
\begin{document}
\begin{tikzpicture}
\matrix (m) [matrix of ...
7
votes
Accepted
Drawing an angle between two vectors?
The reason for this is that you wrongly define the coordinates for the angle. If you write \draw (0,0) -- (-2,2) node (a) [anchor=north east] {$a$};, then you define (a) as reference to the node for ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
tikz-pic × 356tikz-pgf × 222
tikz-styles × 35
pgfplots × 26
diagrams × 22
graphics × 16
tikz-arrows × 16
nodes × 12
tikz-node × 12
graphs × 10
positioning × 9
pdftex × 8
color × 7
tikz-trees × 7
pgfkeys × 7
beamer × 6
macros × 6
xetex × 6
plot × 6
foreach × 6
axis × 6
tikz-graphdrawing × 6
tables × 5
captions × 5
minipage × 5