When I use \JoinCoffin to build a page, and add more than one instance of the same coffin, ongoing references to that coffin appear to behave "sensibly". That is, any reference to the coffin is made to its latest instance.
I realise this usage "works in my case", but would like to know if it is "correct". Is this behaviour a supported feature of xcoffins, or should I avoid it?
Here's a CWE (Compact Working Example!):
% !TEX TS-program = XeLaTeX
% !TEX encoding = UTF-8 Unicode
\documentclass[a4paper]{memoir}
\usepackage{graphicx}
\usepackage{xcolor}
\usepackage{xcoffins}
\nonzeroparskip
\setlength{\parindent}{0pt}
\isopage
\checkandfixthelayout
\begin{document}
\NewCoffin \tpage
\NewCoffin \tbar
\SetHorizontalCoffin \tbar
{\color{blue} \rule{\textwidth}{1pc}}
\NewCoffin \kim
\SetHorizontalCoffin \kim
{\includegraphics[width=2in]{ubiquitous-surveillance-warning.png}}
\JoinCoffins \tpage \tbar
\JoinCoffins \tpage[\tbar-b,\tbar-r] \kim[t,r]
\JoinCoffins \tpage[\kim-b,\kim-r] \tbar[t,r]
% ===================================================================
\JoinCoffins \tpage[\tbar-b,\tbar-l] \kim[t,l] % <-- This is the line
% ===================================================================
\TypesetCoffin \tpage
\end{document}
and its result, in which you can see that the second copy of the graphic is "correctly" placed relative to the second instance of the \tbar coffin:
