>From e74f40b706473f68ce5caa33ff758aab77340d20 Mon Sep 17 00:00:00 2001 From: Arash Esbati Date: Tue, 21 Jul 2015 20:54:05 +0200 Subject: [PATCH 1/2] Fix a typo in the name of provided env's. * style/textpos.el ("textpos"): Fix the name of the provided env's which is `textblock' and not `textpos'. --- ChangeLog | 5 +++++ style/textpos.el | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index 1825cd7..5265019 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-07-21 Arash Esbati + + * style/textpos.el ("textpos"): Fix the name of the provided env's + which is `textblock' and not `textpos'. + 2015-07-18 Arash Esbati * latex.el (LaTeX-common-initialization): Query for the default diff --git a/style/textpos.el b/style/textpos.el index 6732361..c2f3e19 100644 --- a/style/textpos.el +++ b/style/textpos.el @@ -31,8 +31,8 @@ ;;; Code: -(defun LaTeX-env-arg-textpos (env) - "Query for the arguments of `textpos' environment and insert +(defun LaTeX-env-arg-textpos-textblock (env) + "Query for the arguments of `textblock' environment and insert them." (let* ((hsize (TeX-read-string "Width: ")) (ho (TeX-read-string "(Optional) X reference point: ")) @@ -68,9 +68,9 @@ them." (TeX-run-style-hooks "everyshi" "color") (LaTeX-add-environments - ;; \begin{textpos}{}[,](,) ... \end{textpos} - '("textpos" LaTeX-env-arg-textpos) - '("textpos*" LaTeX-env-arg-textpos)) + ;; \begin{textblock}{}[,](,) ... \end{textblock} + '("textblock" LaTeX-env-arg-textpos-textblock) + '("textblock*" LaTeX-env-arg-textpos-textblock)) (TeX-add-symbols '("TPGrid" [ LaTeX-arg-textpos-tpgrid ] -- 2.4.5