On Sun, Mar 24, 2013 at 12:56 PM, Georg Baum
<georg.b...@post.rwth-aachen.de> wrote:
> Scott Kostyshak wrote:
>
>> Without this, I get UTF-8 errors. ps2pdf and pdflatex compile fine but
>> LuaTeX does not like the current Latin-1 encoding of
>> DocumentTexteBidon.txt.
>>
>> Is this the right fix?
>
> Unfortunately not. This is a LaTeX limitation: files included via
> \verbatiminput need to be in the currently active encoding (where
> \verbatiminput is placed). Since the encoding is set to auto in the .lyx
> file, the encoding of the .tex file is latin9 in case of output for standard
> latex/pdflatex, and it is utf8 for xetex/luatex. If you convert the embedded
> file to utf8, you need to set the document encoding to utf8 as well, but I
> don't know whether that has other side effects.

Thanks for the explanation. If I understand correctly then,
DocumentTexteBidon.txt should have latin9 encoding when compiling with
latex/pdflatex and should have utf8 encoding when compiling with
xetex/luatex and thus it is impossible to have both (unless we have
the LyX converter change the encoding) ?

I'm not sure what to do then. When I change the encoding to utf8,
latex/pdflatex do not complain, which leads me to think it's OK for
all of them. But on the other hand my unfounded guess is that not as
many people use LuaTeX so that taking the risk might not be worth it.

Any advice?

Scott

Reply via email to