Linked Questions

4
votes
1answer
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,...
2
votes
0answers
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 ...
5
votes
0answers
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 ...
97
votes
3answers
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 ...
26
votes
3answers
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 ...
17
votes
3answers
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 ...
16
votes
2answers
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] (...
18
votes
2answers
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'...
15
votes
1answer
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 ...
7
votes
3answers
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 [...
10
votes
1answer
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[...
5
votes
4answers
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 ...
4
votes
2answers
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{ ...
5
votes
1answer
306 views

repeating a tikz drawing in certain locations

In the following code, is there a way to repeat the blue and green drawings in their locations along the blue line without repeating their codes \documentclass{beamer} \...
2
votes
2answers
374 views

Tikz macro with calculation error

I'm very new to this so bare with me. To get the hang of macros I wanted to write a simple command to draw a square in tikz. Now I know there are a lot of ways to do this, but I want to be able to ...

15 30 50 per page