[Okular-devel] [Bug 274294] okular's synctex support doesn't work with lua(la)tex generated output
Enrique Artal
artal at unizar.es
Mon Sep 26 20:15:32 UTC 2011
https://bugs.kde.org/show_bug.cgi?id=274294
--- Comment #24 from Enrique Artal <artal unizar es> 2011-09-26 20:15:31 ---
Thanks! It works.
(In reply to comment #23)
> Below is a quick workaround that works with kile+okular and probably can
> accommodate any other <editor>+okular. I only tested it with one TeX file, so
> it may break with more complicated filenames, but it should be easy to extend.
>
> Now, can you please vote for that bug? I'm surprised that I am the only one who
> voted for it. It's status is still UNCONFIRMED, which is also suprising.
>
> Workaround for kile:
> (1) make sure you have "sed" (should be installed by default on most linux
> distros)
>
> (2) Create a file, say "<homedir>/bin/fwokular.sh", which the following script:
>
> #!/bin/bash
> target=`echo $1 | sed -e "s%\(.*\)/\([^/]*$\)%\1/./\2%"`
> okular --unique "$target"
>
> (3) Configure okular's ForwardPDF to execute "<homedir>/bin/fwokular.sh" with
> the option '%absolute_target'
>
> The shell script just replaces the last occurrence of "/" in '%absolute_target'
> with "/./" and then calls okular.
--
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the Okular-devel
mailing list