annotate lisp/auctex/tex-jp.el @ 138:6608ceec7cf8 r20-2b3

Import from CVS: tag r20-2b3
author cvs
date Mon, 13 Aug 2007 09:31:46 +0200
parents 360340f9fd5f
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1 ;;; tex-jp.el - Support for Japanese TeX.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
3 ;;; Code:
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
4
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
5 (require 'latex)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
6
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
7 ;;; Customization
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
8
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
9 (setq TeX-format-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
10 (append '(("JLATEX" japanese-latex-mode
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
11 "\\\\\\(\\\\documentstyle[^%\n]*{j\\|\\\\documentclass[^%\n]*{j\\)")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
12 ("JTEX" japanese-plain-tex-mode
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
13 "-- string likely in Japanese TeX --"))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
14 TeX-format-list))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
15
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
16 (setq TeX-command-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
17 (append (list (list "jTeX" "jtex '\\nonstopmode\\input %t'"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
18 'TeX-run-TeX nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
19 (list "pTeX" "ptex '\\nonstopmode\\input %t'"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
20 'TeX-run-TeX nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
21 (list "jBibTeX" "jbibtex %s" 'TeX-run-BibTeX nil nil))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
22 TeX-command-list))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
23
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
24 (setq LaTeX-command-style
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
25 (append (if (string-equal LaTeX-version "2")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
26 '(("^ams" "amsjlatex")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
27 ("^jslides$" "jslitex")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
28 ("^j-?\\(article\\|report\\|book\\)$" "jlatex"))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
29 '(("^j-\\(article\\|report\\|book\\)$" "jlatex")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
30 ("^j\\(article\\|report\\|book\\)$" "platex")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
31 ("." "jlatex")))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
32 LaTeX-command-style))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
33
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
34 (setcdr (assoc "%l" TeX-expand-list)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
35 (list 'TeX-style-check LaTeX-command-style))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
36
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
37 (defvar japanese-TeX-error-messages t
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
38 "If non-nil, explain TeX error messages in Japanese.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
39
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
40 (if (or (boundp 'MULE)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
41 (featurep 'mule))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
42 (if (string-match "XEmacs" emacs-version)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
43 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
44 (defvar TeX-japanese-process-input-coding-system
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
45 (find-coding-system 'euc-japan)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
46 "TeX-process' coding system with standard input.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
47 (defvar TeX-japanese-process-output-coding-system
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
48 (find-coding-system 'junet)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
49 "TeX-process' coding system with standard output."))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
50 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
51 (defvar TeX-japanese-process-input-coding-system *euc-japan*
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
52 "TeX-process' coding system with standard input.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
53 (defvar TeX-japanese-process-output-coding-system *junet*
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
54 "TeX-process' coding system with standard output."))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
55
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
56 (if (boundp 'NEMACS)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
57 (defvar TeX-process-kanji-code 2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
58 "TeX-process' kanji code with standard I/O.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
59 0:No-conversion 1:Shift-JIS 2:JIS 3:EUC/AT&T/DEC"))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
60
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
61 (defvar japanese-LaTeX-default-style "j-article"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
62 "*Default when creating new Japanese documents.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
63 (make-variable-buffer-local 'japanese-LaTeX-default-style)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
64
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
65 (defvar japanese-LaTeX-style-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
66 '(("book")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
67 ("article")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
68 ("letter")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
69 ("slides")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
70 ("report")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
71 ("jbook")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
72 ("j-book")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
73 ("jarticle")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
74 ("j-article")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
75 ("jslides")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
76 ("jreport")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
77 ("j-report"))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
78 "*List of Japanese document styles.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
79 (make-variable-buffer-local 'japanese-LaTeX-style-list)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
80
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
81 ;;; Coding system
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
82
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
83 (if (boundp 'MULE)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
84 (setq TeX-after-start-process-function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
85 (function (lambda (process)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
86 (set-process-coding-system
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
87 process
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
88 TeX-japanese-process-input-coding-system
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
89 TeX-japanese-process-output-coding-system)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
90 (if (boundp 'NEMACS)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
91 (setq TeX-after-start-process-function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
92 (function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
93 (lambda (process)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
94 (set-process-kanji-code process TeX-process-kanji-code)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
95
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
96 (if (and (string-match "XEmacs" emacs-version)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
97 (featurep 'mule))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
98 (setq TeX-after-start-process-function
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
99 (function (lambda (process)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
100 (set-process-input-coding-system
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
101 process
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
102 TeX-japanese-process-input-coding-system)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
103 (set-process-output-coding-system
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
104 process
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
105 TeX-japanese-process-output-coding-system)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
106
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
107 ;;; Japanese Parsing
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
108
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
109 (if (or (boundp 'MULE)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
110 (featurep 'mule))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
111 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
112
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
113 (defconst LaTeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
114 (append
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
115 '(("\\\\newcommand{?\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)}?\\[\\([0-9]+\\)\\]\
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
116 \\[\\([^\]\\\\\n\r]+\\)\\]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
117 (1 3 4) LaTeX-auto-optional)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
118 ("\\\\newcommand{?\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)}?\\[\\([0-9]+\\)\\]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
119 (1 3) LaTeX-auto-arguments)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
120 ("\\\\newcommand{?\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)}?" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
121 ("\\\\newenvironment{?\\(\\([a-zA-Z]\\|\\cj\\)+\\)}?\\[\\([0-9]+\\)\\]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
122 (1 3) LaTeX-auto-env-args)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
123 ("\\\\newenvironment{?\\(\\([a-zA-Z]\\|\\cj\\)+\\)}?" 1 LaTeX-auto-environment)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
124 ("\\\\newtheorem{\\(\\([a-zA-Z]\\|\\cj\\)+\\)}" 1 LaTeX-auto-environment)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
125 ("\\\\input{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
126 1 TeX-auto-file)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
127 ("\\\\include{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
128 1 TeX-auto-file)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
129 ("\\\\usepackage\\(\\[[^\]\\\\]*\\]\\)?\
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
130 {\\(\\([^#}\\\\\\.%]\\|%[^\n\r]*[\n\r]\\)+\\)}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
131 (2) LaTeX-auto-style)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
132 ("\\\\bibitem{\\(\\([a-zA-Z]\\|\\cj\\)[^, \n\r\t%\"#'()={}]*\\)}" 1 LaTeX-auto-bibitem)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
133 ("\\\\bibitem\\[[^][\n\r]+\\]{\\(\\([a-zA-Z]\\|\\cj\\)[^, \n\r\t%\"#'()={}]*\\)}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
134 1 LaTeX-auto-bibitem)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
135 ("\\\\bibliography{\\([^#}\\\\\n\r]+\\)}" 1 LaTeX-auto-bibliography))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
136 LaTeX-auto-label-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
137 LaTeX-auto-minimal-regexp-list)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
138 "List of regular expression matching common LaTeX macro definitions.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
139
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
140 (defconst plain-TeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
141 '(("\\\\def\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)[^a-zA-Z@]" 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
142 TeX-auto-symbol-check)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
143 ("\\\\let\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)[^a-zA-Z@]" 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
144 TeX-auto-symbol-check)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
145 ("\\\\font\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)[^a-zA-Z@]" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
146 ("\\\\chardef\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)[^a-zA-Z@]" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
147 ("\\\\new\\(count|dimen|muskip|skip\\)\\\\\\(\\([a-z]\\|\\cj\\)+\\)[^a-zA-Z@]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
148 2 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
149 ("\\\\newfont{?\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)}?" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
150 ("\\\\typein\\[\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)\\]" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
151 ("\\\\input +\\(\\.*[^#%\\\\\\.\n\r]+\\)\\(\\.[^#%\\\\\\.\n\r]+\\)?"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
152 1 TeX-auto-file)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
153 ("\\\\mathchardef\\\\\\(\\([a-zA-Z]\\|\\cj\\)+\\)[^a-zA-Z@]" 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
154 TeX-auto-symbol))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
155 "List of regular expression matching common LaTeX macro definitions.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
156
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
157 (defconst BibTeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
158 '(("@[Ss][Tt][Rr][Ii][Nn][Gg]" 1 ignore)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
159 ("@[a-zA-Z]+[{(][ \t]*\\(\\([a-zA-Z]\\|\\cj\\)[^, \n\r\t%\"#'()={}]*\\)"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
160 1 LaTeX-auto-bibitem))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
161 "List of regexp-list expressions matching BibTeX items.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
162
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
163 ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
164
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
165 (if (boundp 'NEMACS)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
166 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
167
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
168 (defconst LaTeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
169 (append
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
170 '(("\\\\newcommand{?\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)}?\\[\\([0-9]+\\)\\]\
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
171 \\[\\([^\]\\\\\n\r]+\\)\\]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
172 (1 3 4) LaTeX-auto-optional)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
173 ("\\\\newcommand{?\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)}?\\[\\([0-9]+\\)\\]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
174 (1 3) LaTeX-auto-arguments)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
175 ("\\\\newcommand{?\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)}?" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
176 ("\\\\newenvironment{?\\(\\([a-zA-Z]\\|\\z\\)+\\)}?\\[\\([0-9]+\\)\\]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
177 (1 3) LaTeX-auto-env-args)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
178 ("\\\\newenvironment{?\\(\\([a-zA-Z]\\|\\z\\)+\\)}?" 1 LaTeX-auto-environment)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
179 ("\\\\newtheorem{\\(\\([a-zA-Z]\\|\\z\\)+\\)}" 1 LaTeX-auto-environment)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
180 ("\\\\input{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
181 1 TeX-auto-file)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
182 ("\\\\include{\\(\\.*[^#}%\\\\\\.\n\r]+\\)\\(\\.[^#}%\\\\\\.\n\r]+\\)?}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
183 1 TeX-auto-file)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
184 ("\\\\usepackage\\(\\[[^\]\\\\]*\\]\\)?\
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
185 {\\(\\([^#}\\\\\\.%]\\|%[^\n\r]*[\n\r]\\)+\\)}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
186 (2) LaTeX-auto-style)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
187 ("\\\\bibitem{\\(\\([a-zA-Z]\\|\\z\\)[^, \n\r\t%\"#'()={}]*\\)}" 1 LaTeX-auto-bibitem)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
188 ("\\\\bibitem\\[[^][\n\r]+\\]{\\(\\([a-zA-Z]\\|\\z\\)[^, \n\r\t%\"#'()={}]*\\)}"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
189 1 LaTeX-auto-bibitem)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
190 ("\\\\bibliography{\\([^#}\\\\\n\r]+\\)}" 1 LaTeX-auto-bibliography))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
191 LaTeX-auto-label-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
192 LaTeX-auto-minimal-regexp-list)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
193 "List of regular expression matching common LaTeX macro definitions.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
194
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
195 (defconst plain-TeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
196 '(("\\\\def\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)[^a-zA-Z@]" 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
197 TeX-auto-symbol-check)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
198 ("\\\\let\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)[^a-zA-Z@]" 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
199 TeX-auto-symbol-check)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
200 ("\\\\font\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)[^a-zA-Z@]" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
201 ("\\\\chardef\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)[^a-zA-Z@]" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
202 ("\\\\new\\(count|dimen|muskip|skip\\)\\\\\\(\\([a-z]\\|\\z\\)+\\)[^a-zA-Z@]"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
203 2 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
204 ("\\\\newfont{?\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)}?" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
205 ("\\\\typein\\[\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)\\]" 1 TeX-auto-symbol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
206 ("\\\\input +\\(\\.*[^#%\\\\\\.\n\r]+\\)\\(\\.[^#%\\\\\\.\n\r]+\\)?"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
207 1 TeX-auto-file)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
208 ("\\\\mathchardef\\\\\\(\\([a-zA-Z]\\|\\z\\)+\\)[^a-zA-Z@]" 1
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
209 TeX-auto-symbol))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
210 "List of regular expression matching common LaTeX macro definitions.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
211
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
212 (defconst BibTeX-auto-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
213 '(("@[Ss][Tt][Rr][Ii][Nn][Gg]" 1 ignore)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
214 ("@[a-zA-Z]+[{(][ \t]*\\(\\([a-zA-Z]\\|\\z\\)[^, \n\r\t%\"#'()={}]*\\)"
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
215 1 LaTeX-auto-bibitem))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
216 "List of regexp-list expressions matching BibTeX items.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
217
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
218 ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
219
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
220 (defconst TeX-auto-full-regexp-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
221 (append LaTeX-auto-regexp-list plain-TeX-auto-regexp-list)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
222 "Full list of regular expression matching TeX macro definitions.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
223
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
224 ;;; Japanese TeX modes
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
225
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
226 (defvar japanese-TeX-mode nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
227 "Flag to determine if Japanese initialization is needed.")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
228
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
229 (add-hook 'plain-TeX-mode-hook 'japanese-plain-tex-mode-initialization)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
230
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
231 ;;;###autoload
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
232 (defun japanese-plain-tex-mode ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
233 "Major mode for editing files of input for Japanese plain TeX.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
234 Set japanese-TeX-mode to t, and enters plain-tex-mode."
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
235 (interactive)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
236 (setq japanese-TeX-mode t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
237 (plain-tex-mode))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
238
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
239 (defun japanese-plain-tex-mode-initialization ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
240 "Japanese plain-TeX specific initializations."
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
241 (if japanese-TeX-mode
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
242 (setq TeX-command-default "jTeX")))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
243
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
244 (add-hook 'LaTeX-mode-hook 'japanese-latex-mode-initialization)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
245
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
246 ;;;###autoload
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
247 (defun japanese-latex-mode ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
248 "Major mode for editing files of input for Japanese plain TeX.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
249 Set japanese-TeX-mode to t, and enters latex-mode."
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
250 (interactive)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
251 (setq japanese-TeX-mode t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
252 (latex-mode))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
253
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
254 (defun japanese-latex-mode-initialization ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
255 "Japanese LaTeX specific initializations."
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
256 (if japanese-TeX-mode
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
257 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
258 (setq LaTeX-default-style japanese-LaTeX-default-style)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
259 (setq LaTeX-style-list japanese-LaTeX-style-list)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
260 (setq TeX-command-BibTeX "jBibTeX")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
261 (setq japanese-TeX-mode nil))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
262
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
263 ;;; MULE and NEMACS paragraph filling.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
264
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
265 (if (boundp 'MULE)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
266 (if (string-lessp emacs-version "19")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
267 (defun LaTeX-fill-region-as-paragraph (from to &optional justify-flag)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
268 "Fill region as one paragraph: break lines to fit fill-column.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
269 Prefix arg means justify too.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
270 From program, pass args FROM, TO and JUSTIFY-FLAG."
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
271 (interactive "*r\nP")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
272 (save-restriction
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
273 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
274 (skip-chars-forward "\n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
275 (LaTeX-indent-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
276 (beginning-of-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
277 (narrow-to-region (point) to)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
278 (setq from (point))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
279
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
280 ;; Delete whitespace at beginning of line from every line,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
281 ;; except the first line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
282 (goto-char (point-min))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
283 (forward-line 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
284 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
285 (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
286 (forward-line 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
287
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
288 ;; Ignore the handling routine related with `fill-prefix'.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
289
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
290 ;; from is now before the text to fill,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
291 ;; but after any fill prefix on the first line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
292
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
293 ;; Make sure sentences ending at end of line get an extra space.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
294 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
295 ;;; patch by S.Tomura 88-Jun-30
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
296 ;;$B!cE}9g!d(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
297 ;; . + CR ==> . + SPC + SPC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
298 ;; . + SPC + CR + ==> . + SPC +
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
299 ;;(while (re-search-forward "[.?!][])""']*$" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
300 ;; (insert ? ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
301 (while (re-search-forward "[.?!][])\"']*$" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
302 (if (eobp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
303 nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
304 ;; replace CR by two spaces.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
305 (delete-char 1) ; delete newline
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
306 (insert " ")))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
307 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
308 ;; The change all newlines to spaces.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
309 ;; patched by S.Tomura 87-Dec-7
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
310 ;; bug fixed by S.Tomura 88-May-25
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
311 ;; modified by S.Tomura 88-Jun-21
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
312 ;;(subst-char-in-region from (point-max) ?\n ?\ )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
313 ;; modified by K.Handa 92-Mar-2
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 100
diff changeset
314 ;; Spacing is not necessary for characters of no word-separator.
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
315 ;; The regexp word-across-newline is used for this check.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
316 (if (not (stringp word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
317 (subst-char-in-region from (point-max) ?\n ?\ )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
318 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
319 (end-of-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
320 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
321 (delete-char 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
322 (if (eobp) nil ; 92.6.30 by K.Handa
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
323 (if (not (looking-at word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
324 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
325 (forward-char -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
326 (if (and (not (eq (following-char) ? ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
327 (not (looking-at word-across-newline)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
328 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
329 (forward-char 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
330 (insert ? ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
331 (forward-char 1))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
332 (end-of-line))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
333 ;; After the following processing, there's two spaces at end of sentence
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
334 ;; and single space at end of line within sentence.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
335 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
336 ;; Flush excess spaces, except in the paragraph indentation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
337 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
338 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
339 (while (re-search-forward " *" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
340 (delete-region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
341 (+ (match-beginning 0)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
342 (if (save-excursion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
343 (skip-chars-backward " ])\"'")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
344 (memq (preceding-char) '(?. ?? ?!)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
345 2 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
346 (match-end 0)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
347 (goto-char (point-max))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
348 (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
349 (insert " ")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
350 (goto-char (point-min))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
351 (let ((prefixcol 0)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
352 ;; patch by K.Handa 92-Mar-2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
353 (re-break-point (concat "[ \t\n]\\|" word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
354 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
355 )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
356 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
357 (move-to-column (1+ fill-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
358 (if (eobp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
359 nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
360 ;; patched by S.Tomura 87-Jun-2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
361 ;; Big change by K.Handa 92-Mar-2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
362 ;; Move back to start of word.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
363 ;; (skip-chars-backward "^ \n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
364 ;; (if (if (zerop prefixcol) (bolp) (>= prefixcol (current-column)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
365 ;; ;; Move back over whitespace before the word.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
366 ;; (skip-chars-forward "^ \n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
367 ;; ;; Normally, move back over the single space between the words.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
368 ;; (forward-char -1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
369
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
370 ;; At first, find breaking point at the left of fill-column,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
371 ;; but after kinsoku-shori, the point may be right of fill-column.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
372 ;; 92.4.15 by K.Handa -- re-search-backward will back to prev line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
373 ;; 92.4.27 by T.Enami -- We might have gone back too much...
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
374 (let ((p (point)) ch)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
375 (re-search-backward re-break-point nil 'mv)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
376 (setq ch (following-char))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
377 (if (or (= ch ? ) (= ch ?\t))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
378 (skip-chars-backward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
379 (forward-char 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
380 (if (<= p (point))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
381 (forward-char -1))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
382 (kinsoku-shori)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
383 ;; Check if current column is at the right of prefixcol.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
384 ;; If not, find break-point at the right of fill-column.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
385 ;; This time, force kinsoku-shori-nobashi.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
386 (if (>= prefixcol (current-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
387 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
388 (move-to-column (1+ fill-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
389 ;; 92.4.15 by K.Handa -- suppress error in re-search-forward
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
390 (re-search-forward re-break-point nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
391 (forward-char -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
392 (kinsoku-shori-nobashi))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
393 ;; end of patch S.Tomura
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
394
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
395 ;; Replace all whitespace here with one newline.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
396 ;; Insert before deleting, so we don't forget which side of
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
397 ;; the whitespace point or markers used to be on.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
398 ;; patch by S. Tomura 88-Jun-20
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
399 ;; 92.4.27 by K.Handa
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
400 (skip-chars-backward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
401 (if mc-flag
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
402 ;; $B!cJ,3d!d(B WAN means chars which match word-across-newline.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
403 ;; (0) | SPC + SPC* <EOB> --> NL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
404 ;; (1) WAN | SPC + SPC* --> WAN + SPC + NL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
405 ;; (2) | SPC + SPC* + WAN --> SPC + NL + WAN
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
406 ;; (3) '.' | SPC + nonSPC --> '.' + SPC + NL + nonSPC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
407 ;; (4) '.' | SPC + SPC --> '.' + NL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
408 ;; (5) | SPC* --> NL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
409 (let ((start (point)) ; 92.6.30 by K.Handa
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
410 (ch (following-char)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
411 (if (and (= ch ? )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
412 (progn ; not case (0) -- 92.6.30 by K.Handa
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
413 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
414 (not (eobp)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
415 (or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
416 (progn ; case (1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
417 (goto-char start)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
418 (forward-char -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
419 (looking-at word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
420 (progn ; case (2)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
421 (goto-char start)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
422 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
423 (and (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
424 (looking-at word-across-newline)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
425 (progn ; case (3)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
426 (goto-char (1+ start))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
427 (and (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
428 (/= (following-char) ? )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
429 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
430 (skip-chars-backward " ])\"'")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
431 (memq (preceding-char) '(?. ?? ?!)))))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
432 ;; We should keep one SPACE before NEWLINE. (1),(2),(3)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
433 (goto-char (1+ start))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
434 ;; We should delete all SPACES around break point. (4),(5)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
435 (goto-char start))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
436 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
437 (if (equal (preceding-char) ?\\)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
438 (insert ? ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
439 (insert ?\n)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
440 (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
441
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
442 ;; Ignore the handling routine related with `fill-prefix'.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
443
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
444 (LaTeX-indent-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
445 (setq prefixcol (current-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
446 ;; Justify the line just ended, if desired.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
447 (and justify-flag (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
448 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
449 (forward-line -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
450 (justify-current-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
451 (forward-line 1)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
452 )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
453 (goto-char (point-max))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
454 (delete-horizontal-space))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
455 (defun LaTeX-fill-region-as-paragraph (from to &optional justify-flag)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
456 "Fill region as one paragraph: break lines to fit fill-column.\n\
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
457 Prefix arg means justify too.\n\
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
458 From program, pass args FROM, TO and JUSTIFY-FLAG."
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
459 (interactive "*r\nP")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
460 (save-restriction
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
461 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
462 (skip-chars-forward " \n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
463 (LaTeX-indent-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
464 (beginning-of-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
465 (narrow-to-region (point) to)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
466 (setq from (point))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
467
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
468 ;; Delete whitespace at beginning of line from every line,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
469 ;; except the first line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
470 (goto-char (point-min))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
471 (forward-line 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
472 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
473 (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
474 (forward-line 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
475
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
476 ;; from is now before the text to fill,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
477 ;; but after any fill prefix on the first line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
478
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
479 ;; Make sure sentences ending at end of line get an extra space.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
480 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
481 ;; patch by S.Tomura 88-Jun-30
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
482 ;;$B!cE}9g!d(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
483 ;; . + CR ==> . + SPC + SPC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
484 ;; . + SPC + CR + ==> . + SPC +
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
485 ;; (while (re-search-forward "[.?!][])\"']*$" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
486 ;; (insert ? ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
487 (while (re-search-forward "[.?!][])}\"']*$" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
488 (if (eobp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
489 nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
490 ;; replace CR by two spaces.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
491 ;; insert before delete to preserve marker.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
492 (insert " ")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
493 ;; delete newline
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
494 (delete-char 1)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
495 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
496 ;; The change all newlines to spaces.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
497 ;; (subst-char-in-region from (point-max) ?\n ?\ )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
498 ;; patched by S.Tomura 87-Dec-7
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
499 ;; bug fixed by S.Tomura 88-May-25
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
500 ;; modified by S.Tomura 88-Jun-21
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
501 ;; modified by K.Handa 92-Mar-2
108
360340f9fd5f Import from CVS: tag r20-1b6
cvs
parents: 100
diff changeset
502 ;; Spacing is not necessary for characters of no word-separator.
100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
503 ;; The regexp word-across-newline is used for this check.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
504 (if (not (stringp word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
505 (subst-char-in-region from (point-max) ?\n ?\ )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
506 ;;
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
507 ;; WAN +NL+WAN --> WAN + WAN
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
508 ;; not(WAN)+NL+WAN --> not(WAN) + WAN
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
509 ;; WAN +NL+not(WAN) --> WAN + not(WAN)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
510 ;; SPC +NL+not(WAN) --> SPC + not(WAN)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
511 ;; not(WAN)+NL+not(WAN) --> not(WAN) + SPC + not(WAN)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
512 ;;
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
513 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
514 (end-of-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
515 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
516 ;; 92.8.26 , 92.8.30 by S. Tomura
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
517
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
518 ;; Insert SPC only when point is between nonWAN. Insert
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
519 ;; before deleting to preserve marker if possible.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
520 (if (or (prog2 ; check following char.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
521 (forward-char) ; skip newline
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
522 (or (eobp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
523 (looking-at word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
524 (forward-char -1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
525 (prog2 ; check previous char.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
526 (forward-char -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
527 (or (eq (following-char) ?\ )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
528 (looking-at word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
529 (forward-char)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
530 nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
531 (insert ?\ ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
532 (delete-char 1) ; delete newline
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
533 (end-of-line)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
534 ;; Flush excess spaces, except in the paragraph indentation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
535 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
536 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
537 (while (re-search-forward " *" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
538 (delete-region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
539 (+ (match-beginning 0)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
540 (if (save-excursion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
541 (skip-chars-backward " ])\"'")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
542 (memq (preceding-char) '(?. ?? ?!)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
543 2 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
544 (match-end 0)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
545 (goto-char (point-max))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
546 (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
547 (insert " ")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
548 (goto-char (point-min))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
549 (let ((prefixcol 0) linebeg
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
550 ;; patch by K.Handa 92-Mar-2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
551 (re-break-point (concat "[ \n]\\|" word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
552 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
553 )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
554 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
555 (setq linebeg (point))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
556 (move-to-column (1+ fill-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
557 (if (eobp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
558 nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
559 ;;(skip-chars-backward "^ \n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
560 (fill-move-backward-to-break-point re-break-point)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
561 (if sentence-end-double-space
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
562 (while (and (> (point) (+ linebeg 2))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
563 (eq (preceding-char) ?\ )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
564 (not (eq (following-char) ?\ ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
565 (eq (char-after (- (point) 2)) ?\.))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
566 (forward-char -2)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
567 (fill-move-backward-to-break-point re-break-point linebeg)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
568 (kinsoku-shori)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
569 (if (if (zerop prefixcol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
570 (save-excursion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
571 (skip-chars-backward " " linebeg)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
572 (bolp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
573 (>= prefixcol (current-column)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
574 ;; Keep at least one word even if fill prefix exceeds margin.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
575 ;; This handles all but the first line of the paragraph.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
576 ;; Meanwhile, don't stop at a period followed by one space.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
577 (let ((first t))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
578 (move-to-column prefixcol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
579 (while (and (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
580 (or first
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
581 (and (not (bobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
582 sentence-end-double-space
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
583 (save-excursion (forward-char -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
584 (and (looking-at "\\. ")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
585 (not (looking-at "\\. ")))))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
586 (skip-chars-forward " ")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
587 ;; (skip-chars-forward "^ \n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
588 (fill-move-forward-to-break-point re-break-point)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
589 (setq first nil)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
590 ;; Normally, move back over the single space between the words.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
591 (if (eq (preceding-char) ? )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
592 (forward-char -1))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
593 (if mc-flag
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
594 ;; $B!cJ,3d!d(B WAN means chars which match word-across-newline.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
595 ;; (0) | SPC + SPC* <EOB> --> NL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
596 ;; (1) WAN | SPC + SPC* --> WAN + SPC + NL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
597 ;; (2) | SPC + SPC* + WAN --> SPC + NL + WAN
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
598 ;; (3) '.' | SPC + nonSPC --> '.' + SPC + NL + nonSPC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
599 ;; (4) '.' | SPC + SPC --> '.' + NL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
600 ;; (5) | SPC* --> NL
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
601 (let ((start (point)) ; 92.6.30 by K.Handa
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
602 (ch (following-char)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
603 (if (and (= ch ? )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
604 (progn ; not case (0) -- 92.6.30 by K.Handa
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
605 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
606 (not (eobp)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
607 (or
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
608 (progn ; case (1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
609 (goto-char start)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
610 (forward-char -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
611 (looking-at word-across-newline))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
612 (progn ; case (2)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
613 (goto-char start)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
614 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
615 (and (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
616 (looking-at word-across-newline)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
617 ;; never leave space after the end of sentence
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
618 (not (fill-end-of-sentence-p))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
619 (progn ; case (3)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
620 (goto-char (1+ start))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
621 (and (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
622 (/= (following-char) ? )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
623 (fill-end-of-sentence-p)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
624 ;; We should keep one SPACE before NEWLINE. (1),(2),(3)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
625 (goto-char (1+ start))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
626 ;; We should delete all SPACES around break point. (4),(5)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
627 (goto-char start))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
628 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
629 (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
630 (if (equal (preceding-char) ?\\)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
631 (insert ? ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
632 (insert ?\n)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
633 (LaTeX-indent-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
634 (setq prefixcol (current-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
635 (and justify-flag (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
636 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
637 (forward-line -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
638 (justify-current-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
639 (forward-line 1)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
640 )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
641 (goto-char (point-max))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
642 (delete-horizontal-space))))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
643
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
644 (if (boundp 'NEMACS)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
645 (defun LaTeX-fill-region-as-paragraph (from to &optional justify-flag)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
646 "Fill region as one paragraph: break lines to fit fill-column.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
647 Prefix arg means justify too.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
648 From program, pass args FROM, TO and JUSTIFY-FLAG."
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
649 (interactive "r\nP")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
650 (save-restriction
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
651 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
652 (skip-chars-forward " \n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
653 (LaTeX-indent-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
654 (beginning-of-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
655 (narrow-to-region (point) to)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
656 (setq from (point))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
657
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
658 ;; Delete whitespace at beginning of line from every line,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
659 ;; except the first line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
660 (goto-char (point-min))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
661 (forward-line 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
662 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
663 (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
664 (forward-line 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
665
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
666 ;; from is now before the text to fill,
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
667 ;; but after any fill prefix on the first line.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
668
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
669 ;; Make sure sentences ending at end of line get an extra space.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
670 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
671 ;;; patch by S.Tomura 88-Jun-30
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
672 ;;$B!cE}9g!d(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
673 ;; . + CR ==> . + SPC + SPC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
674 ;; . + SPC + CR + ==> . + SPC +
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
675 ;;(while (re-search-forward "[.?!][])""']*$" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
676 ;; (insert ? ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
677 (while (re-search-forward "[.?!][])""']*$" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
678 (if (eobp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
679 nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
680 (delete-char 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
681 (insert " "))) ;; replace CR by two spaces.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
682 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
683 ;; The change all newlines to spaces.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
684 ;; patched by S.Tomura 87-Dec-7
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
685 ;; bug fixed by S.Tomura 88-May-25
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
686 ;; modified by S.Tomura 88-Jun-21
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
687 ;;(subst-char-in-region from (point-max) ?\n ?\ )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
688 ;;$BF|K\8l$N8l$N8e$K$O6uGr$O$J$$!#(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
689 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
690 (end-of-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
691 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
692 (delete-char 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
693 (if (and (< ? (preceding-char)) ;; + SPC + CR + X ==> + SPC + X
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
694 (< (preceding-char) 128)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
695 (<= ? (following-char))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
696 (< (following-char) 128))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
697 (insert ?\ ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
698 (end-of-line))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
699 ;; $B<!$N=hM}$GJ8Kv$K$O(Btwo spaces$B$,$"$j!"$=$l0J30$O(Bsingle space$B$K$J$C$F$$$k!#(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
700 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
701 ;; Flush excess spaces, except in the paragraph indentation.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
702 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
703 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
704 (while (re-search-forward " *" nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
705 (delete-region
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
706 (+ (match-beginning 0)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
707 (if (save-excursion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
708 (skip-chars-backward " ])\"'")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
709 (memq (preceding-char) '(?. ?? ?!)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
710 2 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
711 (match-end 0)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
712 (goto-char from)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
713 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
714 (while (re-search-forward " " nil t)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
715 (if (<= 128 (following-char))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
716 (let ((dummy 0))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
717 (backward-char 1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
718 (if (<= 128 (preceding-char))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
719 (delete-char 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
720 (forward-char 1))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
721 (goto-char (point-max))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
722 (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
723 (insert " ")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
724 (goto-char (point-min))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
725 (let ((prefixcol 0))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
726 (while (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
727 ;; patched by S.Tomura 88-Jun-2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
728 ;;(move-to-column (1+ fill-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
729 (move-to-column fill-column)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
730 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
731 ;; patched by S.Tomura 88-Jun-16, 89-Oct-2, 89-Oct-19
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
732 ;; $B4A;z%3!<%I$N>l9g$K$O(Bfill-column$B$h$jBg$-$/$J$k$3$H$,$"$k!#(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
733 (or (>= fill-column (current-column)) (backward-char 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
734 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
735 (if (eobp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
736 nil
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
737 ;; patched by S.Tomura 87-Jun-2
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
738 ;;(skip-chars-backward "^ \n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
739 ;;(if (if (zerop prefixcol) (bolp) (>= prefixcol (current-column)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
740 ;; (skip-chars-forward "^ \n")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
741 ;; (forward-char -1)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
742 ;; $B86B'$H$7$F(Bfill-column$B$h$j:8B&$KJ,3dE@$rC5$9!#(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
743 ;; Find a point to break lines
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
744 (skip-chars-backward " \t") ;; skip SPC and TAB
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
745 (if (or (<= 128 (preceding-char))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
746 (<= 128 (following-char)) ;; 88-Aug-25
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
747 (= (following-char) ? )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
748 (= (following-char) ?\t))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
749 (kinsoku-shori)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
750 (if(re-search-backward "[ \t\n]\\|\\z" ;; 89-Nov-17
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
751 (point-min) (point-min))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
752 (forward-char 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
753 (skip-chars-backward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
754 (kinsoku-shori))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
755 ;; prifixcol$B$h$j1&B&$KJ,3dE@$rC5$9!#(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
756 ;; $B$3$N>l9g$OJ,3dE@$O(Bfill-column$B$h$j1&B&$K$J$k!#(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
757 (if (>= prefixcol (current-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
758 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
759 (move-to-column prefixcol)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
760 (if (re-search-forward "[ \t]\\|\\z" ;; 89-Nov-17
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
761 (point-max) (point-max))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
762 (backward-char 1))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
763 (skip-chars-backward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
764 (kinsoku-shori)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
765 ;; $B$=$l$bBLL\$J$iJ,3d$rD|$a$k!#(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
766 (if (>= prefixcol (current-column)) (goto-char (point-max))))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
767 ;; end of patch S.Tomura
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
768 ;; patch by S. Tomura 88-Jun-20
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
769 ;;(delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
770 ;;$B!cJ,3d!d(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
771 ;; $BA43Q(B | SPC + SPC$B!v(B --> $BA43Q(B + SPC + CR
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
772 ;; | SPC + SPC* + $BA43Q(B --> SPC + CR + $BA43Q(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
773 ;; . | SPC + SPC + --> . + CR
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
774 ;; . | SPC + nonSPC --> . + SPC + CR + nonSPC
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
775 ;;
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
776 ;; . | $BH>3Q(B --> $BJ,3d$7$J$$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
777 ;; . | $BA43Q(B --> $BJ,3d$7$J$$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
778 (if (not kanji-flag) (delete-horizontal-space)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
779 (let ((start) (end))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
780 (skip-chars-backward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
781 (setq start (point))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
782 (skip-chars-forward " \t")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
783 (setq end (point))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
784 (delete-region start end)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
785 (if (and (not
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
786 (and (save-excursion
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
787 (skip-chars-backward " ])\"'")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
788 (memq (preceding-char) '(?. ?? ?!)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
789 (= end (+ start 2))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
790 (or (and (or (<= 128 (preceding-char))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
791 (<= 128 (following-char)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
792 (< start end)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
793 (not (eobp)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
794 (and (memq (preceding-char) '(?. ?? ?!))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
795 (= (1+ start) end)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
796 (not (eobp)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
797 (insert ? ))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
798 ;; end of patch
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
799 (if (equal (preceding-char) ?\\)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
800 (insert ? ))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
801 (insert ?\n)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
802 (LaTeX-indent-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
803 (setq prefixcol (current-column))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
804 (and justify-flag (not (eobp))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
805 (progn
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
806 (forward-line -1)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
807 (justify-current-line)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
808 (forward-line 1)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
809 )
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
810 (goto-char (point-max))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
811 (delete-horizontal-space)))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
812
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
813 ;;; Support for various self-insert-command
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
814
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
815 (cond ((fboundp 'can-n-egg-self-insert-command)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
816 (fset 'tex-jp-self-insert-command 'can-n-egg-self-insert-command))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
817 ((fboundp 'egg-self-insert-command)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
818 (fset 'tex-jp-self-insert-command 'egg-self-insert-command))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
819 ((fboundp 'canna-self-insert-command)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
820 (fset 'tex-jp-self-insert-command 'canna-self-insert-command))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
821 (t
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
822 (fset 'tex-jp-self-insert-command 'self-insert-command)))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
823
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
824 (defun TeX-insert-punctuation ()
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
825 "Insert point or comma, cleaning up preceding space."
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
826 (interactive)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
827 (if (TeX-looking-at-backward "\\\\/\\(}+\\)" 50)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
828 (replace-match "\\1" t))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
829 (call-interactively 'tex-jp-self-insert-command))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
830
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
831 ;;; Error Messages
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
832
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
833 (if japanese-TeX-error-messages
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
834 (setq TeX-error-description-list
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
835 '(("Bad \\\\line or \\\\vector argument.*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
836 "$B@~$N79$-$r;XDj$9$k!$(B\\line$B$^$?$O(B\\vector$B$N:G=i$N0z?t$,IT@5$G$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
837
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
838 ("Bad math environment delimiter.*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
839 "$B?t<0%b!<%ICf$G?t<0%b!<%I3+;O%3%^%s%I(B\\[$B$^$?$O(B\\($B!$$^$?$O!$?t<0%b!<%I30$G(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
840 $B?t<0%b!<%I=*N;%3%^%s%I(B\\[$B$^$?$O(B\\($B$r(BTeX$B$,8+$D$1$^$7$?!%$3$NLdBj$O!$?t<0%b!<(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
841 $B%I$N%G%j%_%?$,%^%C%A$7$F$$$J$+$C$?$j!$3g8L$N%P%i%s%9$,$H$l$F$$$J$+$C$?$j$9(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
842 $B$k$?$a$K@8$8$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
843
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
844 ("Bad use of \\\\\\\\.*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
845 "\\\\$B%3%^%s%I$,%Q%i%0%i%UCf$K$"$j$^$7$?!%$3$N;H$$$+$?$OL50UL#$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
846 $B$3$N%(%i!<%a%C%;!<%8$O(B\\\\$B$,(Bcentering$B4D6-$d(Bflushing$B4D6-$G;H$o$l$?(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
847 $B;~!$$"$k$$$O(Bcentering/flushing$B@k8@$,M-8z$J$H$3$m$G;H$o$l$?;~$K@8$8$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
848
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
849 ("\\\\begin{[^ ]*} ended by \\\\end{[^ ]*}." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
850 "$BBP1~$9$k(B\\begin$BL?Na$N$J$$(B\\end$BL?Na$r(BLaTeX$B$,8+$D$1$^$7$?!%(B\\end$BL?Na$N4D(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
851 $B6-L>$r4V0c$($?$+!$M>J,$J(B\\begin$BL?Na$,$"$k$+!$(B\\end$BL?Na$r$o$9$l$?$+$N$$$:(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
852 $B$l$+$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
853
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
854 ("Can be used only in preamble." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
855 "$B%W%j%"%s%V%k$G$7$+;H$($J$$(B\\documentstyle$B!&(B\\nofiles$B!&(B\\includeonly
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
856 \\makeindex$B!&(B\\makeglossary$B$N$&$A$N$$$:$l$+$,(B\\begin{document}$B$h$j$b(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
857 $B8e$G;H$o$l$F$$$k$N$r(BLaTeX$B$,8!=P$7$^$7$?!%$3$N%(%i!<$O(B\\begin{document}
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
858 $B$,M>J,$K$"$C$?;~$K$b@8$8$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
859
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
860 ("Command name [^ ]* already used.*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
861 "$B$9$G$KDj5A$5$l$F$$$kL?NaL>$^$?$O4D6-L>$KBP$7$F(B\\newcommand$B!&(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
862 \\newenvironment$B!&(B\\newlength$B!&(B\\newsavebox$B!&(B\\newtheorem$B$N$&$A$N$$$:(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
863 $B$l$+$r<B9T$7$h$&$H$7$F$$$^$9(B($B$"$k4D6-$rDj5A$9$k$HF1$8L>A0$NL?Na$,<+F0(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
864 $BE*$KDj5A$5$l$k$N$G!$4{$KB8:_$9$k4D6-$HF1L>$NL?Na$ODj5A$G$-$^$;$s(B)$B!%?7(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
865 $B$7$$L>A0$r9M$($k$+!$(B\\newcommand$B$+(B\\newenvironment$B$N>l9g$J$iBP1~$9$k(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
866 \\renew...$BL?Na$r;H$o$J$1$l$P$J$j$^$;$s!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
867
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
868 ("Counter too large." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
869 "$BJ8;z$G=g=xIU$1$5$l$?$b$N!$$?$V$sHV9fIU$1$5$l$?%j%9%H4D6-$N%i%Y%k$,!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
870 26$B$h$j$bBg$-$$HV9f$r<u$1<h$j$^$7$?!%Hs>o$KD9$$%j%9%H$r;H$C$F$$$k$+!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
871 $B%+%&%s%?$r:F@_Dj$7$F$7$^$C$?$+$N$$$:$l$+$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
872
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
873 ("Environment [^ ]* undefined." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
874 "$BDj5A$5$l$F$$$J$$4D6-$KBP$9$k(B\\begin$BL?Na$r(BLaTeX$B$,8+$D$1$^$7$?!%$*$=$i$/(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
875 $B4D6-L>$r4V0c$($?$N$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
876
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
877 ("Float(s) lost." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
878 "parbox$B$N$J$+$K(Bfigure$B4D6-!&(Btable$B4D6-$^$?$O(B\\marginpar$BL?Na$,$"$j$^$7$?(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
879 \($B$J$*!$(Bparbox$B$O(Bminipage$B4D6-$+(B\\parbox$BL?Na$K$h$C$F:n$i$l$k$+!$5SCm$d?^(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
880 $B$J$I$KBP$7$F(BLaTeX$B$,@8@.$9$k$b$N$G$9(B\)$B!%$3$l$O=PNO;~$N%(%i!<$J$N$G!$860x(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
881 $B$H$J$C$F$$$k4D6-$"$k$$$OL?Na$O!$(BLaTeX$B$,LdBj$rH/8+$7$?>l=j$h$j$b$@$$$V(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
882 $B$sA0$K$"$k2DG=@-$,$"$j$^$9!%=PNO$5$l$F$$$J$$?^!&I=!&K5Cm$J$I$,$$$/$D$+(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
883 $B$"$k$+$b$7$l$^$;$s$,!$$=$l$i$,860x$G$"$k$H$O8B$j$^$;$s!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
884
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
885 ("Illegal character in array arg." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
886 "array$B4D6-$^$?$O(Btabular$B4D6-$N0z?t!$$^$?$O(B\\multicolumn$BL?Na$NBh(B2$B0z?t(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
887 $B$NCf$KIT@5$JJ8;z$,$"$j$^$7$?!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
888
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
889 ("Missing \\\\begin{document}." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
890 "\\begin{document}$BL?Na$h$jA0$K(BLaTeX$B$,=PNO$r9T$J$C$F$7$^$$$^$7$?!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
891 \\begin{document}$BL?Na$rK:$l$?$+!$%W%j%"%s%V%k$K2?$+4V0c$$$,$"$k$N$G$7$g$&!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
892 $BBG$A4V0c$$$K$h$kJ8;z$d!$@k8@$N8m$j$K$h$k2DG=@-$b$"$j$^$9!%Nc$($P!$0z?t$r(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
893 $B0O$`3g8L$rH4$+$7$?$H$+!$L?NaL>$N(B\\$B$rK:$l$?>l9g$J$I$G$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
894
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
895 ("Missing p-arg in array arg.*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
896 "array$B4D6-!&(Btabular$B4D6-$N0z?t!$$"$k$$$O(B\\multicolumn$BL?Na$NBh(B2$B0z?t$NCf$K!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
897 $B3g8L$K0O$^$l$?I=8=$N$D$$$F$$$J$$(Bp$B$,$"$j$^$7$?!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
898
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
899 ("Missing @-exp in array arg." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
900 "array$B4D6-!&(Btabular$B4D6-$N0z?t!$$"$k$$$O(B\\multicolumn$BL?Na$NBh(B2$B0z?t$NCf$K!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
901 @$BI=8=$N$D$$$F$$$J$$(B@$B$,$"$j$^$7$?!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
902
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
903 ("No such counter." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
904 "\\setcounter$BL?Na$^$?$O(B\\addtocounter$BL?Na$G!$B8:_$7$J$$%+%&%s%?$,;XDj$5$l(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
905 $B$^$7$?!%$*$=$i$/$?$@$N%?%$%W%_%9$G$7$g$&!%$?$@$7!$%(%i!<$,(Baux$B%U%!%$%k$NCf(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
906 $B$G@8$8$?>l9g$O!$(B\\newcounter$BL?Na$r%W%j%"%s%V%k$N30$G;H$C$?$N$@$H;W$o$l$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
907
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
908 ("Not in outer par mode." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
909 "figure$B4D6-!&(Btable$B4D6-$"$k$$$O(B\\marginpar$BL?Na$,?t<0%b!<%I$^$?$O(Bparbox$B$NCf(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
910 $B$G;H$o$l$^$7$?!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
911
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
912 ("\\\\pushtabs and \\\\poptabs don't match." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
913 "\\pushtabs$B$HBP1~$7$J$$(B\\poptabs$B$,$_$D$+$C$?$+!$$^$?$O!$BP1~$9$k(B\\poptabs
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
914 $B$r$b$?$J$$(B\\pushtabs$B$,$"$k$N$K(B\\end{tabbing}$B$,8=$l$F$7$^$$$^$7$?!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
915
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
916 ("Something's wrong--perhaps a missing \\\\item." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
917 "$B%j%9%H4D6-$NCf$K(B\\item$BL?Na$,$J$$$N$,:G$b$"$j$=$&$J%1!<%9$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
918 thebibliography$B4D6-$G0z?t$rK:$l$?>l9g$K$b@8$8$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
919
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
920 ("Tab overflow." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
921 "\\=$B$,!$(BLaTeX$B$G5v$5$l$k%?%V%9%H%C%W$N:GBg?t$rD6$($F$$$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
922
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
923 ("There's no line here to end." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
924 "\\newline$BL?Na$^$?$O(B\\\\$BL?Na$,%Q%i%0%i%U4V$K$"$j$^$9!%$3$N;H$$$+$?$O(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
925 $BL50UL#$G$9!%$b$76u9T$r$"$1$?$$$N$G$7$?$i!$(B\\vspace$B$r;H$C$F$/$@$5$$!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
926
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
927 ("This may be a LaTeX bug." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
928 "$B$^$C$?$/$o$1$,$o$+$i$J$/$J$C$F$7$^$$$^$7$?!%$?$V$s$3$l0JA0$K8!=P$5$l$?(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
929 $B%(%i!<$N$;$$$@$H;W$o$l$^$9!%$7$+$7!$(BLaTeX$B<+BN$N%P%0$G$"$k2DG=@-$b$"$j$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
930 $B$b$7$3$N%(%i!<$,F~NO%U%!%$%k$KBP$9$k:G=i$N%(%i!<$G$"$j!$2?$b4V0c$$$,8+$D(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
931 $B$+$i$J$$>l9g$O!$$=$N%U%!%$%k$rJ]B8$7$F!$%m!<%+%k%,%$%I$K=q$+$l$F$$$k@UG$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
932 $B<T$KO"Mm$7$F$/$@$5$$!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
933
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
934 ("Too deeply nested." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
935 "$B%j%9%H4D6-$NF~$l;R$,?<$9$.$^$9!%2?CJ3,$NF~$l;R$,5v$5$l$k$+$O;H$C$F$$$k(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
936 $B%3%s%T%e!<%?$K0MB8$7$^$9$,!$>/$J$/$H$b(B4$BCJ3,$^$G$O5v$5$l$F$$$^$9(B($BIaDL$O(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
937 $B$=$l$G==J,$G$7$g$&(B)$B!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
938
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
939 ("Too many unprocessed floats." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
940 "$B$3$N%(%i!<$O(B1$B%Z!<%8Cf$N(B\\marginpar$BL?Na$,B?$9$.$k$?$a$K@8$8$k>l9g$b$"(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
941 $B$j$^$9$,!$$b$C$H$"$j$=$&$J$N$O!$8B3&$rD6$($F?^$dI=$rJ]B8$7$h$&$H$7$?>l(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
942 $B9g$G$9!%D9$$J8=q$rAHHG$7$F$$$/$H$-!$(BLaTeX$B$O?^$dI=$r8D!9$KJ]B8$7!$%Z!<(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
943 $B%8$NJ,3d$r9T$J$&;~$K$=$l$i$rA^F~$7$^$9!%$3$N%(%i!<$O!$%Z!<%8$X$NJ,3d$,(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
944 $B9T$J$o$l$kA0$K!$$"$^$j$K$bB?$/$N(Bfigure$B4D6-$d(Btable$B4D6-$,8+$D$+$C$?>l9g(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
945 $B$K@8$8$^$9!%$3$NLdBj$O4D6-$N$&$A$N$$$/$D$+$rJ8=q$N=*$o$j$NJ}$K0\F0$9$l(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
946 $B$P2r7h$G$-$^$9!%$^$?!$$3$N%(%i!<$O(B``logjam''$B$K$h$C$F@8$8$k$3$H$b$"$j$^(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
947 $B$9!%(B``logjam''$B$H$O!$(BLaTeX$B$,=P8==g=xDL$j$K$7$+?^I=$r=PNO$G$-$J$$$;$$$G!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
948 $B$D$^$C$F$$$k8e$m$N?^I=$N$?$a$KA0$N?^I=$r=PNO$G$-$J$/$J$k$3$H$r$$$$$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
949 $B$3$N%8%c%`$N860x$O!$Bg$-$9$.$F(B1$B%Z!<%8$J$$$7$O;XDj$5$l$?NN0h$K<}$^$i$J(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
950 $B$$$h$&$J?^$dI=$G$"$k2DG=@-$,$"$j$^$9!%$3$l$O!$0z?t$K(Bp$B%*%W%7%g%s$,;XDj(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
951 $B$5$l$F$$$J$$$H5/$-$d$9$/$J$j$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
952
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
953 ("Undefined tab position." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
954 "\\>$B!&(B\\+$B!&(B\\-$B$^$?$O(B\\<$BL?Na$G!$B8:_$7$J$$%?%V0LCV!$$9$J$o$A(B\\=$BL?Na$GDj(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
955 $B5A$5$l$F$$$J$$%?%V0LCV$r;XDj$7$h$&$H$7$F$$$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
956
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
957 ("\\\\< in mid line." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
958 "\\<$BL?Na$,(Btabbing$B4D6-$N9T$NESCf$K8=$l$^$7$?!%$3$NL?Na$O9T$N@hF,$K$J$1$l$P(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
959 $B$J$j$^$;$s!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
960
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
961 ("Counter too large." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
962 "$B5SCm$,J8;z$^$?$O5SCm5-9f$G=g=x$E$1$5$l$F$$$^$9$,!$J8;z$^$?$O5-9f$r;H$$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
963 $B@Z$C$F$7$^$$$^$7$?!%$*$=$i$/(B\\thanks$BL?Na$N;H$$$9$.$G$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
964
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
965 ("Double subscript." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
966 "$B?t<0Cf$N(B1$B$D$NNs$K(B2$B$D$N2<IU$-J8;z$,$D$$$F$$$^$9!%Nc$($P(Bx_{2}_{3}$B$N$h$&$K!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
967 $B$3$N$h$&$JI=8=$OL50UL#$G$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
968
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
969 ("Double superscript." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
970 "$B?t<0Cf$N(B1$B$D$NNs$K(B2$B$D$N>eIU$-J8;z$,$D$$$F$$$^$9!%Nc$($P(Bx^{2}^{3}$B$N$h$&$K!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
971 $B$3$N$h$&$JI=8=$OL50UL#$G$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
972
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
973 ("Extra alignment tab has been changed to \\\\cr." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
974 "array$B4D6-$^$?$O(Btabular$B4D6-$N(B1$BNsCf$K$"$k9`L\$,B?$9$.$^$9!%8@$$49$($k$H!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
975 $BNs$N=*$o$j$^$G$K$"$k(B&$B$N?t$,B?$9$.$^$9!%$*$=$i$/A0$NNs$N:G8e$K(B\\\\$B$r$D$1(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
976 $B$k$N$rK:$l$?$N$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
977
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
978 ("Extra \\}, or forgotten \\$." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
979 "$B3g8L$^$?$O?t<0%b!<%I$N%G%j%_%?$,@5$7$/BP1~$7$F$$$^$;$s!%$*$=$i$/(B{$B!&(B\\[$B!&(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
980 \\($B$"$k$$$O(B$$B$N$&$A$N$$$:$l$+$r=q$-K:$l$?$N$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
981
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
982 ("Font [^ ]* not loaded: Not enough room left." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
983 "$B$3$NJ8=q$O8B3&$h$j$bB?$/$N%U%)%s%H$r;H$C$F$$$^$9!%$b$7J8=q$NItJ,$4$H$K(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
984 $BJL!9$N%U%)%s%H$,;H$o$l$F$$$k$N$J$i!$J,3d$7$F=hM}$9$l$PLdBj$O2r7h$5$l$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
985
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
986 ("I can't find file `.*'." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
987 "$BI,MW$J%U%!%$%k$,8+$D$+$j$^$;$s$G$7$?!%$b$78+$D$+$i$J$$%U%!%$%k$N3HD%;R(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
988 $B$,(Btex$B$N>l9g!$$"$J$?$,;XDj$7$?%U%!%$%k!$$9$J$o$A%a%$%s%U%!%$%k$^$?$O(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
989 \\input$BL?Na!&(B\\include$BL?Na$GA^F~$5$l$k%U%!%$%k$,8+$D$+$i$J$$$N$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
990 $B3HD%;R$,(Bsty$B$G$"$l$P!$B8:_$7$J$$J8=q%9%?%$%k$^$?$O%9%?%$%k%*%W%7%g%s$r(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
991 $B;XDj$7$h$&$H$7$F$$$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
992
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
993 ("Illegal parameter number in definition of .*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
994 "$B$3$l$O$*$=$i$/!$(B\\newcommand$B!&(B\\renewcommand$B!&(B\\newenvironment$B$^$?$O(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
995 \\renewenvironment$BL?Na$N$J$+$G(B#$B$,@5$7$/;H$o$l$J$+$C$?$?$a$K@8$8$?%(%i!<(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
996 $B$G$9!%(B\\#$BL?Na$H$7$F;H$o$l$k>l9g$r=|$1$P!$(B#$B$H$$$&J8;z$O!$Nc$($P(B2$BHVL\$N(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
997 $B0z?t$r;XDj$9$k(B#2$B$N$h$&$K!$0z?t%Q%i%a!<%?$H$7$F$7$+;H$($^$;$s!%$^$?!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
998 $B$3$N%(%i!<$O!$>e$K$"$2$?(B4$B$D$N%3%^%s%I$,$*8_$$$KF~$l;R$K$J$C$F$$$k>l9g(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
999 $B$d!$(B\\newenvironment$BL?Na!&(B\\renewenvironment$BL?Na$G(B#2$B$N$h$&$J%Q%i%a!<%?(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1000 $B$,:G8e$N0z?t$NCf$G;H$o$l$F$$$k>l9g$K$b@8$8$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1001
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1002 ("Illegal unit of measure ([^ ]* inserted)." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1003 "$B$b$7(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1004 ! Missing number, treated as zero.
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1005 $B$H$$$&%(%i!<$,5/$-$?D>8e$G$"$l$P!$$3$N%(%i!<$N860x$b$=$l$HF1$8$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1006 $B$=$&$G$J$$>l9g$O!$(BLaTeX$B$,0z?t$H$7$F(Blength$B$r4|BT$7$F$$$k$N$K(Bnumber$B$,(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1007 $B8=$l$?$3$H$r0UL#$7$F$$$^$9!%$3$N%(%i!<$N:G$b$"$j$,$A$J860x$OD9$5(B0$B$r(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1008 $BI=$o$9(B0in$B$N$h$&$JI=8=$NBe$o$j$K(B0$B$H$+$$$F$7$^$&$3$H$K$"$j$^$9!%$?$@$7!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1009 $BL?Na$N0z?t$r=q$-K:$l$?>l9g$K$b$3$N%(%i!<$,@8$8$k$3$H$,$"$j$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1010
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1011 ("Misplaced alignment tab character \\&." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1012 "array$B$^$?$O(Btabular$B4D6-$G$N9`L\6h@Z$j$K$N$_;H$o$l$k$Y$-J8;z(B&$B$,IaDL$NJ8(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1013 $B$NCf$K$"$j$^$7$?!%$?$V$s(B\\&$B$HF~NO$7$?$+$C$?$N$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1014
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1015 ("Missing control sequence inserted." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1016 "$B$3$N%(%i!<$O!$$*$=$i$/L?NaL>$G$J$$$b$N$r(B\\newcommand$B!&(B\\renewcommand$B!&(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1017 \\newlength$B$^$?$O(B\\newsavebox$B$NBh(B1$B0z?t$H$7$F;H$C$?$?$a$K@8$8$?$N$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1018
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1019 ("Missing number, treated as zero." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1020 "$B$3$N%(%i!<$O$?$$$F$$!$0z?t$H$7$F(Bnumber$B$^$?$O(Blength$B$rI,MW$H$7$F$$$kL?Na$K(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1021 $BBP$7$F0z?t$,M?$($i$l$J$+$C$?$?$a$K@8$8$^$9!%0z?t$r=q$-K:$l$?$N$+!$%F%-%9%H(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1022 $B$NCf$NBg3g8L(B([])$B$,%*%W%7%g%s0z?t$N;XDj$H4V0c$($i$l$F$7$^$C$?$+$N$I$A$i$+$G(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1023 $B$7$g$&!%$^$?!$?t$r@8@.$9$k(B\\value$B$N$h$&$JL?Na$d(Blength$BL?Na$NA0$K(B\\protect$B$r(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1024 $BCV$$$?>l9g$K$b$3$N%(%i!<$O@8$8$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1025
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1026 ("Missing [{}] inserted." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1027 "TeX$B$O4{$K$o$1$,$o$+$i$J$/$J$C$F$$$^$9!%%(%i!<%a%C%;!<%8$K$h$C$F<($5$l$F(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1028 $B$$$k>l=j$O$?$V$sF~NO$K4V0c$$$,$"$C$?$H$3$m$h$j$b8e$m$K$J$C$F$7$^$C$F$$$k(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1029 $B$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1030
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1031 ("Missing \\$ inserted." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1032 "$B$*$=$i$/!$?t<0%b!<%ICf$G$7$+;H$($J$$L?Na$r(BTeX$B$,?t<0%b!<%I30$G8!=P$7$?(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1033 $B$N$@$H;W$o$l$^$9!%FC$K5-=R$5$l$F$$$J$$8B$j!$(BLaTeX Book(Lamport$BCx(B,$BLu=q(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1034 $B$O%"%9%-!<=PHG(B)$B$N(B3.3$B@a$K$"$kE:;z!&J,?t!&?t3X5-9f$J$I$N%3%^%s%I$O$9$Y$F(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1035 $B?t<0%b!<%I$G$7$+;H$($J$$$N$@$H$$$&$3$H$KCm0U$7$F$/$@$5$$!%$?$H$(L?Na$,(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1036 $B?t<04D6-$NCf$K$"$C$?$H$7$F$b!$(Bbox$B$r@8@.$9$kL?Na$N0z?t$r=hM}$7$O$8$a$?(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1037 $B;~E@$G$O!$(BTeX$B$O$^$@?t<0%b!<%I$KF~$C$F$$$J$$$N$G$9!%$^$?!$$3$N%(%i!<$O!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1038 $B?t<0%b!<%ICf$G(BTeX$B$,6u9T$r8!=P$7$?>l9g$K$b@8$8$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1039
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1040 ("Not a letter." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1041 "\\hyphenation$BL?Na$N0z?t$NCf$K$J$K$+@5$7$/$J$$$b$N$,$"$j$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1042
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1043 ("Paragraph ended before [^ ]* was complete." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1044 "$BL?Na$N0z?t$NCf$KIT@5$J6u9T$,F~$C$F$7$^$C$F$$$^$9!%$*$=$i$/0z?t$N=*$o$j(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1045 $B$KJD$83g8L$r$D$1$k$N$rK:$l$?$N$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1046
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1047 ("\\\\[^ ]*font [^ ]* is undefined .*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1048 "$B$3$N%(%i!<$O$"$^$j0lHLE*$G$J$$%U%)%s%H$,?t<0%b!<%I$G;H$o$l$?;~$K@8$8(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1049 $B$^$9!%Nc$($P!$5SCm$NCf$N?t<0$G(B\\sc$BL?Na$,;H$o$l$k$H!$(Bfootnotesize$B$N(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1050 small caps$B%U%)%s%H$,8F$S$@$5$l$k$3$H$K$J$j$^$9!%$3$NLdBj$O(B\\load$BL?Na$r(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1051 $B;H$($P2r7h$G$-$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1052
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1053 ("Font .* not found." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1054 "$BL$CN$N(Bfamily/series/shape/size$B$NAH$_9g$o$;$N%U%)%s%H$,;XDj$5$l$^$7$?!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1055 $B$3$N%(%i!<$,5/$-$k%1!<%9$O(B2$B$D9M$($i$l$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1056 1) \\size$B%^%/%m$G;H$($J$$%5%$%:$rA*Br$7$h$&$H$7$?!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1057 2) $B$=$&$G$J$1$l$P!$4IM}<T$N$H$3$m$K9T$C$F!$%U%)%s%HA*Br%F!<%V%k$,(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1058 $BIe$C$F$$$k$HJ86g$r$D$1$F$d$j$^$7$g$&(B!")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1059
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1060 ("TeX capacity exceeded, sorry .*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1061 "TeX$B$,%a%b%j$r;H$$$-$C$F$7$^$$!$<B9T$rCfCG$7$^$7$?!%$7$+$7!$92$F$J$$$G(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1062 $B$/$@$5$$!%$3$N%(%i!<$,@8$8$?860x$O!$$?$V$s!$(BTeX$B$K$"$J$?$NJ8=q$r=hM}$G(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1063 $B$-$k$@$1$NG=NO$,$J$$$+$i$G$O$"$j$^$;$s!%(BTeX$B$K%a%b%j$r;H$$$-$i$;$?860x(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1064 $B$O!$$*$=$i$/F~NO$7$?%U%!%$%k$NA0$NJ}$G@8$8$?%(%i!<$G$9!%$"$J$?$,K\Ev$K(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1065 TeX$B$NMFNL$rD6$($?$3$H$r$7$h$&$H$7$?$N$+$I$&$+!$$=$7$F$=$N>l9g$I$&$9$l(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1066 $B$P$$$$$N$+$rH=CG$9$kJ}K!$r0J2<$K@bL@$7$^$9!%$b$7LdBj$,F~NO%U%!%$%kCf$N(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1067 $B%(%i!<$K$"$k>l9g$O!$8D!9$N%(%i!<$r2r7h$7$F$$$/J}K!$r$H$k$N$,$h$$$G$7$g(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1068 $B$&!%(BLaTeX$B$,C;$$%U%!%$%k$G%a%b%j$r;H$$$-$k$3$H$O$a$C$?$K$"$j$^$;$s$+$i!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1069 $B%(%i!<$N5/$-$?0LCV$h$jA0$K=hM}$7$?%Z!<%8$,?t%Z!<%8$7$+$J$1$l$P!$$^$:4V(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1070 $B0c$$$J$/F~NO%U%!%$%k$KLdBj$,$"$k$O$:$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1071
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1072 $B%(%i!<%a%C%;!<%8$N:G8e$K!$(BTeX$B$,;H$$$-$C$F$7$^$C$?%a%b%j$N<oN`$,<($5$l(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1073 $B$F$$$^$9!%$=$l$i$N$&$A0lHLE*$J$b$N$K$D$$$F!$9M$($i$l$k860x$r0J2<$K5s$2(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1074 $B$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1075
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1076 buffer size
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1077 ===========
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1078 $B>O@a!&(B\\caption$B!&(B\\addcontentsline$B$"$k$$$O(B\\addtocontents$BL?Na$N0z?t$H(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1079 $B$7$FM?$($?%F%-%9%H$,D9$9$.$k>l9g$K@8$8$k$3$H$,$"$j$^$9!%$3$N%(%i!<$O(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1080 $B$?$$$F$$(B\\end{document}$B$r=hM}$7$F$$$k;~$K@8$8$^$9$,!$(B\\tableofcontents$B!&(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1081 \\listoffigures$B$"$k$$$O(B\\listoftables$BL?Na$r<B9T$7$F$$$k>l9g$K$b5/$-$k(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1082 $B$3$H$,$"$j$^$9!%$3$NLdBj$r2r7h$9$k$K$O!$$b$C$HC;$$%F%-%9%H$r%*%W%7%g%s(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1083 $B0z?t$H$7$FM?$($F$/$@$5$$!%L\<!$d?^I=0lMw$r:n@.$7$F$b!$8+=P$7$,D9$9$.$k(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1084 $B$HFI$_$K$/$/$J$k$O$:$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1085
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1086 exception dictionary
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1087 ====================
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1088 TeX$B$,;}$C$F$$$kNN0h0J>e$K%O%$%U%M!<%7%g%s>pJs$rM?$($h$&$H$7$F$$$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1089 $B$"$^$j;H$o$J$$C18l$N(B\\hyphenation$BL?Na$r<h$j=|$$$F!$Be$o$j$K(B\\-$BL?Na$r;H$C(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1090 $B$F$/$@$5$$!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1091
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1092 hash size
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1093 =========
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1094 $BL?NaL>$NDj5A$^$?$OAj8_;2>H%i%Y%k$NDj5A$,B?$9$.$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1095
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1096 input stack size
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1097 ================
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1098 $B$3$N%(%i!<$O$*$=$i$/L?NaDj5ACf$N8m$j$K$h$k$b$N$G$9!%Nc$($P!$<!$NL?Na$O(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1099 $B:F5"E*Dj5A$H$J$C$F$*$j!$<+J,<+?H$r;H$C$F(B\\gnu$B$rDj5A$7$F$$$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1100
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1101 \\newcommand{\\gnu}{a \\gnu} % $B$3$l$O$@$a(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1102
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1103 $B$3$N(B\\gnu$BL?Na$r8+$D$1$k$H(BTeX$B$O(B\\gnu$B$,2?$r$&$_$@$9$N$+$r7hDj$7$h$&$H$7(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1104 $B$F$=$NKvHx$r$$$D$^$G$bDI$$$D$E$1!$$d$,$F(B``input stack''$B$r;H$$$-$C$F$7(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1105 $B$^$$$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1106
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1107 main memory size
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1108 ================
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1109 $B$3$l$O!$(BTeX$B$,C;$$%U%!%$%k$r=hM}$7$F$$$k;~$K;H$$$-$k2DG=@-$N$"$k%a%b%j(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1110 $B$N$R$H$D$G$9!%(Bmain memory$B$r;H$$$-$k$N$O<!$N(B3$B$D$N>l9g$N$$$:$l$+$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1111 \(1\)$BHs>o$KD9$/J#;($JL?Na$r?tB?$/Dj5A$7$?!%(B(2)index$B$^$?$O(Bglossary$B$r:n$C(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1112 $B$F$$$k$H$-!$(B1$B%Z!<%8Cf$K$"$^$j$K$bB?$/$N(B\\index$B$^$?$O(B\\glossary$BL?Na$,$"(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1113 $B$k!%(B(3)$B@8@.$N$?$a$N>pJs$r(BTeX$B$,J];}$7$-$l$J$$$h$&$J!$$"$^$j$K$bJ#;($J%Z!<(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1114 $B%8$r@8@.$7$h$&$H$7$?!%:G=i$N(B2$B$D$NLdBj$N2r7hJ}K!$OL@$i$+$G$9!%L?NaDj5A(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1115 $B$N?t$"$k$$$O(B\\index$B!&(B\\glossary$BL?Na$N?t$r8:$i$9$3$H$G$9!%(B3$BHVL\$NLdBj$O(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1116 $B$A$g$C$HLq2p$G$9!%$3$l$O!$Bg$-$J(Btabbin$B!&(Btabular$B!&(Barray$B!&(Bpicture$B4D6-$N(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1117 $B$;$$$G@8$8$k$3$H$,$"$j$^$9!%=PNO0LCV$,7hDj$5$l$k$N$rBT$C$F$$$k?^$dI=$G(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1118 TeX$B$N%a%b%j$,$$$C$Q$$$K$J$C$F$$$k$N$+$b$7$l$^$;$s!%K\Ev$K(BTeX$B$NMFNL$rD6(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1119 $B$($F$7$^$C$?$N$+$I$&$+D4$Y$k$?$a$K$O!$%(%i!<$N5/$3$C$?>l=j$ND>A0$K(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1120 \\clearpage$BL?Na$rF~$l$F$b$&0lEY%3%s%Q%$%k$r<B9T$7$F$_$F$/$@$5$$!%$b$7(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1121 $B$=$l$G$b%a%b%j$,B-$j$J$/$J$k$h$&$J$i!$$J$s$i$+$N<jCJ$r9V$8$kI,MW$,$"$j(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1122 $B$^$9!%(BTeX$B$,%Z!<%8$r@ZCG$9$k$+$I$&$+7hDj$9$k$?$a$K$OCJMnA4BN$r=hM}$7$J(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1123 $B$1$l$P$J$i$J$$$H$$$&$3$H$r;W$$$@$7$F$/$@$5$$!%CJMn$NESCf$K(B\\newpage$BL?(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1124 $BNa$rF~$l$l$P!$CJMn$N;D$j$r=hM}$9$kA0$K:#$N%Z!<%8$r(BTeX$B$K=PNO$5$;$k$3$H(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1125 $B$GM>M5$,$G$-$k$+$b$7$l$^$;$s(B(\\pagebreak$BL?Na$G$O$@$a$G$9(B)$B!%$b$7?^$dI=(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1126 $B$,N/$^$C$F$$$k$3$H$,LdBj$J$N$J$i$P!$?^I=$r$b$C$H8e$m$NJ}$K0\F0$9$k$H$+!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1127 $B$"$k$$$O$b$C$HA0$N;~E@$G=PNO$5$l$k$h$&$K$9$l$P2sHr$G$-$^$9!%$b$7$^$@J8(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1128 $B=q$r:n@.$7$F$$$kESCf$J$i!$$H$j$"$($:(B\\clearpage$BL?Na$rF~$l$F$*$$$F!$:G(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1129 $B=*HG$r:n$k;~$^$G$3$NLdBj$OC*>e$2$7$F$*$-$^$7$g$&!%F~NO%U%!%$%k$,JQ$o$k(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1130 $B$HLdBj$,2r>C$5$l$k>l9g$b$"$k$N$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1131
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1132 pool size
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1133 =========
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1134 $BAj8_;2>H$N(B\\label$B$,B?$9$.$k$+!$L?Na$NDj5A$,B?$9$.$k$+$N$I$A$i$+$G$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1135 $B@53N$K$$$($P!$Dj5A$7$?%i%Y%kL>$*$h$SL?NaL>$K;H$C$?J8;z?t$,B?$9$.$k$H$$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1136 $B$&$3$H$G$9!%$G$9$+$i!$$b$C$HC;$$L>A0$r;H$($P$3$NLdBj$O2r7h$7$^$9!%$?$@(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1137 $B$7!$$3$N%(%i!<$O!$(B\\setcounter$B$J$I$N%+%&%s%?L?Na$d(B\\newenvironment$B!&(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1138 \\newtheorem$BL?Na$N0z?t$N=*$o$j$r<($91&3g8L$rK:$l$?>l9g$K$b@8$8$^$9!%(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1139
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1140 save size
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1141 =========
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1142 $B$3$N%(%i!<$O!$@k8@$NM-8zHO0O$dL?Na!&4D6-$,$"$^$j$K$b?<$/F~$l;R$K$J$C$F(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1143 $B$$$k>l9g$K@8$8$^$9!%$?$H$($P!$(B\\multiput$BL?Na$N0z?t$K(Bpicture$B4D6-$,$"$j!$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1144 $B$=$N$J$+$K(B\\footnotesize$B@k8@$,$"$j!$$=$N@k8@$NM-8zHO0O$K(B\\multiput$BL?Na(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1145 $B$,$"$C$F!$$=$N0z?t$K(B... $B$H$$$&$h$&$J>l9g$G$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1146
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1147 ("Text line contains an invalid character." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1148 "$BF~NOCf$KIT@5$JJ8;z$,4^$^$l$F$$$^$9!%%U%!%$%k:n@.$N8m$j$K$h$C$F%F%-%9%H(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1149 $B%(%G%#%?$,$3$NJ8;z$rA^F~$7$F$7$^$C$?$N$G$7$g$&!%<B:]$K2?$,5/$-$?$N$+$O(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1150 $B%(%G%#%?$K$h$j$^$9!%F~NO%U%!%$%k$rD4$Y$F$_$F!$;XE&$5$l$?J8;z$,8+$D$+$i(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1151 $B$J$$>l9g$K$O%m!<%+%k%,%$%I$r8+$F$/$@$5$$!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1152
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1153 ("Undefined control sequence." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1154 "TeX$B$,L$Dj5A$NL?NaL>$rH/8+$7$^$7$?!%$*$=$i$/F~NO$N8m$j$G$7$g$&!%$b$7$3(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1155 $B$N%(%i!<$,(BLaTeX$BL?Na$N=hM}Cf$K@8$8$?>l9g$O!$$=$NL?Na$O4V0c$C$?0LCV$KCV$+(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1156 $B$l$F$$$^$9!%Nc$($P!$%j%9%H4D6-$NCf$G$J$$$N$K(B\\item$BL?Na$,;H$o$l$?>l9g$J$I(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1157 $B$G$9!%$^$?!$(B\\documentstyle$BL?Na$,$J$$>l9g$K$b$3$N%(%i!<$,@8$8$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1158
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1159 ("Use of [^ ]* doesn't match its definition." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1160 "$B$*$=$i$/IA2h$N$?$a$NL?Na$@$H;W$o$l$^$9$,!$0z?t$N;H$$$+$?$,4V0c$C$F$$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1161 $B$^$9!%4V0c$C$F$$$k$N$,(B\\@array$BL?Na$N>l9g$O!$(Barray$B4D6-$+(Btabular$B4D6-$G$N(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1162 @$BI=8=$N0z?t$K$J$K$+8m$j$,$"$k$N$G$7$g$&!%(Bfragile$B$JL?Na$,(B\\protect$B$5$l$F(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1163 $B$$$J$$$N$+$b$7$l$^$;$s!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1164
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1165 ("You can't use `macro parameter character \\#' in [^ ]* mode." .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1166 "$BFC<lJ8;z(B#$B$,IaDL$N%F%-%9%H$NCf$K8=$l$^$7$?!%$*$=$i$/(B\\#$B$H=q$-$?$+$C$?(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1167 $B$N$G$7$g$&!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1168
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1169 ("Overfull \\\\hbox .*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1170 "$B9TJ,3d$N$?$a$NE,@Z$J>l=j$,8+$D$+$i$J$+$C$?$N$G!$(B1$B9T$K<}$^$k$Y$-J,NL0J>e(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1171 $B$N=PNO$,9T$J$o$l$F$7$^$$$^$7$?!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1172
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1173 ("Overfull \\\\vbox .*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1174 "$B%Z!<%8J,3d$N$?$a$NE,@Z$J>l=j$,8+$D$+$i$J$+$C$?$N$G!$(B1$B%Z!<%8$K<}$^$k$Y$-(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1175 $BJ,NL0J>e$N=PNO$,9T$J$o$l$F$7$^$$$^$7$?!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1176
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1177 ("Underfull \\\\hbox .*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1178 "$BM>J,$J?bD>%9%Z!<%9$,$J$$$+$I$&$+=PNO$r3N$+$a$F$/$@$5$$!%$b$7$"$l$P!$$=(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1179 $B$l$O(B\\\\$BL?Na$^$?$O(B\\newline$BL?Na$K4X78$9$kLdBj$N$?$a$K@8$8$?$b$N$G$9!%Nc(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1180 $B$($P(B2$B$D$N(B\\\\$BL?Na$,B3$$$F$$$k>l9g$J$I$G$9!%$3$N7Y9p$O(Bsloppypar$B4D6-$d(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1181 \\sloppy$B@k8@$N;HMQ!$$"$k$$$O(B\\linebreak$BL?Na$NA^F~$J$I$K$h$k>l9g$b$"$j$^$9!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1182
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1183 ("Underfull \\\\vbox .*" .
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1184 "$B%Z!<%8$rJ,3d$9$k$?$a$NE,@Z$J>l=j$,8+$D$1$i$l$:!$==J,$J%F%-%9%H$N$J$$(B
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1185 $B%Z!<%8$,$G$-$F$7$^$$$^$7$?!%(B")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1186
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1187 ;; New list items should be placed here
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1188 ;;
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1189 ;; ("err-regexp" . "context")
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1190 ;;
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1191 ;; the err-regexp item should match anything
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1192
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1193 (".*" . "$B$4$a$s$J$5$$!%3:Ev$9$k%X%k%W%a%C%;!<%8$,$"$j$^$;$s!%(B"))))
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1194
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1195 (provide 'tex-jp)
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1196
4be1180a9e89 Import from CVS: tag r20-1b2
cvs
parents:
diff changeset
1197 ;;; tex-jp.el ends here