comparison yatex.el @ 580:89a13c59674f

Merged to default branch
author HIROSE Yuuji <yuuji@gentei.org>
date Thu, 26 Dec 2019 13:27:55 +0859
parents 4dad5f91b26c
children 995282fc8bf5
comparison
equal deleted inserted replaced
576:70bb775b481c 580:89a13c59674f
1 ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*- 1 ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*-
2 ;;; (c)1991-2018 by HIROSE Yuuji.[yuuji@yatex.org] 2 ;;; (c)1991-2019 by HIROSE Yuuji.[yuuji@yatex.org]
3 ;;; Last modified Tue Dec 25 20:03:02 2018 on firestorm 3 ;;; Last modified Thu Dec 26 12:46:41 2019 on firestorm
4 ;;; $Id$ 4 ;;; $Id$
5 ;;; The latest version of this software is always available at; 5 ;;; The latest version of this software is always available at;
6 ;;; https://www.yatex.org/ 6 ;;; https://www.yatex.org/
7 7
8 ;;; This program is distributed as a free software. You can 8 ;;; This program is distributed as a free software. You can
14 ;;; This software can be treated with: ``The 2-Clause BSD License'' 14 ;;; This software can be treated with: ``The 2-Clause BSD License''
15 ;;; (since 2017-09-09, yatex 1.80). 15 ;;; (since 2017-09-09, yatex 1.80).
16 16
17 ;;; Code: 17 ;;; Code:
18 (require 'yatexlib) 18 (require 'yatexlib)
19 (defconst YaTeX-revision-number "1.81.1" 19 (defconst YaTeX-revision-number "1.82"
20 "Revision number of running yatex.el") 20 "Revision number of running yatex.el")
21 21
22 ;---------- Local variables ---------- 22 ;---------- Local variables ----------
23 (defvar YaTeX-prefix "\C-c" 23 (defvar YaTeX-prefix "\C-c"
24 "*Prefix key to call YaTeX functions. 24 "*Prefix key to call YaTeX functions.
202 "*Assume these environments of this variable disable LaTeX commands.") 202 "*Assume these environments of this variable disable LaTeX commands.")
203 (defvar YaTeX-verb-regexp "verb\\*?\\|path" 203 (defvar YaTeX-verb-regexp "verb\\*?\\|path"
204 "*Regexp of verb family. Do not contain preceding \\\\ nor \\(\\).") 204 "*Regexp of verb family. Do not contain preceding \\\\ nor \\(\\).")
205 (defvar YaTeX-fill-inhibit-environments 205 (defvar YaTeX-fill-inhibit-environments
206 (append '("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*" 206 (append '("tabular" "tabular*" "array" "picture" "eqnarray" "eqnarray*"
207 "longtable" 207 "longtable" "tabularx"
208 "equation" "equation*" "math" "displaymath") 208 "equation" "equation*" "math" "displaymath")
209 YaTeX-verbatim-environments) 209 YaTeX-verbatim-environments)
210 "*In these environments, YaTeX inhibits fill-paragraph from formatting. 210 "*In these environments, YaTeX inhibits fill-paragraph from formatting.
211 Define those environments as a form of list.") 211 Define those environments as a form of list.")
212 212
216 (defvar YaTeX-equation-env-regexp 216 (defvar YaTeX-equation-env-regexp
217 "array\\*?\\|equation\\*?" 217 "array\\*?\\|equation\\*?"
218 "*Regexp of environments for equations") 218 "*Regexp of environments for equations")
219 (defvar YaTeX-array-env-regexp 219 (defvar YaTeX-array-env-regexp
220 (concat 220 (concat
221 "array\\*?\\|eqnarray\\*?\\|tabbing\\|tabular\\*?\\|" ;LaTeX 221 "array\\*?\\|eqnarray\\*?\\|tabbing\\|tabularx?\\*?\\|" ;LaTeX
222 "longtable\\|" ;LaTeX2e 222 "longtable\\|" ;LaTeX2e
223 "matrix\\|pmatrix\\|bmatrix\\|vmatrix\\|Vmatrix\\|" ;AMS-LaTeX 223 "matrix\\|pmatrix\\|bmatrix\\|vmatrix\\|Vmatrix\\|" ;AMS-LaTeX
224 "align\\*?\\|split\\*?\\|aligned\\*?\\|alignat\\*?\\|" ;AMS-LaTeX 224 "align\\*?\\|split\\*?\\|aligned\\*?\\|alignat\\*?\\|" ;AMS-LaTeX
225 "[bpvV]?matrix\\|smallmatrix\\|cases\\|" ;AMS-LaTeX 225 "[bpvV]?matrix\\|smallmatrix\\|cases\\|" ;AMS-LaTeX
226 "xalignat\\*?\\|xxalignat\\*?") ;AMS-LaTeX 226 "xalignat\\*?\\|xxalignat\\*?") ;AMS-LaTeX
324 ;;cleveref 324 ;;cleveref
325 ("cref") ("crefrange") ("cpageref") ("labelcref") ("labelcpageref") 325 ("cref") ("crefrange") ("cpageref") ("labelcref") ("labelcpageref")
326 ("frametitle") ("framesubtitle") ;; beamer 326 ("frametitle") ("framesubtitle") ;; beamer
327 ("subfigure") ;; subfigure 327 ("subfigure") ;; subfigure
328 ("ruby" 2) ("kenten") ;; okumacro 328 ("ruby" 2) ("kenten") ;; okumacro
329 ("geometry") ("path")
329 ) 330 )
330 (if YaTeX-use-LaTeX2e 331 (if YaTeX-use-LaTeX2e
331 '(("documentclass") ("usepackage") 332 '(("documentclass") ("usepackage")
332 ("textbf") ("textgt") ("textit") ("textmc") ("textmd") ("textnormal") 333 ("textbf") ("textgt") ("textit") ("textmc") ("textmd") ("textnormal")
333 ("textrm") ("textsc") ("textsf") ("textsl") ("texttt") ("textup") 334 ("textrm") ("textsc") ("textsf") ("textsl") ("texttt") ("textup")
396 ("list") ("tabular") ("tabular*") ("table") ("tabbing") ("titlepage") 397 ("list") ("tabular") ("tabular*") ("table") ("tabbing") ("titlepage")
397 ("sloppypar") ("picture") ("displaymath") 398 ("sloppypar") ("picture") ("displaymath")
398 ("eqnarray") ("eqnarray*") ("figure") ("equation") ("equation*") 399 ("eqnarray") ("eqnarray*") ("figure") ("equation") ("equation*")
399 ("abstract") ("array") 400 ("abstract") ("array")
400 ("thebibliography") ("theindex") ("flushleft") ("flushright") 401 ("thebibliography") ("theindex") ("flushleft") ("flushright")
401 ("minipage") 402 ("minipage") ("landscape")
402 ("supertabular") 403 ("supertabular") ("floatingfigure") ("wrapfigure") ("wraptable")
403 ("wrapfigure") ("wraptable")
404 ("frame") ("block") ("example") ("columns") ("column") ;beamer 404 ("frame") ("block") ("example") ("columns") ("column") ;beamer
405 ("tabularx")
405 ) 406 )
406 (if YaTeX-use-LaTeX2e 407 (if YaTeX-use-LaTeX2e
407 '(("comment") ;defined in version 408 '(("comment") ;defined in version
408 ("longtable") ;defined in longtable 409 ("longtable") ;defined in longtable
409 ("screen") ("boxnote") ("shadebox") ;; ("itembox") ;in ascmac 410 ("screen") ("boxnote") ("shadebox") ;; ("itembox") ;in ascmac
449 (defvar singlecmd-table 450 (defvar singlecmd-table
450 (append 451 (append
451 '(("maketitle") ("makeindex") ("sloppy") ("protect") ("par") ("and") 452 '(("maketitle") ("makeindex") ("sloppy") ("protect") ("par") ("and")
452 ("LaTeX") ("TeX") ("item") ("item[]") ("appendix") ("hline") ("kill") 453 ("LaTeX") ("TeX") ("item") ("item[]") ("appendix") ("hline") ("kill")
453 ;;("rightarrow") ("Rightarrow") ("leftarrow") ("Leftarrow") 454 ;;("rightarrow") ("Rightarrow") ("leftarrow") ("Leftarrow")
455 ("onecolumn") ("twocolumn")
454 ("pagebreak") ("nopagebreak") ("tableofcontents") 456 ("pagebreak") ("nopagebreak") ("tableofcontents")
455 ("newpage") ("clearpage") ("cleardoublepage") 457 ("newpage") ("clearpage") ("cleardoublepage")
456 ("footnotemark") ("verb") ("verb*") 458 ("footnotemark") ("verb") ("verb*")
457 ("linebreak") ("pagebreak") ("noindent") ("indent") 459 ("linebreak") ("pagebreak") ("noindent") ("indent")
458 ("raggedright") ("raggedleft") ("centering") 460 ("raggedright") ("raggedleft") ("centering")
552 (YaTeX-define-begend-key "bc" "center") 554 (YaTeX-define-begend-key "bc" "center")
553 (YaTeX-define-begend-key "bd" "document") 555 (YaTeX-define-begend-key "bd" "document")
554 (YaTeX-define-begend-key "bD" "description") 556 (YaTeX-define-begend-key "bD" "description")
555 (YaTeX-define-begend-key "be" "enumerate") 557 (YaTeX-define-begend-key "be" "enumerate")
556 (YaTeX-define-begend-key "bE" "equation") 558 (YaTeX-define-begend-key "bE" "equation")
559 (YaTeX-define-begend-key "bf" "figure")
557 (YaTeX-define-begend-key "bi" "itemize") 560 (YaTeX-define-begend-key "bi" "itemize")
558 (YaTeX-define-begend-key "bl" "flushleft") 561 (YaTeX-define-begend-key "bl" "flushleft")
559 (YaTeX-define-begend-key "bm" "minipage") 562 (YaTeX-define-begend-key "bm" "minipage")
560 (YaTeX-define-begend-key "bt" "tabbing") 563 (YaTeX-define-begend-key "bt" "tabbing")
561 (YaTeX-define-begend-key "bT" "tabular") 564 (YaTeX-define-begend-key "bT" "tabular")

yatex.org