[XeTeX] [tex-live] problem in texlive 2007, xelatex and hyperref package

Jonathan Kew jonathan_kew at sil.org
Thu Mar 22 12:29:07 CET 2007


On 22 Mar 2007, at 10:05 am, fishy wrote:

> for this simple test file ("Adobe Heiti Std" and "Adobe Song Std" are
> fonts come from Adobe Reader 8):

> <snip>

> and when xelatex it, it says:
>
> ===== begin =====
> ## xdv2pdf: use of uninstalled fonts (specified by filename) such as
> ##
> [/usr/local/texlive/2007/texmf-dist/fonts/opentype/public/lm/ 
> lmtypewriter12-regula
> r.otf]
> ## is not supported; try using the xdvipdfmx driver instead.
> ===== end =====
>
> and the text "http://www.foo.com" shown on the pdf is malformed.
>
> but if I replace "\url{http://www.foo.com}" with
> "\href{http://www.foo.com}{http://www.foo.com}", it's OK

This is really a xetex question rather than texlive-related, so would  
be better asked on the xetex mailing list <http://tug.org/mailman/ 
listinfo/xetex>.

The error message you're seeing is a result of the way fontspec  
attempts to load the Latin Modern fonts by default, and the xdv2pdf  
output driver (under Mac OS X) doesn't support this. If you run  
xelatex with the option

     -output-driver="xdvipdfmx -q -E"

this would solve the problem.

The reason it changes when you replace \url with \href must be  
something about how these macros format the URL; in the case where  
you use \href, I guess it's using your main font (which is properly  
configured with fontspec), or else defaulting to Computer Modern  
(which also works), whereas \url is trying to use the Latin Modern  
default from fontspec.

(On non-Mac platforms, this particular problem won't arise because  
the output driver is always xdvipdfmx.)

HTH,   JK



More information about the XeTeX mailing list