> This routine has a bug: the \use_hyperref tyg is only removed if hyperref was
> selected.
I have overseen this, sorry. But why this?:
> - i = find_token(document.header, "\\use_hyperref true", i)
> + i = find_token(document.header, "\\use_hyperref", i)
> if i != -1:
> + hyperref = get_value(document.header, "\\use_hyperref", i) ==
'true'
> del document.header[i]
> - hyperref = True
hyperref is here a bool, but get_value returns a string. So wen you do this, in the if condition
wheter to write the preamble or not, you have to change this to a string as well:
# write to the preamble when hyperref was used
- if hyperref == True:
+ if hyperref == 'true':
thanks and regards
Uwe