[XeTeX] graphic filename in Chinese

Yue Wang yuleopen at gmail.com
Thu Apr 23 16:31:21 CEST 2009

On Windows, I can confirm that it doesn't work.

TeXExec | processing document 'a.tex'
TeXExec | no ctx file found
TeXExec | tex processing method: context
TeXExec | TeX run 1
TeXExec | writing option file a.top
TeXExec | using randomseed 262
TeXExec | tex engine: xetex
TeXExec | tex format: cont-en
This is XeTeX, Version 3.1415926-2.2-0.999.8 (Web2C 7.5.7)
 \write18 enabled.
entering extended mode

ConTeXt  ver: 2009.04.21 16:11 MKII  fmt: 2009.4.22  int: english/english

system          : cont-new loaded
systems         : beware: some patches loaded from cont-new.tex
system          : cont-fil loaded
loading         : ConTeXt File Synonyms
system          : cont-sys.rme loaded
system          : a.top loaded
bodyfont        : 12pt rm is loaded
language        : patterns nl->default:default->1->2:2 us->default:default->2->
2:3 de->default:default->3->3:3 da->default:default->4->2:2 sv->default:default
->5->2:2 gb->default:default->6->2:2 fr->default:default->7->2:2 es->default:de
fault->8->2:2 ca->default:default->9->2:2 it->default:default->10->2:2 la->defa
ult:default->11->2:2 pt->default:default->12->2:2 ro->default:default->13->2:2
pl->default:default->14->2:2 cs->default:default->15->2:2 sk->default:default->
16->2:2 hr->default:default->17->2:2 sl->default:default->18->2:2 tr->default:d
efault->19->2:2 agr->default:default->21->2:2 fi->default:default->22->2:2 hu->
default:default->23->2:2 ru->default:default->26->2:2 uk->default:default->27->
3:3 loaded
specials        : dvips loaded
language        : language en is active
specials        : loading definition file dpx
specials        : loading definition file fdf
specials        : loading definition file xet
! Unable to load picture or PDF file '你好.jpg'.
<to be read again>
\bye ->\par
            \vfill \supereject \end
l.2 \bye


sample file
 \XeTeXpicfile "你好.jpg"

rename  “你好.jpg" to "hello.jpg" , and change the source code can solve
the problem.

On Thu, Apr 23, 2009 at 10:25 PM, Jjgod Jiang <gzjjgod at gmail.com> wrote:
> Hi,
> On Thu, Apr 23, 2009 at 7:33 PM, Jonathan Kew <jfkthame at googlemail.com> wrote:
>> This may depend on your operating system; in particular, I think it
>> may have problems on Windows, though I'm not really sure. You could
>> try it and see what happens.
> On Mac OS X, I can confirm that:
> \XeTeXpicfile "测试.png"
> \XeTeXpdffile "测试.pdf"
> \includegraphics{测试.png}
> all worked flawlessly.
> - Jiang
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex

More information about the XeTeX mailing list