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:
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} \...
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 ...
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 ...
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 ...
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, ...
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 \...
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[...
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 ...
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 ...
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 ...