Finder bugs - No jpg/pdf preview in iconview, flickering copy + icon

I updated to Snow Leopard last weekend, most things seem ok but i've got some real problems with finder.
As described in the subject.
The icon view completely fails to show me some jpegs or pdf contents, it just stays as a jpeg or pdf icon from preview. Quite frustrating when the zooming and multipage pdf navigation is one of the features meant to be in Snow Leopard.
Other than that whenever i try to copy a file or folder the green + in a circle that goes next to the icon i'm dragging with the mouse flickers like crazy.
I've rebooted, no joy. Anyone else suffer this or have any tips?

This has been happening constantly. Every few days I lose my icon previews for PDF, JPG and other graphic formats.
You can fix it by tossing your Finder preferences:
User > Library > Preferences > com.apple.finder.plist
Then relaunch Finder

Similar Messages

  • System or Safari renaming .jpg to .jpg.pdf and pictureviewer fails

    Hello all.
    When using webmail (on Safari 2) I ran into this:
    File attachments using .jpg extension is being downloaded and renamed to .jpg.pdf when clicked on. The file gets downloaded to desktop and when pictureviewer trys to open it it fails, as the file is not pdf.
    Any suggestions?
    Yours Sincerely
    Martin

    Hello andyball_uk
    Thankyou for your advise. I do agree that the problem on the server end and when trying to ctrl-alt click on the link I get a Download.php file. THe webmails Costumer service basically told me to f* o** since they didnt and wouldnt support OSX.
    But i found another workaround:
    Since my OS is the danish version some translations might be wrong, pls correct if so.
    Created Download folder on desktop, set Safari to use that as a download folder. Unchecked "Open safe files..:" too. the file now saves in that folder.
    Created an Automater workflow who is to rename finder items from .jpg.pdf to .jpg. AND then open finder item.
    Saved as accessory to foldercommands, applied the folder and voila.
    Its works.
    Thx for the reply, I consider this solved.
    Martin

  • Saving a PDF as a jpg in Preview

    Until I recently got my new MAC and upgraded to Lion 10.7.4, I was able to crop an image out of a pdf and save it as a jpg in Preview.
    Now you can only 'save a version' of a pdf and because no dialogue box opens, I don't know if its possible to save it in different formats or frankly where it saves to!
    Is there another way to save images in word docs or pdf's as jpgs?

    Duplicate it then you can save the duplicate in another format.
    The lack of "Save As" causes a lot of confusion.

  • Finding text in a PDF using preview has stopped working (correctly)

    Finding text in a PDF using preview has stopped working (correctly).
    When I search for certain words in a PDF using preview, it correctly finds all the pages in the document with that word.  However, it no longer highlights the word being searched for.  I have looked through the various settings and cannot figure out how to turn this back on.
    Thanks.

    4Shared worked, but having to register to retrieve files from there is a nuisance.
    The problem is that you use special graphic state operators inside text objects which is not allowed:
    BT
    /printmatic_F1 58.133398014634 Tf
    q
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    1 1 1 1 scn
    0.62060289801053 w
    0 J
    0 j
    2.189349112426 M
    0 Tr
    /printmatic_F1 58.133398014634 Tf
    1 0 0 1 86.448306387737 264.65046258267 cm
    (t) Tj
    Q
    q
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    1 1 1 1 scn
    0.62060289801053 w
    0 J
    0 j
    2.189349112426 M
    0 Tr
    /printmatic_F1 58.133398014634 Tf
    1 0 0 1 102.60939103581 264.65046258267 cm
    (e) Tj
    Q
    q
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    1 1 1 1 scn
    0.62060289801053 w
    0 J
    0 j
    2.189349112426 M
    0 Tr
    /printmatic_F1 58.133398014634 Tf
    1 0 0 1 134.93156033194 264.65046258267 cm
    (x) Tj
    Q
    q
    /DeviceCMYK CS
    1 1 1 1 SCN
    /DeviceCMYK cs
    1 1 1 1 scn
    0.62060289801053 w
    0 J
    0 j
    2.189349112426 M
    0 Tr
    /printmatic_F1 58.133398014634 Tf
    1 0 0 1 163.99825933926 264.65046258267 cm
    (t) Tj
    Q
    ET
    Have a look at the PDF specification ISO 32000-1:2008 (e.g. at http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/PDF32000_2008.pdf). Table 51 shows that q, Q, and cm are special graphics state operators, and Figure 9 illustrates that these operators, therefore, are not allowed in text objects, i.e. between BT and ET.

  • Links (urls) inside a pdf document are not enabled by the New firefox pdf preview feature but are in Chrome & IE

    The new pdf preview feature in firefox desktop does NOT seem to activate any links (urls) inside the pdf meaning they are no longer clickable.
    Is anyone else experiencing this problem.
    I send out product information using pdf's with clickable links inside (as do lots of businesses) and this loss of clickable links functionality is a problem.
    I also tried the same pdf files in IE and Chrome and their inline pdf previews keep all links fully working.
    I know the pdf preview in firefox can be deactivated and the adobe reader can be used instead but in reality lots of people won't know how to do this or won't be troubled to find out how and will just move on.
    Does anyone know if this feature is going to be fixed or supported or is it a deliberate security feature.
    Thanks.
    JP.

    Hey JPEdwards,
    The PDF.js team is still hard at work on the built-in viewer. It looks like there is already a bug on file for this and they are aware of it:
    https://bugzilla.mozilla.org/show_bug.cgi?id=821599
    Please don't post in the bug if you are just confirming that you've seen the problem too. That clutters the tickets ;)

  • How to make screenshot/jpg/pdf of ENTIRE long Safari window (not just visible part)?

    I want to get a "screenshot" (i.e. an image in any format -- PNG, JPG, PDF, whatever) of a looooooooong Safari window diplaying a Web page that entends far below the bottom of the visible screen area and has to be scrolled down to see all of it.
    I know about the standard screenshot keyboard tricks in 10.6 -- Command-shift-4, Command-shift-4 then spacebar/click, Command-shift-3, etc. But not any of them allow the user to get a screen shot of the entirety of a long/deep window -- they only capture what is visible on the screen.
    Also, another trick people often mention is to "print" (command-P) the Safari page, but instead of sending it to a printer choose "Save as PDF." Brilliant -- except that for some reason I've never been able to "print" a Safari page -- as soon as I hit the command-P keystrokes in Safari, I immediately get a spinning beachball that will only go a way with a force-quit of Safari. This has always been true on this computer (MacBook Pro) -- not sure if it's a common bug or if it's just an eccentricity of my particular machine. Either way, that option is off the table because "printing" is impossible with my Safari.
    I also searched around for various third-party freeware applications, and despite a lot of grandiose promises, none of them actually was able to capture an entire window including portions not currently visible on the screen.
    I did find a commercial application called SnapWeb that does have the capability to do exactly what I want -- but it doesn't produce usable images in demo mode and requires $$$ to unlock and work properly, something I'm currently unwilling to pay for a simple one-use gimmick that simply must be part of the OS already.
    So my question is:
    Is there any native way within the 10.6 OS that allows users to capture an entire long Safari window as an image file (not as a Web Archive, but as an image file composed of pixels), which includes the entirety of a Web page no matter how "long" it is, even if it extends far below the visible screen footprint?
    And if there is no native way in 10.6, if there a freeware/shareware application/widget/plugin/whatever which does the same thing?
    I already know about a commercial software that does it (SnapWeb), so I don't need more recommendations for paid apps. And I know that I can laboriously construct a JPEG by hand with Photoshop by taking a screenshot of the visible window, scrolling down a little, taking another screenshot, etc. etc., and then
    "stitching" them together. Yeah, it's possible (and in fact is what I've done in the past), but it's a time-consuming hassle that shouldn't be necessary.
    Help! I've wondered about how to do this for years, and have never yet found a satisfactory answer.

    Woo-hoo!
    After fiddling with Paparazzi! for another 40 minutes, I finally deciphered (through trial-and-error) how to maneuver through its awkward user-interface to an extent that I was finally able to make it "work" -- at least work sufficiently for my purposes. And lo and behold, it does indeed have the capacity to capture a screenshot of an entire long Web page, including the portion not visible on the screen. In fact my first attempt was to experiment with this very page of our thread on Apple "Discussions" about how to solve this problem -- and I got Paparazzi! to save it as a jpeg!! The whole thread, top to bottom, exactly as on the screen, not re-formatted for printing. The final file size was 985 pixels wide by 4,204 pixels long (1.2mb).
    I have since experimented with a couple other pages and had success with them as well.
    HOWEVER, I can't guarantee that Paparazzi! will work with every page on the Web, because I think one of the problems when I first attempted to use it was that the page I was trying to get a screenshot of contained a lot of Flash elements and other data-heavy widgets, and I think those messed up Paparazzi!'s memory or overwhelmed it or something. But perhaps such huge and problematic pages are rare enough to not be much of an issue using Paparazzi! under normal circumstances.
    So, I'll consider this problem "solved," and give user "jsd2" a "This helped me" star, since even though I already had Paparazzi! he encouraged me to revisit it.
    And for the record to help those who might stumble on this thread in the future seeking a solution to the same problem:
    The freeware program to get is called "Paparazzi!" and is available directly on the developers site here:
    http://derailer.org/paparazzi/
    Also, note that the current version only works with 10.6.8 or later, but if you have a previous version of the Mac OS, the developer helpfully maintains an archive of older releases that work with older OS versions -- you can access the old (and new) versions here:
    http://derailer.org/paparazzi/downloads
    It's also available for free download on various popular third-party sites, like:
    http://www.macupdate.com/app/mac/15966/paparazzi!
    Be warned that Paparazzi! does not have a very intuitive user interface, nor a user manual, so be patient with it and you should be able to figure out how to make it work.
    If you want another application that also does the trick and which has a simpler and better user experience, but you don't mind paying money to buy it, you can purchase and download "SnapWeb" on its developer's site here:
    http://www.tribalmedia.com/bts/snapweb/snapweb.html
    And if anybody seeing this in the future knows whether or not there is a native way to capture entire Web pages built in to 10.6, please post the info here. Thanks!

  • I deleted files coldnt open like .jpg,pdf.part

    file name unknown and couldn't open or (didnt realize they may have been important )so like a fool i deleted them .jpg,pdf.part,png,gif,ps exe and so forth now i am afraid these were part of the computers programming.. i am new and am so worried, thought i was cleaning junk what do i do now? trash emptied will i ever know what i deleted?

    Hi,
    Some Info.
    First click anywhere on the Desktop that might be visible around anything you have open.
    The word Finder should now appear in the menu bar.
    Click and hold this to see the menu and select Preferences.
    In the Preferences Window that shows up select Advanced.
    Select (Tick the check box) the option to Show All File Extensions.
    When this is done all the files on the computer will display their relevant .something ending (Extensions).
    So most things in the Application folder will now show ApplicationName.app
    In the Pictures Folder you will see different ones (if that is where your Picture files are)
    .jpg .tif, .png .gif
    Some of these such as .jpg or .gif and .tif are fairly universal meaning many apps can open them
    .pdf files can be opened by Preview and Adobe Reader as they are Portable Document Files (PDF) and needs a PDF reader. (they can be a mixture of Picture and Text like a word processing cocument)
    You will notice in my Pic I have ones ending in .psd
    These are saved from the Photoshop Graphics app.
    This leads on to the next point.
    Most apps will save Files with an ending that in most cases only they can open.
    For instance iChat can be set to Save Transcripts.
    these are stored in your Home Folder/Documents/iChats in dated sub folders.
    You will find they end in .ichat
    TextEdit  can save in two formats (file Extensions)
    .rtf (Rich Text File) or .txt (Plain Text FIle)
    Ususally in a file name there is only one . (dot) before the end.
    So the way you wrote .jpg.pdf etc. would not exist  (there are of course exceptions)
    Double Clicking a file will normally get the App that created it or the nearest thing you have that can open it to Launch and then show you the file.  (There are ways to Control which app opens which files but that is another lesson)
    If this does not work you can go to the Finder's File Menu and use Open With - which will present you with a list of apps that can open a file.  (Often this will include Browsers as they often have Plug-ins that deal with the Pics on web sites - Safari for instance includes a PDF reader)
    .js does stand for Javacsript.
    This is used on Web sites to help with functionality. 
    It would be unusual to download this unless you were downloading something for a web site about building web sites.
    On most web sites the Javascript is a separate file that the page accesses when needed to do a specific thing. Sometimes though small short exerts of javascript may actually appear on the page (When looked at in Source view).
    It is similar with .css (Cascading Style Sheets) that many web sites use to change basic HTML into the layout and colours you want.   (Again it would be unusual to download such a file)
    If you want to know what created or might open a file search here (Common File Extensions)
    I would be cautious about deleting anything that you don't know what it is.
    The exception to that would be anything that is in your Downloads Folder or has been placed on the Desktop.
    Anything that is in Your Home Folder (the Little House icon) is yours.
    However deleting stuff in the Library that is inside there may cause problems with apps running properly.
    In may cases the Preferences you set are stored there. In some cases the results of you choices cause other things to be stored that are needed when the app runs.
    Deleting things in Documents, Pictures, Movies only deletes things you might want to Keep.
    I would also leave iTunes and iPhoto files alone in their relevant places.
    If in doubt post and ask.  Be clear about where the file is located and what you know about  how it got there.
    10:50 PM      Saturday; May 21, 2011
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb( 10.6.7)
     Mac OS X (10.6.7),
    "Limit the Logs to the Bits above Binary Images."  No, Seriously

  • Email attachments download as ashx for Microsoft Outlook, instead of jpg, pdf, doc, etc. Tried to fix in Preferences Applications but still doesn't work.

    Using MacBook Pro running 10.5.8. Downloaded Firefox 8 on 11/9/11 and now Microsoft Outlook Web App 2010 downloads all email attachments as "attachment.ashx" instead of jpg, pdf, etc. This was not a problem with previous Firefox releases which I've been using for the past couple of years. Can open files if I edit the extension to the proper variety (ashx to jpg for example), but no longer initially automatically opens. Instead I first get a "can't open this file" message.  Attempted to fix in Firefox > Preferences > Applications by indicating the proper "Actions" for various "Content Types" but this had no effect. Chrome and Safari browsers still work properly. How can I fix this?

    Hi,
    I'm sorry you are having this problem, here is another post about the same problem, where the cause of the problem is described:
    https://support.mozilla.com/en-US/questions/894442
    A bug has been filed to track resolution of the issue here, because a true fix isn't yet available:
    https://bugzilla.mozilla.org/show_bug.cgi?id=703015
    I apologize for the inconvenience.
    Regards,
    Michelle

  • Error while opening the PDF preview

    Hi,
    While opening the form in the PDF preview, i am getting a pop window with a message saying, 'Cannot find 'c:\.\Adobe Examples\request_de.xml'. Make sure the path or Internet address is correct.'. When i click 'ok' it is giving a blank window. Do i need to install anything for that?
    Thanks and Regards,
    Giridhar.

    hi,
    Check u r Adobe version.....
    Adobe Reader 7 to 8.1 its preferable.
    (or)
    Check u r Adobe Lifecycle Designer (ALD).
    Adobe Lifecycle Designer 7.1 and above is preferable.
    by
    Parthasarathi

  • Office web apps 2013 March update 2013....pdf preview

    the web application is configured as permissive.
    I did the following
    Remove-OfficeWebAppsMachine
    updated with the march 2013.
    restarted the office web apps 2013 server.
    New-OfficeWebAppsFarm -InternalUrl "https://owa.domain.com" -ExternalUrl "https://owa.domain.com" –CertificateName "*.domain.is" -EditingEnabled
    New-SPWOPIBinding –ServerName "OWA.domain.is" -Application WordPDF
    word / excel preview works
    (Invoke-WebRequest
    https://wac.contoso.com/m/met/participant.svc/jsonAnonymous/BroadcastPing).Headers["X-OfficeVersion"]
    gives an error
    PDF does not open in browser.
    The updates in January were installed automatically.
    Is that maybe the problem?
    I have seen this:
    http://www.wictorwilen.se/sharepoint-2013-enabling-pdf-previews-with-office-web-apps-2013-march-2013-update

    Is it not working only for PDF files? I only used the zone external-https as an example so please confirm that you set the right binding. After all applications have the correct binding you need to create a result type for PDFs:
    Site Settings > (Search) Result Types and then finding the PDF Result Type. Choose to Copy the Result Type.
    Give the new Result Type an appropriate name, “PDF with Preview” for instance. Then scroll down to Actions and in the “What
    should these results look like?” drop-down, choose to use the Word Display Template.
    Regards,
    Andrew J Billings
    Portal Systems Engineer//MCSA,MCSE
    Blog:
    http://www.andrewjbillings.com 
    Twitter:   LinkedIn:
      

  • PDF preview in windows 8.1

    I am facing a problem previewing PDF file from my application.
    It was working find in windows xp and windows 7 machines, but showing error line "Error HRESULT E_FAIL has been returned from a call to a COM component" in windows 8.1 machine.
    my application using "Adobe PDF preview for Vista" for PDF preivew.
    i think my previewer is causing the problem, but dont know which preview handler me to use instead of "Adobe PDF preview Handler for vista"
    please help me to solve this
    ps: from my windows explorer i can see pdf preview.
    Thanks
    Rosh

    After a close debug, i found that "doPreview" is crashing my application. Also the previewer assembly "PDFPrevHndlr.dll" is modified in Adobe Acrobat XI.
    the modified "DoPreview" method now expecting 2 parameter (int, out int), after giving some values in it, it stops crashing, still my PDF preview not shown up.

  • How to determine the page count of the front document (pdf-Preview) with applescript?

    Hello, I'm a beinnger apple scripter, and I have 2 questions. First, im trying to find the code to generate a page count for the front document of preview. I tried something like this:
    choose file with prompt "Count the number of pages in this PDF file:" without invisibles
    do shell script "/usr/bin/mdls -name kMDItemNumberOfPages " & quoted form of POSIX path of result & " | /usr/bin/grep -o '[0-9]\\+$'"
    But I dont want to have to choose a file with the prompt, and Im not sure how to get the path or POSIX path of an open pdf that is the front document in prievew to then use that directory to select the file to run the shell script on. This is one step in a much larger sequence of automator/apple script commands for large print jobs.
    The large scale view is:
    1. seleting a group .musx Finale 2014 files and creating pdfs of all the documents
         -Achieved with Automator stuff: [Get selected finder items] [open finder items with Finale 2014] [run applescript to convert to pdf all the open files] (which I have working but without a proper repeat condition)
    2. sorting those those exports into even/odd groups
    3. making the even pages 2 up with a create booklet plugin
    3. combinging even/odd group pdfs in their respective folders
    4. sending the 2 up evens to 1 printer, and the singes to another printer.
    but at this stage in the code/automator this is what i'll need to be doing:
    1. Several pdf documents will be open and I need to determine the page count of the front document.
    2. With that result I need to determine if the pagecount is even or odd.
    3. If its even, I need to save as pdf in a file folder /desktop/PDF Export/Doubles
         - if its odd, I need to save as pdf pages from 1 to (pageCount -1) to /desktop/PDF Export/Doubles, and pages (pageCount) to (pageCount) to desktop/PDF Export/Singles. (example: A 5 page pdf will send pages 1-4 to folder "Doubles", and pages from 5 to 5 to Singles, A 1 page pdf will only send a copy to the folder "Singles." A 2 page pdf will send both pages to "doubles"
    4. once the even/odd pages have had pdfs made in the either or both of the folders, Im going to close the document and repeat for all other open pdfs.
    Which also brings me to my 2nd repeat condition question: how can I repeat (print, save as pdf, close) commands for open files and end the script once all files are closed? This can help me both at this stage, as well the coding stage before in creating the pdfs from open Finale/sibelius .sib/.musx files
    would it be something like this?:
    If front document exists
    try
    tell application "preview"
    <bla bla>
    end try
    end tell
    At stage 1 of the large scale i've gotten the files to export pdfs and close multiple files, but if i say "repeat 4 times" and i have 3 files it can do those commands but it gets stuck trying to repeat the code one more time. I need the repeat amount x to be the # of items in selection from the the original finder window.
    Thanks for the help!

    The following AppleScript will get the POSIX path and filename of the current PDF file. It will just return the integer value for page count. Note: The path retrieved is the actual path to the PDF file, unless it is on the Desktop. In the latter case, the path will be ~/Library/Containers/com.apple.Preview/Data/Desktop/filename.pdf.
    The script assumes that the following folders exist, otherwise you will need a try block to test for their presence.
    The AppleScript dictionary for Preview does not provide a page dictionary entry, that would make a repeat loop and page range possible for saving individual page ranges.
    set pdfDoubles to POSIX path of ((path to desktop) & "PDF Export" & Doubles)
    set pdfSingles to POSIX path of ((path to desktop) & "PDF Export" & Singles)
    tell application "Preview"
      -- gets quoted POSIX path and filename
              set pdfFile to (get path of front document)
              set pdfName to (get name of front document)
      log pdfName
              set cmdArg to "/usr/bin/mdls -name kMDItemNumberOfPages " & pdfFile ¬
                        & " | egrep -o \"(\\d+)\""
              set pageCnt to do shell script cmdArg
      display dialog pageCnt
              if pageCnt mod 2 is 0 then
      -- even
      -- save pdfName in pdfDoubles
              else
      -- save pdfName in pdfDoubles
      -- save individual pages in pdfSingles
              end if
    end tell

  • LaTeX composition in (g)vim with live update-as-you-type PDF preview

    Ever since I tried the gummi LaTeX editor, I've been intrigued by the idea of having a live-updating PDF preview--i.e., a PDF output panel which updated as I typed. This provides all the good things of WYSIWYG, but without taking away the control I have by editing the source directly. However, apart from its preview panel, I was thoroughly unimpressed with gummi as an editor. It had none of the advanced features I was used to.
    Since then, I've been trying various techniques to make it work with my preferred editor, (g)vim. At first, I used latexmk with the -pvc option which recompiles whenever the file changes, along with a PDF editor that refreshes whenever the file changes (like evince); but found it slow and tended to get stuck.
    My current method is to use mupdf as my viewer, with a custom LaTeX script which calls xdotool to update mupdf whenever I have a successful compilation. This seems to be working fairly well.
    Here's an animated GIF screen capture showing it in action
    There is typically still a 1-second delay between typing something and it showing on the PDF preview, but it's not really any worse than it seems to be wih gummi, and I get to use a world-class editor.
    I should note that I'm not using the vim-latex suite plugin or anything similar, so I don't know whether or not any of this is compatible.
    Anyway, I thought I'd post my method here just in case anyone thought it useful, or more importantly, anyone had any feedback for how it might be improved. I'm not a programmer (--my degrees are in philosophy!--) and don't really have that much experience with vim or bash scripting, so forgive my naive methods.
    Anyway, in my ~/.vim/ftplugin/tex.vim I have:
    " Function to save, check if already compiling and compile if not
    function! KKLtxAction()
    " go to right directory
    lcd %:p:h
    " save the file if need be and it's possible
    if filewritable(bufname("%"))
    silent update
    endif
    " see how many kkltx processes there are
    " note that there are always 3 when the checking itself happens
    " so we need there to be no more than that
    let numrunning = system("ps ax | grep kkltx | wc -l")
    if numrunning < 4
    exec "silent !kkltx " . expand("%") . " &"
    endif
    endfunction
    " Call this function whenever mupdf the cursor moves
    " But only in gvim
    if has("gui_running")
    au CursorMoved *.tex call KKLtxAction()
    au CursorMovedI *.tex call KKLtxAction()
    endif
    So whenever the cursor moves, the file saves and checks if the compilation script is running. If it is not, it runs it. Here's the script, named kkltx. (To make it work, create a ~/.config/kkltx folder. Sorry about the stupid name; I needed it to be uncommon.)
    #!/bin/bash
    file="$1"
    logfile="${file%.tex}.log"
    auxfile="${file%.tex}.aux"
    # check to see when file was last saved and
    # check see what version of file was last compiled
    currmodified=$(stat -c %Y "$file")
    oldmodified=$(cat $HOME/.config/kkltx/lastprocessedfile)
    # if they're the same exit with no change
    if [ "$currmodified" == "$oldmodified" ] ; then
    echo "nochange"
    exit 0
    else
    # if compilation is necessary, check what program to use
    # 'xelatex' should appear in first 5 lines for xelatex docs
    if head -n 5 "$file" | grep -i -q 'xelatex' > /dev/null 2>&1 ; then
    execprog="xelatex"
    else
    execprog="pdflatex"
    fi
    # try to compile
    if ${execprog} -interaction=batchmode -file-line-error -synctex=1 "$file" > /dev/null 2>&1 ; then
    # if compiling worked check if bibtex needs to run
    if cat "$logfile" | grep -i -q 'undefined citations' > /dev/null 2>&1 ; then
    if bibtex "$auxfile" > /dev/null 2>&1 ; then
    if ! ${execprog} -interaction=batchmode -file-line-error -synctex=1 "$file" > /dev/null 2>&1 ; then
    echo "failure"
    exit 1
    fi
    else
    echo "bibfail"
    exit 2
    fi
    fi
    # check if a rerun is necessary to update cross-references
    if cat "$logfile" | grep -i -q 'rerun to get' > /dev/null 2>&1 ; then
    if ! ${execprog} -interaction=batchmode -file-line-error -synctex=1 "$file" > /dev/null 2>&1 ; then
    echo "failure"
    exit 1
    fi
    fi
    # update mupdf by sending the r key to it
    xdotool search --class mupdf key --window %@ r > /dev/null 2>&1
    echo "success"
    # save time of compilation
    echo -n "$currmodified" > "$HOME/.config/kkltx/lastprocessedfile" 2>/dev/null
    else
    echo "failure"
    exit 1
    fi
    fi
    exit 0
    One thing you miss out on with mupdf is the SyncTeX ability in, e.g., TeXworks that allows you jump from the source to the corresponding part of the PDF and vice-versa. Here's a kludge that at least gets to you to the right page by using xdotool to send the signal to move to a certain page matching the source, or to read what page mupdf is on, and move to the beginning of the source code for that page (or strictly, a couple inches over and down). Again, in my ~/.vim/ftplugin/tex.vim
    " \v to open the viewer
    nnoremap \v :exec "silent! !mupdf ".expand("%:r").".pdf &"
    " forward search with mupdf
    function! MuPDFForward()
    " make sure I'm in the right directory
    lcd %:p:h
    let pageforward = 0
    " find where I am now; adjust for starting with 0
    let searchline = line(".") + 1
    let searchcol = col(".") + 1
    " use synctex to find the page to jump to
    let pageforward = system("synctex view -i " . searchline . ":" . searchcol . ":\"" . expand("%") . "\" -o \"" . expand("%:r") . ".pdf\" | grep -m1 'Page:' | sed 's/Page://'")
    " if a page other than 0 is found, send the page number to mupdf
    if pageforward > 0
    call system("xdotool search --class mupdf type --window %1 \"" . pageforward . "g\"")
    endif
    endfunction
    " inverse search with mypdf
    function! MuPDFReverse()
    lcd %:p:h
    let gotoline = 0
    " call a script which returns the line number near start of page shown on mupdf
    let gotoline = system("syncreverse-mupdf.sh " . expand("%:p:r"))
    if gotoline > 0
    exec ":" . gotopage
    endif
    endfunction
    " mappings \f and \r for forward and reverse search
    nnoremap <buffer> \f :call MuPDFForward()<CR>
    nnoremap <buffer> \r :call MuPDFReverse()<CR>
    Here is the script syncreverse-mupdf.sh called by the above:
    #!/bin/bash
    # syncreverse.sh full-path-of-PDF-minus-extension
    pathfn="$1"
    # reduce filename to base, add .pdf
    pdffile="$(echo "$pathfn" | sed 's@.*/@@g').pdf"
    # change to directory containing files
    cd "$(echo "$pathfn" | sed 's@\(.*\)/[^/]*@\1@g')"
    # read page number in mupdf window title
    page=$(xdotool search --class mupdf getwindowname | sed 's:.* - \([0-9]*\)/.*:\1:')
    # synctex lookup; remove junk
    line=$(synctex edit -o "$page:288:108:$pdffile" | grep -m1 'Line:' | sed 's/Line://' | head -n1)
    line=$(echo "$line" | sed -n 's/\([0-9]*\).*/\1/p')
    # return line for gvim
    echo "$line"
    exit 0
    I also recommend putting mappings in vim to send keys to mupdf to move around, so you can move around in the preview but without making (g)vim lose focus. These are just examples.
    nnoremap <silent> <buffer> <C-PageDown> :silent! call system("xdotool search --class mupdf key --window %@ Page_Down")<CR>
    nnoremap <silent> <buffer> <C-PageUp> :silent! call system("xdotool search --class mupdf key --window %@ Page_Up")<CR>
    Anyway, these could definitely be improved, by, for example, accommodating master/sub-documents, and so on. Thoughts?
    Last edited by frabjous (2010-11-04 22:41:21)

    OK, I've uploaded a PKGBUILD to AUR. Since I've changed how it handles recognizing when it's safe to recompile, it no longer needs to have a weird name. The name is now:
    vim-live-latex-preview
    It comes with a very short vim help file, which I'll copy here.
    *live-latex-preview.txt* For Vim version 7.3. Last change: 2010 Oct 27
    *live-latex-preview*
    A plugin for creating a live-updating PDF
    preview for a LaTeX file in MuPDF
    Default key bindings:~
    \p = Begin auto-compilation and launch MuPDF preview.
    \o = End auto-compilation and close MuPDF preview.
    \s = Check the result of the last compilation;
    jump to first error in case of errors.
    \f = Forward search to page in PDF matching cursor
    position in source.
    \r = Reverse/inverse search to position in source
    matching active page in MuPDF. (Very approximate.)
    \<PageUp>, \<PageDown>, \<Up>, \<Down>, \<Right>, \<Left>, \G
    \m, \t, \-, \+, \= = Send the corresponding keystrokes
    to the MuPDF preview without losing focus on vim Window
    The '\' can be changed by changing <LocalLeader>.
    Be aware that your file is saved whenever the cursor moves. Be sure
    to take the appropriate measures to keep back-up saves and undo files
    so you can undo changes if need be.
    To compile with XeLaTeX rather than PDFLaTeX, include the string
    'xelatex' somewhere in the first five lines of your file (e.g., in a
    comment). Currently only PDFLaTeX and XeLaTeX are supported. (Support
    for LuaLaTeX and/or LaTeX > dvips > ps2pdf may be added in the future,
    but they may be too slow for the live updating process anyway.)
    The plug-in does not currently support master- and sub-documents
    via LaTeX's \input{...} and \include{...} mechanisms. This may be
    added in the future.
    vim:tw=78:ts=8:ft=help:norl:
    This is a new version; pretty much completely rewritten from the above. In particular, I've tried to incorporate keenerd's ideas; in particular some changes:
    Rather than grepping the active processes, when it begins a compilation, it records the process ID of the compilation script, and will not begin a new compilation until that process finishes.
    When it first launches MuPDF, it records the Window ID and sends it back to vim, so vim knows which instance of MuPDF to refresh or work with.
    I've added a \s quick key which provides a one-word summary of the effects of the last compilation and jumps to the line number of the first error, if there were errors.
    The script is located in a separate file in the main $VIMRUNTIME/ftplugin folder, rather than a user's tex.vim file.
    I'm sure there's still plenty of room for improvement. I'd still like to get it to handle master/sub-documents well, for example. All comments welcome.

  • Finder Window Flashes When Showing Preview Of Multimedia Files.

    When Show Icon Preview is selected the finder window flashes(i.e, its gets highlighted and deactivated in a flashing manner) especially when previewing files of movies and pictures(PDF previewing is fine).The problem is there even in cover flow mode while loading the preview,and once the preview(thumnails) of files are done the finder behaves normal.When i checked the problem in another account it's working fine with out any problem in show icon preview mode,clover flow mode.I think the problem is a corrupted preference file.I tried deleting com.apple.finder.plist but its of no use...

    You are using Perian?
    --> Delete ~/Library/Preferences/org.perian.Perian.plist and re-login! May update the Perian tool and the flashing is gone.

  • I can't open attachments on my iPad 2.  I have downloaded the 8.0.2 software update.  I can't open jpgs, PDFs, docs. or movie files now.

    I can't open attachments on my iPad 2t and I can't open jpgs, PDFs, docs. or movie files now.

    Obviously, you are talking about the mail app, so force close the mail app and reset your iPad. If that fails, reset all settings.
    In order to close apps, you have to drag the app up from the multitasking display. Double tap the home button and you will see apps lined up going left to right across the screen. Swipe to get to the app that you want to close and then swipe "up" on the app preview thumbnail to close it. 
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.
    When you reset all settings, you will not lose any data, but most of the device settings will have to be entered in the settings app again. Settings>General>Reset>Reset all Settings.

Maybe you are looking for

  • What's with all of the squares of text that pop up?

    I just bought my first mac in over 4 years. What is with all of the pop ups? I disabled the tool tips in Firefox, but I still get white boxes that pop up at the oddest times. What can I do to disable them? Some of them seem to be connected to Flash P

  • WHERE clause order ox execution question

    I dont understand order of execution of a WHERE clause, using a complex database I want to write a SELECT statement with the following condition ... WHERE ( branch = 'main' ) AND ( type = 1 ) OR ( charge -1 AND charge = 2 ) My question is <1> Can yoy

  • Dunp in standard SAP CRM transaction?

    In Transaction CRMD_ORDER while creating moification order from activation order, inside the ITEM Selection TAB in theOBJECT TAB following dump is coming. Short text     More than one radio button active What happened?     The current screen processi

  • Cache Seeding ibot. Where is the button.

    Guys, I think I am blind. The checkbox is not there.......? I have done that ibot a million times now but..where is the checkbox now. Did I forget something? The user is admin in the repository.

  • Customize menu

    Clicking on the elipses (...) on a document a menu pops up  View properties Edit properties Versions etc... I've been asked to remove "Publish a major version" from this list. Can I customize this in SP2013 designer and if so, how?   Thanks Tom