Encodage chemin

Tout ce qui concerne le langage TeX/LaTeX et ses variantes. Ce langage est utilisable sur le forum via les balises tex.
[participation réservée aux utilisateurs inscrits]
Règles du forum
Merci de soigner la rédaction de vos messages et de consulter ce sujet avant de poster. Pensez également à utiliser la fonction recherche du forum.
motomath
Utilisateur confirmé
Utilisateur confirmé
Messages : 20
Inscription : lundi 08 octobre 2018, 19:24

Encodage chemin

Message non lu par motomath »

Bonjour,
Je suis sous Windows et j'utilise TexStudio 2.12.16
Mes fichiers sont codés en UTF8, mais j'ai un problème lorsque que je veux utilisé \input{…/continuité/exemple}
Je sais que le problème vient de l'accent.
Je pourrais donc renommer mon dossier. Malheureusement je vous donne cet exemple mais en fait dans mon chemin il y a un nom de dossier que
je ne peux pas changer.
Y a-t-il une solution ?
gigiair
Utilisateur chevronné
Utilisateur chevronné
Messages : 2804
Inscription : samedi 08 juillet 2006, 20:56
Localisation : Saint Bonnet Elvert

Re: encodage chemin

Message non lu par gigiair »

Je n'ai pas de problème avec ce fichier sous W1O/TeXLive2019

Code : Tout sélectionner

\documentclass[a4paper,french,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}

\begin{document}
Test
\input{Atué/atuer}
\end{document}
Le contenu du fichier Atué/atuer.tex est parfaitement inséré malgré l'accent (Fichier source en utf-8 sous Emacs).
JJR.
LaTeXien migrateur.
motomath
Utilisateur confirmé
Utilisateur confirmé
Messages : 20
Inscription : lundi 08 octobre 2018, 19:24

Re: encodage chemin

Message non lu par motomath »

J'ai copié cet exemple dans un répertoire.

Code : Tout sélectionner

