> No, look again. The condition returns a bool as well.
You mean this?: > + hyperref = get_value(document.header, "\\use_hyperref", i) == 'true' I don't understand this construct. I would have been written + hyperref = get_value(document.header, "\\use_hyperref", i) and then # write to the preamble when hyperref was used - if hyperref == True: + if hyperref == 'true': "hyperref" is then a string and we check if the string is "true". regards Uwe