How can I produce two outputs from one typ file, one with the full document and the other with only a subset of selected figures with caption?

Use typc for code mode code blocks.