[AUCTeX-commit] GNU AUCTeX branch, master, updated. 238dad67f937da217a75518b9fffe734830b530b

2022-02-25 Thread Arash Esbati
--- commit 238dad67f937da217a75518b9fffe734830b530b Author: Arash Esbati Date: Fri Feb 25 09:35:54 2022 +0100 Introduce DEFAULT argument in `TeX-arg-length' * latex.el (TeX-arg-length): Add DEFAULT to argument names list which will be passed to `completing-read'. Adjust how this argument is shown in the

Re: Gradually replacing INITIAL-INPUT in minibuffer

2022-02-24 Thread Arash Esbati
Hi all, Tassilo Horn writes: > Arash Esbati writes: > >> Before touching the rest, I like to discuss this here and hear from >> users and developers what they think. > > Yes, please. :-) This is my idea on this: We add an additional argument `default' to the res

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 0847db39c9326914d05da82128e727d2d67efaeb

2022-02-24 Thread Arash Esbati
--- commit 0847db39c9326914d05da82128e727d2d67efaeb Author: Arash Esbati Date: Thu Feb 24 12:57:15 2022 +0100 Improve file query in style/ltxtable.el * style/ltxtable.el ("ltxtable"): Improve query for longtable file which can reside in a subfolder. Input die subfolder relative to director

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 0847db39c9326914d05da82128e727d2d67efaeb

2022-02-24 Thread Arash Esbati
--- commit 0847db39c9326914d05da82128e727d2d67efaeb Author: Arash Esbati Date: Thu Feb 24 12:57:15 2022 +0100 Improve file query in style/ltxtable.el * style/ltxtable.el ("ltxtable"): Improve query for longtable file which can reside in a subfolder. Input die subfolder relative to director

Re: Improve keymap handling

2022-02-24 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > I'd propose to commit the attached patch. What do you think about it? > [...] > > Does anyone find difficulties about these ideas? Thanks, your suggestions make sense to me, so feel free to install them. Best, Arash

Re: GNU AUCTeX branch, master, updated. 34befcc17649fd6615fd4ef8756fb78705f7fe55

2022-02-23 Thread Arash Esbati
Tassilo Horn writes: > Hm, with the current emacs master, the append-version is still faster > for me with a 76-element LaTeX-math-list. Which Emacs version are you on? My emacs-repository-version is 1e15500daf. > If we aim for best performance, we could of course use two dolists one > after

Re: GNU AUCTeX branch, master, updated. 34befcc17649fd6615fd4ef8756fb78705f7fe55

2022-02-23 Thread Arash Esbati
Tassilo Horn writes: > And in fact, `benchmark' suggest appending those two concrete lists is > faster than building a 2-element list containing the values of both > variables which makes sense: > > (benchmark 100 >'(list LaTeX-math-list LaTeX-math-default)) > "Elapsed time:

Re: GNU AUCTeX branch, master, updated. 34befcc17649fd6615fd4ef8756fb78705f7fe55

2022-02-23 Thread Arash Esbati
Hi Tassilo and David, Tassilo Horn writes: > Arash Esbati writes: > >> Or am I missing something? > > Yes, the performance aspect. The annotation function might be called > hundredth or thousands of times, and appending lists is expensive. > > ;; The current

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. a11592e9cad4abbb526af4c5143edcc2780a04fe

2022-02-21 Thread Arash Esbati
--- commit a11592e9cad4abbb526af4c5143edcc2780a04fe Author: Arash Esbati Date: Mon Feb 21 09:04:38 2022 +0100 Update pygmentize styles * style/minted.el (LaTeX-minted-key-val-options): Update style key with styles provided by pygmentize v2.11. diff --git a/style/minted.el b/style/minted.el index 93e8052a

[AUCTeX-commit] GNU AUCTeX branch, master, updated. a11592e9cad4abbb526af4c5143edcc2780a04fe

2022-02-21 Thread Arash Esbati
--- commit a11592e9cad4abbb526af4c5143edcc2780a04fe Author: Arash Esbati Date: Mon Feb 21 09:04:38 2022 +0100 Update pygmentize styles * style/minted.el (LaTeX-minted-key-val-options): Update style key with styles provided by pygmen

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. afd2691e569ea523383bdcb6ceb43ec4e24f1cca

2022-02-17 Thread Arash Esbati
--- commit afd2691e569ea523383bdcb6ceb43ec4e24f1cca Author: Arash Esbati Date: Thu Feb 17 13:16:41 2022 +0100 Update style/ltxdoc.el to class version 2.1d * style/ltxdoc.el ("ltxdoc"): Add '|' to `LaTeX-shortvrb-chars' before running the 'shortvrb' style hook. Add missing symbols to

[AUCTeX-commit] GNU AUCTeX branch, master, updated. afd2691e569ea523383bdcb6ceb43ec4e24f1cca

2022-02-17 Thread Arash Esbati
--- commit afd2691e569ea523383bdcb6ceb43ec4e24f1cca Author: Arash Esbati Date: Thu Feb 17 13:16:41 2022 +0100 Update style/ltxdoc.el to class version 2.1d * style/ltxdoc.el ("ltxdoc"): Add '|' to `LaTeX-shortvrb-chars' before running the 'shortvrb' style hook. Add missing symbols to

