Pdf Download File Emacs For Mac

Posted on  by  admin
Pdf Download File Emacs For Mac Rating: 4,2/5 39 reviews

Most people I know use on Mac OS X. While it’s a pretty good TeX editor, I think Emacs is overall vastly superior. Of course, I’m rather biased since I already use Emacs for everything else Perhaps this post will be useful to other Emacs-addicted astronomers. In my setup, I use the AUCTeX package coupled with the PDF viewer (if you’re not using Skim, download it, it’s brilliant!). One of the advantages of this combination is that Emacs and Skim can be kept in sync, like in the screenshot below. Skim + Emacs/AUCTeX nirvana.

Emacs

Note that the current highlighted line in Skim corresponds to the cursor position in Emacs. I found it a bit difficult to set up the AUCTeX package with sensible defaults, so I’ll reproduce here my configuration in hopes that it will be useful to someone else. The salient lines are the ones configuring latexmk and Skim. You should have latexmk installed if you are using the TeX Live distribution; Skim can be downloaded for free. You can stick this script in your Emacs initialization file (see my repository if you’d like to see my other Emacs configs). I shamelessly copied those lines from this.

I've been using emacs on the mac for a couple of years now, but have been using other apps to print. I finally started digging into emacs printing. I decided to set up postscript printing. I print to a file and then use Preview to do the actual printing.

Here's my setup. Anyone else have something better?.;; Postscript printing;;;; defaults (setq ps-font-size 9) (setq ps-header-font-size 8) (setq ps-header-title-font-size 8);;(setq ps-header-lines 1);; only use the filename and page number (setq ps-header-offset 18);; margin between header and text in 72nds of an inch (setq ps-left-margin 36);; left margin in 72nds (setq ps-right-margin 36);; right margin in 72nds;; Simple print buffer command;; (defun sprint-buffer 'Output a postscript file using the defaults.' (interactive) (ps-print-buffer '/temp.ps') (shell-command 'open /Applications/Preview.app /temp.ps'));; Simple print region command;; (defun sprint-region 'Output a postscript file using the defaults.' (interactive) (ps-print-region (mark) (point) '/temp.ps') (shell-command 'open /Applications/Preview.app /temp.ps'));; Setup the postscript settings;; (defun sprint-setup (use-headers use-line-numbers use-landscape) (interactive (list (y-or-n-p 'Headers?' ) (y-or-n-p 'Line numbers?' ) (y-or-n-p 'Landscape?'

Emacs Download

))) (setq ps-print-headers use-headers) (setq ps-line-number use-line-numbers) (setq ps-landscape-mode use-landscape)). You'll need the older code from longlines.el (the current version of visual-line-mode doesn't work in lieu of longlines-mode): I am using courier because it handles all capital letters better than times. I have a yes/no in there as a workaround to the ns-read-file-name bug, but the Emacs team just fixed that bug a couple of weeks ago in the Trunk.

Download

So if you build an Emacs Trunk developer edition -with-ns, then you don't need the yes/no any more.;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; PRINT TO PDF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; (require 'ps-print);; Add Consolas (setq ps-font-info-database (append '((Consolas (fonts (normal. 'Consolas') (bold. 'Consolas-Bold') (italic. 'Consolas-Italic') (bold-italic. 'Consolas-Bold-Italic')) (size.

13.0) (line-height. 14.5) (space-width.

Emacs For Mac Os X

6.15) (avg-char-width.

Coments are closed