auctex
[Top][All Lists]
Advanced

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

Re: [AUCTeX] files with non-ascii characters and LaTeX as in TeXLive 201


From: jfbu
Subject: Re: [AUCTeX] files with non-ascii characters and LaTeX as in TeXLive 2018
Date: Wed, 23 May 2018 12:46:15 +0200
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:52.0) Gecko/20100101 Thunderbird/52.8.0

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 <address@hidden> 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"

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



reply via email to

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