GNU bug report logs - #40389
12.2.0; AucTeX randomly inserts {\sc } instead of \textsc{}

Previous Next

Package: auctex;

Reported by: Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr>

Date: Thu, 2 Apr 2020 16:13:01 UTC

Severity: normal

Found in version 12.2.0

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 40389 in the body.
You can then email your comments to 40389 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#40389; Package auctex. (Thu, 02 Apr 2020 16:13:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Thu, 02 Apr 2020 16:13:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr>
To: bug-auctex <at> gnu.org
Subject: 12.2.0; AucTeX randomly inserts {\sc } instead of \textsc{}
Date: Thu, 2 Apr 2020 17:30:07 +0200
[Message part 1 (text/plain, inline)]
Hi,

Please ignore my previous email... Here is the bug report...


Remember to cover the basics.  Including a minimal LaTeX example
file exhibiting the problem might help.

Hi,

I'm using AucTeX for years now...

I'm using emacs "26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11)" and AucTeX 12.2.0 (installed from MELPA) on XUbuntu 19.10.

According to doc[1] (and years of usage...), hitting `C-c C-f C-<x>` should insert (`\text<xx>{yyy}`). e.g. `\textsc{yyy}`

However, on my machine, AucTeX randomly inserts font commands in old TeX style (`{\xx yyy}`) or modern one (`\text<xx>{yyy}`).

I have absolutely no clue why the behaviour is not consistent accross all .tex files, nor why it does not respect the documentation (always using modern syntax)....

PLEASE HELP!!!! This randomness is REALLY getting on my nerves!!! How can I get back a consistent behaviour???

[1] https://www.gnu.org/software/auctex/manual/auctex/Font-Specifiers.html

Emacs  : GNU Emacs 26.3 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.24.11)
 of 2019-09-23, modified by Debian
Package: 12.2.0

current state:
==============
(setq
 AUCTeX-version "12.2.0"
 LaTeX-command-style '(("" "%(PDF)%(latex) %(file-line-error) %(extraopts) %S%(PDFout)"))
 image-types '(svg imagemagick png gif tiff jpeg xpm xbm pbm postscript)
 preview-image-type 'png
 preview-image-creators '((dvipng (open preview-gs-open preview-dvipng-process-setup)
                           (place preview-gs-place) (close preview-dvipng-close))
                          (png (open preview-gs-open) (place preview-gs-place)
                           (close preview-gs-close))
                          (jpeg (open preview-gs-open) (place preview-gs-place)
                           (close preview-gs-close))
                          (pnm (open preview-gs-open) (place preview-gs-place)
                           (close preview-gs-close))
                          (tiff (open preview-gs-open) (place preview-gs-place)
                           (close preview-gs-close))
                          )
 preview-dvipng-image-type 'png
 preview-dvipng-command "dvipng -picky -noghostscript %d -o %m/prev%%03d.png"
 preview-pdf2dsc-command "pdf2dsc %s.pdf %m/preview.dsc"
 preview-gs-command "/usr/bin/gs"
 preview-gs-options '("-q" "-dDELAYSAFER" "-dNOPAUSE" "-DNOPLATFONTS" "-dPrinted"
                      "-dTextAlphaBits=4" "-dGraphicsAlphaBits=4")
 preview-gs-image-type-alist '((png png "-sDEVICE=png16m") (dvipng png "-sDEVICE=png16m")
                               (jpeg jpeg "-sDEVICE=jpeg") (pnm pbm "-sDEVICE=pnmraw")
                               (tiff tiff "-sDEVICE=tiff12nc"))
 preview-fast-conversion t
 preview-prefer-TeX-bb nil
 preview-dvips-command "dvips -Pwww -i -E %d -o %m/preview.000"
 preview-fast-dvips-command "dvips -Pwww %d -o %m/preview.ps"
 preview-scale-function 'preview-scale-from-face
 preview-LaTeX-command '("%`%l \"\\nonstopmode\\nofiles\\PassOptionsToPackage{"
                         ("," . preview-required-option-list)
                         "}{preview}\\AtBeginDocument{\\ifx\\ifPreview\\undefined"
                         preview-default-preamble "\\fi}\"%' \"\\detokenize{\" %t \"}\"")
 preview-required-option-list '("active" "tightpage" "auctex"
                                (preview-preserve-counters "counters"))
 preview-preserve-counters nil
 preview-default-option-list '("displaymath" "floats" "graphics" "textmath" "sections" "footnotes")
 preview-default-preamble '("\\RequirePackage[" ("," . preview-default-option-list)
                            "]{preview}[2004/11/05]")
 preview-LaTeX-command-replacements nil
 preview-dump-replacements '(preview-LaTeX-command-replacements
                             ("\\`\\([^ ]+\\)\\(?: +\\(?:\\(--?kanji[= ][^ ]+\\)\\|-\\(?:[^ \\\"]\\|\\\\.\\|\"[^\"]*\"\\)*\\)\\)*\\(.*\\)\\'" "\\1 -ini \\2 -interaction=nonstopmode \"&\\1\" " preview-format-name ".ini \\3")
                             )
 preview-undump-replacements '(("\\`\\([^ ]+\\)\\(?: +\\(?:\\(--?kanji[= ][^ ]+\\)\\|-\\(?:[^ \\\"]\\|\\\\.\\|\"[^\"]*\"\\)*\\)\\)*.* \"\\\\input\" \"\\\\detokenize{\" \\(.*\\) \"}\"\\'" "\\1 \\2 -interaction=nonstopmode -file-line-error " preview-format-name " \"/AUCTEXINPUT{\" \\3 \"}\"")
                               )
 preview-auto-cache-preamble 'ask
 preview-TeX-style-dir "/home/gmuller/.emacs.d/elpa/auctex-12.2.0/latex"
 )

Output from running `/usr/bin/gs -h':
GPL Ghostscript 9.27 (2019-04-04)
Copyright (C) 2018 Artifex Software, Inc.  All rights reserved.
Usage: gs [switches] [file1.ps file2.ps ...]
Most frequently used switches: (you can use # in place of =)
 -dNOPAUSE           no pause after page   | -q       `quiet
-- 
Guillaume MULLER
Data Scientist, PhD
Télécom Saint-Étienne (office i119)
25 rue du Dr Remy Annino
-
Laboratoire Hubert Curien (office e002)
18 rue du Pr Benoît Lauras
-
42000 Saint-Étienne
FRANCE
Mobile : +33 (0)6 51 22 33 49

[signature.asc (application/pgp-signature, attachment)]

Information forwarded to bug-auctex <at> gnu.org:
bug#40389; Package auctex. (Wed, 08 Apr 2020 06:00:02 GMT) Full text and rfc822 format available.

Message #8 received at 40389 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr>
Cc: 40389 <at> debbugs.gnu.org
Subject: Re: bug#40389: 12.2.0;
 AucTeX randomly inserts {\sc } instead of \textsc{}
Date: Wed, 08 Apr 2020 14:59:12 +0900
Hi Guillaume, sorry for late response.

>>>>> Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr> writes:
> However, on my machine, AucTeX randomly inserts font commands in old
> TeX style (`{\xx yyy}`) or modern one (`\text<xx>{yyy}`).

> I have absolutely no clue why the behaviour is not consistent accross
> all .tex files, nor why it does not respect the documentation (always
> using modern syntax)....

I suspect that the value of the variable `TeX-font-list' is not updated
in some of your buffers.  Could you examine the value of `TeX-font-list'
in the buffer where old TeX style command {\xx yyy} is inserted?

Regards,
Ikumi Keita




Information forwarded to bug-auctex <at> gnu.org:
bug#40389; Package auctex. (Wed, 08 Apr 2020 13:30:02 GMT) Full text and rfc822 format available.

Message #11 received at 40389 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr>
Cc: 40389 <at> debbugs.gnu.org
Subject: Re: bug#40389: 12.2.0;
 AucTeX randomly inserts {\sc } instead of \textsc{}
Date: Wed, 08 Apr 2020 22:29:43 +0900
Hi Guillaume,

>>>>> Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr> writes:
> Finally I found a work around: using M-x LaTeX-mode in the buffers
> where the problem occurs gets me the correct behaviour.

Then I guess that it's worth trying to add
%%% Local Variables:
%%% mode: latex
%%% End:
to the end of your LaTeX files.  If you devide your documents into some
child files using \input or \include, you can instead add a line
% -*- mode:latex -*-
as first line of the child files.

Regards,
Ikumi Keita




Information forwarded to bug-auctex <at> gnu.org:
bug#40389; Package auctex. (Wed, 08 Apr 2020 14:44:01 GMT) Full text and rfc822 format available.

Message #14 received at 40389 <at> debbugs.gnu.org (full text, mbox):

From: Ikumi Keita <ikumi <at> ikumi.que.jp>
To: Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr>
Cc: 40389 <at> debbugs.gnu.org
Subject: Re: bug#40389: 12.2.0;
 AucTeX randomly inserts {\sc } instead of \textsc{}
Date: Wed, 08 Apr 2020 23:43:43 +0900
>>>>> Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr> writes:
> Hi again,
> Thanks a lot for the info. Is there a way to do that automatically?

I think that simple shell script will do the job, if you have a lot of
LaTeX document files.

Regards,
Ikumi Keita




Information forwarded to bug-auctex <at> gnu.org:
bug#40389; Package auctex. (Sat, 09 Mar 2024 10:47:01 GMT) Full text and rfc822 format available.

Message #17 received at 40389 <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr>,
 40389 <at> debbugs.gnu.org
Subject: Re: bug#40389: 12.2.0; AucTeX randomly inserts {\sc } instead of
 \textsc{}
Date: Sat, 09 Mar 2024 11:45:31 +0100
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:

>>>>>> Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr> writes:
>> Hi again,
>> Thanks a lot for the info. Is there a way to do that automatically?
>
> I think that simple shell script will do the job, if you have a lot of
> LaTeX document files.

No further comments, therefore I'm closing this report.

Best, Arash




bug closed, send any further explanations to 40389 <at> debbugs.gnu.org and Guillaume MULLER <guillaume.muller <at> univ-st-etienne.fr> Request was from Arash Esbati <arash <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 09 Mar 2024 10:47:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 06 Apr 2024 11:24:28 GMT) Full text and rfc822 format available.

This bug report was last modified 13 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.