auctex
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Fw: AUCTex in WSL cannot find TeX Live in Win


From: petepetite75
Subject: Fw: AUCTex in WSL cannot find TeX Live in Win
Date: Wed, 24 Aug 2022 05:09:27 +0200

 


Anfang der weitergeleiteten E-Mail
Von: petepetite75@my.mail.de
An: ikumi@ikumi.que.jp
Datum: 24-Aug-2022 05:06:47 +0200
Betreff: Re: AUCTex in WSL cannot find TeX Live in Win

Greetings Ikumi,
 
First of all, thank you very much for the kind reply, really appreciate it. Maybe this wsl-setup is just a little bit exotic and tricky, especially for a beginner.
 
> Maybe the >output of `M-x TeX-submit-bug-report RET' would be helpful.
 
I hope I have done this correctly: This is what I get with my default setup under which auctex can not find Tex Live in windows when I try to compile 'helloworld.tex'
 
 
Emacs : GNU Emacs 27.1 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d scroll bars)
of 2021-03-28, modified by Debian
Package: 13.1.3
current state:
==============
(setq
AUCTeX-date "2022-04-16"
window-system 'x
LaTeX-version "2e"
TeX-style-path '("~/.emacs.d/auctex"
"/home/citizen13/.emacs.d/elpa/auctex-13.1.3/style"
"/home/citizen13/.emacs.d/auctex/auto"
"/home/citizen13/.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 texinfo-mode ams-tex-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 context-mode
texinfo-mode ams-tex-mode)
:help "Run BibTeX")
("Biber" "biber %(output-dir) %s" TeX-run-Biber nil
(plain-tex-mode latex-mode doctex-mode texinfo-mode
ams-tex-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 texinfo-mode
ams-tex-mode)
:help "Generate PostScript file")
("Dvips" "%(o?)dvips %d -o %f " TeX-run-dvips nil
(plain-tex-mode latex-mode doctex-mode texinfo-mode
ams-tex-mode)
:help "Convert DVI file to PostScript")
("Dvipdfmx" "dvipdfmx -o %(O?pdf) %d" TeX-run-dvipdfmx nil
(plain-tex-mode latex-mode doctex-mode texinfo-mode
ams-tex-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 texinfo-mode
ams-tex-mode)
:help "Convert PostScript file to PDF")
("Glossaries" "makeglossaries %(d-dir) %s" TeX-run-command
nil
(plain-tex-mode latex-mode doctex-mode texinfo-mode
ams-tex-mode)
:help "Run makeglossaries to create glossary file")
("Index" "makeindex %(O?idx)" TeX-run-index nil
(plain-tex-mode latex-mode doctex-mode texinfo-mode
ams-tex-mode)
:help "Run makeindex to create index file")
("upMendex" "upmendex %(O?idx)" TeX-run-index t
(plain-tex-mode latex-mode doctex-mode texinfo-mode
ams-tex-mode)
:help "Run upmendex to create index file")
("Xindy" "texindy %s" TeX-run-command nil
(plain-tex-mode latex-mode doctex-mode texinfo-mode
ams-tex-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")
)


 > you have to set at least `TeX-command'
> and `LaTeX-command' to "tex.exe" and "latex.exe" respectively (without
> "pdf" prepended). Try inserting
> (setq TeX-command "tex.exe"
> LaTeX-command "latex.exe")
> in your personal init file. (Or you can use customize interface using
> `M-x customize-option RET TeX-command RET' and `M-x customize-option RET
> LaTeX-command RET')

> However, I'm not sure whether those treatments are enough or not.


I did as proposed by you and opted for writing
 
(setq TeX-command "tex.exe"
LaTeX-command "latex.exe")
 
into my .emacs 
 
Good news first: This seems to have evoked something:
 
Now, when loading helloworld.tex and run 'latex'-command
1) auctex does not complain any more but seems to be compiling.
2) asks to "Type 'C-c C-l" to display results of compilation"
 
 
Unfortunately though, this produces another error:
 
'Running `LaTeX' on `helloworld' with ``pdflatex.exe -file-line-error -interaction=nonstopmode helloworld.tex'''
 
 
Any idea what this might mean?
I have the feeling "we"  are definitely on the path and the solution may be just around the corner.
;-)
Best regards,
Pete
 
 
 
 
 
 
 
 
 
 
 
 
 


FreeMail powered by mail.de - mehr Sicherheit, Seriosität und Komfort


FreeMail powered by mail.de - mehr Sicherheit, Seriosität und Komfort
reply via email to

[Prev in Thread] Current Thread [Next in Thread]