Linked Questions

33
votes
2answers
6k views

Proper nesting of tikzpicture environments: Reset all PGF values to their defaults

Sometimes, nesting tikzpicture environments seems inevitable, e.g., if you want a node to contain a TikZ picture on its own. (Is it?) However, nesting tikzpicture environments is problematic, also ...
14
votes
4answers
6k views

How can I save the bounding box of a TikZpicture and use in other TikZpicture

I need 2 different TikZpictures with the same bounding box (the one of the first TikZpicture) because I need a perfect vertical alignment of the subfigures side by side. Please, how can I handle this?...
11
votes
3answers
2k views

Drawing a proper shadow for overlapping objects

I draw images that are composed of several overlapping nodes. If I add a drop shadow to each node, the shadow of the second node is drawn over the first node, as seen in the picture below (which ...
13
votes
2answers
26k views

tikzpicture alignment and centering

I have several very similar images except some have some extra graphics that enlarge them slightly. This causes some pictures to be offset and not aligned visually when it's clear they should be. How ...
16
votes
2answers
3k views

Problem with overlay when a tikzpicture is inside another tikzpicture

update i discovered lately this question where Nickolay Kolev uses \tikz inside a tikzpicture environment. A lot of users think that is a wrong practice and I agree that is very strange but sometimes ...
10
votes
1answer
3k views

How to typeset a TikZ picture inside a node?

The contents of a node are drawn in text mode. Is there a way, short of introducing a tikzpicture environment, to draw a picture inside a node? Nesting tikzpicture environments is problematic, also ...
5
votes
2answers
2k views

Using tikz command inside tikzpicture environment (alignment problem)

This is a followup question to Expandable nested boxes with TikZ. When using the \tikz command inside the tikzpicture environment, the positioning of the contents is altered. Here are the two ...
13
votes
1answer
383 views

How can I check if the current code is inside a tikzpicture?

I read the answer for this question (inside a environment) but I would like to know if there is something more specific. LaTeX keeps the current environment in the macro \@currenvir but how do the ...
4
votes
2answers
2k views

Combine Tikz pictures

Is it possible to combine two tikz pictures that were created using separate environments? Basically I have a macro create a backdrop that I will use often but I would like to create a layer on top ...
9
votes
1answer
595 views

TikZ: [baseline] interferes with blur shadow on background layer

Using [baseline] on a tikzpicture with a background layer seems to interfere with the placement of a blur shadow: MWE (for use with pdflatex): \documentclass{article} \usepackage{tikz} \...
2
votes
1answer
241 views

Tikz pictures inside Tikz pictures: typesetting failing in lattice subgraph with edges

I define Tikz pictures within each other. The typesetting fails in a way that the edges are not drawn properly: the edges are not drawn from the centers of vertices in the lattice subgraph structure, ...
0
votes
0answers
170 views

How to overwrite a node setting in Tikz to align Tikz pictures to nodes? [duplicate]

A Tikz picture has four nodes and each node has a new tikz picture, an inheritance problem coming. I have four Tikz pictures where each is inside a node and each node has size of 4cm times 4cm (square)...