Mac OS X >= 10.7 support
[runtime.git] / scripts / html2psrc
1 /* This is a sample configuration file for html2ps. You may try using this
2    to convert the documentation file that comes with html2ps (html2ps.html).
3    Issue the command:
4
5      html2ps -f sample -o html2ps.ps html2ps.html
6
7    This should create a PostScript file html2ps.ps formatted based on the
8    information below.
9 */
10
11 /* The toc: thingy does not work with every html file, disable it from
12    the option { } when it causes bad PS files.  It causes problems if
13    the HTML file doesn't use any <Hx> tags.  Also Ghostscript must be
14    installed in the system.  -Pekka */
15 /* Tested the html2ps with the xhtml and css thingys and it works pretty
16    good, so they should be preferred in html format.  -Pekka */
17
18 @html2ps {
19   header {               /* Running page header */
20     odd-left: $T;          /* Document title */
21     odd-right: $H;         /* Current main heading */
22     even-left: $H;         /* Ditto */
23     even-right: "$[author]"; /* Document author (from <META NAME="Author"...>) */
24   }
25   footer {               /* Running page footer */
26     center: "- $N -";      /* Page number */
27   }
28   option {
29     /* Generate a table of contents, based on headings */
30     /*toc: bh; */
31     titlepage: 1;         /* Generate a title page */
32  /*   original: 1; */
33   }
34   titlepage {           /* The title page content: document title, author and
35                            creation date */
36     content: "<DIV align=center><H1><BIG>$T</BIG></H1>
37               <H2>$[author]</H2>$[created]";
38   }
39   package {
40     djpeg: 1;
41     Ghostscript: 1;
42   }
43   toc {
44     heading: "TABLE OF CONTENTS";
45   }
46   showurl: 1;             /* Show URL:s for external links */
47   seq-number: 1;          /* Automatic numbering of headings */
48 }
49
50 /* Standard style sheet definitions */
51 P { text-align: justify }
52 H1, H2, H3, H4, H5, H6 { font-family: Helvetica; font-weight: bold }
53 /* H1 { font-size: 19pt; text-align: center } */
54 H1 { font-size: 19pt; }
55 H3, H5 { font-style: oblique }
56 H2, H3 { font-size: 16pt }
57 H4, H5 { font-size: 13pt }
58 H6 { font-size: 11pt }
59 ADDRESS { text-align: right }
60 @page:left {
61   margin-left: 2cm;
62   margin-right: 3cm;
63   type: a4;
64 }
65 @page:right {
66   margin-left: 3cm;
67   margin-right: 2cm;
68 }
69 BODY {
70   font-family: Helvetica;
71   text-align: justify
72 }