Fontification of verb contents in doctex-mode

2022-02-16 Thread Arash Esbati
Hi all, I vaguely remember that AUCTeX used to fontify things like \verb|foo| also in the comment part of files in doctex-mode. The following code: --8<---cut here---start->8--- % %<*driver> \documentclass{ltxdoc} \usepackage[T1]{fontenc} \begin{document}

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. b89b8cdd44dcfb45bd644e4fb2a013fb0f201738

2022-02-15 Thread Arash Esbati
--- commit b89b8cdd44dcfb45bd644e4fb2a013fb0f201738 Author: Arash Esbati Date: Tue Feb 15 10:34:07 2022 +0100 Update footmisc package options to v6.0b * style/footmisc.el (LaTeX-footmisc-package-options): Delete "bottomfootnotes". diff --git a/style/footmisc.el b/style/footmisc.el index 50c83

[AUCTeX-commit] GNU AUCTeX branch, master, updated. b89b8cdd44dcfb45bd644e4fb2a013fb0f201738

2022-02-15 Thread Arash Esbati
--- commit b89b8cdd44dcfb45bd644e4fb2a013fb0f201738 Author: Arash Esbati Date: Tue Feb 15 10:34:07 2022 +0100 Update footmisc package options to v6.0b * style/footmisc.el (LaTeX-footmisc-package-options): Delete "bottomfootnotes".

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 2b91d0cf0525ac5ea217fd4c1f3a6d975455e23a

2022-02-14 Thread Arash Esbati
--- commit 2b91d0cf0525ac5ea217fd4c1f3a6d975455e23a Author: Arash Esbati Date: Mon Feb 14 22:16:54 2022 +0100 ; * style/footmisc.el: Fix year in last commit. diff --git a/style/footmisc.el b/style/footmisc.el index 46380ccb..50c83053 100644 --- a/style/footmisc.el +++ b/style/footmisc.el @@ -25,7 +25,7 @@ ;;;

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 2b91d0cf0525ac5ea217fd4c1f3a6d975455e23a

2022-02-14 Thread Arash Esbati
--- commit 2b91d0cf0525ac5ea217fd4c1f3a6d975455e23a Author: Arash Esbati Date: Mon Feb 14 22:16:54 2022 +0100 ; * style/footmisc.el: Fix year in last commit. --- Summary of changes: style/footmisc.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 497847f1931013b40755bd033f29e95c8cc74b67

2022-02-12 Thread Arash Esbati
--- commit 497847f1931013b40755bd033f29e95c8cc74b67 Author: Arash Esbati Date: Sun Feb 13 08:46:39 2022 +0100 Update footmisc package options to v6.0a * style/footmisc.el (LaTeX-footmisc-package-options): Add new package options. --

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 497847f1931013b40755bd033f29e95c8cc74b67

2022-02-12 Thread Arash Esbati
--- commit 497847f1931013b40755bd033f29e95c8cc74b67 Author: Arash Esbati Date: Sun Feb 13 08:46:39 2022 +0100 Update footmisc package options to v6.0a * style/footmisc.el (LaTeX-footmisc-package-options): Add new package options. diff --git a/style/footmisc.el b/style/footmisc.el index 7069e89b..46380

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 27c91a033604578567f4cc817e85a5fc3f373d17

2022-02-11 Thread Arash Esbati
--- commit 27c91a033604578567f4cc817e85a5fc3f373d17 Author: Arash Esbati Date: Fri Feb 11 21:02:13 2022 +0100 Consider environments defined with newfloat package * style/subcaption.el ("subcaption"): Offer environments defined with newfloat package when declaring the

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 27c91a033604578567f4cc817e85a5fc3f373d17

2022-02-11 Thread Arash Esbati
--- commit 27c91a033604578567f4cc817e85a5fc3f373d17 Author: Arash Esbati Date: Fri Feb 11 21:02:13 2022 +0100 Consider environments defined with newfloat package * style/subcaption.el ("subcaption"): Offer environments defined with newfloat package when declaring the sub-caption feature.

Gradually replacing INITIAL-INPUT in minibuffer

2022-02-11 Thread Arash Esbati
Hi all, Emacs itself is replacing the initial input in the minibuffer during queries with default value which is less intrusive if one doesn't like the suggested value, i.e., one doesn't have to do C-a C-k etc. I'd like to suggest that we follow this change also in AUCTeX. I've implemented this

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 51cd5ea0bbf17a5ade02c1baa7a897375b1a34d7

2022-02-11 Thread Arash Esbati
--- commit 51cd5ea0bbf17a5ade02c1baa7a897375b1a34d7 Author: Arash Esbati Date: Fri Feb 11 14:29:49 2022 +0100 Improve fontification for LaTeX kernel macros * font-latex.el (font-latex-built-in-keyword-classes): Add fontification support for LaTeX kernel macros to various keyword classes. * tests/

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 51cd5ea0bbf17a5ade02c1baa7a897375b1a34d7

2022-02-11 Thread Arash Esbati
--- commit 51cd5ea0bbf17a5ade02c1baa7a897375b1a34d7 Author: Arash Esbati Date: Fri Feb 11 14:29:49 2022 +0100 Improve fontification for LaTeX kernel macros * font-latex.el (font-latex-built-in-keyword-classes): Add fontification support for LaTeX kernel macros to various keyword classes. * tests/

