;;; tex-site.el - Site specific variables. ;; Copyright (C) 1991, 2000, 2001 Kresten Krab Thorup ;; Copyright (C) 1993, 1994, 1997, 1999 Per Abrahamsen ;; Author: Per Abrahamsen ;; Maintainer: Per Abrahamsen ;; Version: 10.0g ;; Keywords: wp ;; This program is free software; you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation; either version 2, or (at your option) ;; any later version. ;; ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; ;; You should have received a copy of the GNU General Public License ;; along with this program; if not, write to the Free Software ;; Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. ;;; Commentary: ;; This file contains variables customized for the local site. ;; It also contains all necessary autoloads, so the user can simple ;; enable AUC TeX by putting (load "tex-site") in his .emacs file, ;; or the administrator can insert it in the site-start.el file. ;; ;; The ideal place for this file is in the `site-lisp' directory. ;;; Code: (when (< emacs-major-version 20) (error "AUC TeX requires Emacs 20 or later")) (defvar no-doc "This function is part of AUC TeX, but has not yet been loaded. Full documentation will be available after autoloading the function." "Documentation for autoload functions.") ;;; Customization: ;; ;; Copy variables you need to change from the start of `tex.el' and ;; insert them here. ;; Change this to point to the place where the TeX macros are stored ;; at yourt site. (defcustom TeX-macro-global '("/usr/share/texmf/tex/") "Directories containing the sites TeX macro files and style files. The directory names *must* end with a slash." :group 'TeX-file :type '(repeat (directory :format "%v"))) ;; This is the major configuration variable. Most sites will only ;; need to change the second string in each entry, which is the name ;; of a command to send to the shell. If you use other formatters ;; like AMSLaTeX or AMSTeX, you can add those to the list. See ;; TeX-expand-list for a description of the % escapes (defcustom TeX-command-list ;; You may have to remove the single quotes around the command ;; arguments if you use DOS. (list (list "TeX" "tex '\\nonstopmode\\input %t'" 'TeX-run-TeX nil t) (list "TeX Interactive" "tex %t" 'TeX-run-interactive nil t) (list "LaTeX" "%l '\\nonstopmode\\input{%t}'" 'TeX-run-LaTeX nil t) (list "LaTeX Interactive" "%l %t" 'TeX-run-interactive nil t) (if (or window-system (getenv "DISPLAY")) (list "View" "%v " 'TeX-run-silent t nil) (list "View" "dvi2tty -q -w 132 %s " 'TeX-run-command t nil)) (list "Print" "%p " 'TeX-run-command t nil) (list "Queue" "%q" 'TeX-run-background nil nil) (list "File" "dvips %d -o %f " 'TeX-run-command t nil) (list "BibTeX" "bibtex %s" 'TeX-run-BibTeX nil nil) (list "Index" "makeindex %s" 'TeX-run-command nil t) ;; (list "Check" "chktex -v3 %s" 'TeX-run-compile nil t) ;; Uncomment the above line and comment out the next line to ;; use `chktex' instead of `lacheck'. (list "Check" "lacheck %s" 'TeX-run-compile nil t) (list "Spell" "" 'TeX-run-ispell-on-document nil nil) (list "Other" "" 'TeX-run-command t t) ;; Not part of standard TeX. (list "LaTeX PDF" "pdflatex '\\nonstopmode\\input{%t}'" 'TeX-run-LaTeX nil t) (list "Makeinfo" "makeinfo %t" 'TeX-run-compile nil t)) "List of commands to execute on the current document. Each element is a list, whose first element is the name of the command as it will be presented to the user. The second element is the string handed to the shell after being expanded. The expansion is done using the information found in TeX-expand-list. The third element is the function which actually start the process. Several such hooks has been defined: TeX-run-command: Start up the process and show the output in a separate buffer. Check that there is not two commands running for the same file. Return the process object. TeX-run-format: As TeX-run-command, but assume the output is created by a TeX macro package. Return the process object. TeX-run-TeX: For TeX output. TeX-run-LaTeX: For LaTeX output. TeX-run-interactive: Run TeX or LaTeX interactively. TeX-run-BibTeX: For BibTeX output. TeX-run-compile: Use `compile' to run the process. TeX-run-shell: Use `shell-command' to run the process. TeX-run-discard: Start the process in the background, discarding its output. TeX-run-background: Start the process in the background, show output in other window. TeX-run-silent: Start the process in the background. TeX-run-dviout: Special hook for the Japanese dviout previewer for PC-9801. To create your own hook, define a function taking three arguments: The name of the command, the command string, and the name of the file to process. It might be useful to use TeX-run-command in order to create an asynchronous process. If the fourth element is non-nil, the user will get a chance to modify the expanded string. The fifth element is obsolete and ignored." :group 'TeX-command :type '(repeat (group (string :tag "Name") (string :tag "Command") (choice :tag "How" :value TeX-run-command (function-item TeX-run-command) (function-item TeX-run-format) (function-item TeX-run-TeX) (function-item TeX-run-LaTeX) (function-item TeX-run-interactive) (function-item TeX-run-BibTeX) (function-item TeX-run-compile) (function-item TeX-run-shell) (function-item TeX-run-discard) (function-item TeX-run-background) (function-item TeX-run-silent) (function-item TeX-run-dviout) (function :tag "Other")) (boolean :tag "Prompt") (sexp :format "End\n")))) ;; Enter the names of the printers available at your site, or nil if ;; you only have one printer. (defcustom TeX-printer-list '(("Local" "dvips -f %s | lpr" "lpq")) "List of available printers. The first element of each entry is the printer name. The second element is the command used to print to this printer. It defaults to the value of TeX-print-command. The third element is the command used to examine the print queue for this printer. It defaults to the value of TeX-queue-command. Any occurence of `%p' in the second or third element is expanded to the printer name given in the first element, then ordinary expansion is performed as specified in TeX-expand-list." :group 'TeX-command :type '(repeat (group (string :tag "Name") (option (group :inline t :extra-offset -4 (choice :tag "Print" (const :tag "default") (string :format "%v")) (option (choice :tag "Queue" (const :tag "default") (string :format "%v")))))))) ;;; Autoloads: ;; This hook will store bibitems when you save a BibTeX buffer. (add-hook 'bibtex-mode-hook 'BibTeX-auto-store) (autoload 'BibTeX-auto-store "latex" no-doc t) (autoload 'tex-mode "tex" no-doc t) (autoload 'plain-tex-mode "tex" no-doc t) (autoload 'ams-tex-mode "tex" no-doc t) (autoload 'TeX-auto-generate "tex" no-doc t) (autoload 'TeX-auto-generate-global "tex" no-doc t) (autoload 'TeX-insert-quote "tex" no-doc t) (autoload 'TeX-submit-bug-report "tex" no-doc t) (autoload 'japanese-plain-tex-mode "tex-jp" no-doc t) (autoload 'japanese-latex-mode "tex-jp" no-doc t) (autoload 'japanese-slitex-mode "tex-jp" no-doc t) ;;(autoload 'texinfo-mode "tex-info" no-doc t) (autoload 'latex-mode "latex" no-doc t) (when (memq system-type '(windows-nt)) ;; Try to make life easy for MikTeX users. (require 'tex-mik)) (provide 'tex-site) ;;; tex-site.el ends here