2k views

### Reuse tikz picture in another tikz picture [duplicate]

I have a TikZ picture \begin{tikzpicture}[scale=0.5] \draw (-1,0) arc (180:360:1cm and 0.5cm); \draw[dashed] (-1,0) arc (180:0:1cm and 0.5cm); \draw (0,1) arc (90:270:0.5cm and 1cm); \draw[dashed] (0,...
211 views

### Changing the font size of nodes inside a savebox causes TeX to exceed stack size [duplicate]

I'd like to have a tikzpicture (actually several) appear inside a node of another tikzpicture. I already know that I can use savebox for that, the problem is: When I change the fontsize of a node ...
94 views

### Creating a new shape [duplicate]

I read some documentation about how to create a new shape. But some things are still not clear to me. In fact I wanted to create a new shape representing a switch symbol: I did the code in tikzpicture ...
6k views

### What are the new features in TikZ/pgf 3.0?

Since the December 20, 2013, we have new major release of the wonderful TikZ/pgf package: version 3.0.0! 1 Unfortunately, I was not able to find a nice human readable list of changes, that goes to ...
2k views

### Can a shape be composed out of "subshapes" in TikZ?

Suppose one were to make a simple "dumbbell" shape in TikZ. (My actual example is more complicated, but let's stick to this simple one). That is, we want a shape constructed out of two circles, and a ...
8k views

### Grouping objects and applying operation to the group

Forgive me for my perhaps naive questions, I am beginning to discover Tikz potentials. To ease certain operations as moving objects or transforming them, I want to know if there is a mechanism in ...
5k views

### How to create something like a function (procedure, macros, etc.) in TikZ?

I want to draw this thing many a time: \node[circle,draw,thick,inner sep=0pt,minimum size=2ex] (sum) [left = of myobject] {}; \draw[semithick] (sum.north west) -- (sum.south east); \draw[semithick] (...
9k views

### TikZ: Defining and reusing complex objects?

(How) Is it possible to save some complex TikZ objects for reusing them (in the same and in different pictures)? I know it's possible to define own styles, but I'm not sure if it's the right thing I'...
21k views

### Using scope to move objects using the same coordinate system as the objects themselves

Summary of answers The question has been answered by TorbjørnT. with a comment. If using scope with xshift it is necessary to specify the unit as cm. This is also working if the entire picture is ...
1k views

### How to draw path between nodes of nested tikzpictures?

I'm trying to draw a path between nodes belonging to nested tikzpictures that are not in a direct parent-child relationship. The code looks like this: \begin{tikzpicture} %Container 1 \node [...
586 views

### Tikz shape as node

I had created some picture which I plan to use it in different places of the coordinate plane. But I made it in a form of TeX macro \cone{...}. How can I create such picture in a form of tikz \node[...
595 views

### How can I make a line end at the edge of an irregular shape?

I created an irregular shape (below the Service rectangle) using the \draw command. As part of a diagram I like to have an arrow point to the shape as seen below. The arrow currently ends a bit above ...
1k views

### How to get consistent positioning for a node with \usebox containing a \tikzpicture

I'm using beamer and tikz to create an animation of a photon travelling between snowflakes. I have ten Koch snowflakes (hence the \newcommand in my MWE) typeset with decorate{ decorate{ decorate{ ...