Re: [a new bug? concerning indenting]

2022-02-09 Thread Arash Esbati
Uwe Brauer writes: >> Hmm...though I haven't yet looked into the actual code, current guess is >> that the indent function `LaTeX-indent-line' doesn't like anything >> immediately following \left\{. After I broke the line just after >> \left\{, the result looked better: >> \begin{equation} >>

Re: Arguments query of \parbox

2022-02-09 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >>>>>> Arash Esbati writes: >> >> + ;; If the optional 'pos' was omitted, >> + ;; then we have to insert a pair of >> +

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 36a6d80e1b159a7d1162a05674587daff8be951c

2022-02-09 Thread Arash Esbati
--- commit 36a6d80e1b159a7d1162a05674587daff8be951c Author: Arash Esbati Date: Wed Feb 9 10:50:11 2022 +0100 Improve query for opt. arguments of \parbox and minipage * latex.el (LaTeX-env-minipage): Support query for all optional arguments of minipage environment. Don't use INITIAL-VALUE argument wh

[AUCTeX-commit] GNU AUCTeX branch, master, updated. a3282bbe063a6bb880164441e2077ae9a7082a7a

2022-02-09 Thread Arash Esbati
--- commit a3282bbe063a6bb880164441e2077ae9a7082a7a Author: Arash Esbati Date: Wed Feb 9 10:57:24 2022 +0100 Adjust entries for completion (TeX-arg-corner, TeX-arg-lr): Remove empty strings and unlistify the elements in collection argument of `compl

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 36a6d80e1b159a7d1162a05674587daff8be951c

2022-02-09 Thread Arash Esbati
--- commit 36a6d80e1b159a7d1162a05674587daff8be951c Author: Arash Esbati Date: Wed Feb 9 10:50:11 2022 +0100 Improve query for opt. arguments of \parbox and minipage * latex.el (LaTeX-env-minipage): Support query for all optional arguments of minipage environment. Don't use INITIAL-VALUE argument wh

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. a3282bbe063a6bb880164441e2077ae9a7082a7a

2022-02-09 Thread Arash Esbati
--- commit a3282bbe063a6bb880164441e2077ae9a7082a7a Author: Arash Esbati Date: Wed Feb 9 10:57:24 2022 +0100 Adjust entries for completion (TeX-arg-corner, TeX-arg-lr): Remove empty strings and unlistify the elements in collection argument of `completing-read'. diff --git a/latex.el b/latex.el index b0d92029

Re: Arguments query of \parbox

2022-02-02 Thread Arash Esbati
Ikumi Keita writes: >>>>>> Arash Esbati writes: > >> minipage environment has the same issue, but I have to look closer. > > The above new function can serve for minipage environment, so I think > its name should be something more general. Maybe TeX-arg-tbcs

Re: bug#28405: Adding entries to LaTeX-indent-environment-list

2022-02-02 Thread Arash Esbati
Uwe Brauer writes: > Suppose you have (or have a received) a file of that form > > \documentclass[a4paper]{article} > \begin{document} > \begin{equation} > a = \left.\int very very long expression in one line\begin{array} > a > a > a > \end{equation} > \end{document} > > So the equation is

Re: bug#28405: Adding entries to LaTeX-indent-environment-list

2022-02-02 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > With respect to math envs without alignment, e.g. "equation", > "displaymath" and "gather", I think there are two approaches: > 1. Remove them from default value of `LaTeX-indent-environment-list'. >Users who want to disable filling in such envs customize the

Re: bug#28405: Adding entries to LaTeX-indent-environment-list

2022-02-01 Thread Arash Esbati
Uwe Brauer writes: > I am deeply puzzled now. > > 1. I like Keita's patch because it results in filling with a much >better indenting. > > 2. But, are you saying the price for this is that auto-filling is >disabled and I have to deal with very long equations myself? Why >

Re: bug#28405: Adding entries to LaTeX-indent-environment-list

2022-02-01 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >>> I have tweaked LaTeX-indent-environment-list and I noticed bug#28405 [1]. >>> Should we add gather and multline environments as well to >>> LaTeX-indent-environment-list like this? > >>> diff --git a/style/amsmath.el b/style/amsmath.el >>> index

Arguments query of \parbox

2022-01-30 Thread Arash Esbati
Hi all, I think the query of arguments for \parbox isn't correct with the current implementation. FTR, \parbox has the following syntax: \parbox[][][]{}{} where supported values for are t, b or c and the ones for are t, b, c or s. latex.el does this: '("parbox" [ TeX-arg-tb ] [

Re: Fontification of kernel macros

2022-01-27 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: Thanks for your response. > 1. I think it'a good chance to consider to include fontification for > font specifying command in math mode such as \mathbf, \mathit etc. also, > as proposed previously: > https://lists.gnu.org/r/auctex-devel/2018-04/msg00014.html I

Fontification of kernel macros

2022-01-26 Thread Arash Esbati
Hi all, it occurred to me that there are kernel macros where AUCTeX doesn't provide fontification for. I'd like to improve this a little. I'm attaching a list of macros which I'm aware of, and how I think they should be added to font-latex.el. Please have a look at it and let me know if things

[AUCTeX-commit] GNU AUCTeX branch, master, updated. f99edced632140a8f406398d9b5ae73f7d97c4ce

2022-01-24 Thread Arash Esbati
--- commit f99edced632140a8f406398d9b5ae73f7d97c4ce Author: Arash Esbati Date: Mon Jan 24 12:04:20 2022 +0100 ; * tex-ispell.el: Fix regexp. --- Summary of changes: tex-ispell.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-recei

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. f99edced632140a8f406398d9b5ae73f7d97c4ce

2022-01-24 Thread Arash Esbati
--- commit f99edced632140a8f406398d9b5ae73f7d97c4ce Author: Arash Esbati Date: Mon Jan 24 12:04:20 2022 +0100 ; * tex-ispell.el: Fix regexp. diff --git a/tex-ispell.el b/tex-ispell.el index dfbcc5f1..5becea3c 100644 --- a/tex-ispell.el +++ b/tex-ispell.el @@ -374,7 +374,7 @@ not be quoted. An opening brace `{'

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. da5bb8e28d3e5d0f0f2bb8006d60b43220007881

2022-01-21 Thread Arash Esbati
--- commit da5bb8e28d3e5d0f0f2bb8006d60b43220007881 Author: Arash Esbati Date: Fri Jan 21 13:31:46 2022 +0100 Re-run LaTeX when .toc|lof|lot is missing * tex-buf.el (TeX-LaTeX-sentinel): Recognize missing .toc|lof|lot files and suggest a LaTeX re-run. Issue raised in: https://lists.gnu.org/archive/html/a

[AUCTeX-commit] GNU AUCTeX branch, master, updated. da5bb8e28d3e5d0f0f2bb8006d60b43220007881

2022-01-21 Thread Arash Esbati
--- commit da5bb8e28d3e5d0f0f2bb8006d60b43220007881 Author: Arash Esbati Date: Fri Jan 21 13:31:46 2022 +0100 Re-run LaTeX when .toc|lof|lot is missing * tex-buf.el (TeX-LaTeX-sentinel): Recognize missing .toc|lof|lot files and suggest a LaTeX re-run. Issue raised in: https://lists.gnu.org/archive/html/a

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 17ac32f2a70052c9782871fd76af96d0c5462539

2022-01-21 Thread Arash Esbati
--- commit 17ac32f2a70052c9782871fd76af96d0c5462539 Author: Arash Esbati Date: Fri Jan 21 11:02:17 2022 +0100 Fontify LaTeX kernel macros * font-latex.el (font-latex-built-in-keyword-classes): Add 3 core macros for TOC, LOF and LOT to func

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 17ac32f2a70052c9782871fd76af96d0c5462539

2022-01-21 Thread Arash Esbati
--- commit 17ac32f2a70052c9782871fd76af96d0c5462539 Author: Arash Esbati Date: Fri Jan 21 11:02:17 2022 +0100 Fontify LaTeX kernel macros * font-latex.el (font-latex-built-in-keyword-classes): Add 3 core macros for TOC, LOF and LOT to function class. diff --git a/font-latex.el b/font-latex.el index 729455b6

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 9073b5e117d14393e541bbcde7d5778856eed32e

2022-01-20 Thread Arash Esbati
--- commit 9073b5e117d14393e541bbcde7d5778856eed32e Author: Arash Esbati Date: Thu Jan 20 13:29:33 2022 +0100 * tex-ispell.el: Skip the arguments of stabular*? environments. --- Summary of changes: tex-ispell.el | 4 1 file changed, 4 insertions(

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 9073b5e117d14393e541bbcde7d5778856eed32e

2022-01-20 Thread Arash Esbati
--- commit 9073b5e117d14393e541bbcde7d5778856eed32e Author: Arash Esbati Date: Thu Jan 20 13:29:33 2022 +0100 * tex-ispell.el: Skip the arguments of stabular*? environments. diff --git a/tex-ispell.el b/tex-ispell.el index 009f5a9e..dfbcc5f1 100644 --- a/tex-ispell.el +++ b/tex-ispell.el @@ -63,6 +63,7 @@ ;; pyt

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 0744b687b3d7f6e3c5dc29f10778b952e025a817

2022-01-18 Thread Arash Esbati
--- commit 0744b687b3d7f6e3c5dc29f10778b952e025a817 Author: Arash Esbati Date: Tue Jan 18 22:57:50 2022 +0100 Add macros to skip from caption package * tex-ispell.el (TeX-ispell-skip-cmds-list): Add macros from caption.sty. diff --git a/tex-ispell.el b/tex-ispell.el index b6eddcf4..009f5a9e 100644 --- a/tex

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 0744b687b3d7f6e3c5dc29f10778b952e025a817

2022-01-18 Thread Arash Esbati
--- commit 0744b687b3d7f6e3c5dc29f10778b952e025a817 Author: Arash Esbati Date: Tue Jan 18 22:57:50 2022 +0100 Add macros to skip from caption package * tex-ispell.el (TeX-ispell-skip-cmds-list): Add macros from caption.sty. --- Summary

Re: change $$ to equations with automatic labels

2022-01-13 Thread Arash Esbati
Hi Uwe, Uwe Brauer writes: > I am using the following code > > (defun my-change-dollar-to-equation () > (interactive) > (save-excursion > (replace-regexp "\\$\\$\\(\\(.\\|\n\\)*?\\)\\$\\$" > "begin{equation}\\1end{equation}"))) > > But realized it would be nice

Re: reftex and babel

2022-01-11 Thread Arash Esbati
Uwe Brauer writes: >>>> "AE" == Arash Esbati writes: > >> Have you tried > >> C-M-v >> Scroll the next window upward (scroll-other-window). > Then I obtain > > Debugger entered--Lisp error: (wrong-type-argument characterp 8388630)

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 58eda6e1f07ea3caef1decd9a0a00e0461c47615

2022-01-11 Thread Arash Esbati
--- commit 58eda6e1f07ea3caef1decd9a0a00e0461c47615 Author: Arash Esbati Date: Tue Jan 11 11:03:16 2022 +0100 Re-add support for deprecated but necessary macros * style/siunitx.el ("siunitx"): Add back support for deprecated macros \si et al. Conditionalize support for macros \qty and \

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 58eda6e1f07ea3caef1decd9a0a00e0461c47615

2022-01-11 Thread Arash Esbati
--- commit 58eda6e1f07ea3caef1decd9a0a00e0461c47615 Author: Arash Esbati Date: Tue Jan 11 11:03:16 2022 +0100 Re-add support for deprecated but necessary macros * style/siunitx.el ("siunitx"): Add back support for deprecated macros \si et al. Conditionalize support for macros \qty and \

Re: siunitx support

2022-01-11 Thread Arash Esbati
Ikumi Keita writes: >>>>>> Arash Esbati writes: > >> It explicitly says that one has to use v2: > >> When the physics package is loaded before siunitx, the command \qty >> is not defined: users will need to use the version 2 command \SI. > &

Re: reftex and babel

2022-01-11 Thread Arash Esbati
Uwe Brauer writes: > I see something very different (see the attached screenshot, but also > note that I cannot scroll down that buffer! Have you tried C-M-v Scroll the next window upward (scroll-other-window). C-M-S-v Scroll the next window downward (scroll-other-window-down). ?

Re: reftex and babel

2022-01-10 Thread Arash Esbati
Uwe Brauer writes: > Thanks. Just a small observation, it seems that reftex is not really > supporting cleverref. > > I activated the cleverref option in reference style, but when I run > reftex-reference > and chose both references to the equations then again > (\ref{eq:test-ref:1}) and

Re: AUCTeX aligning function

2022-01-10 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >>>>>> Arash Esbati writes: > >> What do others think? > > Both align.el and whitespace.el are already bundled with Emacs 24.3, so > I think there's no problem to include your new function. Thanks for your response. Personally

Re: fail on regression test

2022-01-10 Thread Arash Esbati
Ikumi Keita writes: > I skimmed over v2 and v3 documents of siunitx briefly. If I don't miss > important points, the difference between them is that v3 adds some new > macros (e.g. \qty), depreciates some macros (e.g. \si), and drops > support for "s" type of column specification of tabular

Re: Convenience functions with external deps (was: [SOLVED by Arash])

2022-01-10 Thread Arash Esbati
Sorry for top-posting, but may I ask to respond to this message since the old subject line looks odd (and I forgot to change it in my previous message.) TIA. Arash Esbati writes: > Uwe Brauer writes: > >> I just found >> https://tex.stackexchange.com/questions/557959/em

Re: fail on regression test

2022-01-10 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >>>>>> Arash Esbati writes: > > Hm, my preference is to support both versions. From my experience, it's > not rare that people use TeX Live installation a few years old. For most > users, the aim to have TeX distribution is to

Re: [SOLVED by Arash]

2022-01-10 Thread Arash Esbati
Hi Uwe, Uwe Brauer writes: > I just found > https://tex.stackexchange.com/questions/557959/emacs-auctex-tabular-vertical-alignment-of-cells > > That is very nice. Thanks Arash. Sure, welcome. > Why not including this function in AucTeX? FTR, this is a more polished version of the function:

Re: reftex label support for lstlisting?

2022-01-10 Thread Arash Esbati
Uwe Brauer writes: > I typed precisely the same as you, but you are right, I should check my > customization first. The label is inserted by the function `LaTeX-env-label-as-keyval'[1]. You can also have a look at it and see if your config does something which confuses it. Best, Arash

Re: reftex and babel

2022-01-10 Thread Arash Esbati
Hi Uwe, Uwe Brauer writes: > Reftex inserted the reference to the equations (I chose one equation and > the other by hitting +) and connected the reference with the word «and» > > Given that this is a Spanish document «y» would be more appropriate. In > if it were German, then «und» etc etc. >

Re: reftex label support for lstlisting?

2022-01-09 Thread Arash Esbati
Hi Uwe, Uwe Brauer writes: > The correct way that a one can have a reference to a lstlisting > environment is by using \lstset, Yet another correct way is to put the caption into the optional argument of the lstlisting environment. > but it seems that reftex does not support this. AUCTeX has

Re: reftex and captionof

2022-01-09 Thread Arash Esbati
Uwe Brauer writes: >>>> "AE" == Arash Esbati writes: > >> Uwe Brauer writes: > >> What for problems are you facing? Can you elaborate? > > Its location. I can never be sure that since the figure is a floating > element that it is placed, wher

Re: reftex and captionof

2022-01-08 Thread Arash Esbati
Hi Uwe, Uwe Brauer writes: > I try to avoid using the figure environment since it sometimes causes > problems and chose instead What for problems are you facing? Can you elaborate? > \begin{center} > \includegraphics[width=.7\textwidth]{./impulso.png} > \captionof{figure}{\label{impulso}La

Re: fail on regression test

2022-01-06 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: > Since the recent update of style/siunitx.el, AUCTeX regression test > began to fail with `LaTeX-count-ampersands-inserted-in-tabular' test in > tests/latex/latex-test.el: [...] > Could you take care of it? Thanks for catching this. I pushed a change

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 5f99bc292940f12d8d8034e548045a6dee6fb8de

2022-01-06 Thread Arash Esbati
--- commit 5f99bc292940f12d8d8034e548045a6dee6fb8de Author: Arash Esbati Date: Thu Jan 6 22:10:21 2022 +0100 Fix tabular test for siunitx v3 * tests/latex/tabular-count-ampersands-in.tex: * tests/latex/tabular-count-ampersands-out.tex: Replace the s column specifier with S which is the only one provided

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 5f99bc292940f12d8d8034e548045a6dee6fb8de

2022-01-06 Thread Arash Esbati
--- commit 5f99bc292940f12d8d8034e548045a6dee6fb8de Author: Arash Esbati Date: Thu Jan 6 22:10:21 2022 +0100 Fix tabular test for siunitx v3 * tests/latex/tabular-count-ampersands-in.tex: * tests/latex/tabular-count-ampersands-out.tex: Replace the s column specifier with S which is the only one provided

preview-latex: Request for testing and feedback

2022-01-02 Thread Arash Esbati
Hi all, you will have seen that there is patch to preview.dtx which tries to resolve issues with current LaTeX kernel[1]. A new ELPA release is already out to bring this change to the user base. Please give this change as much testing as you can and report back any issues via a bug report. We

Re: Cosmetic patch for AUCTeX

2021-12-29 Thread Arash Esbati
Tassilo Horn writes: > Stefan Monnier writes: > >> The patch below removes the fallback code for when `nadvice` is not >> available, replacing it with a dependency on `nadvice-0.3` (which >> could be replaced by a dependency on Emacs-24.4). > > Thanks, Mr. Janitor! The patch looks good to me

Re: Query for environment to include in `LaTeX-env-figure'

2021-12-29 Thread Arash Esbati
Hi Keita, Ikumi Keita writes: >>>>>> Arash Esbati writes: >> I like the idea, but `LaTeX-default-tabular-environment' is notoriously >> the one I currently don't want. Should we change this part a little in >> order to give users a chance to pick up wh

Query for environment to include in `LaTeX-env-figure'

2021-12-19 Thread Arash Esbati
Hi all, when inserting a table environment with 'C-c C-e table RET', `LaTeX-env-figure' inserts the floating environment 'table' and then inserts the tabular environment stored in `LaTeX-default-tabular-environment' (the relevant part starts here[1]). I like the idea, but

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. bab6bf97b7cd6778c7d2ce9aa8f8ce5d083a8e7f

2021-12-18 Thread Arash Esbati
--- commit bab6bf97b7cd6778c7d2ce9aa8f8ce5d083a8e7f Author: Arash Esbati Date: Sat Dec 18 12:30:07 2021 +0100 Support enhanced tabular indentation * style/stabular.el ("stabular"): Append defined environments to `LaTeX-indent-environment-list'. diff --git a/style/stabular.el b/style/stabular.el in

[AUCTeX-commit] GNU AUCTeX branch, master, updated. bab6bf97b7cd6778c7d2ce9aa8f8ce5d083a8e7f

2021-12-18 Thread Arash Esbati
--- commit bab6bf97b7cd6778c7d2ce9aa8f8ce5d083a8e7f Author: Arash Esbati Date: Sat Dec 18 12:30:07 2021 +0100 Support enhanced tabular indentation * style/stabular.el ("stabular"): Append defined environments to `LaTeX-ind

[AUCTeX-commit] GNU AUCTeX branch, master, updated. f6edd15942985c89a571c48a188ca1213465160d

2021-12-15 Thread Arash Esbati
ow. - Log - commit f6edd15942985c89a571c48a188ca1213465160d Author: Arash Esbati Date: Wed Dec 15 11:33:43 2021 +0100 Add style/sidecap.el * Makefile.in (STYLESRC): Add new style. * style/sidecap.el: New file. commit 19cd0476e83e49b481dd9e0698c30d

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. f6edd15942985c89a571c48a188ca1213465160d

2021-12-15 Thread Arash Esbati
ow. - Log - commit f6edd15942985c89a571c48a188ca1213465160d Author: Arash Esbati Date: Wed Dec 15 11:33:43 2021 +0100 Add style/sidecap.el * Makefile.in (STYLESRC): Add new style. * style/sidecap.el: New file. diff --git a/Makefile.in b/Makefil

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 22e4415f65ac1b005ce70f637366efb4defa399c

2021-12-15 Thread Arash Esbati
--- commit 22e4415f65ac1b005ce70f637366efb4defa399c Author: Arash Esbati Date: Wed Dec 15 11:25:59 2021 +0100 Add styles for packages from sttools collection * Makefile.in (STYLESRC): Add new styles. * style/cuted.el: * style/floatpag.el: * style/flushend.el: * style/midfloat.el:

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 22e4415f65ac1b005ce70f637366efb4defa399c

2021-12-15 Thread Arash Esbati
--- commit 22e4415f65ac1b005ce70f637366efb4defa399c Author: Arash Esbati Date: Wed Dec 15 11:25:59 2021 +0100 Add styles for packages from sttools collection * Makefile.in (STYLESRC): Add new styles. * style/cuted.el: * style/floatpag.el: * style/flushend.el: * style/midfloat.el:

Re: [FR] RefTex support for zref-xr

2021-12-10 Thread Arash Esbati
Hi Gustavo, Gustavo Barros writes: > On Mon, 06 Dec 2021 at 09:26, Arash Esbati wrote: > >> After thinking about it, I think there is a chance to use RefTeX with >> something like this: >> >> (reftex-add-label-environments >> '(("\\zlabel{*]

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 9fdb1173a5afcf538279d4dd9fb467dfcfa4e9ff

2021-12-08 Thread Arash Esbati
--- commit 9fdb1173a5afcf538279d4dd9fb467dfcfa4e9ff Author: Arash Esbati Date: Wed Dec 8 09:31:09 2021 +0100 ; Fix previous commit * style/url.el ("url"): Use the correct function `LaTeX-url-DeclareUrlCommand-prepare'. diff --git a/style/url.el b/style/url.el index 8c186cf..af524bf 100644 ---

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 9fdb1173a5afcf538279d4dd9fb467dfcfa4e9ff

2021-12-08 Thread Arash Esbati
--- commit 9fdb1173a5afcf538279d4dd9fb467dfcfa4e9ff Author: Arash Esbati Date: Wed Dec 8 09:31:09 2021 +0100 ; Fix previous commit * style/url.el ("url"): Use the correct function `LaTeX-url-DeclareUrlCommand-prepare'. --- Summar

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 8e133062a06726e58f4d13d338ad339db00f1512

2021-12-06 Thread Arash Esbati
--- commit 8e133062a06726e58f4d13d338ad339db00f1512 Author: Arash Esbati Date: Mon Dec 6 15:50:14 2021 +0100 Update style/url.el to package version 3.4 * style/url.el: Add parsing abilities for the macros \urldef and \DeclareUrlCommand. (TeX-arg-url-urlstyle): New function renamed from `TeX-ar

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 8e133062a06726e58f4d13d338ad339db00f1512

2021-12-06 Thread Arash Esbati
--- commit 8e133062a06726e58f4d13d338ad339db00f1512 Author: Arash Esbati Date: Mon Dec 6 15:50:14 2021 +0100 Update style/url.el to package version 3.4 * style/url.el: Add parsing abilities for the macros \urldef and \DeclareUrlCommand. (TeX-arg-url-urlstyle): New function renamed from `TeX-ar

Re: Extending TeX-read-key-val

2021-12-06 Thread Arash Esbati
Arash Esbati writes: > We could ease the situation if we change `TeX-read-key-val' to: > > (defun TeX-read-key-val (optional key-val-alist prompt) > "Prompt for keys and values in KEY-VAL-ALIST and return them. > If OPTIONAL is non-nil, indicate in the prompt that we are &

Re: [FR] RefTex support for zref-xr

2021-12-06 Thread Arash Esbati
Gustavo Barros writes: > On Fri, 03 Dec 2021 at 10:40, Arash Esbati wrote: > >> Agreed. I think adding support for zref to RefTeX is a source of >> trouble. > > That's a pity, but I had to do it. And I understand, of course. (I > may pester you folks about this som

Re: [FR] RefTex support for zref-xr

2021-12-03 Thread Arash Esbati
Gustavo Barros writes: > On Wed, 01 Dec 2021 at 11:25, Arash Esbati wrote: > >> I can change that, but one issue which remains is that zref in >> general operates on labels defined with \zlabel (I know that this >> doesn't apply for \zexternaldocument without star). Hen

Re: [FR] RefTex support for zref-xr

2021-12-01 Thread Arash Esbati
Hi Gustavo, Gustavo Barros writes: > RefTeX has support for external documents, as defined by the `xr' > package, which is really useful when one is using it. > > However, there's another package with similar functionality, but > catering for `zref' references, which is actually a module of

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. bd2f3a806cee336fc94767ebc77f0e09264ad8cd

2021-11-26 Thread Arash Esbati
--- commit bd2f3a806cee336fc94767ebc77f0e09264ad8cd Author: Arash Esbati Date: Fri Nov 26 14:02:01 2021 +0100 Track changes in LaTeX kernel 2021-11-15 * font-latex.el (font-latex-built-in-keyword-classes): Add the macros \counterwith(in|out) to variable keyword-class. * latex.el (LaTeX-common-init

[AUCTeX-commit] GNU AUCTeX branch, master, updated. bd2f3a806cee336fc94767ebc77f0e09264ad8cd

2021-11-26 Thread Arash Esbati
--- commit bd2f3a806cee336fc94767ebc77f0e09264ad8cd Author: Arash Esbati Date: Fri Nov 26 14:02:01 2021 +0100 Track changes in LaTeX kernel 2021-11-15 * font-latex.el (font-latex-built-in-keyword-classes): Add the macros \counterwith(in|out) to variable keyword-class. * latex.el (LaTeX-common-init

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 8c50665e2b24128aa23d891b10519cda7d6e35ad

2021-11-26 Thread Arash Esbati
--- commit 8c50665e2b24128aa23d891b10519cda7d6e35ad Author: Arash Esbati Date: Fri Nov 26 13:31:23 2021 +0100 Add new style/unicodefonttable.el * Makefile.in (STYLESRC): Add new style. * style/unicodefonttable.el: New file. --

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 8c50665e2b24128aa23d891b10519cda7d6e35ad

2021-11-26 Thread Arash Esbati
--- commit 8c50665e2b24128aa23d891b10519cda7d6e35ad Author: Arash Esbati Date: Fri Nov 26 13:31:23 2021 +0100 Add new style/unicodefonttable.el * Makefile.in (STYLESRC): Add new style. * style/unicodefonttable.el: New file. diff --git a/Makefile.in b/Makefile.in index 5eba8ff..d47746a 100644 --- a/M

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 2e26d492d16b138c864ffcbbdc5d2ddee25de030

2021-11-25 Thread Arash Esbati
ow. - Log - commit 2e26d492d16b138c864ffcbbdc5d2ddee25de030 Author: Arash Esbati Date: Thu Nov 25 14:25:49 2021 +0100 Update style/siunitx.el to package version 3 * doc/changes.texi: Document the update of siunitx.el. * style/siunitx.el: Change ema

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 2e26d492d16b138c864ffcbbdc5d2ddee25de030

2021-11-25 Thread Arash Esbati
ow. - Log - commit 2e26d492d16b138c864ffcbbdc5d2ddee25de030 Author: Arash Esbati Date: Thu Nov 25 14:25:49 2021 +0100 Update style/siunitx.el to package version 3 * doc/changes.texi: Document the update of siunitx.el. * style/siunitx.el: Change ema

[AUCTeX-commit] GNU AUCTeX branch, master, updated. dfd3369d33af40927ad64c423864a01b1e35ada8

2021-11-23 Thread Arash Esbati
ow. - Log - commit dfd3369d33af40927ad64c423864a01b1e35ada8 Author: Arash Esbati Date: Tue Nov 23 16:42:21 2021 +0100 Add new style/xr.el * Makefile.in (STYLESRC): Add new style. * style/xr.el: New file. commit accfe51586abdd0d79e6bcd690ad9d3d7b373

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. dfd3369d33af40927ad64c423864a01b1e35ada8

2021-11-23 Thread Arash Esbati
ow. - Log - commit dfd3369d33af40927ad64c423864a01b1e35ada8 Author: Arash Esbati Date: Tue Nov 23 16:42:21 2021 +0100 Add new style/xr.el * Makefile.in (STYLESRC): Add new style. * style/xr.el: New file. diff --git a/Makefile.in b/Makefile.in ind

Re: [PATCH] Add styles for listings from tcolorbox.sty

2021-11-23 Thread Arash Esbati
Hi Dario, Dario Gjorgjevski writes: > Please find attached a patch adding styles for listings from > tcolorbox.sty. All three libraries---listings, listingsutf8, and > minted---are supported as well as the common environments and macros. First of all, my sincere apologies for the late

[AUCTeX-commit] GNU AUCTeX branch, master, updated. 7c4147b2965c3e82db1cc1a0a8bf55ae4de7ad47

2021-11-23 Thread Arash Esbati
--- commit 7c4147b2965c3e82db1cc1a0a8bf55ae4de7ad47 Author: Arash Esbati Date: Tue Nov 23 11:02:11 2021 +0100 Improve handling of key=vals in style/tcolorbox.el * style/tcolorbox.el (LaTeX-tcolorbox-keyval-options-local) (LaTeX-tcolorbox-update-style-key): Remove now unused variable and function.

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 7c4147b2965c3e82db1cc1a0a8bf55ae4de7ad47

2021-11-23 Thread Arash Esbati
--- commit 7c4147b2965c3e82db1cc1a0a8bf55ae4de7ad47 Author: Arash Esbati Date: Tue Nov 23 11:02:11 2021 +0100 Improve handling of key=vals in style/tcolorbox.el * style/tcolorbox.el (LaTeX-tcolorbox-keyval-options-local) (LaTeX-tcolorbox-update-style-key): Remove now unused variable and function.

Re: Macro to exclude from filling

2021-11-22 Thread Arash Esbati
Ikumi Keita writes: >>>>>> Arash Esbati writes: > > Oh, I didn't know \tabularnewline. Thanks. Sure, welcome. And while we're at it, I add fontification support for the macro to AUCTeX repo. >> I think we should treat \tabularnewline like \\ and \newline and

[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 363b77821886a6b4d063587d9de50905d18046cc

2021-11-22 Thread Arash Esbati
--- commit 363b77821886a6b4d063587d9de50905d18046cc Author: Arash Esbati Date: Mon Nov 22 11:37:24 2021 +0100 Update style/multicol.el to package version 1.9b * style/multicol.el ("multicol"): Add new macros. Change the query for \columnbreak which accepts an optional argument. Add f

<    4   5   6   7   8   9   10   11   12   13   >