Debian Codegraph @

texmf-dist/doc/generic/gates/gates-doc.tex

raw
1 % This is the master file producing gates-doc.pdf. The version of the
2 % documentation readable in a text editor is interpreter-doc.txt (input below).
3 %
4 % Paul Isambert - zappathustra AT free DOT fr - May 2012
5
6 \input pitex
7 \input interpreter
8
9 \overfullrule=0pt
10
11 \setfont\mainfont:
12 name = "Chaparral Pro"
13 size = 18pt
14 bold = Semi
15 big = 144pt
16
17 \setfont\codefont:
18 name = "Lucida Console"
19 slant = 15
20 bold italic = none
21 size = 14pt
22 features = "-tlig, -trep, space = mono"
23
24 \setparameter section subsection :
25 color = ".8 0 0"
26 inline = true
27 toc = true
28
29 \setparameter section :
30 font = "\mainfont\normalsize\sc"
31 number = none
32 clear = false
33
34 \setparameter sectionbookmark :
35 open = true
36 italic = true
37
38 \setparameter subsection :
39 font = ""
40
41 \setparameter paragraph :
42 number = none
43 beforeskip = 1
44 color = ".8 0 0"
45 font = ""
46 aftertitle = "\hskip.6em"
47
48 \setparameter navigator :
49 pre = {\linkcolor"}
50 post = {"}
51 mode = bookmarks
52
53 \def\linkcolor"#1"{%
54 \color{.4 .3 .3}{\ital{#1}}%
55 }
56
57 \setparameter page :
58 width = 80pc
59 left right = 20pc
60 lines = 24
61 baselineskip = 24pt
62
63 \Section def {section_do}[2]{%
64 \noindent
65 \ifstring{#1}{section}
66 {\marginnote[font = \rm,
67 hpos = rf,
68 side = left,
69 hsize = 5cm]{\quitvmode#2}}
70 {\ifstring{#1}{subsection}
71 {\marginnote[hsize = 4cm]{\quitvmode#2}}
72 {#2}}%
73 }
74
75 \OutputRoutine close {headers}{shipout}
76
77 %%% Redefining \TeX to look better with Chaparral.
78 \def\TeX{%
79 T\kern-.13em
80 \lower.5ex \hbox {E}%
81 \kern-.03em X%
82 }
83 % \TeX in bookmarks. Takes an argument because Interpreter changes all "TeX"
84 % to "\TeX{}".
85 \pdfdef\TeX#1{TeX}
86
87 \def\gatecolor{\color{.8 0 0}}
88 \def\gateaction#1{%
89 \directlua{pitex.callback.skip("french_punctuation")}%
90 \hbox{\gatecolor{{\codefont#1}}}%
91 }
92
93 \def\describe#1#2{%
94 \needspace{2\baselineskip}%
95 \bgroup\codefont
96 \hsize=\maxdimen
97 \noindent
98 \gatecolor{\llap{\gateaction{\string#1}\kern.3em}%
99 #2\par\egroup}\removenextindent
100 \ignorespaces}
101
102 \def\comarg{\arg{command}\antigobblespace}
103 \def\textarg{\arg{text}}
104
105 \setbox0=\hbox to \hsize{%
106 {\big \color{.8 0 0}{Gates}}%
107 \hfil
108 \vbox{%
109 \hbox{Paul Isambert}
110 \hbox{\codefont [email protected]}
111 \hbox{Version 0.2}
112 \hbox{May 2012}}%
113 }
114 \ht0=6\baselineskip \dp0=0pt
115 \box0
116 \vskip2\baselineskip
117
118 \Section skip {section_break}{section}
119
120 \input gates
121
122 \hyphenation{my-other-list}
123
124 \interpretfile{pitex}{gates-doc.txt}
125
126 \bye