Auctex emacs mac os x

If not, they should at least have been placed somewhere in your load-path. You can then load them by placing the lines. If you explicitly used --with-lispdir , you may need to add the specified directory into Emacs' load-path variable by adding something like.

Emacs, the best editor for LaTeX | Long's datablog

That is all. There are other ways of achieving the equivalent thing, but we don't mention them here any more since they are not better, and people got confused into trying everything at once. As a package provider, you should make sure that your users will be served best according to their intentions, and keep in mind that a system might be used by more than one user, with different preferences. There are people that prefer the built-in Emacs modes for editing TeX files, in particular plain TeX users.

If your package is intended as an XEmacs package or to accompany a precompiled version of Emacs, you might not know which TeX system will be available when preview-latex gets used.

2.1 Prerequisites

In this case you should build using the --without-texmf-dir option described previously. This can also be convenient for systems that are intended to support more than a single TeX distribution. Since more often than not TeX packages for operating system distributions are either much more outdated or much less complete than separately provided systems like TeX Live, this method may be generally preferable when providing packages.

The following package structure would be adequate for a typical fully supported Unix-like installation:. If there are other commonly used TeX system packages, it might be appropriate to provide separate packages for those. It is also a good idea to run. If your users might want to work with a different TeX distribution nowadays pretty common , instead consider the following:. Those are the obvious XEmacs equivalents. So you should make sure that such a package will not conflict with existing XEmacs packages and will be at an appropriate place in the load order after site-wide and user-specific locations, but before a distribution-specific sumo package tree.

Using the --without-packagedir option might be one idea to avoid conflicts. Another might be to refrain from providing an XEmacs package and just rely on the user or system administrator to instead use the XEmacs package system. Often people without system administration privileges want to install software for their private use.

  • edit ts files mac os x;
  • Want to add to the discussion??
  • Solutions for editing LaTeX with Emacs on Mac OS X.
  • Aquamacs: Emacs for Mac OS X.
  • 2. Installing AUCTeX?

In that case you need to pass more options to the configure script. For XEmacs users, this is fairly easy, because the XEmacs package system has been designed to make this sort of thing practical: The package directory stands a good chance at being detected automatically as long as it is in a subtree of the specified prefix. Now here is another thing to ponder: But if people will be copying just Elisp files, their copies will not work. The rest of the package should be found relative from there without further ado.

Alas, there is presently no easy programmatic way to do this, except to have a script do the symlinking for them. For making the info files accessible from within Elisp, something like the following might be convenient to add into your or other people's startup files:. In XEmacs, as long as XEmacs can see the package, there should be no need to do anything at all; the info files should be immediately visible.

The following are brief installation instructions for the impatient. In case you don't understand some of this, run into trouble of some sort, or need more elaborate information, refer to the detailed instructions further below. For GNU Emacs: For XEmacs: The commands above are examples for common usage. More on configuration options can be found in the detailed installation instructions below. If the configuration script failed to find all required programs, make sure that these programs are in your system path and add directories containing the programs to the PATH environment variable if necessary.

However, meeting the prerequisites might require more work than on some other platforms, and feel less natural. If you are experiencing any problems, even if you think they are of your own making, be sure to report them to auctex-devel gnu. Windows is a problematic platform for installation scripts. The main problem is that the installation procedure requires consistent file names in order to find its way in the directory hierarchy, and Windows path names are a mess.

The installation procedure tries finding stuff in system search paths and in Emacs paths. For that to succeed, you have to use the same syntax and spelling and case of paths everywhere: It is quite unlikely that the scripts will be able to identify the actual file names involved. File names containing shell-special characters like spaces or backslashes if you prefer that syntax need to get properly quoted to the shell: Line endings are a problem under Windows.

The distribution contains only text files, and theoretically most of the involved tools should get along with that. However, the files are processed by various utilities, and it is conceivable that not all of them will use the same line ending conventions. If you encounter problems, it might help if you try unpacking or checking out the files in binary mode, if your tools allow that.