\documentclass[a4paper,french,10pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{babel}

\begin{document}
Test
\input{Atué/atuer}
\end{document}
créé le dossié Atué et le fichier atuer
et voici le log

Code : Tout sélectionner

This is pdfTeX, Version 3.14159265-2.6-1.40.20 (TeX Live 2019/W32TeX) (preloaded format=pdflatex 2019.9.2)  7 SEP 2019 10:49
entering extended mode
 restricted \write18 enabled.
 %&-line parsing enabled.
**accent.tex
(./accent.tex
LaTeX2e <2018-12-01>
(c:/texlive/2019/texmf-dist/tex/latex/base/article.cls
Document Class: article 2018/09/03 v1.4i Standard LaTeX document class
(c:/texlive/2019/texmf-dist/tex/latex/base/size10.clo
File: size10.clo 2018/09/03 v1.4i Standard LaTeX file (size option)
)
\c@part=\count80
\c@section=\count81
\c@subsection=\count82
\c@subsubsection=\count83
\c@paragraph=\count84
\c@subparagraph=\count85
\c@figure=\count86
\c@table=\count87
\abovecaptionskip=\skip41
\belowcaptionskip=\skip42
\bibindent=\dimen102
)
(c:/texlive/2019/texmf-dist/tex/latex/base/inputenc.sty
Package: inputenc 2018/08/11 v1.3c Input encoding file
\inpenc@prehook=\toks14
\inpenc@posthook=\toks15
)
(c:/texlive/2019/texmf-dist/tex/latex/base/fontenc.sty
Package: fontenc 2018/08/11 v2.0j Standard LaTeX package

(c:/texlive/2019/texmf-dist/tex/latex/base/t1enc.def
File: t1enc.def 2018/08/11 v2.0j Standard LaTeX file
LaTeX Font Info:    Redeclaring font encoding T1 on input line 48.
))
(c:/texlive/2019/texmf-dist/tex/generic/babel/babel.sty
Package: babel 2019/07/19 3.33 The Babel package

(c:/texlive/2019/texmf-dist/tex/generic/babel/switch.def
File: switch.def 2019/07/19 3.33 Babel switching mechanism
)
(c:/texlive/2019/texmf-dist/tex/generic/babel-french/french.ldf
Language: french 2019/03/30 v3.5e French support from the babel system

(c:/texlive/2019/texmf-dist/tex/generic/babel/babel.def
File: babel.def 2019/07/19 3.33 Babel common definitions
\babel@savecnt=\count88
\U@D=\dimen103

(c:/texlive/2019/texmf-dist/tex/generic/babel/txtbabel.def)
\bbl@dirlevel=\count89
)
\l@acadian = a dialect from \language\l@french 
\FB@nonchar=\count90
Package babel Info: Making : an active character on input line 414.
Package babel Info: Making ; an active character on input line 415.
Package babel Info: Making ! an active character on input line 416.
Package babel Info: Making ? an active character on input line 417.
\FBguill@level=\count91
\FBold@everypar=\toks16
\FB@Mht=\dimen104
\mc@charclass=\count92
\mc@charfam=\count93
\mc@charslot=\count94
\std@mcc=\count95
\dec@mcc=\count96
\c@FBcaption@count=\count97
\listindentFB=\dimen105
\descindentFB=\dimen106
\labelindentFB=\dimen107
\labelwidthFB=\dimen108
\leftmarginFB=\dimen109
\parindentFFN=\dimen110
\FBfnindent=\dimen111
))
(c:/texlive/2019/texmf-dist/tex/latex/carlisle/scalefnt.sty)
(c:/texlive/2019/texmf-dist/tex/latex/graphics/keyval.sty
Package: keyval 2014/10/28 v1.15 key=value parser (DPC)
\KV@toks@=\toks17
) (./accent.aux)
\openout1 = `accent.aux'.

LaTeX Font Info:    Checking defaults for OML/cmm/m/it on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for T1/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OT1/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OMS/cmsy/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for OMX/cmex/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Font Info:    Checking defaults for U/cmr/m/n on input line 6.
LaTeX Font Info:    ... okay on input line 6.
LaTeX Info: Redefining \degres on input line 6.
LaTeX Info: Redefining \dots on input line 6.
LaTeX Info: Redefining \up on input line 6.


! LaTeX Error: File `Atué/atuer.tex' not found.

Type X to quit or <RETURN> to proceed,
or enter new name. (Default extension: tex)

Enter file name: 
! Emergency stop.
<read *> 
         
l.8 \input{Atué/atuer}
                       ^^M
*** (cannot \read from terminal in nonstop modes)

 
Here is how much of TeX's memory you used:
 1758 strings out of 492609
 23366 string characters out of 6132819
 100440 words of memory out of 5000000
 5732 multiletter control sequences out of 15000+600000
 4403 words of font info for 15 fonts, out of 8000000 for 9000
 1141 hyphenation exceptions out of 8191
 29i,0n,31p,168b,425s stack positions out of 5000i,500n,10000p,200000b,80000s
!  ==> Fatal error occurred, no output PDF file produced!
gigiair
Utilisateur chevronné
Utilisateur chevronné
Messages : 2804
Inscription : samedi 08 juillet 2006, 20:56
Localisation : Saint Bonnet Elvert

Re: encodage chemin

Message non lu par gigiair »

La commande \input{Atué/atuer} fait référence a un fichier atuer.tex qui doit exister. L'extension .tex est implicite dans la commande \input.
JJR.
LaTeXien migrateur.
motomath
Utilisateur confirmé
Utilisateur confirmé
Messages : 20
Inscription : lundi 08 octobre 2018, 19:24

Re: encodage chemin

Message non lu par motomath »

Oui j'ai bien mis le fichier atuer.tex dans le répertoire atué !
Ce que je ne comprends pas c'est que tout fonctionnait avant que j'installe TeXlive 2019 ??
gigiair
Utilisateur chevronné
Utilisateur chevronné
Messages : 2804
Inscription : samedi 08 juillet 2006, 20:56
Localisation : Saint Bonnet Elvert

Re: Encodage chemin

Message non lu par gigiair »

J'ai re-vérifié la compilation se passe bien chez moi (W10 64 bits, TL 2019, Emacs+AUCTeX) .
Les deux fichiers impliqués dans la compilation sont bien en utf-8 ?
Si le fichier à inclure n'est pas en utf-8 et contient des caractère non latin, ça coince. le nom du répertoire avec un caractère accentué ne pose pas de problème.
JJR.
LaTeXien migrateur.
motomath
Utilisateur confirmé
Utilisateur confirmé
Messages : 20
Inscription : lundi 08 octobre 2018, 19:24

Re: Encodage chemin

Message non lu par motomath »

Oui tous mes fichiers sont en utf8.
Je viens de faire le test sur l'ordinateur d'un collègue qui la même machine, la même version de Windows et cela fonctionne sans problème.
Je ne comprends rien !
gigiair
Utilisateur chevronné
Utilisateur chevronné
Messages : 2804
Inscription : samedi 08 juillet 2006, 20:56
Localisation : Saint Bonnet Elvert

Re: Encodage chemin

Message non lu par gigiair »

Il faudrait peut-être comparer les logs des versions des fichiers appelés avec un \listfiles. Mon fichier source et son log

Les noms de fichier comprenant des caractères non-ASCII ne sont pas acceptés sous GNU/Linux sauf s'ils sont englobés dans un \detokenize. J'ai testé, ça marche, mais je ne sais pas pourquoi, je n'y connais rien et TeX.
JJR.
LaTeXien migrateur.
Répondre
  • Sujets similaires
    Réponses
    Vues
    Dernier message