GNU bug report logs -
#21401
11.88.6; Incorrect detection of TeX variant
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21401 in the body.
You can then email your comments to 21401 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#21401
; Package
auctex
.
(Wed, 02 Sep 2015 15:30:07 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Jonathan Underwood <jonathan.underwood <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Wed, 02 Sep 2015 15:30:08 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
The following simple file results in AucTeX assuming the compiler to
run is AmS-TeX which no longer exists on most machines.
\documentclass[11pt]{article}
\usepackage{basicart1}
\begin{document}
\Document{DocNum}{\today}
\Title{Title of an Article}
{
\makebox[0.20\textwidth][c]{
Name of the Author
}
}
{
\makebox[0.17\textwidth][c]{%
% \footnotesize author <at> email.address
}
}
{%
Short Title
}
{%
Short Author
}
\end{document}
Emacs : GNU Emacs 24.5.1 (x86_64-redhat-linux-gnu, GTK+ Version 3.16.2)
of 2015-04-22 on buildhw-10.phx2.fedoraproject.org
Package: 11.88.6
current state:
==============
(setq
AUCTeX-date "2015-05-08"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex"
"/home/jgu/.emacs.d/elpa/auctex-11.88.6/style"
"/home/jgu/.emacs.d/auctex/auto"
"/home/jgu/.emacs.d/auctex/style" "auto" "style")
TeX-auto-save t
TeX-parse-self t
TeX-master nil
TeX-command-list '(("TeX"
"%(PDF)%(tex) %(file-line-error) %(extraopts)
%`%S%(PDFout)%(mode)%' %t"
TeX-run-TeX nil
(plain-tex-mode ams-tex-mode texinfo-mode) :help
"Run plain TeX")
("LaTeX" "%`%l%(mode)%' %t" TeX-run-TeX nil
(latex-mode doctex-mode) :help "Run LaTeX")
("Makeinfo" "makeinfo %(extraopts) %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo %(extraopts) --html %t"
TeX-run-compile nil (texinfo-mode) :help
"Run Makeinfo with HTML output")
("AmSTeX"
"%(PDF)amstex %(extraopts) %`%S%(PDFout)%(mode)%' %t"
TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt"
"texexec --once --texutil %(extraopts) %(execopts)%t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "texexec %(extraopts) %(execopts)%t"
TeX-run-TeX nil (context-mode) :help
"Run ConTeXt until completion")
("BibTeX" "bibtex %s" TeX-run-BibTeX nil t :help
"Run BibTeX")
("Biber" "biber %s" TeX-run-Biber nil t :help "Run Biber")
("View" "%V" TeX-run-discard-or-function t t :help
"Run Viewer")
("Print" "%p" TeX-run-command t t :help "Print the file")
("Queue" "%q" TeX-run-background nil t :help
"View the printer queue" :visible TeX-queue-command)
("File" "%(o?)dvips %d -o %f " TeX-run-command t t :help
"Generate PostScript file")
("Index" "makeindex %s" TeX-run-command nil t :help
"Create index file")
("Xindy" "texindy %s" TeX-run-command nil t :help
"Run xindy to create index file")
("Check" "lacheck %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for correctness")
("ChkTeX" "chktex -v6 %s" TeX-run-compile nil (latex-mode)
:help "Check LaTeX file for common mistakes")
("Spell" "(TeX-ispell-document \"\")" TeX-run-function nil
t :help "Spell-check the document")
("Clean" "TeX-clean" TeX-run-function nil t :help
"Delete generated intermediate files")
("Clean All" "(TeX-clean t)" TeX-run-function nil t :help
"Delete generated intermediate and output files")
("Other" "" TeX-run-command t t :help
"Run an arbitrary command")
)
)
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21401
; Package
auctex
.
(Wed, 02 Sep 2015 16:49:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 21401 <at> debbugs.gnu.org (full text, mbox):
It's not so much that AmS-TeX is detected, as the amstex processor is
still part of TeXLive (and I presume other distributions as well), but
when AmS-TeX is detected and the option to produce PDF output is
selected, the command that is invoked is pdfamstex, which does not
exist at all, anywhere.
--
Matthew Saltzman
Clemson University Math Sciences
mjs AT clemson DOT edu
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21401
; Package
auctex
.
(Thu, 03 Sep 2015 05:55:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 21401 <at> debbugs.gnu.org (full text, mbox):
Jonathan Underwood <jonathan.underwood <at> gmail.com> writes:
> The following simple file results in AucTeX assuming the compiler to
> run is AmS-TeX which no longer exists on most machines.
>
> \documentclass[11pt]{article}
> \usepackage{basicart1}
> \begin{document}
>
> \Document{DocNum}{\today}
I think this line is the culprit. AmS-TeX is detected by something
matching the regex "\\\\document\\b" near the beginning of the document
(see `TeX-format-list').
I don't know AmS-TeX at all but I think the regexes in `TeX-format-list'
should be matched case-sensitively (they are currently not), no? And
then your \Document wouldn't be matched.
Matthew Saltzman <mjs <at> clemson.edu> writes:
> It's not so much that AmS-TeX is detected, as the amstex processor is
> still part of TeXLive (and I presume other distributions as well), but
> when AmS-TeX is detected and the option to produce PDF output is
> selected, the command that is invoked is pdfamstex, which does not
> exist at all, anywhere.
I guess we should use amstex -output-format=pdf then, right?
Bye,
Tassilo
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#21401
; Package
auctex
.
(Thu, 03 Sep 2015 06:32:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 21401 <at> debbugs.gnu.org (full text, mbox):
Tassilo Horn <tsdh <at> gnu.org> writes:
Hi Jonathan & Matthew,
>> The following simple file results in AucTeX assuming the compiler to
>> run is AmS-TeX which no longer exists on most machines.
>>
>> \documentclass[11pt]{article}
>> \usepackage{basicart1}
>> \begin{document}
>>
>> \Document{DocNum}{\today}
>
> I think this line is the culprit. AmS-TeX is detected by something
> matching the regex "\\\\document\\b" near the beginning of the document
> (see `TeX-format-list').
>
> I don't know AmS-TeX at all but I think the regexes in `TeX-format-list'
> should be matched case-sensitively (they are currently not), no? And
> then your \Document wouldn't be matched.
>
> Matthew Saltzman <mjs <at> clemson.edu> writes:
>
>> It's not so much that AmS-TeX is detected, as the amstex processor is
>> still part of TeXLive (and I presume other distributions as well), but
>> when AmS-TeX is detected and the option to produce PDF output is
>> selected, the command that is invoked is pdfamstex, which does not
>> exist at all, anywhere.
>
> I guess we should use amstex -output-format=pdf then, right?
I've committed the following patch to the git master. Could you please
try it out and report back if that fixes the issues (i.e., the wrong
detection of AMS-TeX, and the nonexisting command when trying to process
a real AMS-TeX document with TeX-PDF-mode enabled)?
--8<---------------cut here---------------start------------->8---
References: master origin/master origin/HEAD
Author: Tassilo Horn <tsdh <at> gnu.org>
AuthorDate: Thu Sep 3 08:26:50 2015 +0200
Commit: Tassilo Horn <tsdh <at> gnu.org>
CommitDate: Thu Sep 3 08:26:50 2015 +0200
Case-sensitive mode detection + AMS-TeX fixes
* tex.el (TeX-tex-mode): Don't ignore case when matching the
TeX-format-list regexes.
(TeX-expand-list): Add expansion of %(PDFout) to -output-format
option for AmS-TeX.
(TeX-command-list): Use it instead of calling the non-existing
pdfamstex command.
1 parent commit, 1 merged branch, 2 containing branches
Parent | 66b97ff Don't add font-latex-setup to latex-mode-hook
Merged | master
Containing | master simplify-TeX-parse-error
Follows | release_11_88 (170)
2 files changed, 16 insertions(+), 3 deletions(-)
ChangeLog | 9 +++++++++
tex.el | 10 +++++++---
modified ChangeLog
@@ -1,3 +1,12 @@
+2015-09-03 Tassilo Horn <tsdh <at> gnu.org>
+
+ * tex.el (TeX-tex-mode): Don't ignore case when matching the
+ TeX-format-list regexes.
+ (TeX-expand-list): Add expansion of %(PDFout) to -output-format
+ option for AmS-TeX.
+ (TeX-command-list): Use it instead of calling the non-existing
+ pdfamstex command.
+
2015-09-02 Tassilo Horn <tsdh <at> gnu.org>
* font-latex.el: Remove code which set up font-latex for use with
modified tex.el
@@ -132,7 +132,7 @@ If nil, none is specified."
(texinfo-mode) :help "Run Makeinfo with Info output")
("Makeinfo HTML" "makeinfo %(extraopts) --html %t" TeX-run-compile nil
(texinfo-mode) :help "Run Makeinfo with HTML output")
- ("AmSTeX" "%(PDF)amstex %(extraopts) %`%S%(PDFout)%(mode)%' %t"
+ ("AmSTeX" "amstex %(PDFout) %(extraopts) %`%S%(mode)%' %t"
TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
;; support for ConTeXt --pg
;; first version of ConTeXt to support nonstopmode: 2003.2.10
@@ -455,7 +455,11 @@ string."
"pdf"
"")))
("%(PDFout)" (lambda ()
- (cond ((and (eq TeX-engine 'xetex)
+ (cond ((eq major-mode 'ams-tex-mode)
+ (if TeX-PDF-mode
+ " -output-format=pdf"
+ " -output-format=dvi"))
+ ((and (eq TeX-engine 'xetex)
(not TeX-PDF-mode))
" -no-pdf")
((and (eq TeX-engine 'luatex)
@@ -3398,7 +3402,7 @@ The algorithm is as follows:
(regexp-quote TeX-esc)
"\\)*\\)\\(%+ *\\)"))
(entry TeX-format-list)
- answer)
+ answer case-fold-search)
(while (and entry (not answer))
(if (re-search-forward (nth 2 (car entry))
10000 t)
--8<---------------cut here---------------end--------------->8---
Bye,
Tassilo
bug closed, send any further explanations to
21401 <at> debbugs.gnu.org and Jonathan Underwood <jonathan.underwood <at> gmail.com>
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Mon, 04 Mar 2024 11:18:01 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
.
(Mon, 01 Apr 2024 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 39 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.