comparison yatex.el @ 581:995282fc8bf5

Add some macros for text-characters
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 08 Feb 2020 18:22:59 +0900
parents 4dad5f91b26c
children f4c2dca86202
comparison
equal deleted inserted replaced
580:89a13c59674f 581:995282fc8bf5
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-2019 by HIROSE Yuuji.[yuuji@yatex.org] 2 ;;; (c)1991-2020 by HIROSE Yuuji.[yuuji@yatex.org]
3 ;;; Last modified Thu Dec 26 12:46:41 2019 on firestorm 3 ;;; Last modified Sat Feb 8 18:22:02 2020 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.82" 19 (defconst YaTeX-revision-number "1.82.1"
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.
180 (defvar YaTeX-paragraph-start 180 (defvar YaTeX-paragraph-start
181 (concat "^[ \t]*%\\|^[ \t]*$\\|\\'\\|^\C-l\\|\\\\\\\\$\\|^[ \t]*\\\\\\(" 181 (concat "^[ \t]*%\\|^[ \t]*$\\|\\'\\|^\C-l\\|\\\\\\\\$\\|^[ \t]*\\\\\\("
182 YaTeX-sectioning-regexp ;sectioning commands 182 YaTeX-sectioning-regexp ;sectioning commands
183 "\\|[A-z]*item\\|begin{\\|end{" ;special declaration 183 "\\|[A-z]*item\\|begin{\\|end{" ;special declaration
184 "\\|\\[\\|\\]" 184 "\\|\\[\\|\\]"
185 "\\|newpage\\b\\|vspace\\b" 185 "\\|newpage\\b\\|vspace\\b\\|par\\b"
186 "\\)") 186 "\\)")
187 "*Paragraph starting regexp of common LaTeX source. Use this value 187 "*Paragraph starting regexp of common LaTeX source. Use this value
188 for YaTeX-uncomment-paragraph.") 188 for YaTeX-uncomment-paragraph.")
189 189
190 (defvar YaTeX-paragraph-separate 190 (defvar YaTeX-paragraph-separate
191 (concat "^[ \t]*%\\|^[ \t]*$\\|^\C-l\\|\\\\\\\\$\\|^[ \t]*\\\\\\(" 191 (concat "^[ \t]*%\\|^[ \t]*$\\|^\C-l\\|\\\\\\\\$\\|^[ \t]*\\\\\\("
192 YaTeX-sectioning-regexp ;sectioning commands 192 YaTeX-sectioning-regexp ;sectioning commands
193 "\\|begin{\\|end{" ;special declaration 193 "\\|begin{\\|end{" ;special declaration
194 "\\|\\[\\|\\]" 194 "\\|\\[\\|\\]"
195 "\\|newpage\\b\\|vspace\\b" 195 "\\|newpage\\b\\|vspace\\b\\|par\\b"
196 "\\)") 196 "\\)")
197 "*Paragraph delimiter regexp of common LaTeX source. Use this value 197 "*Paragraph delimiter regexp of common LaTeX source. Use this value
198 for YaTeX-uncomment-paragraph.") 198 for YaTeX-uncomment-paragraph.")
199 199
200 (defvar YaTeX-verbatim-environments 200 (defvar YaTeX-verbatim-environments
313 ("newcommand" 2) ("renewcommand" 2) 313 ("newcommand" 2) ("renewcommand" 2)
314 ("newenvironment" 3) ("newtheorem" 2) 314 ("newenvironment" 3) ("newtheorem" 2)
315 ("cline") ("framebox") ("savebox" 2) ("sbox" 2) ("newsavebox") ("usebox") 315 ("cline") ("framebox") ("savebox" 2) ("sbox" 2) ("newsavebox") ("usebox")
316 ("date") ("put") ("ref") ("pageref") ("tabref") ("figref") ("raisebox" 2) 316 ("date") ("put") ("ref") ("pageref") ("tabref") ("figref") ("raisebox" 2)
317 ("multicolumn" 3) ("shortstack") ("parbox" 2) 317 ("multicolumn" 3) ("shortstack") ("parbox" 2)
318 ("textcircled")
318 ;; for mathmode accent 319 ;; for mathmode accent
319 ("tilde") ("hat") ("check") ("bar") ("dot") ("ddot") ("vec") 320 ("tilde") ("hat") ("check") ("bar") ("dot") ("ddot") ("vec")
320 ("widetilde") ("widehat") ("overline") ("overrightarrow") 321 ("widetilde") ("widehat") ("overline") ("overrightarrow")
321 ;; section types in mathmode 322 ;; section types in mathmode
322 ("frac" 2) ("sqrt") ("mathrm") ("mathbf") ("mathit") ("mathbb") 323 ("frac" 2) ("sqrt") ("mathrm") ("mathbf") ("mathit") ("mathbb")
449 450
450 (defvar singlecmd-table 451 (defvar singlecmd-table
451 (append 452 (append
452 '(("maketitle") ("makeindex") ("sloppy") ("protect") ("par") ("and") 453 '(("maketitle") ("makeindex") ("sloppy") ("protect") ("par") ("and")
453 ("LaTeX") ("TeX") ("item") ("item[]") ("appendix") ("hline") ("kill") 454 ("LaTeX") ("TeX") ("item") ("item[]") ("appendix") ("hline") ("kill")
455 ("textbar") ("textbackslash")
454 ;;("rightarrow") ("Rightarrow") ("leftarrow") ("Leftarrow") 456 ;;("rightarrow") ("Rightarrow") ("leftarrow") ("Leftarrow")
455 ("onecolumn") ("twocolumn") 457 ("onecolumn") ("twocolumn")
456 ("pagebreak") ("nopagebreak") ("tableofcontents") 458 ("pagebreak") ("nopagebreak") ("tableofcontents")
457 ("newpage") ("clearpage") ("cleardoublepage") 459 ("newpage") ("clearpage") ("cleardoublepage")
458 ("footnotemark") ("verb") ("verb*") 460 ("footnotemark") ("verb") ("verb*")

yatex.org