yatex

changeset 232:b46b927914c8 dev

Add-in for \eqref{} searches only equations.
author yuuji@gentei.org
date Sat, 28 Jan 2012 10:00:26 +0900
parents d329bbed72cd
children 699f3c6c8b2c
files yatexadd.el
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line diff
     1.1 --- a/yatexadd.el	Tue Jan 24 09:45:23 2012 +0900
     1.2 +++ b/yatexadd.el	Sat Jan 28 10:00:26 2012 +0900
     1.3 @@ -2,7 +2,7 @@
     1.4  ;;; YaTeX add-in functions.
     1.5  ;;; yatexadd.el rev.20
     1.6  ;;; (c)1991-2012 by HIROSE Yuuji.[yuuji@yatex.org]
     1.7 -;;; Last modified Sun Jan 15 17:06:26 2012 on firestorm
     1.8 +;;; Last modified Sat Jan 28 09:55:19 2012 on firestorm
     1.9  ;;; $Id$
    1.10  
    1.11  ;;;
    1.12 @@ -1263,6 +1263,12 @@
    1.13     (function
    1.14      (lambda ()
    1.15        (YaTeX-quick-in-environment-p "figure")))))
    1.16 +(defun YaTeX::eqref (argp)
    1.17 +  (YaTeX::ref
    1.18 +   argp nil nil
    1.19 +   (function
    1.20 +    (lambda ()
    1.21 +      (YaTeX-in-math-mode-p)))))
    1.22  
    1.23  (defun YaTeX::cite-collect-bibs-external (bibptn &rest files)
    1.24    "Collect bibentry from FILES(variable length argument) ;
    1.25 @@ -1421,8 +1427,6 @@
    1.26    "Add-in function to insert argument of \\bibitem."
    1.27    (YaTeX::label argp "label" "cite"))
    1.28  
    1.29 -;;; for AMS-LaTeX
    1.30 -(and YaTeX-use-AMS-LaTeX (fset 'YaTeX::eqref 'YaTeX::ref))
    1.31  ;;; for Harvard citation style
    1.32  (fset 'YaTeX::citeasnoun 'YaTeX::cite)
    1.33  (fset 'YaTeX::possessivecite 'YaTeX::cite)