Bug 249345

Summary: running pdflatex on source with hyperref package toggles display of navigation panel
Product: [Applications] okular Reporter: postdoc38
Component: PDF backendAssignee: Okular developers <okular-devel>
Severity: normal CC: jason.morton
Priority: NOR    
Version: 0.11.1   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In: 4.5.2
Attachments: latex source without hyperref package
latex source with hyperref package
latex source with hyperref package loaded
latex source without hyperref package

Description postdoc38 2010-08-28 18:57:35 UTC
Version:           0.11.1 (using KDE 4.5.0) 
OS:                Linux

Reproducible: Didn't try
Comment 1 postdoc38 2010-08-28 19:05:48 UTC
My apologies for the mess (no report above), I had trouble with my internet connection when filling the bug page.

First, my warmest thanks for okular to the developpers, which I really like to view pdf produced by pdflatex.

Here is my problem: I always run okular without navigation panel to save screen space (that is, "show navigation panel" is unchecked in settings).

Strangely, if I work on a latex source with the "hyperref" package loaded, the navigation panel, then thumbnails panel appear in okular as if by magic when I compile (pdflatex) the source file.

The "show navigation panel" is then still unchecked in settings, though.
I can make those left panels disappear again with F7, or by checking and unchecking the "show navigation panel" setting. Strange...
Comment 2 postdoc38 2010-08-28 19:07:24 UTC
Created attachment 51062 [details]
latex source without hyperref package

running this file does not make the navigation panel appear.
Comment 3 postdoc38 2010-08-28 19:08:48 UTC
Created attachment 51063 [details]
latex source with hyperref package

running pdflatex on this source twice, while appropriate pdf is loaded in okular with "show navigation panel" unchecked makes navigation panel appear.
Comment 4 postdoc38 2010-08-28 20:20:22 UTC
Created attachment 51064 [details]
latex source with hyperref package loaded

steps to reproduce:

1) run "pdflatex withhref.tex"
2) run "okular withhref.tex"
3) make sure okular's navigation panel is hidden
4) run "pdflatex withhref.tex"    => navigation panel appears
5) run "pdflatex withhref.tex"    => thumbnails panel appears
Comment 5 postdoc38 2010-08-28 20:23:39 UTC
Created attachment 51065 [details]
latex source without hyperref package

reproducing the above steps (with appropriate name changes) works as expected.
Comment 6 Albert Astals Cid 2010-09-04 02:08:38 UTC
SVN commit 1171493 by aacid:

restore sidebar visibility correctly
BUGS: 249345
FIXED-IN: 4.5.2

 M  +1 -1      part.cpp  

WebSVN link: http://websvn.kde.org/?view=rev&revision=1171493
Comment 7 postdoc38 2010-09-04 13:59:03 UTC
Wow, that was fast! Thank you very much for your work, Albert!
Comment 8 Pino Toscano 2011-04-14 15:39:16 UTC
*** Bug 270955 has been marked as a duplicate of this bug. ***
Comment 9 jason.morton 2011-04-14 18:29:19 UTC
Here's a workaround if you are stuck at okular 0.11.1 for some reason.  In your latex header, use