XeTeXProblem: Beamer+xelatex+\XeTeXdefaultencoding

Information and discussion about XeTeX, an alternative for pdfTeX based on e-Tex
Post Reply
fomin
Posts: 10
Joined: Thu Jun 17, 2010 10:52 am

Problem: Beamer+xelatex+\XeTeXdefaultencoding

Post by fomin »

Hello all!

I have full installation of Miktex 2.8.
This is my minimal working sample:

Code: Select all

\documentclass{beamer}
\XeTeXdefaultencoding "UTF-8"
\begin{document}
\end{document}
This sample compiled by xelatex results to one waste page with
"@safe@act @safe@act" (see PDF attached).

Same problem if «\XeTeXdefaultencoding "cp-1251"».

What is wrong?

Thanks all in advance,
Sincerely, Stas Fomin
Attachments
test.pdf
Result of xelatex compilation
(4.46 KiB) Downloaded 449 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org
LaTeX Beginner's Guide LaTeX Cookbook LaTeX TikZ graphics TikZによるLaTeXグラフィックス
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Problem: Beamer+xelatex+\XeTeXdefaultencoding

Post by josephwright »

Possibly a stupid question, but did you save your files in UTF-8 format? I've tried your example and all seems to be fine.
Joseph Wright
fomin
Posts: 10
Joined: Thu Jun 17, 2010 10:52 am

Re: Problem: Beamer+xelatex+\XeTeXdefaultencoding

Post by fomin »

Yes, I save in UTF8 without BOM (= plain ASCII)/

I attached all test files (source, logs, aux, …) zipped…
Attachments
xelatex-troubles.zip
All files (include log, aux, etc…)
(11.95 KiB) Downloaded 288 times
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Re: Problem: Beamer+xelatex+\XeTeXdefaultencoding

Post by josephwright »

Seems to be a line-ending effect. All is well with LF (Unix) endings, but the odd effects start with LF-CR (Windows) line ends.
Joseph Wright
josephwright
Site Moderator
Posts: 814
Joined: Tue Jul 01, 2008 2:19 pm

Problem: Beamer+xelatex+\XeTeXdefaultencoding

Post by josephwright »

Ah, this seems not to be a beamer issue:

Code: Select all

\documentclass{article}
\XeTeXdefaultencoding "UTF-8"
\usepackage{hyperref}
\begin{document}
\end{document}
shows the same issue when saved LF-CR. I'll report on c.t.t. to Heiko Oberdiek and see what happens.
Joseph Wright
fomin
Posts: 10
Joined: Thu Jun 17, 2010 10:52 am

Problem: Beamer+xelatex+\XeTeXdefaultencoding

Post by fomin »

Code: Select all

shows the same issue when saved LF-CR. I'll report on c.t.t. to Heiko Oberdiek and see what happens.
Still no workaround for the bug?
Post Reply