summaryrefslogtreecommitdiffstats
path: root/contrib/cvs/doc/HACKING.DOCS
blob: adf6077896e6c3a2a25ed5ad77e75f3b31bdad03 (plain)
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
Here's some of the texinfo conventions the CVS documentation uses:

@code{ ... }			command usage & command snippets, including
				command names.
@var{ ... }			variables - text which the user is expected to
				replace with some meaningful text of their own
				in actual usage.
@file{ ... }			file names
@samp{ ... }			for most anything else you need quotes around
				(often still misused for command snippets)
@example ... @end example	example command usage and output, etc.
@emph{ ... }			emphasis - warnings, stress, etc.  This will be
				bracketed by underline characters in info files
				(_ ... _) and in italics in PDF & probably in
				postscript & HTML.
@strong{ ... }			Similar to @emph{}, but the effect is to
				bracket with asterisks in info files (* ... *)
				and in bold in PDF & probably in postscript &
				HTML.
@noindent			Suppresses indentation of the following
				paragraph.  This can ocassionally be useful
				after examples and the like.
@cindex ...			Add a tag to the index.
@pxref{ ... }			Cross reference in parentheses.
@xref{ ... }			Cross reference.

Preformatted text should be marked as such (use @example... there may be other
ways) since many of the final output formats can use relational fonts otherwise
and marking it as formatted should restrict it to a fixed width font.  Keep
this sort of text to 80 characters or less per line since larger may not be
properly viewable for some info users.

There are dictionary lists and function definition markers.  Scan cvs.texinfo
for their usage.  There may be table definitions as well but I haven't used
them.

Use lots of index markers.  Scan the index for the current style.  Try to reuse
an existing entry if the meaning is similar.

`makeinfo' 3.11 or greater is required for output generation since earlier
versions do not support the @ifnottex & @ifnothtml commands.  There may be
other commands used in `cvs.texinfo' that are unsupported by earlier versions
of `makeinfo' by the time you read this.

For more on using texinfo docs, see the `info texinfo' documentation or
http://www.gnu.org/manual/texinfo/texinfo.html .
OpenPOWER on IntegriCloud