Re: [AUCTeX] strange behaviour of dvipdfmx and xdvipdfmx in Emacs
Thanks, Arash! > there was a similar question with Luatex on tex.sx[1]. Maybe the answer > there helps. > > Best, Arash > > Footnotes: > [1] https://tex.stackexchange.com/q/374303/76063 This resolves my issue. Let me post the solution here. Add the following lines (setenv "LC_CTYPE" "UTF-8") (setenv "LC_ALL" "en_US.UTF-8") (setenv "LANG" "en_US.UTF-8") to ~/.emacs, therefore everything is fine. --- Best regards, Jun-Qi Hu signature.asc Description: Message signed with OpenPGP using GPGMail ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] `\pause' instead of `\pause{}'
Denis Bitouzéwrites: > as stated in Beamer's documentation, the syntax of the \pause command > is: > > ┌ > │ \pause[⟨number⟩] > └ Hi Denis, my apologies if you receive this message comes twice. Thanks for the report. I've just fixed this bug in style/beamer.el[1]. > Hence, after > > ┌ > │ C-c C-c pau TAB ENT > └ > > shouldn't AUCTeX insert `\pause' instead of `\pause{}'? Have you set `TeX-insert-braces' to t? In this case, AUCTeX will insert a pair of empty braces. They don't harm, just look odd, probably. If you don't like this, customize `TeX-insert-braces-alist' or add something like this to your init file: (eval-after-load "beamer" '(add-to-list 'TeX-insert-braces-alist '("pause" . nil))) Best, Arash Footnotes: [1] http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=4ddee01e68d34a91e75f92af58157d5985c5e6e2 ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX-commit] GNU AUCTeX branch, master, updated. 4ddee01e68d34a91e75f92af58157d5985c5e6e2
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 4ddee01e68d34a91e75f92af58157d5985c5e6e2 (commit) from 4d426eac1664add53e22046911e64d05991ade4a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 4ddee01e68d34a91e75f92af58157d5985c5e6e2 Author: Arash EsbatiDate: Tue Jun 13 22:20:26 2017 +0200 * style/beamer.el ("beamer"): Query for optional argument after \pause. --- Summary of changes: style/beamer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- GNU AUCTeX ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 4ddee01e68d34a91e75f92af58157d5985c5e6e2
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 4ddee01e68d34a91e75f92af58157d5985c5e6e2 (commit) from 4d426eac1664add53e22046911e64d05991ade4a (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 4ddee01e68d34a91e75f92af58157d5985c5e6e2 Author: Arash EsbatiDate: Tue Jun 13 22:20:26 2017 +0200 * style/beamer.el ("beamer"): Query for optional argument after \pause. diff --git a/style/beamer.el b/style/beamer.el index fe75e05..6cd8327 100644 --- a/style/beamer.el +++ b/style/beamer.el @@ -110,7 +110,7 @@ '("only" TeX-arg-beamer-overlay-spec 1) '("onslide" TeX-arg-beamer-overlay-spec) '("partpage") -'("pause") +'("pause" ["Slide number"]) '("structure" TeX-arg-beamer-overlay-spec 1) '("temporal" TeX-arg-beamer-overlay-spec 3) '("titlepage") --- Summary of changes: style/beamer.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) hooks/post-receive -- GNU AUCTeX ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs
Re: [AUCTeX] Entering maths
mar. 13 juin 2017, Denis Bitouzédisait : (hitting the backslash key on a French keyboard is a nightmare) As an example , | (define-key key-translation-map [?µ] [?\\]) ` and the very useless key "µ" is now "\" On a french PC keyboard, The worst is probably the "`" key. It is a lot of useless key you can re-use... -- JJR. ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Entering maths
Le 13/06/17 à 15h19, goj...@gmail.com a écrit : > Hi Denis, Hi, > take a look at the smartparens package (available on Elpa): > > https://github.com/Fuco1/smartparens/wiki > > I use it to get self-inserting parentheses and dollar signs instead of > Auctex's electric capabilities, and it works fine for the most part. > Maybe it'll give you more customization possibilities. Nice indeed. But too bad pressing repeatedly $ while the region is active, it doesn't toggle between ‘$|$‘ and ‘\[|\]‘ (hitting the backslash key on a French keyboard is a nightmare): I'll probably open an issue on this subject on the github repository of `smartparens'. -- Denis ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Entering maths
Hi Denis, take a look at the smartparens package (available on Elpa): https://github.com/Fuco1/smartparens/wiki I use it to get self-inserting parentheses and dollar signs instead of Auctex's electric capabilities, and it works fine for the most part. Maybe it'll give you more customization possibilities. ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Repeat TeX-command-run-all without buffer change
Hi Mosè, * Mosè Giordano: 13.06.2017 (09:55): [...] > Now AUCTeX suggests to rerun LaTeX when it catches xsim warnings. See commit > > * 4d426eac (2017-06-13) Suggest to rerun LaTeX if xsim properties changed > > https://git.savannah.gnu.org/gitweb/?p=auctex.git;a=commitdiff;h=4d426eac1664add53e22046911e64d05991ade4a That are great news, thanks for the super fast support! Regards Thorsten Grothe ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Entering maths
Le 13/06/17 à 14h52, Mosè Giordano a écrit : > 2017-06-13 14:21 GMT+02:00 Denis Bitouzé: >> IMHO, too bad TeX-electric-math is nil by default... > > I'd expect some people complaining about any value we'd choose as > default ;-) Except that this is the only one which is complainable :) >> But how to get: >> >> - ‘$|$’ with an "unrepeated" `$', >> - ‘\[|\]’ with an "repeated" `$'? > > The associations "$...$" → "$$...$$" and "\(...\)" → "\[...\]" are > hard-coded in `TeX-insert-dollar', there is currently no easy way to > overturn them. Very bad news, indeed... -- Denis ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Entering maths
2017-06-13 14:21 GMT+02:00 Denis Bitouzé: > IMHO, too bad TeX-electric-math is nil by default... I'd expect some people complaining about any value we'd choose as default ;-) > But how to get: > > - ‘$|$’ with an "unrepeated" `$', > - ‘\[|\]’ with an "repeated" `$'? The associations "$...$" → "$$...$$" and "\(...\)" → "\[...\]" are hard-coded in `TeX-insert-dollar', there is currently no easy way to overturn them. Bye, Mosè ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] `\pause' instead of `\pause{}'
Hi, as stated in Beamer's documentation, the syntax of the \pause command is: ┌ │ \pause[⟨number⟩] └ Hence, after ┌ │ C-c C-c pau TAB ENT └ shouldn't AUCTeX insert `\pause' instead of `\pause{}'? All the best. -- Denis ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Entering maths
Le 13/06/17 à 13h09, Mosè Giordano a écrit : > Hi Denis, Hi Mosé, > 2017-06-13 12:51 GMT+02:00 Denis Bitouzé: >> Hi, >> >> does AUCTeX provide something making life easier for inline-math >> expressions (`|' standing for the cursor position): >> >> - `\(|\)', >> - `$|$' (OK, it's easy to type two dollar signs and go back to write the >> expression between the dollar signs, but would be better if done by >> a shortcut)? > > Yes, of course ;-) You have to customize the `TeX-electric-math' > option > (https://www.gnu.org/software/auctex/manual/auctex.html#index-TeX_002delectric_002dmath): > > [...] Ooops, sorry for the noise: I looked at the AUCTeX documentation, but not at the right place: ┌ │ https://www.gnu.org/software/auctex/manual/auctex/Mathematics.html └ IMHO, too bad TeX-electric-math is nil by default... As an extra question, documentation says: By pressing repeatedly $ while the region is active you can toggle between an inline equation, a display equation, and no equation. To be precise, ‘$...$’ is replaced by ‘$$...$$’, whereas ‘\(...\)’ is replaced by ‘\[...\]’. But how to get: - ‘$|$’ with an "unrepeated" `$', - ‘\[|\]’ with an "repeated" `$'? >> In the same vein, I know constructing display-math expressions with >> `\[...\]': >> >> - has some drawbacks if `amsmath' is not loaded, > > I believe this is fixed if you have a recent LaTeX version (2015/01/01 > or newer, which is in TeX Live 2016). Ah, good to know! >> - is synonym to `\begin{equation*}...\end{equation*}' if `amsmath' is >> loaded, >> >> but does AUCTeX provide something for `\[|\]'? > > If you set `LaTeX-electric-left-right-brace' > (https://www.gnu.org/software/auctex/manual/auctex.html#index-LaTeX_002delectric_002dleft_002dright_002dbrace) > to non nil, as you as you type "\[", the closing "\]" is inserted > after point. OK. Thanks! -- Denis ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Entering maths
Hi Denis, 2017-06-13 12:51 GMT+02:00 Denis Bitouzé: > Hi, > > does AUCTeX provide something making life easier for inline-math > expressions (`|' standing for the cursor position): > > - `\(|\)', > - `$|$' (OK, it's easy to type two dollar signs and go back to write the > expression between the dollar signs, but would be better if done by > a shortcut)? Yes, of course ;-) You have to customize the `TeX-electric-math' option (https://www.gnu.org/software/auctex/manual/auctex.html#index-TeX_002delectric_002dmath): -- User Option: TeX-electric-math If the variable is non-nil and you type '$' outside math mode, AUCTeX will automatically insert the opening and closing symbols for an inline equation and put the point between them. The opening symbol will blink when 'blink-matching-paren' is non-nil. If 'TeX-electric-math' is nil, typing '$' simply inserts '$' at point, this is the default. Besides 'nil', possible values for this variable are '(cons "$" "$")' for TeX inline equations '$...$', and '(cons "\\(" "\\)")' for LaTeX inline equations '\(...\)'. If the variable is non-nil and point is inside math mode right between a couple of single dollars, pressing '$' will insert another pair of dollar signs and leave the point between them. Thus, if 'TeX-electric-math' is set to '(cons "$" "$")' you can easily obtain a TeX display equation '$$...$$' by pressing '$' twice in a row. (Note that you should not use double dollar signs in LaTeX because this practice can lead to wrong spacing in typeset documents.) In addition, when the variable is non-nil and there is an active region outside math mode, typing '$' will put around the active region symbols for opening and closing inline equation and keep the region active, leaving point after the closing symbol. By pressing repeatedly '$' while the region is active you can toggle between an inline equation, a display equation, and no equation. To be precise, '$...$' is replaced by '$$...$$', whereas '\(...\)' is replaced by '\[...\]'. If you want to automatically insert '$...$' in plain TeX files, and '\(...\)' in LaTeX files by pressing '$', add the following to your init file (add-hook 'plain-TeX-mode-hook (lambda () (set (make-variable-buffer-local 'TeX-electric-math) (cons "$" "$" (add-hook 'LaTeX-mode-hook (lambda () (set (make-variable-buffer-local 'TeX-electric-math) (cons "\\(" "\\)" > In the same vein, I know constructing display-math expressions with > `\[...\]': > > - has some drawbacks if `amsmath' is not loaded, I believe this is fixed if you have a recent LaTeX version (2015/01/01 or newer, which is in TeX Live 2016). > - is synonym to `\begin{equation*}...\end{equation*}' if `amsmath' is > loaded, > > but does AUCTeX provide something for `\[|\]'? If you set `LaTeX-electric-left-right-brace' (https://www.gnu.org/software/auctex/manual/auctex.html#index-LaTeX_002delectric_002dleft_002dright_002dbrace) to non nil, as you as you type "\[", the closing "\]" is inserted after point. Bye, Mosè ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX] Entering maths
Hi, does AUCTeX provide something making life easier for inline-math expressions (`|' standing for the cursor position): - `\(|\)', - `$|$' (OK, it's easy to type two dollar signs and go back to write the expression between the dollar signs, but would be better if done by a shortcut)? In the same vein, I know constructing display-math expressions with `\[...\]': - has some drawbacks if `amsmath' is not loaded, - is synonym to `\begin{equation*}...\end{equation*}' if `amsmath' is loaded, but does AUCTeX provide something for `\[|\]'? All the best. -- Denis ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
Re: [AUCTeX] Repeat TeX-command-run-all without buffer change
Hi Thorsten, 2017-06-05 18:27 GMT+02:00 Thorsten Grothe: > > Hi Mosè, > > * Mosè Giordano: 14.05.2017 (17:53): > > [...] > >> Very good! Once we know the warning issued by the new package xsim, >> we can support it. Feel free to ping us again when the package will >> be released ;-) > > the new package xsim is on ctan: > https://www.ctan.org/pkg/xsim?lang=de Now AUCTeX suggests to rerun LaTeX when it catches xsim warnings. See commit * 4d426eac (2017-06-13) Suggest to rerun LaTeX if xsim properties changed https://git.savannah.gnu.org/gitweb/?p=auctex.git;a=commitdiff;h=4d426eac1664add53e22046911e64d05991ade4a Bye, Mosè ___ auctex mailing list auctex@gnu.org https://lists.gnu.org/mailman/listinfo/auctex
[AUCTeX-commit] GNU AUCTeX branch, master, updated. 4d426eac1664add53e22046911e64d05991ade4a
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 4d426eac1664add53e22046911e64d05991ade4a (commit) via 0c03e4ac6042e7c19e4202b6d95c8c515145d264 (commit) from ab04c45dde3c1e591bd4e46ccd6a6211710355da (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 4d426eac1664add53e22046911e64d05991ade4a Author: Mosè GiordanoDate: Tue Jun 13 11:22:24 2017 +0200 Suggest to rerun LaTeX if xsim properties changed * tex-buf.el (TeX-LaTeX-sentinel): Catch xsim warning suggesting to rerun LaTeX and set LaTeX and next default command. commit 0c03e4ac6042e7c19e4202b6d95c8c515145d264 Author: Mosè Giordano Date: Tue Jun 13 11:20:55 2017 +0200 Catch expl3 warnings * tex-buf.el (LaTeX-warnings-regexp): Adapt regexp to the style of expl3 warnings. * tests/tex/error-parsing.el (TeX-error-parsing-expl3-warnings): New test for expl3 warnings. --- Summary of changes: tests/tex/error-parsing.el | 19 +++ tex-buf.el | 6 +- 2 files changed, 24 insertions(+), 1 deletion(-) hooks/post-receive -- GNU AUCTeX ___ auctex-commit mailing list auctex-com...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-commit
[AUCTeX-diffs] GNU AUCTeX branch, master, updated. 4d426eac1664add53e22046911e64d05991ade4a
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "GNU AUCTeX". The branch, master has been updated via 4d426eac1664add53e22046911e64d05991ade4a (commit) via 0c03e4ac6042e7c19e4202b6d95c8c515145d264 (commit) from ab04c45dde3c1e591bd4e46ccd6a6211710355da (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log - commit 4d426eac1664add53e22046911e64d05991ade4a Author: Mosè GiordanoDate: Tue Jun 13 11:22:24 2017 +0200 Suggest to rerun LaTeX if xsim properties changed * tex-buf.el (TeX-LaTeX-sentinel): Catch xsim warning suggesting to rerun LaTeX and set LaTeX and next default command. diff --git a/tex-buf.el b/tex-buf.el index 9659e07..fa8f409 100644 --- a/tex-buf.el +++ b/tex-buf.el @@ -1638,6 +1638,10 @@ Rerun to get mark in right position\\." nil t) (message "%s" "You should run LaTeX again to get TikZ marks in right position") (setq TeX-command-next TeX-command-default)) + ((re-search-forward "^\* xsim warning: \"rerun\"" nil t) +(message + "%s" "You should run LaTeX again to synchronize exercise properties") +(setq TeX-command-next TeX-command-default)) ((re-search-forward "^\\(\\*\\* \\)?J?I?p?\\(La\\|Sli\\)TeX\\(2e\\)? \ \\(Version\\|ver\\.\\|<[0-9/-]*\\(?:u[^>]*\\)?>\\)" nil t) commit 0c03e4ac6042e7c19e4202b6d95c8c515145d264 Author: Mosè Giordano Date: Tue Jun 13 11:20:55 2017 +0200 Catch expl3 warnings * tex-buf.el (LaTeX-warnings-regexp): Adapt regexp to the style of expl3 warnings. * tests/tex/error-parsing.el (TeX-error-parsing-expl3-warnings): New test for expl3 warnings. diff --git a/tests/tex/error-parsing.el b/tests/tex/error-parsing.el index 7193db6..3da46c1 100644 --- a/tests/tex/error-parsing.el +++ b/tests/tex/error-parsing.el @@ -121,6 +121,25 @@ ABD: EveryShipout initializing macros" 0 "LaTeX Warning: There were undefined references.\n" nil nil nil 2805 nil) +(ert-deftest TeX-error-parsing-expl3-warnings () + "Test parsing of expl3 warnings." + (should (equal + (with-temp-buffer +(setq TeX-debug-warnings t + TeX-debug-bad-boxes t) + (insert + "* +* xsim warning: \"rerun\" +* +* Exercise properties may have changed. Rerun to get them synchronized. +* +") + (TeX-parse-all-errors) +TeX-error-list) + '((warning nil nil "* xsim warning: \"rerun\"" 0 + "* xsim warning: \"rerun\"\n* \n* Exercise properties may have changed. Rerun to get them synchronized.\n*\n" + nil nil nil 200 nil) + ;; See https://lists.gnu.org/archive/html/auctex/2017-04/msg7.html. (ert-deftest TeX-LaTeX2e-date () "Test parsing of different LaTeX2e date formats." diff --git a/tex-buf.el b/tex-buf.el index 5fff109..9659e07 100644 --- a/tex-buf.el +++ b/tex-buf.el @@ -1531,7 +1531,7 @@ Return nil ifs no errors were found." ;; Package xyz123 Warning: ... ;; Class xyz123 Warning: ... (defvar LaTeX-warnings-regexp - "\\(?:LaTeX\\|Class\\|Package\\) [-A-Za-z0-9]* ?Warning:" + "\\(?:LaTeX\\|Class\\|Package\\|\*\\) [-A-Za-z0-9]* ?[Ww]arning:" "Regexp matching LaTeX warnings.") (defun TeX-LaTeX-sentinel-has-warnings () --- Summary of changes: tests/tex/error-parsing.el | 19 +++ tex-buf.el | 6 +- 2 files changed, 24 insertions(+), 1 deletion(-) hooks/post-receive -- GNU AUCTeX ___ auctex-diffs mailing list auctex-di...@gnu.org https://lists.gnu.org/mailman/listinfo/auctex-diffs