When I use LaTeX in a Windows system I can easily use the \input
command with a file whose name contains accented letters, but in a Linux system I get the message
! LaTeX Error: File `Préambule.tex' not found.
How to fix that?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this communityI tried on a Ubuntu system, first by creating a file named Préambule.tex
and making a test file containing
\documentclass{article}
\begin{document}
\input{\detokenize{Préambule.tex}}
\end{document}
I compiled with pdflatex
and this is the terminal output
This is pdfTeX, Version 3.14159265-2.6-1.40.15 (TeX Live 2014) (preloaded format=pdflatex)
restricted \write18 enabled.
entering extended mode
(./test.tex
LaTeX2e <2014/05/01>
Babel <3.9l> and hyphenation patterns for 79 languages loaded.
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/article.cls
Document Class: article 2014/09/29 v1.4h Standard LaTeX document class
(/usr/local/texlive/2014/texmf-dist/tex/latex/base/size10.clo))
No file test.aux.
(./Préambule.tex) (./test.aux) )
No pages of output.
Transcript written on test.log.
So the file has correctly been found and input. However, it's usually better avoiding accented characters (and spaces) in file names.
\input{\detokenize{Préambule}}
, but it's just a guess.