TransWikia.com

TikZ: How to draw in a 'path picture' environment outside of the 'path picture bounding box'

TeX - LaTeX Asked on April 22, 2021

Is there a way to draw outside of the path picture bounding box if drawing into a path picture environment? (For theoretical interest.)

enter image description here

documentclass[a4paper]{article}
usepackage{tikz}
usetikzlibrary{backgrounds}

begin{document}
begin{tikzpicture}[gridded]
fill[yellow] (0,0) circle(10pt);
fill[orange] (3,4) circle(10pt);

node[draw, thick, minimum size=3cm,
path picture={
fill[red, overlay] (path picture bounding box.west) coordinate(X1) circle(2pt);
fill[red] (3,4) circle(3pt);% not shown
},
]{a};
end{tikzpicture}
end{document}

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP