yatex
changeset 314:fae84a98372c dev
("crefrange") ("cpageref") ("labelcref") ("labelcpageref") for cleveref
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Wed, 08 Jan 2014 08:19:11 +0900 |
parents | fcdb9189cd9c |
children | 12fe2878bd30 |
files | yatex.el yatexpkg.el |
diffstat | 2 files changed, 17 insertions(+), 8 deletions(-) [+] |
line diff
1.1 --- a/yatex.el Wed Jan 08 07:52:12 2014 +0900 1.2 +++ b/yatex.el Wed Jan 08 08:19:11 2014 +0900 1.3 @@ -1,6 +1,6 @@ 1.4 ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*- 1.5 ;;; (c)1991-2014 by HIROSE Yuuji.[yuuji@yatex.org] 1.6 -;;; Last modified Wed Jan 8 07:49:58 2014 on firestorm 1.7 +;;; Last modified Wed Jan 8 08:16:45 2014 on firestorm 1.8 ;;; $Id$ 1.9 ;;; The latest version of this software is always available at; 1.10 ;;; http://www.yatex.org/ 1.11 @@ -261,14 +261,14 @@ 1.12 ("newenvironment" 3) ("newtheorem" 2) 1.13 ("cline") ("framebox") ("savebox" 2) ("sbox" 2) ("newsavebox") ("usebox") 1.14 ("date") ("put") ("ref") ("pageref") ("tabref") ("figref") ("raisebox" 2) 1.15 - ("cref") ;cleveref 1.16 ("multicolumn" 3) ("shortstack") ("parbox" 2) 1.17 ;; for mathmode accent 1.18 ("tilde") ("hat") ("check") ("bar") ("dot") ("ddot") ("vec") 1.19 ("widetilde") ("widehat") ("overline") ("overrightarrow") 1.20 ;; section types in mathmode 1.21 ("frac" 2) ("sqrt") ("mathrm") ("mathbf") ("mathit") 1.22 - 1.23 + ;;cleveref 1.24 + ("cref") ("crefrange") ("cpageref") ("labelcref") ("labelcpageref") 1.25 ) 1.26 (if YaTeX-use-LaTeX2e 1.27 '(("documentclass") ("usepackage") 1.28 @@ -882,7 +882,7 @@ 1.29 "ref") 1.30 ((and (looking-at "[a-z \t]") 1.31 (progn (skip-chars-backward "a-z \t") 1.32 - (looking-at "table\\|figure\\|formula"))) 1.33 + (looking-at "table\\|figure\\|formula\\|eq\\(\\.\\|uation\\)"))) 1.34 "ref") 1.35 ((save-excursion 1.36 (skip-chars-backward "[^ƒA-ƒ“]") 1.37 @@ -1686,9 +1686,13 @@ 1.38 YaTeX-refcommand-def-regexp-default)) 1.39 1.40 (defvar YaTeX-refcommand-ref-regexp-default 1.41 - "\\(page\\|eq\\|fig\\|c\\)?ref\\|cite") 1.42 + "\\(page\\|eq\\|fig\\)?ref\\|cite" 1.43 + "Regexp of LaTeX's label-referring macros. 1.44 +Searching for this will be done without `\\\\'. 1.45 +So you need not add patterns if new referring macro ends with \"ref\".") 1.46 (defvar YaTeX-refcommand-ref-regexp-private nil 1.47 - "*Regexp of referring label commands") 1.48 + "*Regexp of referring label commands. 1.49 +See documentation of `YaTeX-refcommand-ref-regexp-default'.") 1.50 (defvar YaTeX-refcommand-ref-regexp 1.51 (concat (if YaTeX-refcommand-ref-regexp-private 1.52 (concat YaTeX-refcommand-ref-regexp-private "\\|"))
2.1 --- a/yatexpkg.el Wed Jan 08 07:52:12 2014 +0900 2.2 +++ b/yatexpkg.el Wed Jan 08 08:19:11 2014 +0900 2.3 @@ -1,7 +1,7 @@ 2.4 ;;; yatexpkg.el --- YaTeX package manager 2.5 ;;; 2.6 ;;; (c)2003-2014 by HIROSE, Yuuji [yuuji@yatex.org] 2.7 -;;; Last modified Wed Jan 8 07:50:29 2014 on firestorm 2.8 +;;; Last modified Wed Jan 8 08:18:12 2014 on firestorm 2.9 ;;; $Id$ 2.10 2.11 ;;; Code: 2.12 @@ -44,7 +44,12 @@ 2.13 ("ulem" (section "uline" "uuline" "uwave") 2.14 (option ("normalem"))) 2.15 ("multicol" (env "multicols")) 2.16 - ("cref" (section "cleveref"))) 2.17 + ("cref" (section "cleveref")) 2.18 + ("crefrange" (same-as . "cref")) 2.19 + ("cpageref" (same-as . "cref")) 2.20 + ("labelcref" (same-as . "cref")) 2.21 + ("labelcpageref" (same-as . "cref")) 2.22 + ) 2.23 "Default package vs. macro list. 2.24 Alists contains '(PACKAGENAME . MACROLIST) 2.25 PACKAGENAME Basename of package(String).