Hi Jan,

Jan Stary wrote on Thu, Oct 26, 2017 at 09:31:38PM +0200:

>>>> In the ps file generated by mandoc you should have this line:
>>>> 
>>>>   %%DocumentMedia: Default 595 841 0 () ()
>>>> 
>>>> Where 595 841 correspond to A4.  If you set output paper to "letter"
>>>> that line will say:
>>>> 
>>>>   %%DocumentMedia: Default 612 790 0 () ()
 
> Yes. It seems that these are just _comments_ to the PS interpreter

They are comments in the sense of the PostScript programming language,
but they have a strictly specified syntax and sematics according
to the "PostScript Language Document Structuring Conventions
Specification", which is kind of a language of its own:  DSC.

The first line in the file, "%!PS-Adobe-3.0", actually says that
it is a DSC 3.0 document - but it says nothing about the PostScript
level.

> and the "Default" is just an arbitrary given name, right?

I guess so, but i'm not completely sure.  I could find no information
on that.

> (Sorry, I don't know the language.) So GV just shows that,
> but it does not _determine_ the actual media size, right?

Right.

> Looking at term_ps.c, mandoc writes "Default ... " for every paper size.

Exactly.

I could print "A3", "A4", "A5", "letter", "legal" in that place,
and interactive users of gv(1) would likely be happier.  But i have
no idea what effect it might have on other programs or on printers,
or how to do the same for PDF.

Yours,
  Ingo

Reply via email to