child documents inherit from defined commands and environments