I have been using Latexian for a while, but some of its limitations and my natural tendency to use emacs, is prompting me to take a look at my work environment again (OSX 10.9.2).

I have seen some guides for setting up Skim with Aquamacs and highlight current line in the editor. Which is great. However, is it possible to set this up so that Skim shows a live preview of the PDF? The way one can with Flashmode + TeXShop, or with Latexian?

  • 1
    You just need the pvc option if your using latexmk and set Skim to detect changes: stackoverflow.com/q/738755/2112489 The following link contains a sample configuration for AUCTeX -- it uses a latexmkrc file where a -pvc option can be set (e.g., $preview_continuous_mode = 1), or it can be set in the command line -- tex.stackexchange.com/a/156617/26911 This assumes the pdf will update in the Skim window on saving the Emacs buffer. You can also trigger this with every keystroke -- e.g., post-command-hook. – lawlist Jul 7 '14 at 18:18
  • Thanks! Can it be triggered to update every n seconds instead of every keystroke (which will likely be an overkill)? – user2751530 Jul 8 '14 at 5:05
  • For certain actions that do not need the post-command-hook, Emacs has idle timers: gnu.org/software/emacs/manual/html_node/elisp/Idle-Timers.html I personally like manually triggering the update with save-buffer, which is the default when using the -pvc option. However, I am not presently using the live update with my current work-flow -- I just press my keyboard combination for save and generate (without using -pvc). – lawlist Jul 8 '14 at 5:31
  • I have been going through the two links you provided. They are immensely helpful. I wish to inquire about a different possibility since your lisp capabilities are far more extensive and current than mine. I want emacs to have the following default behaviour: 1. When it opens a text document (could be tex, fortran, anything), it creates a folder called e-backup in the current directory of the source file, 2. Every 5 minutes, it auto-saves to that folder. Now, your second URL uses /tmp as the out_dir, which means that even the generated PDF file will go to that directory. See followup comment. – user2751530 Jul 9 '14 at 9:15
  • MikTeX allows you to specify an aux directory, but TeXlive on Mac doesn't. I want to use lisp magic + auctex to create a directory named 'aux' in the source directory where all files except .bbl, .pdf, .tex (of course) and .idx (if any) go. Is that possible to manage somehow? – user2751530 Jul 9 '14 at 9:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.