[NTG-pdftex] \pdfhorigin / \pdfvorigin broken?

Hartmut Henkel hartmut_henkel@gmx.de
Tue Jul 6 21:46:00 CEST 2004


On Tue, 6 Jul 2004, Thomas Esser wrote:

> Can't this code just go away? I mean we set things up nicely via
> pdftexconfig.tex (which gets dumped into our formats) for most people. The
> others should know what they are doing...

Yes. But without it the initex default obviously would be 0pt, which
might give a slight compatibility problem for the initex die-hards.
Maybe one way to deal with this is to hardcode the default of 1 inch
into initex, so that it can be overwritten in pdftexconfig.tex or later.
The raw patch is below. Any problems with this?

Regards, Hartmut


% tex.ch2
%***********************************************************************

@x
cfg_pdf_option_pdf_inclusion_errorlevel_code = pdf_option_pdf_inclusion_errorlevel_code;
@y ---------------------------------------------------------------------
cfg_pdf_option_pdf_inclusion_errorlevel_code = pdf_option_pdf_inclusion_errorlevel_code;

@ @<Initialize table entries...@>=
pdf_h_origin := (one_hundred_inch + 50) div 100;
pdf_v_origin := (one_hundred_inch + 50) div 100;
@z

%***********************************************************************

@x
if (pdf_h_origin = 0) and (pdf_v_origin = 0) then begin
    pdf_h_origin := (one_hundred_inch + 50) div 100;
    pdf_v_origin := (one_hundred_inch + 50) div 100;
end;
@y ---------------------------------------------------------------------
@z

%***********************************************************************



More information about the ntg-pdftex mailing list