def __init__(self, config_file="pretty.yml"): LatexDocument.__init__(self) self.__config = yaml.load(open(config_file, "r").read()) self.text_append_prefix = self.__config["LatexText"]["append_prefix"] self.text_append_suffix = self.__config["LatexText"]["append_suffix"] self.comment_prefix = self.__config["LatexComment"]["prefix"] self.comment_append_prefix = self.__config["LatexComment"]["append_prefix"] self.comment_append_suffix = self.__config["LatexComment"]["append_suffix"]