[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 274294] okular's synctex support doesn't work with lua(la)tex
From:       Philipp Woelfel <woelfel () gmx ! net>
Date:       2011-09-28 20:30:55
Message-ID: E1R90mN-0001h5-BM () bugs ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=274294





--- Comment #30 from Philipp Woelfel <woelfel gmx net>  2011-09-28 20:30:54 ---
Albert, thanks for willing to work on this. Here is how to reproduce the bug:
Move the 3 attachments I just created (stest.*) in a directory <dir>

Call (exact syntax and filenames is important):
> okular file:<dir>/stest.pdf#<num><dir>/./stest.tex

where <num> is one of 6,12, or 18. The correct behaviour is that okular shows
page <num>/3 (i.e., page 1,2, or 3, resp.)

The bug manifests itself if you call
> okular file:<dir>/stest.pdf#<num><dir>/stest.tex

(The difference is that "/./" has been removed from the path.)
In this case, okular always shows the same page, no matter what <num> is.

The expected behavhiour is, however, that okular should also show page <num>/3.
LaTeX editors (such as kile) call okular using the 2nd syntax, and thus fail to
open the correct page.

The bug can be easily fixed in okular itself (see my Comment #15). Essentially,
in the file generators/poppler/synctex/synctex_parser_utils.c the method
_synctex_is_equivalent_file_name has to be made a bit more intelligent.

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic