OSX installation MacTeX Emacs+auctex

Source: Internet
Author: User

Found on the StackOverflow, has been installed successfully, to retain the next

Here's how I got Auctex to work with pure Emacs:

  1. Install the MacTeX distribution package
  2. Download OS X emacs, place in/Applications
  3. Download the Auctex tarball
  4. Go to the Auctex directory, configure with the command:

    ./configure--with-emacs=/applications/emacs.app/contents/macos/emacs--with-lispdir=/ Applications/emacs.app/contents/resources/site-lisp--with-texmf-dir=/usr/local/texlive/texmf-local  
  5. Execute:

    make; sudo make install

    To install theelispFiles inside theEmacs.app, the info files to/usr/local/share/info, etc.

  6. Edit your ~/.emacs file to load Auctex/preview-latex, and point Emacs to your latex executables:

     
  7. Auctex and Preview-latex should work now. One thing to keep in mind:with older versions of Auctex, thepsPathway seems to work better thanpdf; If Preview-latex images aren ' t appearing with the error "/typecheck in--setfileposition--", try disabling "Generate PDF" Via "menu Bar, Command-texing option".

Update: Steps (2--5) can be replaced with the Homebrew Package Manager:

brew install emacs--cocoabrew Install Auctex  

The other steps is still correct. The Emacs "Generate PDF" option now works for me

Note that before installing Auctex, you should prepare the environment variables before you can compile the Auctex:


OSX installation MacTeX Emacs+auctex

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.