Linked Questions

60
votes
8answers
50k views

What is the easiest way to draw a 3D cube with TikZ?

I'm trying to find the easiest way to draw a 3D cube (it's for my UML diagram) with TikZ. Could you please give an example? Like this:
54
votes
7answers
10k 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} \...
18
votes
5answers
2k views

What tips and tricks are there for debugging TikZ/PGF code?

When answering questions here and when drawing my own complicated TikZ/PGF drawings, I've developed a fair number of "tips and tricks" for debugging the code. I'm sure that others have as well. I ...
19
votes
1answer
1k views

How to fix TikZ corners in 3D

Am trying to draw a simple rectangle and there seems to be minor issue with two of the endpoints (f and d in the following). I tried line cap=rect as suggested by Bad intersection of lines in TikZ but ...
18
votes
1answer
3k views

In TikZ when is “line join=miter” the preferrable over “line join=round”?

The solution to How to fix TikZ corners in 3D was to use line join=round instead of line join=miter. But I am trying to understand why that is not the default. Under what circumstances would "line ...
8
votes
2answers
287 views

Filling a box excluding circles inside it

I was trying to create an image in TIKZ. My code is as below: \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \usepackage{tikz} \usetikzlibrary{shapes.geometric, shadows, fit, arrows, ...
6
votes
2answers
1k views

How to raise a generic curve. Problem with \pgfdeclaredecoration

The goal I want to obtain is to have a parallel curve to a generic curve defined in a \draw command trough TikZ. To achieve it, I used the TikZ decorations library and the command \...
7
votes
2answers
361 views

How can I shrink a path to the center?

I'm not quite sure if I formulated the title correctly. I would like to get a result similar to the hand-drawn graph and I got the right one: Here is the code: \documentclass{article} \usepackage[...
6
votes
1answer
2k views

Decorate path with just a colored thick line

Is it possible to decorate a path with just a thick colored line above or below it? In the following example I faked manually the result, but how can I do it with decorations? In particular I want to ...
3
votes
1answer
574 views

Not able to include even the simplest animation in my presentation

I'm a little bit lost regarding the inclusion of an animation in my presentation. I have tried to use the animation package, but I am not even close to the desired result. The animation I would like ...
2
votes
2answers
580 views

Draw stroke inside/outside of path for arbitrary shapes and nodes

This is a followup question of Is there a way to draw TikZ lines on the “inside” or “outside” of a path? Since the other question is quite old I want to ask, if TikZ in the meantime is able to draw a ...
1
vote
2answers
162 views

TiKz and tikz-grph - filling and outline non-overlapping

I have this code: \documentclass{minimal} \usepackage{tikz} \usepackage{tkz-graph} \usetikzlibrary{external,backgrounds} %\expandafter\tikzexternalize[] \begin{document} \begin{tikzpicture}[ ...
4
votes
0answers
65 views

Corners of 3D cube extend beyond where they meet / tikz / draw [duplicate]

i figured out how to draw the 3d effect cubes, but now im facing the issue of the border lines extending beyond the points where they meet. i know that by doing "draw=none" i can turn these off, but i ...