some ignores, changed caption generation to ignore some bad characters for latex