annotate man/auctex/install.texi @ 24:4103f0995bd7 r19-15b95

Import from CVS: tag r19-15b95
author cvs
date Mon, 13 Aug 2007 08:51:03 +0200
parents
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
1 @chapter Installation of AUC @TeX{}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
2 @cindex Installation
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
3 @cindex Make
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
4 @cindex @file{Makefile}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
5 @cindex @file{.emacs}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
6 @cindex Site initialization
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
7 @cindex Initialization
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
8 @cindex @file{tex-site.el}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
9 @cindex Personal customization
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
10 @cindex Site customization
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
11 @cindex Customization
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
12 @cindex Customization, personal
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
13 @cindex Customization, site
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
14
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
15 @section Compiling
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
16
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
17 The following describes how to install AUC @TeX{} under Unix. You may
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
18 also be able to do use these instructions under some other operating
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
19 systems, if you have already installed the proper GNU tools, such as
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
20 @file{make}.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
21
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
22 To install AUC @TeX{} for an entire site (which may just be your own
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
23 personal Linux box), issue the following two commands as root:
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
24
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
25 @example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
26 make
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
27 make lispdir=/usr/local/share/emacs/site-lisp install
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
28 @end example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
29
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
30 except that instead of @t{/usr/local/...} you should use the location of
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
31 your sites emacs installation. AUC @TeX{} will then be installed in a
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
32 subdirectory named @file{auctex} of the @file{site-lisp} directory, and
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
33 the file @file{tex-site.el} will be stored directly in the
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
34 @file{site-lisp}. You can now tell your users to enable AUC @TeX{} by
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
35 adding
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
36
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
37 @example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
38 (require 'tex-site)
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
39 @end example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
40
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
41 to their @file{.emacs} file.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
42
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
43 If you use xemacs instead, or if your emacs binary is named something
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
44 else than @file{emacs}, specify this by using the commands
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
45
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
46 @example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
47 make EMACS=xemacs
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
48 make lispdir=/usr/local/share/emacs/site-lisp install
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
49 @end example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
50
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
51 to install.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
52
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
53 If you want to install AUC @TeX{} in your personal account, you should
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
54 chose a directory for all your emacs add-ons, for example an
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
55 @file{elisp} subdirectory in your home directory. You can then install
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
56 AUC @TeX{} with the commands
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
57
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
58 @example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
59 make
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
60 make lispdir=$HOME/elisp install
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
61 @end example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
62
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
63 You will then need to add the following lines to your @file{.emacs}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
64 file:
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
65
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
66 @example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
67 (setq load-path (cons "~/elisp" load-path))
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
68 (require 'tex-site)
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
69 @end example
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
70
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
71 @section Customizing
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
72
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
73 Next, you should edit the file @file{tex-site.el} to fit your local
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
74 site. You do this by looking at the customization section in the
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
75 beginning of @file{tex.el} and copy the definitions that are wrong for
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
76 your site to @file{tex-site.el}. Do @emph{not} edit @file{tex.el}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
77 directly, or you will have to do all the work over again when you
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
78 upgrade AUC @TeX{}. AUC @TeX{} will not overwrite your old
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
79 @file{tex-site.el} file next time you install, so you will be able to
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
80 keep all your customizations.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
81
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
82 There are two variables with a special significance.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
83
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
84 @defopt TeX-lisp-directory
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
85 The directory where you want to install the AUC @TeX{} lisp files.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
86 @end defopt
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
87
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
88 This variable is set automatically by the @code{make install} command.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
89 If you don't issue a @code{make install}, for example if you don't want
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
90 to install AUC @TeX{} in a different place, you will have to set this
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
91 variable manually to the location of the compiled files.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
92
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
93 @defopt TeX-macro-global
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
94 Directories containing the site's @TeX{} style files.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
95 @end defopt
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
96
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
97 Normally, AUC @TeX{} will only allow you to complete a short list of
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
98 build-in macros and environments and on the macros you define yourself.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
99 If you issue the @kbd{M-x TeX-auto-generate-global} command after
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
100 loading AUC @TeX{}, you will be able to complete on all macros available
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
101 in the standard style files used by your document. To do this, you must
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
102 set this variable to a list of directories where the standard style
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
103 files are located. The directories will be searched recursively, so
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
104 there is no reason to list subsirectories explicitly.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
105
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
106 You probably also need to change @code{TeX-command-list} to make sure
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
107 that the commands used for starting @TeX{}, printing, etc. work on your
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
108 system. Copy the definition from @file{tex.el} to @file{tex-site.el}
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
109 and edit the command names appropriately.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
110 @vindex TeX-command-list
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
111
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
112 Finally, copy and edit @code{TeX-printer-list} to contain the printers
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
113 available at your site.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
114 @vindex TeX-printer-list
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
115
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
116 To extract information from your sites @TeX{} macros, type @kbd{M-x
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
117 TeX-auto-generate-global} in your emacs. This will only work if you
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
118 have set @code{TeX-macro-global} correctly in @file{tex-site.el}.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
119
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
120 @section Contributed files
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
121
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
122 There are several files that are not part of AUC @TeX{} proper, but
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
123 included in the distribution in case they are useful.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
124
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
125 @table @file
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
126 @item hilit-LaTeX.el
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
127 Better highlighting for the obsolete @file{hilit19} package.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
128
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
129 @item font-latex.el
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
130 Better highlighting for the @sc{font-lock} package.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
131
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
132 @item bib-cite.el
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
133 Better support for bibliographies and much more.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
134
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
135 @item tex-jp.el
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
136 Support for Japanese.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
137
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
138 @item func-doc.el
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
139 Support for context sensitive online help for various languages.
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
140
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
141 @end table
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
142
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
143 Read the comments in the start of each file for more information about
4103f0995bd7 Import from CVS: tag r19-15b95
cvs
parents:
diff changeset
144 how to install, what they do, and who wrote and maintains them.