Hi, there, That is interesting. Sorry for the confusion, this is the same issue I have been trying to describe. <br><br>Yes, I have configured emacs to forward jump to okular, just like we can do it with kdvi, here is the okular-search.el file I used for emacs to jump to okular, actually I modified kdvi-search.el to achieved it. It works fine except whenever it jump to the right place but auto-center the page, which is quite annoying. <br>
<br>When we use emacs to jump to kdvi, the page horizontal position doesn't change, but okular will always auto-center horizontally the new page. <br><br>In addition, here is the lisp code I put in .emacs in order for it to do so:<br>
<br>;; start the server so that the inverse search works<br>(server-start)<br>(require 'okular-search)<br>(add-hook 'LaTeX-mode-hook (lambda () (local-set-key "\C-x\C-j" 'okular-jump-to-line)))<br>(add-hook 'tex-mode-hook (lambda () (local-set-key "\C-x\C-j" 'okular-jump-to-line)))<br>
<br>See both the okular-search.el file as well as the lines above.<br><br>Your help is greatly appreciated. Thanks a lot. <br><br><div class="gmail_quote">On Sat, Nov 21, 2009 at 12:18 PM, Luigi Toscano <span dir="ltr"><<a href="mailto:luigi.toscano@tiscali.it">luigi.toscano@tiscali.it</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi,<br>
I think that you are talking about two different things.<br>
<div class="im"><br>
Mark Altern wrote:<br>
> Sure, there is something like: < 5 of 34 > at the bottom of the page,<br>
> and when you click >, it turn to next page, but every time you click it<br>
> to turn to next page, it will auto-center the page.<br>
</div>This is what all the viewers I tested do: kdvi, evince, acroread, xdvi<br>
(and okular, of course). When you change the page, the view changes to<br>
the upper-left corner of the chosen page. This is a consistent<br>
behaviour, I don't think it's worth to change that.<br>
But...<br>
<div class="im"><br>
> In most cases, the dvi file I am viewing is not-symmetric and it is<br>
> zoomed in as large as possible to fit my screen, thus the pages are NOT<br>
> centered. Then when I use emacs to forward jump from emacs to okular, it<br>
> will jump to the proper line in proper page, BUT it will auto-center the<br>
> page that makes the page land in the middle, which is of couse will<br>
> messed up its original hozinontal position.<br>
</div>What is that "forward jump", exactly? Have you configured emacs to call<br>
okular and jump to the specified line? Can you provide us this<br>
configuration?<br>
I don't think that this is the same "issue" you described before,<br>
because as I told you, kdvi acts exactly like okular, in that case.<br>
<br>
Regards,<br>
--<br>
<font color="#888888">Luigi<br>
</font><div><div></div><div class="h5">_______________________________________________<br>
Okular-devel mailing list<br>
<a href="mailto:Okular-devel@kde.org">Okular-devel@kde.org</a><br>
<a href="https://mail.kde.org/mailman/listinfo/okular-devel" target="_blank">https://mail.kde.org/mailman/listinfo/okular-devel</a><br>
</div></div></blockquote></div><br>