[XeTeX] minor bug within XeLaTeX

Jonathan Kew jfkthame at googlemail.com
Fri Jan 22 20:41:32 CET 2010


On 23 Jan 2010, at 00:13, Michiel Kamermans wrote:

> Khaled,
>
>> May I ask what is the real issue we are trying to solve here? I don't
>> think a single spurious space character is much of an issue to begin
>> with, am I missing something obvious here?
>>
> Just a technicality really - the documents "should" be generated by  
> "TeX" or "XeTeX", not by " TeX" or " XeTeX", since the generator  
> doesn't have a space in front of its name. If anyone indexes their  
> documents on creator (say a media library, or a digital document  
> archive), then the additional space will mean a "starts with"  
> matching on "TeX" or "XeTeX" will fail due to a really really old  
> programmer error.

The string comes from the original tex.web code, where the comment in  
the dvi preamble is created:

   print(" TeX output "); print_int(year); print_char(".");
   print_two(month); print_char("."); print_two(day);
   print_char(":"); print_two(time div 60);
   print_two(time mod 60);

(See line 12281 and following.)

So the space was explicitly part of the comment string.

What is questionable, I suppose, is the use of this string as a  
default for the PDF Creator field.

JK



More information about the XeTeX mailing list