AUCTeX on Linuxu -- nejak ho nedokazu presvedcit, aby nastartoval

Matej Cepl cepl.m na
Středa Květen 29 01:30:19 CEST 2002

Dobrý den,

musím bohužel nastartovat Emacs (kvůli AUCTeXu), ale nějak se mi
nevede. Mám Emacs 20.7 a auctex 10.0g (oboje
z, ale nejak mi to nefacha. Tohle je vystup
debuggeru z emacs --debug-init

Signaling: (invalid-read-syntax ")")
  eval-buffer(#<buffer  *load*<2>> nil "tex-site")
  load-with-code-conversion("/usr/share/emacs/site-lisp/auctex/tex-site.el" "tex-site" nil t)
  eval-buffer(#<buffer  *load*> nil "~/.emacs")
  load-with-code-conversion("/home/matej/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "…S 	Ć=ƒ ÇČQ‚5 	É=ƒ' ĘÇËĚ#ƒ# ͂5 ΂5 	Ď=ƒ1 Ђ5 ÇŃQŇÓ\n҉#ˆŇ=ƒF Ë\f†R ËÓÔ҉#))‡" [init-file-user system-type user-init-file-1 user-init-file inhibit-default-init inhibit-startup-message ms-dos "~" "/_emacs" windows-nt directory-files nil "^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "~/_emacs" vax-vms "sys$login:.emacs" "/.emacs" t load "default"] 4]()

a prilkladam .emacs a tex-site.el

Diky za jakoukoli radu

Matej Cepl, cepl.m na
138 Highland Ave. #10, Somerville, Ma 02143, (617) 623-1488
I love deadlines. I like the whooshing sound they make as they
fly by.
    -- Douglas Adams

(set-language-environment "Czech")
(setq ispell-program-name "ispell")

(setq auto-mode-alist:
      (append '(("\\.thm\\'" . sgml-mode)) auto-mode-alist))
(setq auto-mode-alist:
      (append '(("\\.ltb\\'" . latex-mode)) auto-mode-alist))

(global-set-key [delete] 'delete-char)

(setq text-mode-hook
      '(lambda () (auto-fill-mode 1)))
(setq-default fill-column 65)

;(set-scroll-bar-mode 'right)
(setq inhibit-startup-message t)

(global-font-lock-mode t)
(autoload 'turn-on-lazy-lock "lazy-lock"
  "Unconditionally turn on Lazy Lock mode.")
(add-hook 'font-lock-mode-hook 'turn-on-lazy-lock)
(setq lazy-lock-minimum-size (* 64 1024))
(setq lazy-lock-stealth-time 16)
(setq lazy-lock-defer-time 0.15)
(setq lazy-lock-stealth-nice 1)
(setq lazy-lock-stealth-lines 60)
(setq font-lock-maximum-size nil)  ; appropriate with lazy-lock


 '(tex-dvi-view-command "xdvi"))

(require 'tex-site)
(add-hook 'LaTeX-mode-hook 'turn-on-reftex)
(setq-default TeX-master nil)
(setq TeX-parse-self t)
(require 'chktex)

;(add-hook 'latex-mode-hook 'turn-on-reftex)



(put 'upcase-region 'disabled nil)


;;; tex.el --- Support for TeX documents.

;; Maintainer: Per Abrahamsen <auc-tex na>
;; Version: 10.0g
;; Keywords: wp
;; X-URL:

;; Copyright (C) 1985, 1986, 2000, 2001 Free Software Foundation, Inc.
;; Copyright (C) 1987 Lars Peter Fischer
;; Copyright (C) 1991 Kresten Krab Thorup
;; Copyright (C) 1993, 1994, 1996, 1997, 1999 Per Abrahamsen 
;; 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
;; 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.

;;; Code:

;;; Site Customization
;; The following variables are likely to need to be changed for your
;; site.  It is suggested that you do this by *not* changing this
;; file, but instead copy those definitions you need to change to
;; `tex-site.el'. 

(defvar TeX-lisp-directory '("/usr/share/emacs/site-lisp/auctex/"))
  "The directory where the AUC TeX Lisp files are located."
  :group 'TeX-file
  :type 'directory)

; (defcustom TeX-lisp-directory '("/usr/share/emacs/site-lisp/auctex/"))
;   "The directory where the AUC TeX Lisp files are located."
;   :group 'TeX-file
;   :type 'directory)

;; 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")))

;; How to print.

;; 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)
	(list "LaTeX2e" "latex2e '\\nonstopmode\\input{%t}'"
	      'TeX-run-LaTeX 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" "<ignored>" '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 "Makeinfo HTML" "makeinfo --html %t" 'TeX-run-compile nil t)
	(list "AmSTeX" "amstex '\\nonstopmode\\input %t'"
	      'TeX-run-TeX 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

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

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

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"))))

;;; tex-XSsize.el ends here

Další informace o konferenci Linux