Menu

#1128 Tex forward search broken in 1.4.22

Other
closed-fixed
nobody
None
5
2016-11-14
2016-10-15
No

After upgrading to 1.4.22, I can no longer do a forward search from my Latex document in MacVim using vim-latex. Skim opens, but simply shows the first page of my document. Downgrading to 1.4.20 solves the problem.

Steps to reproduce:

  • Configure MacVim with vim-latex and configure vim-latex to use pdflatex and Skim as the viewer.
  • Compile a sample latex document and use the forward search command from some location in your document.
  • You will notice that Skim does not forward to the proper page or place a marker where it once did.

System info:

Discussion

  • Christiaan Hofman

    This will be fixed in the next release

     
    • KKT

      KKT - 2016-10-20

      Also, forward search is no longer working in Emacs 25.1, within Mac Sierra 10.12.
      (with Skim 1.4.22)

       

      Last edit: KKT 2016-10-20
  • Christiaan Hofman

    • status: unread --> open-fixed
     
  • Christoffer Dall

    awesome, thanks!

     
  • Christiaan Hofman

    For now, attached is a slightly altered version of the displayline script that allows forward search in 1.4.22 in most situations. Use it instead of the embedded version.

     
    • KKT

      KKT - 2016-10-20

      This also works for emacs... Thanks

       
    • HJ Jongsma

      HJ Jongsma - 2016-10-20

      This doesn't work for me. Calling this script from the command line also doesn't give any consisten behavior. Sometimes just refreshes the current page, sometimes it highlights a specific line regardless of the linenumber entered.

      I'm on 10.12 and skim 1.4.22

       

      Last edit: HJ Jongsma 2016-10-20
  • Matthias Nott

    Matthias Nott - 2016-10-29

    Somehow I've a translation problem here. On the command line I get this:

    bash -x ~/Downloads/displayline 400 document.pdf document.tex 
    
    + [[ 3 -eq 0 ]]
    + [[ 400 == \-\h ]]
    + [[ 400 == \-\h\e\l\p ]]
    + revert=false
    + bar=false
    + activate=true
    + [[ 4 == \- ]]
    + line=400
    + file=document.pdf
    + shopt -s extglob
    + [[ 3 -gt 2 ]]
    + source=document.tex
    + [[ d == \/ ]]
    + file=/Users/mnott/Desktop/Dissertation/document.pdf
    + [[ d == \/ ]]
    + source=/Users/mnott/Desktop/Dissertation/document.tex
    + /usr/bin/osascript
    423:430: syntax error: Zeilenende, etc. erwartet, aber Identifier gefunden. (-2741)
    

    The problem seems to come from the generated apple script. If I try to translate it by hand, I get "Syntax Error - Expected line end etc., but found class name" at the word "line" here:

    tell front document to go to TeX line theLine showing reading bar false
    

    The same happens at the word "theDocs" in this line:

    if (count of theDocs) > 0 then revert theDocs
    

    This is the script where I've manually inserted the values from the script:

    set theLine to 400 as integer
    set theFile to POSIX file "/Users/mnott/Desktop/Dissertation/document.pdf"
    set theSource to POSIX file "/Users/mnott/Desktop/Dissertation/document.tex"
    set thePath to POSIX path of (theFile as alias)
    tell application "Skim"
      if true then activate
      if false then
        try
          set theDocs to get documents whose path is thePath
          if (count of theDocs) > 0 then revert theDocs
        end try
      end if
      open theFile
      tell front document to go to TeX line theLine showing reading bar false
    end tell
    
     
  • Christiaan Hofman

    • status: open-fixed --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB