extracting ToC frame to an external macro