[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Texi2html-cvs] Changes to texi2html/doc/texi2html.texi
From: |
Patrice Dumas |
Subject: |
[Texi2html-cvs] Changes to texi2html/doc/texi2html.texi |
Date: |
Sun, 21 Aug 2005 17:32:07 -0400 |
Index: texi2html/doc/texi2html.texi
diff -u texi2html/doc/texi2html.texi:1.35 texi2html/doc/texi2html.texi:1.36
--- texi2html/doc/texi2html.texi:1.35 Fri Aug 19 12:14:46 2005
+++ texi2html/doc/texi2html.texi Sun Aug 21 21:31:55 2005
@@ -2533,7 +2533,7 @@
@deftypefn {Function Reference} $preformatted_text preformatted $text $style
$region_name $formatting_command $formatting_command_formatted
\$preformatted_number $format $item_number $enumerate_style $number
This function formats a preformatted region. @var{$text} is the text of the
preformatted region, @var{$style} is the css style associated with that
-preformatted region (@xref{css}). @var{$region_name} is the
+preformatted region (@pxref{css}). @var{$region_name} is the
name of the command opening
the preformatted region (@address@hidden, see @ref{Complex formats})
or a identifier for the preformatted context (for example
@@ -2590,10 +2590,22 @@
@code{lisp}, @code{smalllisp}, @code{display}, @code{smalldisplay},
@code{format}, @code{smallformat}).
-The associated value is also a reference on a hash. The keys are @code{begin}
-and @code{end}. An eval of @code{begin} should lead to the beginning of the
-formatted @acronym{HTML}, an eval of @code{end} should lead to the end of the
-formatted @acronym{HTML}. The enclosed text will be formatted as described in
+The associated value is also a reference on a hash. The keys are:
+
address@hidden @code
address@hidden begin
+An eval of @code{begin} should lead to the beginning of the
+formatted @acronym{HTML}.
address@hidden end
+An eval of @code{end} should lead to the end of the
+formatted @acronym{HTML}.
address@hidden class
+The @acronym{HTML} class. If not defined, the command name.
address@hidden pre_style
+The preformatted style. If not defined the corresponding @acronym{CSS} style
+is used.
address@hidden table
+The enclosed text will be formatted as described in
@ref{Paragraph and preformatted region}, and the name of the complex
format will be available to the function formatting the text.
@@ -2944,14 +2956,30 @@
@node Menus
@section Menu formatting
+There are two possibilities for menu formatting:
+
address@hidden @bullet
address@hidden format the whole menu in a preformatted environment, like
+in @ref{Complex formats};
address@hidden format the menu in table with more specialized formatting for
each
+part of the menu;
address@hidden itemize
+
+The simple formatting is used if @variable{$SIMPLE_MENU} is true,
+otherwise the format with tables is used (this is the default).
+
To understand how the formatting of menus is controlled, the different
parts of a menu are first described, then how to control the formatting
-of each of these parts.
+of each of these parts, for each possible formatting.
@menu
-* Menu parts:: A menu consists in menu entry and menu
- comments
-* Menu formatting::
+* Menu parts:: A menu consists in menu entry and menu
+ comments
+* Menu components formatting::
+* Simple menu formatting:: formatting of a whole menu in a simple
+ preformatted environement
+* Table menu formatting:: formatting of a whole menu in a
+ table environment
@end menu
@c -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
@@ -2961,7 +2989,7 @@
In @command{texi2html}, a menu is considered to be composed of 2 parts, the
@dfn{menu entries} and the @dfn{menu comments}. Menu entries are further
divided in an @dfn{entry link} and optionnaly an @dfn{entry description}.
-The entry link consists in a node name and an optionnal menu entry
+The entry link consists in a node name and an optionnal menu entry
name.
A menu entry begins with @samp{*} at the beginning of the line. It begins
@@ -2975,7 +3003,7 @@
@example
@@menu
-* node name: entry name. description begins
+* entry name: node name. description begins
description continues
* another menu entry::
description begins
@@ -2986,34 +3014,16 @@
* node:: description begins
A menu comment. The line starts at the first character
-* last entry:: description begins @emph{text
+* last entry:: description begins @@address@hidden
of the description, even if the line begins at the first character,
-because we are in @@emph}.
+because we are in @@address@hidden
@@end menu
@end example
@c -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
address@hidden Menu formatting
address@hidden Menu components formatting
@subsection The formatting of the different menu components
-In the default case, the name of the section corresponding with the
-node is used instead of the node name. If @variable{$NODE_NAME_IN_MENU} is
-true, however, node names are used. If @variable{$AVOID_MENU_REDUNDANCY}
-is true and menu entry equal menu description the description isn't printed.
-This is the default. Likewise, if node or section name equal entry name,
-do not print entry name.
-
-A symbol, @variable{$MENU_SYMBOL} is put at the beginning of menu entries
-when the node name is used. The default is @samp{•}.
-If @variable{$UNNUMBERED_SYMBOL_IN_MENU} is true it is
-also put at the beginning of unnumbered section names. This is not
-done by default.
-
-The menu comments are considered to be preformatted text. The style
-associated with this preformatted text is determined by
address@hidden Default is @samp{font-family: serif}.
-The css class associated with menu comments is @code{menu-comments}.
-
Three function references are associated with the formatting of the
different parts of a menu:
@deftypefn {Function Reference} $link menu_link $section \%state $href $node
$name $ending
@@ -3023,7 +3033,8 @@
of interest is @code{preformatted}, true if the context is a preformatted
context. @xref{Three contexts}.
@var{$node} is the node name, @var{$name} is the
-name of the node, and @var{$ending} is the text ending the link entry.
+name of the node. @var{$ending} is the text ending the link entry,
+in general @samp{::} followed by some spaces.
@end deftypefn
@deftypefn {Function Reference} $description menu_description
$description_text \%state
@@ -3032,18 +3043,11 @@
@end deftypefn
@deftypefn {Function Reference} $menu_comment menu_comment $text
address@hidden is the text of the menu comment. It is in a preformatted
address@hidden is the text of the menu comment. It is always in a preformatted
environment.
@end deftypefn
-The following function reference controls the formatting of a wole menu:
-
address@hidden {Function Reference} $menu menu $menu_components_text
address@hidden is the formatted menu components text, obtained
-as explained above.
address@hidden deftypefn
-
-The last function reference corresponds with a special case. It
+Another function reference corresponds with a special case. It
is used when a menu entry appears within another block command, to
avoid the possibilities of invalid @acronym{HTML} production.
In that case the menu description and menu comments are not formatted
@@ -3053,6 +3057,51 @@
is the link hypertextual reference.
@var{$node} is the node name, @var{$name} is the
name of the node, and @var{$ending} is the text ending the link entry.
address@hidden deftypefn
+
address@hidden -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
address@hidden Simple menu formatting
address@hidden Simple menu formatting in a preformatted environment
+
+If the menu is to be formatted in a single preformatted environment,
+an entry for @samp{menu} should be added to the @code{$complex_format_map}
+hash reference (@pxref{Complex formats}).
+In the default case, if the user didn't add an entry himself, a very simple
+entry is used, with:
+
address@hidden
+$complex_format_map->@{'menu'@} = @{ 'begin' => address@hidden''@} , 'end' =>
address@hidden''@},
+ 'pre_style' => "$MENU_PRE_STYLE", 'class' => 'menu-preformatted' @};
address@hidden example
+
address@hidden -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
address@hidden Table menu formatting
address@hidden The formatting of the menu in a table
+
+In the default case, the name of the section corresponding with the
+node is used instead of the node name. If @variable{$NODE_NAME_IN_MENU} is
+true, however, node names are used. If @variable{$AVOID_MENU_REDUNDANCY}
+is true and menu entry equal menu description the description isn't printed.
+This is the default. Likewise, if node or section name equal entry name,
+do not print entry name.
+
+A symbol, @variable{$MENU_SYMBOL} is put at the beginning of menu entries
+when the node name is used. The default is @samp{•}.
+If @variable{$UNNUMBERED_SYMBOL_IN_MENU} is true it is
+also put at the beginning of unnumbered section names. This is not
+done by default.
+
+The menu comments are considered to be preformatted text. The style
+associated with this preformatted text is determined by
address@hidden Default is @samp{font-family: serif}.
+The css class associated with menu comments is @code{menu-comments}.
+
+The following function reference controls the formatting of a wole menu
+in that case:
+
address@hidden {Function Reference} $menu menu $menu_components_text
address@hidden is the formatted menu components text, obtained
+as explained above.
@end deftypefn
@c --------------------------------------------------------
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi, Patrice Dumas, 2005/08/08
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi, Patrice Dumas, 2005/08/09
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi, Patrice Dumas, 2005/08/09
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi, Patrice Dumas, 2005/08/19
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi,
Patrice Dumas <=
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi, Patrice Dumas, 2005/08/23
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi, Patrice Dumas, 2005/08/23
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi, Patrice Dumas, 2005/08/24
- [Texi2html-cvs] Changes to texi2html/doc/texi2html.texi, Patrice Dumas, 2005/08/28