Adapt caption in various file formats