Debian Codegraph @

texmf-dist/doc/pdftex/manual/incl/pdfmin-fmt.tex

raw
1 % $Id: pdfmin-fmt.tex 976 2026-01-19 22:40:55Z karl $
2 % ConTeXt file to generate the two-column PDF output we show at the
3 % beginning. Since this code was already written, and still works,
4 % we just keep using it, instead of rewriting in LaTeX or plain TeX.
5
6 \setuppapersize[letter][letter]
7
8 \starttext
9 % The number of lines on the title page depends on exactly
10 % what \PDF\ code is generated; the Makefile outputs this.
11 % See frontispiece.txt.
12 \setvariables[pdftex][titlepagelines=63]
13
14 % title page
15
16 \definelayout
17 [titlepage]
18 [backspace=0pt, % left margin
19 cutspace=1.5in, % less between columns
20 topspace=0pt,
21 bottomspace=0pt,
22 header=0pt,
23 footer=0pt,
24 lines=\getvariable{pdftex}{titlepagelines},
25 grid=yes,
26 width=middle]
27
28 \definecolumnset
29 [titlepage]
30 [n=2,distance=.66in]
31
32 \start
33 \chardef\fontdigits=2
34 \switchtobodyfont[11pt,tt]
35 \setupinterlinespace
36 [line=\dimexpr((\paperheight)/\getvariable{pdftex}{titlepagelines})]
37 \setuptyping[margin=,color=]
38 \setuplayout[titlepage]
39
40 \startcolumnset[titlepage]
41 \typefile{incl/pdfmin-src.txt}
42 \stopcolumnset
43
44 \page
45 \setuplayout
46 \stop
47
48 \stoptext