[XeTeX] Problem: Beamer+xelatex+\XeTeXdefaultencoding

Heiko Oberdiek oberdiek at uni-freiburg.de
Tue Jun 22 06:17:17 CEST 2010


On Tue, Jun 22, 2010 at 09:49:26AM +1000, Ross Moore wrote:

> On 22/06/2010, at 9:26 AM, Heiko Oberdiek wrote:
> 
> >> 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.
> 
> 
> > 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".
> 
> OK.
> 
> The problem is perhaps really within LaTeX's  
>  \IfFileExists  command.
> 
> It doesn't use TeX's  \immediate  qualifier
> when calling  \openin  and  \closein for the preliminary
> check to see whether the file exists or not.
> The need for this primitive is discussed in the TeXbook ,
> and surely the preliminary check is precisely a place
> where it should be used.

You mean \openout/\write/\closeout?
\openin, \read, \closein are always "\immediate".

Yours sincerely
  Heiko Oberdiek

PS: my e-mail address has changed, the old one will stop working
in near future.


More information about the XeTeX mailing list