Mercurial > hgrepos > hgweb.cgi > yatex
diff yatex23.el @ 361:41a05a44826a dev
[pdftex] option for pdflatex
author | HIROSE Yuuji <yuuji@gentei.org> |
---|---|
date | Tue, 23 Dec 2014 15:34:31 +0900 |
parents | 2c2b70f41fb3 |
children | d69fd7b1ac4d |
line wrap: on
line diff
--- a/yatex23.el Mon Dec 22 22:58:16 2014 +0900 +++ b/yatex23.el Tue Dec 23 15:34:31 2014 +0900 @@ -1,13 +1,16 @@ ;;; yatex23.el --- YaTeX facilities for Emacs 23 or later -*- coding: sjis -*- ;;; (c)2014 by HIROSE Yuuji.[yuuji@yatex.org] -;;; Last modified Mon Dec 22 11:26:19 2014 on firestorm +;;; Last modified Tue Dec 23 12:44:35 2014 on firestorm ;;; $Id$ ;;; Code: (defvar YaTeX-dnd-auto-figure "figure" "*If set, include dropped \\includegraphcs{} into that environment. The value should be string. Set this `nil' to disable enclosing.") -(defvar YaTeX-dnd-auto-figure-package (cons "graphicx" "dvipdfmx") +(defvar YaTeX-dnd-auto-figure-package + (cons "graphicx" + (cond ((string-match "pdflatex" tex-command) "pdftex") + (t "dvipdfmx"))) "*Default LaTeX package and its option for \\includegraphics") (defun YaTeX-dnd-handler (uri action)