[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-26 17:28:11
Message-ID: E1R8EyR-0003WP-Kf () bugs ! kde ! org
[Download RAW message or body]

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





--- Comment #23 from Philipp Woelfel <woelfel gmx net>  2011-09-26 17:28:11 ---
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 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