Implemented generic function for generating dynamic [knitr] chunks with automatic cross-referencing of objects (figures/tables) within a document (currently supports figures only).