[XeTeX] Problem: Beamer+xelatex+\XeTeXdefaultencoding

Heiko Oberdiek heiko.oberdiek at googlemail.com
Tue Jun 22 01:26:53 CEST 2010


Hi Ross,

On Tue, Jun 22, 2010 at 08:54:26AM +1000, Ross Moore wrote:

> > If you simply copied the lines from the e-mail, like I did, you do see the problem.
> > If you then clean up the EOLs the problem goes away.
> 
> Interesting. Because the actual content is placed on the page
> during  hyperref's  \ReadBookmarks  command, where it reads in
> the \jobname.out  file --- which seems to be completely empty.
> 
>   -rw-r--r--  1 rossmoor  staff    0 22 Jun 08:36 beam-test.out
> 
> viz.
> 
> {\jobname}
> {\input}
> 
> \@filef at und ->beam-test.out 
> (./beam-test.out
> {the character @}
> {horizontal mode: the character @}
> {blank space  }
> )
> 
> 
> When reading the input stream, a single line-end character might 
> be generated at the start ?
> But that still leaves open the question of how it picks up
> the character string '@safe at act' .
> Maybe it all happens internally and there is a buffer overrun?

I came to the same conclusion, see my answer to Josephs mail.

> > I had to add something (Hello World!) to get any pages generated.
> 
> Yes; I found this was necessary too.

This file was all I need to reproduce the problem (LF line ending, Linux):

\documentclass{article}
\XeTeXdefaultencoding "UTF-8"  
\usepackage{hyperref}
\begin{document}
\end{document}

> I think that it is up to Jonathan and Heiko to figure out
> why their coding creates this kind of undesirable interaction.

The problem is not related to hyperref:

\documentclass{article}
\XeTeXdefaultencoding "UTF-8"
\AtBeginDocument{%
  \InputIfFileExists{t003.out}{}{}
}
\begin{document}
\end{document}

It shows the string "OT1/cm".

Or:

\documentclass{minimal}
\XeTeXdefaultencoding "UTF-8"
\AtBeginDocument{%
  \InputIfFileExists{t003.out}{}{}
}
\begin{document}
\end{document}

This shows "D at OT1m".

xetex --version

XeTeX 3.1415926-2.2-0.9997.1 (TeX Live 2010)
kpathsea version 6.0.0
Copyright 2010 SIL International and Jonathan Kew.
There is NO warranty.  Redistribution of this software is
covered by the terms of both the XeTeX copyright and
the Lesser GNU General Public License.
For more information about these matters, see the file
named COPYING and the XeTeX source.
Primary author of XeTeX: Jonathan Kew.
Compiled with ICU version 4.4 [with modifications for XeTeX]
Compiled with zlib version 1.2.3; using 1.2.3
Compiled with FreeType2 version 2.3.11; using 2.3.11
Compiled with fontconfig version 2.3.1; using 2.2.1
Compiled with libpng version 1.2.40; using 1.2.40
Compiled with xpdf version 3.02pl4

Yours sincerely
  Heiko Oberdiek


More information about the XeTeX mailing list