On 2009-11-02, Pavel Sanda wrote: > Waluyo Adi Siswanto wrote: >> Dear LyX developers
>> When I use hyperlink, >> LyX automatically loading hyperref package, and writes in the source >> file (seen from view source), but the hyperref ui (Document>Settings) >> does not show it has been loaded? not active. This should not happen. > if user delete hyperlink from document how would we know whether it was > enabled in prefs by the users choice or by automatical proces you propose? There are several ways to solve this: > ... some switch like 'force no hypperref preamble' > and may be some textual hint about automatical hypperef preamble stuff. - disable commands that require hyperref if it is not active. (Either grayed out or with a dialogue This command needs the "hyperref" package: [x] activate hyperref [ ] cancel ) - let the automatism load "nohyperref" instead of "hyperref" if the user has set "hyperref" inactive. (maybe warn) - ... > but the general solution would be to have editable the whole preamble > we produce. the simplest solution wouldn't be even so hard to do... > just some pane with empty box and with button to produce the current > document preamble and once this box is not empty to use this preamble > instead of our own. How would the editable preamble solve the problem that LyX does not know whether hyperref > was enabled in prefs by the users choice or by automatical proces ? Or, alternatively how would it give feedback to the user about the automatically activated hyperref support? Günter