[OS X Emacs] Aquamacs 1.5 and SyncTeX

David Reitter david.reitter at gmail.com
Sun Sep 21 17:52:15 EDT 2008


OK, you can see in auctex-config.el how we're getting at the line  
number.
What does `file-line-number' return in your case? (i.e., do M-: (file- 
line-number) RET)  Is this correct?

Do you have longlines-mode on, or soft wrap (Option menu)?

Is it a really large file that you're editing?
I'm adding, below, the documentation string for `line-number-mode'.


--
http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
http://aquamacs.org/donate -- Could we help you? Return the favor and  
support the Aquamacs Project!


line-number-mode is an interactive compiled Lisp function in  
`simple.el'.
It is bound to <menu-bar> <options> <showhide> <line-number-mode>.
(line-number-mode &optional arg)

Toggle Line Number mode.
With arg, turn Line Number mode on if arg is positive, otherwise
turn it off.  When Line Number mode is enabled, the line number
appears in the mode line.

Line numbers do not appear for very large buffers and buffers
with very long lines; see variables `line-number-display-limit'
and `line-number-display-limit-width'.

[back]




On 21 Sep 2008, at 15:38, Jeremy Van Cleve wrote:

> Thank you much to all who responded!
>
> I have been able to modify the TeX-command-list to use the "- 
> synctex=1" option and produce a .synctex.gz file, but I have had  
> trouble getting the synchronization to work properly.  I can get  
> Aquamacs to bring the window focus to Skim but the location in the  
> pdf is far from the location in the source; likewise, when I try to  
> move from the Skim to the source, the line number that Aquamacs  
> moves to is incorrect.  Since support for synchronization using  
> SyncTeX in AUCTeX was in the AUCTeX CVS, I downloaded the file that  
> included the new "tex-source-correlate-mode" (tex.el), byte compiled  
> it, and stuck it in the "Aquamacs Emacs.app/Contents/Resources/site- 
> lisp/edit-modes/auctex" directory.  However, after turning on the  
> mode, it didn't correct synchronization with Skim.  One thing I have  
> noticed since upgrading to Aquamacs 1.5rc3 is that when I'm editing  
> a LaTeX document in LaTeX-mode, line numbers do not show up at the  
> bottom of the buffer; rather Aquamacs shows (??,col#).  Maybe this  
> is part of the problem if Aquamacs is having trouble determining the  
> line number in the source.  I have noticed that the line number  
> shows up properly in other modes (e.g. MATLAB).
>
> Thank again,
>
> Jeremy
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2193 bytes
Desc: not available
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20080921/50c75a3e/attachment.p7s>


More information about the MacOSX-Emacs mailing list