If you don't have a suitable unpacking tool, skip to the next step: Using Cygwin either for everything or nothing might save headaches, if things don't work out. If you don't want to use a developer version and Emacs 22 has not yet been released, it is also possible to use an Emacs 21 binary from http: Since the developer version has seen quite a few improvements relevant also for other features of AUCTeX, we really recommend you give it a try.

All automatic detection of files and directories restricts itself to directories below the prefix or in the same hierarchy as the program accessing the files. This option also affects the defaults for placing the Texinfo documentation files and automatically generated style hooks. If you have a central directory hierarchy not untypical with Cygwin for such stuff, you might want to specify its root here.

You stand a good chance that this will be the only option you need to supply, as long as your TeX-related executables are in your system path, which they better be for AUCTeX's operation, anyway. Emacs uses a different installation scheme:.

Installing Emacs on OS X

This Emacs-only option tells a place in load-path below which the files are situated. If you think that you need a different setup, please refer to the full installation instructions in Configure.

LaTeX in Emacs

Directory containing automatically generated information. Use this option if your Emacs version is unable to support image display. This will be the case if you are using a native variant of Emacs This will specify the directory where your TeX installation sits. Please read through this document fully before installing anything.

The installation procedure has changed as compared to earlier versions.


Emacs 20 is no longer supported, and neither is XEmacs with a version of xemacs-base older than 1. Using preview-latex requires a version of Emacs compiled with image support. While the X11 version of Emacs 21 will likely work, Emacs 22 is the preferred platform. Precompiled versions are available from ftp: A precompiled version including an installer as well as preinstalled versions of AUCTeX and preview-latex is available from http: Compiling Emacs yourself requires a C compiler and a number of tools and development libraries.

Details are beyond the scope of this manual. Instructions for checking out the source code can be found at http: If you really need to use Emacs 21 on platforms where this implies missing image support, you should disable the installation of preview-latex see below. While XEmacs version This is mostly due to technical shortcomings and differing API's which are hard to come by. Of course, you can improve support for your favorite editor by giving feedback in case you encounter bugs.

Most versions of Ghostscript nowadays in use should work fine version 7. Strictly speaking, you can get away without it if you are building from the distribution tarball, have not modified any files and don't need a printed version of the manual: At least version 4. The first step is to configure the source code, telling it where various files will be.

To do so, run. On many machines, you will not need to specify any options, but if configure cannot determine something on its own, you'll need to help it out with one of these options:. All automatic placements for package components will be chosen from sensible existing hierarchies below this: Only if no workable placement can be found there, in some cases an alternative search will be made in a prefix deduced from a suitable binary.

If you are planning to install the package as a single non-priviledged user, you will typically set prefix to your home directory. Configure for generation under XEmacs Emacs is the default. Again, the name of the right XEmacs executable can be specified, complete with path if necessary. This XEmacs-only option configures the directory for XEmacs packages. If this directory exists and is below prefix , it should be detected automatically. This will install and activate the package.

This XEmacs-only option switches the detection of a package directory and corresponding installation off. Consequently, the Emacs installation scheme will be used. This is the name of the respective startup files. Please be aware that you must not move the start files after installation since other files are found relative to them. This is the directory where the bulk of the package gets located. The startfile adds this into load-path. You can use this option to specify the directory containing automatically generated information.

It is not necessary for most TeX installs, but may be used if you don't like the directory that configure is suggesting. A number of standard options to configure exist, and we do not have the room to describe them here; a short description of each is available, using --help. This disables configuration and installation of preview-latex.

This option is not actually recommended. If your Emacs does not support images, you should really upgrade to a newer version. Distributors should, if possible, refrain from distributing AUCTeX and preview-latex separately in order to avoid confusion and upgrade hassles if users install partial packages on their own. This option is used for specifying a TDS -compliant directory hierarchy. This option may be used to specify where the TeX documentation goes. To install the files into the locations chosen earlier, type. For XEmacs, if the installation occured into a valid package directory which is the default , then this should work out of the box.

In that case they should be automatically loaded on startup and nothing else needs to be done. If not, they should at least have been placed somewhere in your load-path. You can then load them by placing the lines.