-
Notifications
You must be signed in to change notification settings - Fork 4
/
template.twjr
305 lines (244 loc) · 7.18 KB
/
template.twjr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
% Template .twjr file.
% Uncomment the 1st \input line if you need the MF logo
% \input mftmac % for Metafont logo
\input texinfo @c -*-texinfo-*-
@c vim: filetype=texinfo tabstop=4 shiftwidth=4
@c %**start of header (This is for running Texinfo on a region.)
@setfilename FOO.info
@settitle Put Your Title Here
@c %**end of header (This is for running Texinfo on a region.)
@c Change how xref titles are quoted.
@dquotexrefs
@ifclear FORPRINT
@pdflinkcolor
@urllinkcolor
@hideurls
@end ifclear
@c The following information should be updated here only!
@c This sets the edition of the document.
@c These apply across the board.
@set UPDATE-MONTH MONTH, YYYY
@set EDITION 0.n
@set TITLE Long Title Here
@set SHORTTITLE Short Title Here
@iftex
@set DOCUMENT book
@set CHAPTER chapter
@set APPENDIX appendix
@set SECTION section
@set SUBSECTION subsection
@end iftex
@ifhtml
@set DOCUMENT Web page
@set CHAPTER chapter
@set APPENDIX appendix
@set SECTION section
@set SUBSECTION subsection
@end ifhtml
@ifinfo
@set DOCUMENT Info file
@set CHAPTER major node
@set APPENDIX major node
@set SECTION minor node
@set SUBSECTION node
@end ifinfo
@ifdocbook
@set DOCUMENT book
@set CHAPTER chapter
@set APPENDIX appendix
@set SECTION section
@set SUBSECTION subsection
@end ifdocbook
@c some special symbols
@ifnottex
@macro ii{text}
@i{\text\}
@end macro
@end ifnottex
@c Uncomment this if you want the metafont logo.
@ignore
@ifnottex
@macro MF{}
@sc{METAFONT}
@end macro
@end ifnottex
@end ignore
@c merge the function and variable indexes into the concept index
@c do so without the code font, and in the index entries do the
@c font management ourselves. Also merge in the chunk definition
@c and reference entries, which jrweave creates for us.
@ifnothtml
@synindex fn cp
@synindex vr cp
@synindex cd cp
@synindex cr cp
@end ifnothtml
@c If "finalout" is commented out, the printed output will show
@c black boxes that mark lines that are too long. Thus, it is
@c unwise to comment it out when running a master in case there are
@c overfulls which are deemed okay.
@iftex
@c @finalout
@end iftex
@copying
@docbook
<para>Published by:</para>
<literallayout class="normal">Full Name
Address Line 1
Address Line 2
etc.
Email: <email>user@@example.com</email>
URL: <ulink url="https://www.example.com/">https://www.example.com/</ulink></literallayout>
<literallayout class="normal">Copyright © YYYY, YYYY
Full name here
All Rights Reserved.</literallayout>
@end docbook
@ifnotdocbook
Copyright @copyright{} YYYY, YYYY @*
Full name here @*
All Rights Reserved.
@end ifnotdocbook
@sp 1
The FOO program is copyright
@copyright{} YYYY, YYYY by Full name here. It is published under
the conditions of the GNU General Public License, version 3.
@sp 2
This is Edition @value{EDITION} of @cite{@value{TITLE}}.
@end copying
@c Uncomment this for the release. Leaving it off saves paper
@c during editing and review.
@c @setchapternewpage odd
@c Uncomment this if it's ever printed as a real book(let).
@c @shorttitlepage @value{SHORTTITLE}
@titlepage
@title @value{TITLE}
@subtitle @value{UPDATE-MONTH}
@author Full Name here
@ifnotdocbook
@c Include the Distribution inside the titlepage environment so
@c that headings are turned off. Headings on and off do not work.
@page
@vskip 0pt plus 1filll
Published by:
@sp 1
Full name here @*
Address Line 1 @*
Address Line 2 @*
etc. @*
Email: @EMAIL{user@@example.com,user AT example.com} @*
URL: @url{https://www.example.com/} @*
@insertcopying
@end ifnotdocbook
@end titlepage
@set DRAFT @i{DRAFT}
@iftex
@headings off
@evenheading @thispage @| @value{DRAFT} @| @strong{@value{SHORTTITLE}}
@oddheading @strong{@thischapter} @| @value{DRAFT} @| @thispage
@end iftex
@ifnottex
@ifnotdocbook
@ifnotxml
@node Top
@top General Introduction
@c Preface node should come right after the Top
@c node, in `unnumbered' sections, then the introductory chapter.
@c Licensing nodes are appendices, they're not central to TexiWebJr.
This file documents YOUR PROGRAM, a program that does WHATEVER.
@insertcopying
@end ifnotxml
@end ifnotdocbook
@end ifnottex
@menu
@detailmenu
@end detailmenu
@end menu
@c @summarycontents
@contents
@c Add these to the menu if they ever get included.
@c @node Foreword
@c @unnumbered Foreword
@node Preface
@unnumbered Preface
Text here.
@menu
* Audience:: Who should read this @value{DOCUMENT}.
* Overview:: An overview of the @value{DOCUMENT}.
* Conventions:: Typographical conventions.
* Acknowledgements:: Acknowledgements.
@end menu
@node Audience
@unnumberedsec Intended Audience
Text here.
@node Overview
@unnumberedsec What Is Covered
Text and chapter by chapter description here.
@node Conventions
@unnumberedsec Typographical Conventions
@c Copied mostly verbatim from the gawk manual.
@cindex Texinfo document formatting language
This @value{DOCUMENT} is written in an enhanced version of
@uref{https://www.gnu.org/software/texinfo/, Texinfo},
the GNU documentation formatting language.
A single Texinfo source file is used to produce both the printed and online
versions of a program's documentation.
@ifnotinfo
Because of this, the typographical conventions
are slightly different than in other books you may have read.
@end ifnotinfo
Examples you would type at the command-line are preceded by the common
shell primary and secondary prompts, @samp{$} and @samp{>}. Input that
you type is shown @kbd{like this}. Output from the command is preceded
by the glyph ``@print{}''. This typically represents the command's
standard output. Error messages, and other output on the command's
standard error, are preceded by the glyph ``@error{}''. For example:
@example
$ @kbd{echo hi on stdout}
@print{} hi on stdout
$ @kbd{echo hello on stderr 1>&2}
@error{} hello on stderr
@end example
@ifnotinfo
In the text, command names appear in @code{this font}, while code segments
appear in the same font and quoted, @samp{like this}. Options look
like this: @option{-f}. Some things are emphasized @emph{like this},
and if a point needs to be made strongly, it is done @strong{like this}.
The first occurrence of a new term is usually its @dfn{definition} and
appears in the same font as the previous occurrence of ``definition''
in this sentence. Finally, file names are indicated like this:
@file{/path/to/our/file}.
@end ifnotinfo
@node Acknowledgements
@unnumberedsec Acknowledgements
@node Introduction
@chapter Introduction
@node Next chapter
@chapter Next Chapter Title
@node First appendix
@appendix First Appendix Title
@node Code Chunk Summaries
@appendix Code Chunk Summaries
This @value{APPENDIX} presents alphabetical lists of
all the file definitions, the code chunk definitions,
and the code chunk references.
@menu
* File Definitions:: Source files by definition.
* Code Chunk Definitions:: Code chunks by definition.
* Code Chunk References:: Code chunks by reference.
@end menu
@node File Definitions
@appendixsec Source File Definitions
@print_file_defs
@node Code Chunk Definitions
@appendixsec Code Chunk Definitions
@print_code_defs
@node Code Chunk References
@appendixsec Code Chunk References
@print_code_refs
@node Bibliography
@unnumbered Bibliography
@node Concept Index
@unnumbered Index
@printindex cp
@bye
TODO: