From 3852b13cd07997ca007f51fc5c42d0d3630c8453 Mon Sep 17 00:00:00 2001 From: Trevor Daniels Date: Thu, 3 Oct 2013 23:25:07 +0100 Subject: [PATCH] Doc: add instructions for headings which include backslash (3590) and tidy up the formatting a little --- Documentation/contributor/doc-work.itexi | 34 ++++++++++++++++-------- 1 file changed, 23 insertions(+), 11 deletions(-) diff --git a/Documentation/contributor/doc-work.itexi b/Documentation/contributor/doc-work.itexi index c1dd8adae8..680522cbc9 100644 --- a/Documentation/contributor/doc-work.itexi +++ b/Documentation/contributor/doc-work.itexi @@ -276,8 +276,6 @@ Level 3 subsections are created with @@subsection Foo @end example -@itemize -@item Level 4 headings and menus must be preceded by level 3 headings and menus, and so on for level 3 and level 2. If this is not what is wanted, please use: @@ -286,11 +284,9 @@ wanted, please use: @@subsubsubheading Foo @end example -@item Please leave two blank lines above a @code{@@node}; this makes it easier to find sections in texinfo. -@item Do not use any @code{@@} commands for a @code{@@node}. They may be used for any @code{@@sub...} sections or headings however. @@ -304,7 +300,6 @@ but instead: @@subsection @@code@{Foo@} Bar @end example -@item No punctuation may be used in the node names. If the heading text uses punctuation (in particular, colons and commas) simply leave this out of the node name and menu. @@ -318,17 +313,34 @@ this out of the node name and menu. @@subsection Foo: Bar @end example -@item -With the exception of @code{@@} commands and punctuation, the -section name should match the node name exactly. +Backslashes must not be used in node names or section headings. +If the heading text should include a backslash simply leave this +out of the node name and menu and replace it with @code{@@bs@{@}} +in the heading text. + +@example +@@menu +* The set command +@@end menu + +@@node The set command +@@subsection The @@code@{@@bs@{@}set@} command +@end example + +References to such a node may use the third argument of the +@code{@@ref} command to display the texually correct heading. + +@example +@@ref@{The set command,,The @@code@{@@bs@{@}set command@} +@end example + +With the exception of @code{@@} commands, @code{\} commands and +punctuation, the section name should match the node name exactly. -@item Sectioning commands (@code{@@node} and @code{@@section}) must not appear inside an @code{@@ignore}. Separate those commands with a space, ie @code{@@n}@tie{}@code{ode}. -@end itemize - Nodes must be included inside a @example -- 2.39.2