Hi Jean, thank you for detailed explanation.
jfbu <address@hidden> writes:
Le 07/10/2019 à 22:14, jfbu a écrit :
if /AUCTEXINPUT starts using \input{\detokenize{##1}} then
its invocation in preview-undump-replacements() should not
add extra leading and trailing spaces else we will have same problem
i.e. the line
preview-format-name " \"/AUCTEXINPUT{\" \\3 \"}\"")))
in preview.el
should, if I understand correctly the syntax be
preview-format-name " \"/AUCTEXINPUT{\"\\3\"}\"")))
(the kept \" pair if for LaTeX earlier than 2019-10-01 to
support spaces in filenames \input{"a b c.tex"} works
but \input{a b c.tex} works only since LaTeX 2019-10-01}
But perhaps there is Windows issue with \"<space> ??????
Yeah. If I drop the spaces around the file name of
"\detokenize{" %t "}"
in `preview-LaTeX-command' thus turning it into
"\detokenize{"%t"}"
, w32 shell (cmd.exe) does not process the quotes as expected when the
file name contains space:
,----
| Running `Preview-LaTeX' on `file with space' with ``pdflatex -file-line-error
"\nonstopmode\nofiles\PassOptionsToPackage{active,tightpage,auctex}{preview}\AtBeginDocument{\ifx\ifPreview\undefined\RequirePackage[displaymath,floats,graphics,textmath,sections,footnotes]{preview}[2004/11/05]\fi}"
"\input" "\detokenize{"^"\^"file with space.tex\^"^""}"''
| ! Unbalanced quotes in argument space.tex"}
|
| TeX Output exited as expected with code 1 at Tue Oct 8 13:18:06
| LaTeX: LaTeX found no preview images
`----
I personally don't think it's worth working on for file name beginning
with a space now.