Le 23/05/2018 à 12:46, jfbu a écrit :
Le 23/05/2018 à 12:33, jfbu a écrit :
Hi Keita
....
Can you please configure AUCTeX to issue this instead (I hope my mailer does
not add linebreaks)
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{prim\árias.tex}}
indeed LaTeX's \input checks if there is an opening brace, if not it uses TeX's
form of \input and the \detokenize is no good. Alternative
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}"
"\expandafter\input" \\detokenize{prim\árias.tex}
The alternative (as you mentioned earlier \detokenize doesn't play well with
\string# or with naked #, in the style of my previous post
jfbu <j...@free.fr> writes:
Perhaps you can use this mouthful
pdflatex -file-line-error -interaction=nonstopmode
"\begingroup\ifdefined\UseRawInputEncoding\UseRawInputEncoding\fi\edef\x{\noexpand\input{\string#éàè\string~\string#.tex}}\expandafter\endgroup\x"
would be
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}"
"\begingroup\ifdefined\UseRawInputEncoding\UseRawInputEncoding\fi\edef\x{\noexpand\input{primárias.tex}}\expandafter\endgroup\x"
You can replace \begingroup by { and \endgroup by }
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}"
"{\ifdefined\UseRawInputEncoding\UseRawInputEncoding\fi\edef\x{\noexpand\input{primárias.tex}}\expandafter}\x"
Jean-François
where the filename if containing # or ~ must have them escaped as \string# and
\string~
I don't know what is proper quoting on Windows, but here on bash the á withing
".." must not be shell-escaped.
The above works at my locale. It is the most powerful method because it can
handle filenames with # and ~.
Best
Jean-François
_______________________________________________
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex