Skip to content

Instantly share code, notes, and snippets.

@Caramdir
Caramdir / tikzonnode.tex
Created April 2, 2011 00:45
Tikz scopes with coordinates relative to a node
% This file adds two environments for TkiZ.
%
% The first, tikzonnode, simply changes the coordinate system so that (0,0) is
% at the south west anchor of the given node and (1,1) is at the north east
% anchor.
%
% The second environment, tikzonimage, displays the given image file (the first
% optional argument is passed to \includegraphics) and creates a tikzpicture on
% top of it with coordinates relative to the image corners.
%