[XeTeX] graphic filename in Chinese

Rembrandt Wolpert wolpert at uark.edu
Thu Apr 23 16:37:46 CEST 2009


However, it works on OSX:

\begin{frame}
\frametitle{Trying Chinese filename}
\begin{center}
\includegraphics[height=6cm]{../Illustrations/北路.jpg}
\end{center}
\end{frame}

compiles without error, and inserts the correct jpg.

Rembrandt


2009/4/23 Yue Wang <yuleopen at gmail.com>

> 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
> (./a.tex
>
> ConTeXt  ver: 2009.04.21 16:11 MKII  fmt: 2009.4.22  int: english/english
>
> system          : cont-new loaded
> (c:/context/tex/texmf-context/tex/context/base/cont-new.tex
> systems         : beware: some patches loaded from cont-new.tex
> (c:/context/tex/texmf-context/tex/context/base/cont-new.mkii)
> (c:/context/tex/texmf-context/tex/context/base/cont-mtx.tex))
> system          : cont-fil loaded
> (c:/context/tex/texmf-context/tex/context/base/cont-fil.tex
> loading         : ConTeXt File Synonyms
> )
> system          : cont-sys.rme loaded
> (c:/context/tex/texmf-context/tex/context/user/cont-sys.rme
> (c:/context/tex/texmf-context/tex/context/base/type-tmf.tex)
> (c:/context/tex/texmf-context/tex/context/base/type-siz.tex
> (c:/context/tex/texmf-context/tex/context/base/type-siz.mkii))
> (c:/context/tex/texmf-context/tex/context/base/type-otf.tex
> (c:/context/tex/texmf-context/tex/context/base/type-otf.mkii))
> (c:/context/tex/texmf-context/tex/context/base/type-xtx.tex))
> system          : a.top loaded
> (./a.top)
> 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
> (c:/context/tex/texmf-context/tex/context/base/spec-dpx.tex
> specials        : loading definition file fdf
> (c:/context/tex/texmf-context/tex/context/base/spec-fdf.tex))
> specials        : loading definition file xet
> (c:/context/tex/texmf-context/tex/context/base/spec-xet.tex)
> ! Unable to load picture or PDF file '你好.jpg'.
> <to be read again>
>                   \par
> \bye ->\par
>            \vfill \supereject \end
> l.2 \bye
>
> ?
>
>
> sample file
> \starttext
>  \XeTeXpicfile "你好.jpg"
> \stoptext
>
>
> 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
> >
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>



-- 
人有不為也而後可有為
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/xetex/attachments/20090423/8e3b9114/attachment.html 


More information about the XeTeX mailing list