[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auctex afc1ef0 10/11: Merge branch 'master' into elpa
From: |
Tassilo Horn |
Subject: |
[elpa] externals/auctex afc1ef0 10/11: Merge branch 'master' into elpa |
Date: |
Fri, 01 May 2015 08:59:00 +0000 |
branch: externals/auctex
commit afc1ef0833471cf110bf074a940c9c0da497d31f
Merge: 05e30be 26f8ce1
Author: Tassilo Horn <address@hidden>
Commit: Tassilo Horn <address@hidden>
Merge branch 'master' into elpa
---
ChangeLog | 74 +++++++++++++++++++++++++++++++
Makefile.in | 8 +---
auto.el.in | 5 --
configure.ac | 2 +-
preview.el | 12 +----
style/MyriadPro.el | 18 +++++---
style/attachfile.el | 119 ++++++++++++++++++++++++++++++++++++++++++++++++++
style/baskervaldx.el | 19 ++++++--
style/caption.el | 55 ++++++++++++-----------
style/color.el | 66 ++++++++++++++--------------
style/currvita.el | 2 +-
style/enumitem.el | 4 +-
style/erewhon.el | 30 +++++++++----
style/everysel.el | 4 +-
style/fbb.el | 28 ++++++++----
style/mathtools.el | 5 +-
style/newtxtext.el | 40 +++++++++++++++--
style/wrapfig.el | 20 ++++----
tex.el | 57 ++++++++++++------------
19 files changed, 405 insertions(+), 163 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index af59d4b..8f2dd6b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,77 @@
+2015-05-01 Tassilo Horn <address@hidden>
+
+ * tex.el (TeX-tree-expand): Expand all given vars in just one
+ single call of kpsewhich. Users reported that on some windows and
+ mac systems, kpsewhich is extremely slow leading to auctex startup
+ times of several seconds.
+
+2015-04-29 Tassilo Horn <address@hidden>
+
+ * tex.el (TeX-string-divide-number-unit): Fix docstring.
+
+ * style/mathtools.el ("mathtools"): Fix typos.
+
+2015-04-25 Tassilo Horn <address@hidden>
+
+ * tex.el (TeX-parse-macro): Improve docstring.
+
+2015-04-19 Tassilo Horn <address@hidden>
+
+ * tex.el (TeX-clean): Also regexp-quote TeX-region-file.
+
+2015-04-17 Tassilo Horn <address@hidden>
+
+ * preview.el.in (preview-datadir, preview-lispdir): Delete these
+ two variables.
+ (preview-filter-specs): Use TeX-data-directory in place of
+ preview-datadir.
+
+ * configure.ac: Remove auto.el from AC_OUTPUT.
+
+ * Makefile.in (auto.el): Delete target.
+
+2015-04-11 Tassilo Horn <address@hidden>
+
+ * style/mathtools.el (LaTeX-mathtools-env-multlined): Don't call
+ newline-and-indent after inserting environment.
+
+2015-04-11 Arash Esbati <address@hidden>
+
+ * Makefile.in (STYLESRC): Add new style.
+
+ * style/attachfile.el: New file.
+
+ * style/fbb.el: Update style to LaTeX package v1.07 from
+ 2015/04/06.
+
+ * style/erewhon.el ("erewhon"): Update style to LaTeX package
+ v1.04 from 2015/04/07.
+
+ * style/baskervaldx.el ("baskervaldx"): Update style to LaTeX
+ package v1.07 from 2015/04/06.
+
+ * style/newtxtext.el ("newtxtext"): Update style to LaTeX package
+ v1.434 from 2015/04/07.
+
+ * style/enumitem.el ("enumitem"): Fix typos.
+
+ * style/everysel.el ("everysel"): Fix typo (AtNextSelect_f_ont).
+
+ * style/color.el: Replace `read-string' with `TeX-read-string'.
+
+ * style/currvita.el: Replace `read-string' with `TeX-read-string'.
+
+ * style/wrapfig.el: Replace `read-string' with `TeX-read-string'.
+
+ * style/MyriadPro.el ("MyriadPro"): Add missing lenghts
+ `MdSlantfracSpacingBeforeSlash' and `MdSlantfracSpacingAfterSlash'.
+
+ * style/caption.el (LaTeX-caption-key-val-options): Delete wrong
+ values for `margin'-key.
+ (LaTeX-arg-caption-command): Use `TeX-argument-insert' and do not
+ rely on `TeX-arg-eval' anymore.
+ (LaTeX-arg-caption-DeclareCaption): Ditto.
+
2015-04-11 Tassilo Horn <address@hidden>
* Version 11.88.4 released.
diff --git a/Makefile.in b/Makefile.in
index 75ed8c2..76cef3c 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -147,7 +147,7 @@ STYLESRC = style/prosper.el \
style/tcolorbox.el style/color.el style/expl3.el \
style/bidibeamer.el style/enumitem.el style/caption.el \
style/geometry.el style/ltablex.el style/ltxtable.el \
- style/mn2e.el style/colortbl.el
+ style/mn2e.el style/colortbl.el style/attachfile.el
STYLEELC = $(STYLESRC:.el=.elc)
@@ -197,7 +197,7 @@ lisp: tex-site.el $(AUCSRC) $(STYLESRC) $(MULESRC)
$(PREVIEWSRC)
$(ELCC) -f batch-byte-compile $(AUCSRC) $(STYLESRC) $(MULESRC)
$(PREVIEWSRC)
$(PREVIEWLATEX)
-preview-latex.el: preview.el auto.el
+preview-latex.el: preview.el
rm -f preview-latex.el
-$(EMACS) -batch -no-site-file -no-init-file $(PREVIEW_AUTOLOAD) ; \
test -r $@ || { \
@@ -205,7 +205,6 @@ preview-latex.el: preview.el auto.el
echo "" >> $@ ; \
$(EMACS) -batch -no-site-file -no-init-file $(PREVIEW_AUTOLOAD) ; \
}
- cat auto.el >> $@
docs:
cd doc ; $(MAKE) all
@@ -231,9 +230,6 @@ auctex.el: auctex.el.in config.status
latex/Makefile: latex/Makefile.in Makefile config.status
./config.status
-auto.el: auto.el.in Makefile config.status
- ./config.status
-
configure: configure.ac aclocal.m4
autoconf
diff --git a/auto.el.in b/auto.el.in
deleted file mode 100644
index de23bec..0000000
--- a/auto.el.in
+++ /dev/null
@@ -1,5 +0,0 @@
address@hidden@
-(defvar preview-lispdir @lisppackagelispdir@)
-(add-to-list 'load-path preview-lispdir)
-(defvar preview-datadir @lisppackagedatadir@)
address@hidden@
diff --git a/configure.ac b/configure.ac
index d5903c6..43a229d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -306,7 +306,7 @@ AC_SHELL_QUOTIFY(TEXI2HTML)
AC_SHELL_QUOTIFY(TEXI2DVI)
AC_SHELL_QUOTIFY(TEXI2PDF)
-AC_OUTPUT(Makefile tex-site.el.out:tex-site.el.in doc/Makefile auctex.el
preview.el auto.el latex/Makefile)
+AC_OUTPUT(Makefile tex-site.el.out:tex-site.el.in doc/Makefile auctex.el
preview.el latex/Makefile)
cat >&2 <<EOF
diff --git a/preview.el b/preview.el
index 919c098..eb5e1de 100644
--- a/preview.el
+++ b/preview.el
@@ -1,6 +1,6 @@
;;; preview.el --- embed preview LaTeX images in source buffer
-;; Copyright (C) 2001-2006, 2010-2014 Free Software Foundation, Inc.
+;; Copyright (C) 2001-2006, 2010-2015 Free Software Foundation, Inc.
;; Author: David Kastrup
;; Keywords: tex, wp, convenience
@@ -1436,20 +1436,12 @@ icon is cached in the property list of the symbol."
(throw 'preview-filter-specs nil)
(preview-filter-specs-1 args))))
-(defvar preview-datadir (file-name-directory load-file-name)
- "The directory relative to which package data may be found.
-This should be hardwired into the startup file containing the
-autoloads for preview-latex.")
-
(put 'preview-filter-specs :file
#'(lambda (_keyword value &rest args)
`(:file ,(expand-file-name value (expand-file-name "images"
- preview-datadir))
+ TeX-data-directory))
,@(preview-filter-specs-1 args))))
-(defvar preview-lispdir TeX-lisp-directory
- "The directory where the preview lisp files are located.")
-
(defun preview-ascent-from-bb (bb)
"This calculates the image ascent from its bounding box.
The bounding box BB needs to be a 4-component vector of
diff --git a/style/MyriadPro.el b/style/MyriadPro.el
index 09feb1f..2ca0cc2 100644
--- a/style/MyriadPro.el
+++ b/style/MyriadPro.el
@@ -46,22 +46,26 @@
'("slantfrac" "Numerator" "Denominator")
'("boldsymbol" "Symbol"))
+ ;; More control over spacing in `\slantfrac':
+ (LaTeX-add-lengths "MdSlantfracSpacingBeforeSlash"
+ "MdSlantfracSpacingAfterSlash")
+
;; `\mathversion' is available with sansmath option
(when (LaTeX-provided-package-options-member "MyriadPro" "sansmath")
(TeX-add-symbols
'("mathversion"
- (TeX-arg-eval completing-read "Math version: "
- '(("sans") ("sansbold")
- ("sanstabular") ("sansboldtabular"))))))
+ (TeX-arg-eval completing-read "Math version: "
+ '(("sans") ("sansbold")
+ ("sanstabular") ("sansboldtabular"))))))
;; Fontification
(when (and (featurep 'font-latex)
- (eq TeX-install-font-lock 'font-latex-setup))
+ (eq TeX-install-font-lock 'font-latex-setup))
(font-latex-add-keywords '(("smallfrac" "{{")
- ("slantfrac" "{{"))
- 'textual)
+ ("slantfrac" "{{"))
+ 'textual)
(font-latex-add-keywords '(("mathversion" "{"))
- 'variable)))
+ 'variable)))
LaTeX-dialect)
(defvar LaTeX-MyriadPro-package-options
diff --git a/style/attachfile.el b/style/attachfile.el
new file mode 100644
index 0000000..3b27778
--- /dev/null
+++ b/style/attachfile.el
@@ -0,0 +1,119 @@
+;;; attachfile.el --- AUCTeX style for `attachfile.sty' (v1.6)
+
+;; Copyright (C) 2015 Free Software Foundation, Inc.
+
+;; Author: Arash Esbati <esbati'at'gmx.de>
+;; Maintainer: address@hidden
+;; Created: 2015-04-11
+;; Keywords: tex
+
+;; This file is part of AUCTeX.
+
+;; AUCTeX is free software; you can redistribute it and/or modify it
+;; under the terms of the GNU General Public License as published by
+;; the Free Software Foundation; either version 3, or (at your option)
+;; any later version.
+
+;; AUCTeX is distributed in the hope that it will be useful, but
+;; WITHOUT ANY WARRANTY; without even the implied warranty of
+;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+;; General Public License for more details.
+
+;; You should have received a copy of the GNU General Public License
+;; along with AUCTeX; see the file COPYING. If not, write to the Free
+;; Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+;; 02110-1301, USA.
+
+;;; Commentary:
+
+;; This file adds support for `attachfile.sty' (v1.6) from 2015/04/04.
+;; `attachfile.sty' is part of TeXLive.
+
+;;; Code:
+(defvar LaTeX-attachfile-key-val-options
+ '(("appearance" ("true" "false"))
+ ("author")
+ ("color")
+ ("created")
+ ("date")
+ ("description")
+ ("icon" ("Graph" "Paperclip" "PushPin" "Tag"))
+ ;; This can only be a small excerpt:
+ ("mimetype"
+ ("application/javascript"
+ "application/pdf"
+ "application/postscript"
+ "application/vnd.ms-excel"
+ "application/vnd.ms-powerpoint"
+ "application/zip"
+ "audio/mpeg"
+ "audio/ogg"
+ "image/jpeg"
+ "image/png"
+ "image/tiff"
+ "text/csv"
+ "text/plain"
+ "video/H264"
+ "video/mp4"))
+ ("modified")
+ ("print" ("true" "false"))
+ ("size")
+ ("subject")
+ ("timezone")
+ ("zoom" ("true" "false")))
+ "Key=value options for attachfile macros.")
+
+(TeX-add-style-hook
+ "attachfile"
+ (lambda ()
+ ;; Run style hook for packages loaded by attachfile; both packages
+ ;; are required for running LaTeX, but not necessary within AUCTeX
+ (TeX-run-style-hooks "hyperref" "color")
+
+ (TeX-add-symbols
+ ;; \attachfile[<options>]{<filename>}
+ '("attachfile"
+ [TeX-arg-key-val LaTeX-attachfile-key-val-options]
+ (TeX-arg-eval
+ (lambda ()
+ (let ((atfi (file-relative-name
+ (read-file-name "File to attach: "))))
+ (format "%s" atfi)))))
+
+ ;; \noattachfile[<options>]
+ '("noattachfile"
+ [TeX-arg-key-val LaTeX-attachfile-key-val-options] )
+
+ ;; \textattachfile[<options>]{<filename>}{<text>}
+ '("textattachfile"
+ [TeX-arg-key-val LaTeX-attachfile-key-val-options]
+ (TeX-arg-eval
+ (lambda ()
+ (let ((atfi (file-relative-name
+ (read-file-name "File to attach: "))))
+ (format "%s" atfi))))
+ t)
+
+ ;; \notextattachfile[<options>]{<text>}
+ '("notextattachfile"
+ [TeX-arg-key-val LaTeX-attachfile-key-val-options] t)
+
+ ;; \attachfilesetup{<options>}
+ '("attachfilesetup"
+ (TeX-arg-key-val LaTeX-attachfile-key-val-options)))
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("attachfilesetup" "{")
+ ("attachfile" "[{")
+ ("noattachfile" "[")
+ ("textattachfile" "[{{")
+ ("notextattachfile" "[{"))
+ 'function)))
+ LaTeX-dialect)
+
+(defvar LaTeX-attachfile-package-options nil
+ "Prompt for package options for the attachfile package.")
+
+;;; attachfile.el ends here
diff --git a/style/baskervaldx.el b/style/baskervaldx.el
index 692e632..ce44d60 100644
--- a/style/baskervaldx.el
+++ b/style/baskervaldx.el
@@ -1,6 +1,6 @@
-;;; baskervaldx.el --- AUCTeX style for `baskervaldx.sty' (v1.04)
+;;; baskervaldx.el --- AUCTeX style for `baskervaldx.sty' (v1.07)
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014, 2015 Free Software Foundation, Inc.
;; Author: Arash Esbati <esbati'at'gmx.de>
;; Maintainer: address@hidden
@@ -26,7 +26,7 @@
;;; Commentary:
-;; This file adds support for `baskervaldx.sty' (v1.04) from 2014/04/27.
+;; This file adds support for `baskervaldx.sty' (v1.07) from 2015/04/06.
;; `baskervaldx.sty' is part of TeXLive.
;;; Code:
@@ -45,6 +45,11 @@
'("useosf" 0)
;; Text commands
+ '("lfstyle" -1) ; lf declaration
+ '("tlfstyle" -1) ; tlf declaration
+ '("osfstyle" -1) ; osf declaration
+ '("tosfstyle" -1) ; tosf declaration
+ '("sufigures" -1) ; superior figures declaration
'("textlf" t) ; proportional lining figures
'("texttlf" t) ; tabular lining figures
'("textosf" t) ; proportional oldstyle figures
@@ -61,12 +66,18 @@
("texttosf" "{")
("textsu" "{"))
'type-command)
+ (font-latex-add-keywords '(("lfstyle" "")
+ ("tlfstyle" "")
+ ("osfstyle" "")
+ ("tosfstyle" "")
+ ("sufigures" ""))
+ 'type-declaration)
(font-latex-add-keywords '(("swshape" ""))
'bold-declaration)))
LaTeX-dialect)
(defvar LaTeX-baskervaldx-package-options
- '("lining" "lf" "oldstyle" "osf" "tabular" "proportional"
+ '("lining" "lf" "oldstyle" "osf" "tabular" "proportional" "p"
"scale" "scaled" "sups" "swash")
"Package options for the baskervaldx package.")
diff --git a/style/caption.el b/style/caption.el
index ddefb5b..0ec6c29 100644
--- a/style/caption.el
+++ b/style/caption.el
@@ -70,7 +70,7 @@
("labelsep" ("none" "colon" "period" "space" "quad" "newline"
"endash"))
("list" ("false" "no" "off" "0" "true" "yes" "on" "1"))
("listformat" ("empty" "simple" "paren" "subsimple" "subparens"))
- ("margin" ("type*" "width"))
+ ("margin")
("margin*")
("maxmargin")
("minmargin")
@@ -166,28 +166,29 @@ in `caption'-completions."
(pushnew (list key (list val)) opts :test #'equal)))
(setq LaTeX-caption-key-val-options-local (copy-alist opts)))))
-(defun LaTeX-arg-caption-command (&optional optional prompt)
- "Insert caption-commands from `caption.sty'. If OPTIONAL is non-nil,
-indicate `(Optional)' while reading key=val. PROMPT replaces the
-standard one."
+(defun LaTeX-arg-caption-command (optional &optional prompt)
+ "Insert caption-commands from `caption.sty'. If OPTIONAL,
+indicate `(Optional)' while reading key=val and insert it in
+square brackets. PROMPT replaces the standard one."
(LaTeX-caption-update-key-val-options)
(let ((opts (TeX-read-key-val optional
LaTeX-caption-key-val-options-local
prompt)))
- (format "%s" opts)))
+ (TeX-argument-insert opts optional)))
;; In `LaTeX-caption-DeclareCaption-regexp', we match (0 1 2). When
;; adding a new `Name', we need something unique for `0'-match until
;; the next `C-c C-n'. We mimic that regex-match bei concat'ing the
;; elements. It will vanish upon next `C-c C-n'.
-(defun LaTeX-arg-caption-DeclareCaption (format)
- "Insert various `\\DeclareCaptionFORMAT' commands. FORMAT is
-the suffix of the command."
+(defun LaTeX-arg-caption-DeclareCaption (optional format)
+ "Insert various `\\DeclareCaptionFORMAT' commands. If
+OPTIONAL, insert argument in square brackets. FORMAT is the
+suffix of the command."
(let ((name (TeX-read-string "Name: ")))
(LaTeX-add-caption-DeclareCaptions
(list (concat "\\DeclareCaption" format "{" name "}")
format name))
- (format "%s" name)))
+ (TeX-argument-insert name optional)))
(TeX-add-style-hook
"caption"
@@ -222,59 +223,59 @@ the suffix of the command."
'("captionsetup"
[TeX-arg-eval completing-read (TeX-argument-prompt t nil "Float type")
LaTeX-caption-supported-float-types]
- (TeX-arg-eval LaTeX-arg-caption-command))
+ (LaTeX-arg-caption-command))
'("captionsetup*"
[TeX-arg-eval completing-read (TeX-argument-prompt t nil "Float type")
LaTeX-caption-supported-float-types]
- (TeX-arg-eval LaTeX-arg-caption-command))
+ (LaTeX-arg-caption-command))
'("clearcaptionsetup"
- [TeX-arg-eval LaTeX-arg-caption-command t "Single key"]
+ [LaTeX-arg-caption-command "Single key"]
(TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Float type")
LaTeX-caption-supported-float-types))
'("clearcaptionsetup*"
- [TeX-arg-eval LaTeX-arg-caption-command t "Single key"]
+ [LaTeX-arg-caption-command "Single key"]
(TeX-arg-eval completing-read (TeX-argument-prompt nil nil "Float type")
LaTeX-caption-supported-float-types))
'("ContinuedFloat" 0)
'("DeclareCaptionFont"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "Font") t)
+ (LaTeX-arg-caption-DeclareCaption "Font") t)
'("DeclareCaptionFormat"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "Format") t)
+ (LaTeX-arg-caption-DeclareCaption "Format") t)
'("DeclareCaptionFormat*"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "Format") t)
+ (LaTeX-arg-caption-DeclareCaption "Format") t)
'("DeclareCaptionJustification"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "Justification") t)
+ (LaTeX-arg-caption-DeclareCaption "Justification") t)
'("DeclareCaptionLabelFormat"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "LabelFormat") t)
+ (LaTeX-arg-caption-DeclareCaption "LabelFormat") t)
'("DeclareCaptionLabelSeparator"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "LabelSeparator") t)
+ (LaTeX-arg-caption-DeclareCaption "LabelSeparator") t)
'("DeclareCaptionLabelSeparator*"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "LabelSeparator") t)
+ (LaTeX-arg-caption-DeclareCaption "LabelSeparator") t)
'("DeclareCaptionListFormat"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "ListFormat") t)
+ (LaTeX-arg-caption-DeclareCaption "ListFormat") t)
'("DeclareCaptionOption"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "Option") t)
+ (LaTeX-arg-caption-DeclareCaption "Option") t)
'("DeclareCaptionStyle"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "Style")
- [TeX-arg-eval LaTeX-arg-caption-command t "Additional options"]
- (TeX-arg-eval LaTeX-arg-caption-command nil "Options"))
+ (LaTeX-arg-caption-DeclareCaption "Style")
+ [LaTeX-arg-caption-command "Additional options"]
+ (LaTeX-arg-caption-command "Options"))
'("DeclareCaptionTextFormat"
- (TeX-arg-eval LaTeX-arg-caption-DeclareCaption "TextFormat") t)
+ (LaTeX-arg-caption-DeclareCaption "TextFormat") t)
'("bothIfFirst" 2)
diff --git a/style/color.el b/style/color.el
index 2af29f6..9d008b7 100644
--- a/style/color.el
+++ b/style/color.el
@@ -98,7 +98,7 @@ package.")
"Insert arguments of `\\definecolor' from `color.sty'."
;; \definecolor{<name>}{<model>}{<color spec>}
;; Ask for <name>, add to our list and insert it
- (let ((colorname (read-string "Color name: ")))
+ (let ((colorname (TeX-read-string "Color name: ")))
(LaTeX-add-color-definecolors colorname)
(TeX-argument-insert colorname optional))
;; Ask and insert <model>
@@ -112,22 +112,22 @@ package.")
;; Depending on <model>, ask for <color spec> and insert it
(cond (;; <cmyk> model
(string-equal model "cmyk")
- (let ((cyan (read-string "Value Cyan (between 0,1): "))
- (magenta (read-string "Value Magenta (between 0,1): "))
- (yellow (read-string "Value Yellow (between 0,1): "))
- (black (read-string "Value Black (between 0,1): ")))
+ (let ((cyan (TeX-read-string "Value Cyan (between 0,1): "))
+ (magenta (TeX-read-string "Value Magenta (between 0,1): "))
+ (yellow (TeX-read-string "Value Yellow (between 0,1): "))
+ (black (TeX-read-string "Value Black (between 0,1): ")))
(TeX-argument-insert
(concat cyan "," magenta "," yellow "," black) optional)))
;; <rgb> model
((string-equal model "rgb")
- (let ((red (read-string "Value Red (between 0,1): "))
- (green (read-string "Value Green (between 0,1): "))
- (blue (read-string "Value Blue (between 0,1): ")))
+ (let ((red (TeX-read-string "Value Red (between 0,1): "))
+ (green (TeX-read-string "Value Green (between 0,1): "))
+ (blue (TeX-read-string "Value Blue (between 0,1): ")))
(TeX-argument-insert
(concat red "," green "," blue) optional)))
;; <gray> model
((string-equal model "gray")
- (let ((grayness (read-string "Value Gray (between 0,1): ")))
+ (let ((grayness (TeX-read-string "Value Gray (between 0,1): ")))
(TeX-argument-insert grayness optional)))
;; <named> model takes the dvipsnames
((string-equal model "named")
@@ -156,22 +156,22 @@ package.")
(insert (concat LaTeX-optop model LaTeX-optcl))
(cond (;; <cmyk> model
(string-equal model "cmyk")
- (let ((cyan (read-string "Value Cyan (between 0,1): "))
- (magenta (read-string "Value Magenta (between 0,1): "))
- (yellow (read-string "Value Yellow (between 0,1): "))
- (black (read-string "Value Black (between 0,1): ")))
+ (let ((cyan (TeX-read-string "Value Cyan (between 0,1): "))
+ (magenta (TeX-read-string "Value Magenta (between 0,1): "))
+ (yellow (TeX-read-string "Value Yellow (between 0,1): "))
+ (black (TeX-read-string "Value Black (between 0,1): ")))
(TeX-argument-insert
(concat cyan "," magenta "," yellow "," black) optional)))
;; <rgb> model
((string-equal model "rgb")
- (let ((red (read-string "Value Red (between 0,1): "))
- (green (read-string "Value Green (between 0,1): "))
- (blue (read-string "Value Blue (between 0,1): ")))
+ (let ((red (TeX-read-string "Value Red (between 0,1): "))
+ (green (TeX-read-string "Value Green (between 0,1): "))
+ (blue (TeX-read-string "Value Blue (between 0,1): ")))
(TeX-argument-insert
(concat red "," green "," blue) optional)))
;; <gray> model
((string-equal model "gray")
- (let ((grayness (read-string "Value Gray (between 0,1): ")))
+ (let ((grayness (TeX-read-string "Value Gray (between 0,1): ")))
(TeX-argument-insert grayness optional)))
;; <named> model; allowed are dvipsnames.
((string-equal model "named")
@@ -204,35 +204,35 @@ package.")
(insert (concat LaTeX-optop model LaTeX-optcl))
(cond (;; <cmyk> model
(string-equal model "cmyk")
- (let ((cyan (read-string "Frame value Cyan (between 0,1): "))
- (magenta (read-string "Frame value Magenta (between 0,1): "))
- (yellow (read-string "Frame value Yellow (between 0,1): "))
- (black (read-string "Frame value Black (between 0,1): ")))
+ (let ((cyan (TeX-read-string "Frame value Cyan (between 0,1):
"))
+ (magenta (TeX-read-string "Frame value Magenta (between
0,1): "))
+ (yellow (TeX-read-string "Frame value Yellow (between 0,1):
"))
+ (black (TeX-read-string "Frame value Black (between 0,1):
")))
(TeX-argument-insert
(concat cyan "," magenta "," yellow "," black) optional))
- (let ((cyan (read-string "Box value Cyan (between 0,1): "))
- (magenta (read-string "Box value Magenta (between 0,1): "))
- (yellow (read-string "Box value Yellow (between 0,1): "))
- (black (read-string "Box value Black (between 0,1): ")))
+ (let ((cyan (TeX-read-string "Box value Cyan (between 0,1): "))
+ (magenta (TeX-read-string "Box value Magenta (between 0,1):
"))
+ (yellow (TeX-read-string "Box value Yellow (between 0,1):
"))
+ (black (TeX-read-string "Box value Black (between 0,1):
")))
(TeX-argument-insert
(concat cyan "," magenta "," yellow "," black) optional)))
;; <rgb> model
((string-equal model "rgb")
- (let ((red (read-string "Frame value Red (between 0,1): "))
- (green (read-string "Frame value Green (between 0,1): "))
- (blue (read-string "Frame value Blue (between 0,1): ")))
+ (let ((red (TeX-read-string "Frame value Red (between 0,1): "))
+ (green (TeX-read-string "Frame value Green (between 0,1): "))
+ (blue (TeX-read-string "Frame value Blue (between 0,1): ")))
(TeX-argument-insert
(concat red "," green "," blue) optional))
- (let ((red (read-string "Box value Red (between 0,1): "))
- (green (read-string "Box value Green (between 0,1): "))
- (blue (read-string "box value Blue (between 0,1): ")))
+ (let ((red (TeX-read-string "Box value Red (between 0,1): "))
+ (green (TeX-read-string "Box value Green (between 0,1): "))
+ (blue (TeX-read-string "box value Blue (between 0,1): ")))
(TeX-argument-insert
(concat red "," green "," blue) optional)))
;; <gray> model
((string-equal model "gray")
- (let ((grayness (read-string "Frame value Gray (between 0,1): ")))
+ (let ((grayness (TeX-read-string "Frame value Gray (between 0,1):
")))
(TeX-argument-insert grayness optional))
- (let ((grayness (read-string "Box value Gray (between 0,1): ")))
+ (let ((grayness (TeX-read-string "Box value Gray (between 0,1):
")))
(TeX-argument-insert grayness optional)))
;; <named> model; allowed are dvipsnames.
((string-equal model "named")
diff --git a/style/currvita.el b/style/currvita.el
index f2a1d55..3da2738 100644
--- a/style/currvita.el
+++ b/style/currvita.el
@@ -36,7 +36,7 @@
"Insert ENV, a mandatory label and the first item."
(LaTeX-insert-environment
env
- (let ((heading (read-string "Heading of list: ")))
+ (let ((heading (TeX-read-string "Heading of list: ")))
(format "{%s}" heading)))
(if (TeX-active-mark)
(progn
diff --git a/style/enumitem.el b/style/enumitem.el
index 8ea4545..b9d88e4 100644
--- a/style/enumitem.el
+++ b/style/enumitem.el
@@ -369,7 +369,7 @@ in `enumitem'-completions."
("itemize*") ("enumerate*") ("description*")))
"Max-depth")
- ;; \setlist{<names,levels>}{<key-vals>}
+ ;; \setlist[<names,levels>]{<key-vals>}
'("setlist"
[TeX-arg-eval mapconcat 'identity
(TeX-completing-read-multiple
@@ -382,7 +382,7 @@ in `enumitem'-completions."
(let ((opts (TeX-read-key-val nil
LaTeX-enumitem-key-val-options-local)))
(format "%s" opts)))))
- ;; \setlist*{<names,levels>}{<key-vals>}
+ ;; \setlist*[<names,levels>]{<key-vals>}
'("setlist*"
[TeX-arg-eval mapconcat 'identity
(TeX-completing-read-multiple
diff --git a/style/erewhon.el b/style/erewhon.el
index eaa8e67..f2ca6d4 100644
--- a/style/erewhon.el
+++ b/style/erewhon.el
@@ -1,6 +1,6 @@
-;;; erewhon.el --- AUCTeX style for `erewhon.sty' (v1.0)
+;;; erewhon.el --- AUCTeX style for `erewhon.sty' (v1.04)
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014, 2015 Free Software Foundation, Inc.
;; Author: Arash Esbati <esbati'at'gmx.de>
;; Maintainer: address@hidden
@@ -26,7 +26,7 @@
;;; Commentary:
-;; This file adds support for `erewhon.sty' (v1.0) from 2014/09/08.
+;; This file adds support for `erewhon.sty' (v1.04) from 2015/04/07.
;; `erewhon.sty' is part of TeXLive.
;;; Code:
@@ -43,8 +43,14 @@
;; Only preamble commands
'("useosf" 0)
+ '("useproportional" 0)
;; Text commands
+ '("lfstyle" -1) ; lf declaration
+ '("tlfstyle" -1) ; tlf declaration
+ '("osfstyle" -1) ; osf declaration
+ '("tosfstyle" -1) ; tosf declaration
+ '("sufigures" -1) ; superior figures declaration
'("textlf" t) ; proportional lining figures
'("texttlf" t) ; tabular lining figures
'("textosf" t) ; proportional oldstyle figures
@@ -57,18 +63,24 @@
;; Fontification
(when (and (featurep 'font-latex)
- (eq TeX-install-font-lock 'font-latex-setup))
+ (eq TeX-install-font-lock 'font-latex-setup))
(font-latex-add-keywords '(("textlf" "{")
- ("texttlf" "{")
- ("textosf" "{")
- ("texttosf" "{")
+ ("texttlf" "{")
+ ("textosf" "{")
+ ("texttosf" "{")
("textsu" "{")
("textin" "{")
("textnu" "{")
("textde" "{"))
- 'type-command)
+ 'type-command)
+ (font-latex-add-keywords '(("lfstyle" "")
+ ("tlfstyle" "")
+ ("osfstyle" "")
+ ("tosfstyle" "")
+ ("sufigures" ""))
+ 'type-declaration)
(font-latex-add-keywords '(("textfrac" "{{"))
- 'textual)))
+ 'textual)))
LaTeX-dialect)
(defvar LaTeX-erewhon-package-options
diff --git a/style/everysel.el b/style/everysel.el
index da6101d..05c1432 100644
--- a/style/everysel.el
+++ b/style/everysel.el
@@ -1,6 +1,6 @@
;;; everysel.el --- AUCTeX style for `everysel.sty'
-;; Copyright (C) 2012 Free Software Foundation, Inc.
+;; Copyright (C) 2012, 2015 Free Software Foundation, Inc.
;; Author: Mads Jensen <address@hidden>
;; Created: 2012-12-25
@@ -36,7 +36,7 @@
;; adds a hook (the argument code) to be called after \\selectfont
'("EverySelectfont" 1)
;; adds a hook to be called after the next \\selectfont
- '("AtNextSelectont" 1)))
+ '("AtNextSelectfont" 1)))
LaTeX-dialect)
(defvar LaTeX-everysel-package-options nil
diff --git a/style/fbb.el b/style/fbb.el
index 220da8f..1e4baba 100644
--- a/style/fbb.el
+++ b/style/fbb.el
@@ -1,6 +1,6 @@
-;;; fbb.el --- AUCTeX style for `fbb.sty' (v1.06)
+;;; fbb.el --- AUCTeX style for `fbb.sty' (v1.07)
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014, 2015 Free Software Foundation, Inc.
;; Author: Arash Esbati <esbati'at'gmx.de>
;; Maintainer: address@hidden
@@ -26,7 +26,7 @@
;;; Commentary:
-;; This file adds support for `fbb.sty' (v1.06) from 2014/09/09.
+;; This file adds support for `fbb.sty' (v1.07) from 2015/04/06.
;; `fbb.sty' is part of TeXLive.
;;; Code:
@@ -41,11 +41,15 @@
;; New symbols
(TeX-add-symbols
- ;; Only preamble commands
+ ;; Only preamble command
'("useosf" 0)
- '("usetosf" 0)
;; Text commands
+ '("lfstyle" -1) ; lf declaration
+ '("tlfstyle" -1) ; tlf declaration
+ '("osfstyle" -1) ; osf declaration
+ '("tosfstyle" -1) ; tosf declaration
+ '("sufigures" -1) ; superior figures declaration
'("textlf" t) ; proportional lining figures
'("texttlf" t) ; tabular lining figures
'("textosf" t) ; proportional oldstyle figures
@@ -54,13 +58,19 @@
;; Fontification
(when (and (featurep 'font-latex)
- (eq TeX-install-font-lock 'font-latex-setup))
+ (eq TeX-install-font-lock 'font-latex-setup))
(font-latex-add-keywords '(("textlf" "{")
("texttlf" "{")
- ("textosf" "{")
- ("texttosf" "{")
+ ("textosf" "{")
+ ("texttosf" "{")
("textsu" "{"))
- 'type-command)))
+ 'type-command)
+ (font-latex-add-keywords '(("lfstyle" "")
+ ("tlfstyle" "")
+ ("osfstyle" "")
+ ("tosfstyle" "")
+ ("sufigures" ""))
+ 'type-declaration)))
LaTeX-dialect)
(defvar LaTeX-fbb-package-options
diff --git a/style/mathtools.el b/style/mathtools.el
index 0890ce6..68fed88 100644
--- a/style/mathtools.el
+++ b/style/mathtools.el
@@ -124,7 +124,7 @@
'("shoveright" [ TeX-arg-size ] 1)
;; don't understand t, but intertext in amsmath.el uses it
'("shortintertext" t)
- '("DeclarePairedDelimeter" TeX-arg-macro "Left delimeter" "Right
delimeter")
+ '("DeclarePairedDelimiter" TeX-arg-macro "Left delimiter" "Right
delimiter")
;; 3.4.4
'("MoveEqLeft" [ "Number" ])
'("ArrowBetweenLines" [ TeX-arg-macro ] )
@@ -194,7 +194,6 @@
(setq width (concat LaTeX-optop width LaTeX-optcl))
(setq width ""))
(setq extra (concat pos width))
- (LaTeX-insert-environment env extra)
- (newline-and-indent)))
+ (LaTeX-insert-environment env extra)))
;;; mathtools.el ends here.
diff --git a/style/newtxtext.el b/style/newtxtext.el
index 801c3f0..7fb6e76 100644
--- a/style/newtxtext.el
+++ b/style/newtxtext.el
@@ -1,6 +1,6 @@
-;;; newtxtext.el --- AUCTeX style for `newtxtext.sty' (v1.321)
+;;; newtxtext.el --- AUCTeX style for `newtxtext.sty' (v1.434)
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014, 2015 Free Software Foundation, Inc.
;; Author: Arash Esbati <esbati'at'gmx.de>
;; Maintainer: address@hidden
@@ -26,7 +26,7 @@
;;; Commentary:
-;; This file adds support for `newtxtext.sty' (v1.321) from 2014/11/16.
+;; This file adds support for `newtxtext.sty' (v1.434) from 2015/04/07.
;; `newtxtext.sty' is part of TeXLive.
;;; Code:
@@ -40,11 +40,41 @@
;; New symbols
(TeX-add-symbols
- '("useosf" 0))) ; Only preamble command
+ '("useosf" 0) ; Only preamble command
+ '("useproportional" 0) ; Only preamble command
+ '("lfstyle" -1) ; lf declaration
+ '("tlfstyle" -1) ; tlf declaration
+ '("osfstyle" -1) ; osf declaration
+ '("tosfstyle" -1) ; tosf declaration
+ '("sustyle" -1) ; sup style declaration
+ '("textlf" t) ; lf command
+ '("texttlf" t) ; tlf command
+ '("textosf" t) ; osf command
+ '("texttosf" t) ; tosf command
+ '("textsu" t)) ; sup style command
+
+ ;; Fontification
+ (when (and (featurep 'font-latex)
+ (eq TeX-install-font-lock 'font-latex-setup))
+ (font-latex-add-keywords '(("textlf" "{")
+ ("texttlf" "{")
+ ("textosf" "{")
+ ("texttosf" "{")
+ ("textsu" "{"))
+ 'type-command)
+ (font-latex-add-keywords '(("lfstyle" "")
+ ("tlfstyle" "")
+ ("osfstyle" "")
+ ("tosfstyle" "")
+ ("sustyle" ""))
+ 'type-declaration)))
LaTeX-dialect)
(defvar LaTeX-newtxtext-package-options
- '("defaultsups" "helvratio" "osf" "scaled" "scosf")
+ '("defaultsups" "helvratio" "osf" "scaled" "scosf"
+ ;; New options since 1.4
+ "largesc" "adobesc" "theoremfont"
+ "lining" "lf" "oldstyle" "tabular" "p" "proportional")
"Package options for the newtxtext package.")
;;; newtxtext.el ends here
diff --git a/style/wrapfig.el b/style/wrapfig.el
index bcb90c2..097e5ad 100644
--- a/style/wrapfig.el
+++ b/style/wrapfig.el
@@ -40,14 +40,14 @@
(lambda (env &rest ignore)
(LaTeX-insert-environment
env
- (let ((narrow (read-string "(Optional) Number of narrow lines: "))
+ (let ((narrow (TeX-read-string "(Optional) Number of narrow lines:
"))
(placement (completing-read
"Placement: " '(("r") ("R")
("l") ("L")
("i") ("I")
("o") ("O"))))
- (overhang (read-string "(Optional) Overhang: "))
- (width (read-string "Width: ")))
+ (overhang (TeX-read-string "(Optional) Overhang: "))
+ (width (TeX-read-string "Width: ")))
(concat
(unless (string= narrow "")
(format "[%s]" narrow))
@@ -61,14 +61,14 @@
(lambda (env &rest ignore)
(LaTeX-insert-environment
env
- (let ((narrow (read-string "(Optional) Number of narrow lines: "))
+ (let ((narrow (TeX-read-string "(Optional) Number of narrow lines:
"))
(placement (completing-read
"Placement: " '(("r") ("R")
("l") ("L")
("i") ("I")
("o") ("O"))))
- (overhang (read-string "(Optional) Overhang: "))
- (width (read-string "Width: ")))
+ (overhang (TeX-read-string "(Optional) Overhang: "))
+ (width (TeX-read-string "Width: ")))
(concat
(unless (string= narrow "")
(format "[%s]" narrow))
@@ -82,15 +82,15 @@
(lambda (env &rest ignore)
(LaTeX-insert-environment
env
- (let ((floattype (read-string "Float type: "))
- (narrow (read-string "(Optional) Number of narrow lines: "))
+ (let ((floattype (TeX-read-string "Float type: "))
+ (narrow (TeX-read-string "(Optional) Number of narrow lines:
"))
(placement (completing-read
"Placement: " '(("r") ("R")
("l") ("L")
("i") ("I")
("o") ("O"))))
- (overhang (read-string "(Optional) Overhang: "))
- (width (read-string "Width: ")))
+ (overhang (TeX-read-string "(Optional) Overhang: "))
+ (width (TeX-read-string "Width: ")))
(concat
(format "{%s}" floattype)
(unless (string= narrow "")
diff --git a/tex.el b/tex.el
index 394814e..fb0c9e6 100644
--- a/tex.el
+++ b/tex.el
@@ -640,7 +640,7 @@ overlays between two existing ones.")
(when (featurep 'xemacs)
(defun TeX-read-string
- (prompt &optional initial-input history default-value)
+ (prompt &optional initial-input history default-value)
(condition-case nil
(read-string prompt initial-input history default-value t)
(wrong-number-of-arguments
@@ -2015,12 +2015,12 @@ output files."
(master-dir (file-name-directory master))
(regexp (concat "\\("
(regexp-quote (file-name-nondirectory master)) "\\|"
- (TeX-region-file nil t)
+ (regexp-quote (TeX-region-file nil t))
"\\)"
"\\("
(mapconcat 'identity suffixes "\\|")
"\\)\\'"
- "\\|" (TeX-region-file t t)))
+ "\\|" (regexp-quote (TeX-region-file t t))))
(files (when regexp
(directory-files (or master-dir ".") nil regexp))))
(if files
@@ -2356,35 +2356,36 @@ trees. Only existing directories are returned."
;; FIXME: The GNU convention only uses "path" to mean "list of directories"
;; and uses "filename" for the name of a file even if it contains possibly
;; several elements separated by "/".
- (let (path-list path exit-status input-dir-list)
- (condition-case nil
- (dolist (var vars)
- (setq path (with-output-to-string
- (setq exit-status (call-process
- "kpsewhich" nil
- (list standard-output nil) nil
- "--progname" program
- "--expand-path" var))))
- (when (zerop exit-status)
- (pushnew path path-list :test #'equal)))
- (error nil))
- (dolist (elt (nreverse path-list))
- (let ((separators (if (string-match "^[A-Za-z]:" elt)
+ (let* ((exit-status 1)
+ (path-list (ignore-errors
+ (with-output-to-string
+ (setq exit-status
+ (call-process
+ "kpsewhich" nil
+ (list standard-output nil) nil
+ "--progname" program
+ "--expand-path"
+ (mapconcat #'identity vars
+ (if (eq system-type 'windows-nt)
+ ";" ":"))))))))
+ (when (zerop exit-status)
+ (let ((separators (if (string-match "^[A-Za-z]:" path-list)
"[\n\r;]"
- "[\n\r:]")))
+ "[\n\r:]"))
+ path input-dir-list)
(dolist (item (condition-case nil
- (split-string elt separators t)
+ (split-string path-list separators t)
;; COMPATIBILITY for XEmacs <= 21.4.15
- (error (delete "" (split-string elt separators)))))
+ (error (delete "" (split-string path-list
separators)))))
(if subdirs
(dolist (subdir subdirs)
(setq path (file-name-as-directory (concat item subdir)))
(when (file-exists-p path)
- (pushnew path input-dir-list :test #'equal)))
+ (pushnew path input-dir-list :test #'equal)))
(setq path (file-name-as-directory item))
(when (file-exists-p path)
- (pushnew path input-dir-list :test #'equal))))))
- (nreverse input-dir-list)))
+ (pushnew path input-dir-list :test #'equal))))
+ (nreverse input-dir-list)))))
(defun TeX-macro-global ()
"Return directories containing the site's TeX macro and style files."
@@ -3025,10 +3026,9 @@ Space will complete and exit."
First argument SYMBOL is the name of the macro.
-If called with no additional arguments, insert macro with point
-inside braces. Otherwise, each argument of this function should
-match an argument to the TeX macro. What is done depend on the
-type of ARGS:
+If ARGS is nil, insert macro with point inside braces.
+Otherwise, each element in ARGS should match an argument to the
+TeX macro. What is done depend on the type of the element:
string: Use the string as a prompt to prompt for the argument.
@@ -3231,8 +3231,7 @@ Unless optional argument COMPLETE is non-nil, ``: '' will
be appended."
(if complete "" ": ")))
(defun TeX-string-divide-number-unit (string)
- "Divide number and unit in STRING.
-Return the number as car and unit as cdr."
+ "Divide number and unit in STRING and return a list (number unit)."
(if (string-match "[0-9]*\\.?[0-9]+" string)
(list (substring string 0 (string-match "[^.0-9]" string))
(substring string (if (string-match "[^.0-9]" string)
- [elpa] externals/auctex 7f0360d 02/11: New style attachfile.el., (continued)
- [elpa] externals/auctex 7f0360d 02/11: New style attachfile.el., Tassilo Horn, 2015/05/01
- [elpa] externals/auctex 07c2d23 03/11: Fix bug#20301, Tassilo Horn, 2015/05/01
- [elpa] externals/auctex f4c405b 04/11: Delete vars preview-lispdir and preview-datadir, Tassilo Horn, 2015/05/01
- [elpa] externals/auctex e64c692 06/11: Complete last commit, Tassilo Horn, 2015/05/01
- [elpa] externals/auctex e80221c 05/11: Regexp-quote TeX-region-file in TeX-clean, Tassilo Horn, 2015/05/01
- [elpa] externals/auctex 7c120b0 07/11: Improve TeX-parse-macro docstring, Tassilo Horn, 2015/05/01
- [elpa] externals/auctex 563f0e6 08/11: Fix docstring and spelling errors, Tassilo Horn, 2015/05/01
- [elpa] externals/auctex d35db3e 01/11: Improve/update styles., Tassilo Horn, 2015/05/01
- [elpa] externals/auctex 26f8ce1 09/11: Speed up kpsewhich calls by expanding all vars in one call, Tassilo Horn, 2015/05/01
- [elpa] externals/auctex 2c9e820 11/11: Release GNU AUCTeX 11.88.5, Tassilo Horn, 2015/05/01
- [elpa] externals/auctex afc1ef0 10/11: Merge branch 'master' into elpa,
Tassilo Horn <=