[XeTeX] minor bug within XeLaTeX

Akira Kakuto kakuto at fuk.kindai.ac.jp
Fri Jan 22 09:21:50 CET 2010


Hi Pablo,

> I have just accidentally discovered that XeLaTeX (and I guess XeTeX)
> adds a blank space to the PDF creator when generating PDF files.
> 
> Here you have a sample:
> 
> 2 0 obj<< /CreationDate (D:20100120220817+01'00') /Producer (xdvipdfmx
> (0.7.8)) /Creator ( XeTeX output 2010.01.20:2208)>>
> endobj
> 
> The blank space between the opening bracket and XeTeX is the wrong one.

That is a feature of the driver xdvipdfmx or dvipdfmx.
If you dislike a leading space, rewrite

char *
dvi_comment (void)
{
  return dvi_info.comment;
}

in dvi.c as

char *
dvi_comment (void)
{
  char *p = dvi_info.comment;
  while(p && (*p == ' ' || *p == '\t'))
    p++;
  return p;
}

Best,
Akira



More information about the XeTeX mailing list