Re: Emacs + AUCTeX + cœur LaTeX + MiKTeX + Nom de fichier avec caractères accentués
Vincent Belaïche <[email protected]> Sun, 30 Sep 2018 19:13:26 +0000
| Newsgroups | gmane.emacs.auctex.general,gmane.comp.tex.miktex |
|---|---|
| Message-ID | <AM6PR10MB1957514D2328BE84288AB79D84EE0@AM6PR10MB1957.EURPRD10.PROD.OUTLOOK.COM> |
--===============8251902872928476600== Content-Language: fr-FR Content-Type: multipart/alternative; boundary="_000_AM6PR10MB1957514D2328BE84288AB79D84EE0AM6PR10MB1957EURP_" --_000_AM6PR10MB1957514D2328BE84288AB79D84EE0AM6PR10MB1957EURP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Dear Arash, Thanks for the feedback, I reinstalled AUCTeX from the GIT repo, and after = erasing my customization & relaunching Emacs it worked, as expected with Mi= KTeX. Just out of curiosity : do you have any idea of what the root cause of this= change of behaviour is ? What surprises me is not really that it does not = work any longer with \input, but that for some reason it has ever worked, a= nd that Indeed it used to work with it? Anyway, the root cause of this sort of issues is that the TeX engines comma= nd line is based on some non POSIX command line format and some euristic, o= ne cannot write something like pdflatex --tex \input --file libert=E9.tex where the argument after --tex would be interpreted as TeX code, and the ar= gument after --file would be interpreted as a filename (ie all characters g= etting catcode 11 or 12). So, OK not having \input makes it work for the simple case of LaTeX compila= tion, but the command line euristic is broken when, say, the TeX4ht loader = is used, which means that non ASCII letters in the input filename would be = quite messy for TeX4ht to support. I also remember similar discussion for texi2dvi, see this fix if you are in= terested: http://svn.savannah.gnu.org/viewvc/texinfo/trunk/util/texi2dvi?r1=3D7199&r2= =3D7200, the trick was made to support funny characters like ~ in filenames= while continuing to have \input in the command line... VBR, Vincent. ________________________________ De : auctex <[email protected]> de la part de= Arash Esbati <[email protected]> Envoy=E9 : vendredi 28 septembre 2018 13:58 =C0 : [email protected] Cc : AUCTeX; MikTeX user group list Objet : Re: [AUCTeX] Emacs + AUCTeX + c=9Cur LaTeX + MiKTeX + Nom de fichie= r avec caract=E8res accentu=E9s [email protected] writes: > Sans ma customisation d'AUCTeX =E7a fait cela: > > --8<----8<----8<----8<----8<-- begin -->8---->8---->8---->8---->8---- > Running `LaTeX' on `libert=E9' with ``pdflatex -file-line-error -inter= action=3Dnonstopmode "\input" "libert=E9.tex"'' > This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6745 64-bit) > entering extended mode > LaTeX2e <2018-04-01> patch level 5 > ???:0: I can't find file `libert'. > <to be read again> > \global > <*> \input libert=C3=A9 > .tex > Please type another input file name > ???:0: Emergency stop > ???:0: =3D=3D> Fatal error occurred, no output PDF file produced! > Transcript written on texput.log. > > TeX Output exited abnormally with code 1 at Fri Sep 28 06:34:53 > --8<----8<----8<----8<----8<-- end -->8---->8---->8---->8---->8---- Hi Vincent, latest development version of AUCTeX handles file names with non-ascii characters correctly. For details, see this change[1]. Compiling a file `libert=E9.tex' and hitting `C-c C-l' shows this for me: --8<---------------cut here---------------start------------->8--- Running `LaTeX' on `libert=E9' with ``pdflatex -file-line-error -interac= tion=3Dnonstopmode "libert=E9.tex"'' This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) (prel= oaded format=3Dpdflatex) restricted \write18 enabled. entering extended mode (./libert=E9.tex LaTeX2e <2018-04-01> patch level 5 ... Transcript written on libert=E9.log. --8<---------------cut here---------------end--------------->8--- Note the missing \input <filename.tex>. I'm using TeXlive, but this shouldn't make a difference. Best, Arash Footnotes: [1] http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=3Da8ea1273fd95d= a5702fe95ad3f41d151b621bc72 _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex --_000_AM6PR10MB1957514D2328BE84288AB79D84EE0AM6PR10MB1957EURP_ Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable <html> <head> <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DWindows-1= 252"> <style type=3D"text/css" style=3D"display:none;"> P {margin-top:0;margin-bo= ttom:0;} </style> </head> <body dir=3D"ltr"> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> Dear Arash,</div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> Thanks for the feedback, I reinstalled AUCTeX from the GIT repo, and after = erasing my customization & relaunching Emacs it worked, as expected wit= h MiKTeX.</div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <br> </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> Just out of curiosity : do you have any idea of what the root cause of this= change of behaviour is ? What surprises me is not really that it does not = work any longer with \input, but that for some reason it has ever worked, a= nd that Indeed it used to work with it?</div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <br> </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> Anyway, the root cause of this sort of issues is that the TeX engines comma= nd line is based on some non POSIX command line format and some euristic, o= ne cannot write something like </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <br> </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> pdflatex --tex \input --file libert=E9.tex</div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <br> </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> where the argument after --tex would be interpreted as TeX code, and the ar= gument after --file would be interpreted as a filename (ie all characters g= etting catcode 11 or 12).</div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <br> </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> So, OK not having \input makes it work for the simple case of LaTeX compila= tion, but the command line euristic is broken when, say, the TeX4ht loader = is used, which means that non ASCII letters in the input filename would be = quite messy for TeX4ht to support. </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <br> </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> I also remember similar discussion for texi2dvi, see this fix if you are in= terested: </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <a id=3D"LPlnk918860" href=3D"http://svn.savannah.gnu.org/viewvc/texinfo/tr= unk/util/texi2dvi?r1=3D7199&r2=3D7200">http://svn.savannah.gnu.org/view= vc/texinfo/trunk/util/texi2dvi?r1=3D7199&r2=3D7200</a>, the trick was m= ade to support funny characters like ~ in filenames while continuing to have \input in the command line...</div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <br> </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> <br> </div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> VBR,</div> <div style=3D"color: rgb(0, 0, 0); font-family: "Courier New",mon= ospace; font-size: 12pt;"> Vincent.</div> <hr tabindex=3D"-1" style=3D"display:inline-block;width:98%"> <div id=3D"divRplyFwdMsg" dir=3D"ltr"><font color=3D"#000000" face=3D"Calib= ri, sans-serif" style=3D"font-size:11pt"><b>De :</b> auctex <auctex-boun= ces+[email protected]> de la part de Arash Esbati <= ;[email protected]><br> <b>Envoy=E9 :</b> vendredi 28 septembre 2018 13:58<br> <b>=C0 :</b> [email protected]<br> <b>Cc :</b> AUCTeX; MikTeX user group list<br> <b>Objet :</b> Re: [AUCTeX] Emacs + AUCTeX + c=9Cur LaTeX + MiK= TeX + Nom de fichier avec caract=E8res accentu=E9s</font> <div> </div> </div> <div class=3D"BodyFragment"><font size=3D"2"><span style=3D"font-size:11pt;= "> <div class=3D"PlainText">[email protected] writes:<br> <br> > Sans ma customisation d'AUCTeX =E7a fait cela:<br> ><br> > --8<----8<----8<----8<----8<-- begin -->8---->8--= -->8---->8---->8----<br> > Running `LaTeX' on `libert=E9' with ``pdflatex -file-line-error&= nbsp; -interaction=3Dnonstopmode "\input" "libert=E9.t= ex"''<br> > This is pdfTeX, Version 3.14159265-2.6-1.40.19 (MiKTeX 2.9.6745 64-bit= )<br> > entering extended mode<br> > LaTeX2e <2018-04-01> patch level 5<br> > ???:0: I can't find file `libert'.<br> > <to be read again> <br> >  = ; \global <br> > <*> \input libert=C3=A9<br> >  = ; .tex<br> > Please type another input file name<br> > ???:0: Emergency stop<br> > ???:0: =3D=3D> Fatal error occurred, no output PDF file produ= ced!<br> > Transcript written on texput.log.<br> ><br> > TeX Output exited abnormally with code 1 at Fri Sep 28 06:34:53<br> > --8<----8<----8<----8<----8<-- end -->8-= --->8---->8---->8---->8----<br> <br> Hi Vincent,<br> <br> latest development version of AUCTeX handles file names with non-ascii<br> characters correctly. For details, see this change[1].<br> <br> Compiling a file `libert=E9.tex' and hitting `C-c C-l' shows this for me:<b= r> <br> --8<---------------cut here---------------start------------->8---<br> Running `LaTeX' on `libert=E9' with ``pdflatex -file-line-error = -interaction=3Dnonstopmode "libert=E9.tex"''<br> This is pdfTeX, Version 3.14159265-2.6-1.40.19 (TeX Live 2018/W32TeX) (prel= oaded format=3Dpdflatex)<br> restricted \write18 enabled.<br> entering extended mode<br> (./libert=E9.tex<br> LaTeX2e <2018-04-01> patch level 5<br> ...<br> Transcript written on libert=E9.log.<br> --8<---------------cut here---------------end--------------->8---<br> <br> Note the missing \input <filename.tex>. I'm using TeXlive, but = this<br> shouldn't make a difference.<br> <br> Best, Arash<br> <br> Footnotes: <br> [1] <a href=3D"http://git.savannah.gnu.org/cgit/auctex.git/commit/?id= =3Da8ea1273fd95da5702fe95ad3f41d151b621bc72"> http://git.savannah.gnu.org/cgit/auctex.git/commit/?id=3Da8ea1273fd95da5702= fe95ad3f41d151b621bc72</a><br> <br> <br> _______________________________________________<br> auctex mailing list<br> [email protected]<br> <a href=3D"https://lists.gnu.org/mailman/listinfo/auctex">https://lists.gnu= .org/mailman/listinfo/auctex</a><br> </div> </span></font></div> </body> </html> --_000_AM6PR10MB1957514D2328BE84288AB79D84EE0AM6PR10MB1957EURP_-- --===============8251902872928476600== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ auctex mailing list [email protected] https://lists.gnu.org/mailman/listinfo/auctex --===============8251902872928476600==--