Dear Ikumi --
I'm curious whether the latter runs successfully on the command prompt.
> Can you test it? (It would be necessary to manipulate PATH environment
> variable to give higher priority to TeX Live 2020/W32TeX on the command
> prompt.)
Indeed it does run successfully: here is the command prompt output:
****************
C:\tmp>pdflatex test.tex
This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX)
(preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2020-02-02> patch level 5
L3 programming layer <2020-06-03>
(c:/texlive/2020/texmf-dist/tex/latex/base/article.cls
Document Class: article 2019/12/20 v1.4l Standard LaTeX document class
(c:/texlive/2020/texmf-dist/tex/latex/base/size10.clo))
(c:/texlive/2020/texmf-dist/tex/latex/l3backend/l3backend-pdfmode.def)
(./test.aux)
[1{c:/texlive/2020/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(./test.aux)
)<c:/texlive/2020/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.
pfb>
Output written on test.pdf (1 page, 12700 bytes).
Transcript written on test.log.
****************
And it seems that you are using cygwin bash terminal, not w32 command
> prompt. There is possibility that those discrepancy is the source of
> trouble. Could you include the output of M-x TeX-submit-bug-report in
> your next reply? I'd like to know that your emacs binary is cygwin or
> w32-native, in particular.
The emacs binary is w32-native. Below please find the bug-report you
requested.
Thanks!
****************
Emacs : GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
of 2019-04-13
Package: 13.1.1
current state:
==============
(setq
AUCTeX-date "2022-02-22"
window-system 'w32
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex"
"c:/Users/bruno/AppData/Roaming/.emacs.d/elpa/auctex-13.1.1/style"
"c:/Users/bruno/AppData/Roaming/.emacs.d/auctex/auto"
"c:/Users/bruno/AppData/Roaming/.emacs.d/auctex/style" "auto" "style")
TeX-auto-save nil
TeX-parse-self nil
TeX-master t
TeX-command-list '(("TeX"
"%(PDF)%(tex) %(file-line-error) %`%(extraopts) %S%(PDFout)%(mode)%'
%(output-dir) %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) %(o-dir) %t"
TeX-run-compile nil (texinfo-mode) :help
"Run Makeinfo with Info output")
("Makeinfo HTML"
"makeinfo %(extraopts) %(o-dir) --html %t"
TeX-run-compile nil (texinfo-mode) :help
"Run Makeinfo with HTML output")
("AmSTeX"
"amstex %(PDFout) %`%(extraopts) %S%(mode)%' %(output-dir) %t"
TeX-run-TeX nil (ams-tex-mode) :help "Run AMSTeX")
("ConTeXt"
"%(cntxcom) --once --texutil %(extraopts) %(execopts)%t"
TeX-run-TeX nil (context-mode) :help "Run ConTeXt once")
("ConTeXt Full" "%(cntxcom) %(extraopts) %(execopts)%t"
TeX-run-TeX nil (context-mode) :help
"Run ConTeXt until completion")
("BibTeX" "bibtex %(O?aux)" TeX-run-BibTeX nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode context-mode)
:help "Run BibTeX")
("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
:help "Run Biber")
("Texindex" "texindex %s.??" TeX-run-command nil
(texinfo-mode) :help "Run Texindex")
("Texi2dvi" "%(PDF)texi2dvi %t" TeX-run-command nil
(texinfo-mode) :help "Run Texi2dvi or Texi2pdf")
("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-dvips t
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
:help "Generate PostScript file")
("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
:help "Convert DVI file to PostScript")
("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
:help "Convert DVI file to PDF with dvipdfmx")
("Ps2pdf" "ps2pdf %f %(O?pdf)" TeX-run-ps2pdf nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
:help "Convert PostScript file to PDF")
("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command
nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
:help "Run makeglossaries to create glossary file")
("Index" "makeindex %(O?idx)" TeX-run-index nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
:help "Run makeindex to create index file")
("upMendex" "upmendex %(O?idx)" TeX-run-index t
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
:help "Run upmendex to create index file")
("Xindy" "texindy %s" TeX-run-command nil
(plain-tex-mode latex-mode doctex-mode ams-tex-mode
texinfo-mode)
: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")
)
)
****************
On Tue, Mar 1, 2022 at 10:57 PM Ikumi Keita <[email protected]> wrote:
> Hi Oscar,
>
> >>>>> Oscar Bruno <[email protected]> writes:
> > 1. Go where the source file is (e.g., "cd c:/tmp") and run pdflatex
> >> directly (without involving emacs):
> >> pdflatex SOURCEFILE.tex
> >> Does that run normally or stop with the same error?
>
> > This does not result in error. In fact, this is the method I have been
> > using to do my work since I found this problem. Below please find a
> sample
> > output:
>
> Thanks for providing console output. According to it, it seems that you
> have two (or more) instances of TeX Live installation, TeX Live
> 2015/Cygwin and TeX Live 2020/W32TeX.
>
> > ****************
> > abbey $ pdflatex test.tex
> > This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015/Cygwin)
> ^^^^^^^^^^^
> In your first message, it is reported as follows:
> > Running `LaTeX' on `ParallelIFGF' with ``pdflatex -file-line-error
> > -interaction=nonstopmode "ParallelIFGF.tex"''
> > This is pdfTeX, Version 3.14159265-2.6-1.40.21 (TeX Live 2020/W32TeX)
> ^^^^^^^^^^^
> I'm curious whether the latter runs successfully on the command prompt.
> Can you test it? (It would be necessary to manipulate PATH environment
> variable to give higher priority to TeX Live 2020/W32TeX on the command
> prompt.)
>
> And it seems that you are using cygwin bash terminal, not w32 command
> prompt. There is possibility that those discrepancy is the source of
> trouble. Could you include the output of M-x TeX-submit-bug-report in
> your next reply? I'd like to know that your emacs binary is cygwin or
> w32-native, in particular.
>
> > 2. If that doesn't cause error, try diabling your personal setting for
> >> emacs according to AUCTeX FAQ.
> >> (The paragraph which begins with
> >> Second, you can try to figure out if...
> >> in https://www.gnu.org/software/auctex/manual/auctex/FAQ.html#FAQ )
> >> On windows, the command `emacs -q -no-site-file -l auctex' should be
> >> replaced with `runemacs -q -no-site-file -l auctex'.
>
> > This test did provide an interesting result -- although I cannot say what
> > the problem is, it may give you a useful hint.
>
> > The test is as you suggested:
>
> > ****************
> > abbey $ ls
> > test.aux test.log test.pdf test.tex test.tex~ texput.log
> > abbey $ runemacs -q -no-site-file -l auctex test.tex
> > ****************
>
> > As a result of this an emacs window opened with the following error
> message:
>
> > ****************
> > Cannot open load file: No such file or directory, auctex
> > ****************
>
> Ah, sorry. For ELPA installation, the activation must been done in
> another way... Well, the revised command line is
> runemacs -q -no-site-file --eval "(progn (require 'package)
> (package-activate 'auctex))"
> (This quotation is for w32 command prompt. I'm not sure it works for
> cygwin bash terminal.)
>
> Regards,
> Ikumi Keita
> #StandWithUkraine #StopWarInUkraine
>