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&#39;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 &#39;okular-search)<br>(add-hook &#39;LaTeX-mode-hook (lambda () (local-set-key &quot;\C-x\C-j&quot; &#39;okular-jump-to-line)))<br>(add-hook &#39;tex-mode-hook (lambda () (local-set-key &quot;\C-x\C-j&quot; &#39;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">&lt;<a href="mailto:luigi.toscano@tiscali.it">luigi.toscano@tiscali.it</a>&gt;</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>
&gt; Sure, there is something like: &lt; 5 of 34 &gt; at the bottom of the page,<br>
&gt; and when you click &gt;, it turn to next page, but every time you click it<br>
&gt; 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&#39;t think it&#39;s worth to change that.<br>
But...<br>
<div class="im"><br>
&gt; In most cases, the dvi file I am viewing is not-symmetric and it is<br>
&gt; zoomed in as large as possible to fit my screen, thus the pages are NOT<br>
&gt; centered. Then when I use emacs to forward jump from emacs to okular, it<br>
&gt; will jump to the proper line in proper page, BUT it will auto-center the<br>
&gt; page that makes the page land in the middle, which is of couse will<br>
&gt; messed up its original hozinontal position.<br>
</div>What is that &quot;forward jump&quot;, 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&#39;t think that this is the same &quot;issue&quot; 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>