I recently updated texinfo.tex so that the @heading-like commands
would be affected by @raisesections and @lowersections.  This was
already the case for texi2any.  However, I am unsure what to do with
@majorheading.

(The last change in this area was in 2015, following this report:
https://lists.gnu.org/archive/html/bug-texinfo/2015-10/msg00026.html
to make it work with texi2any.  Apparrently this had been the behaviour
of makeinfo in Texinfo 4.13 and earlier.)

I see in the manual that @majorheading is presented as being
at the same level as @top, above @chapter, in the following table
in "(texinfo)Chapter Structuring".

-----
   Here is a summary:

                                                            No new page
Numbered       Unnumbered             Lettered/numbered     Unnumbered
In contents    In contents            In contents           Not in
                                                            contents
               ‘@top’                                       ‘@majorheading’
‘@chapter’     ‘@unnumbered’          ‘@appendix’           ‘@chapheading’
‘@section’     ‘@unnumberedsec’       ‘@appendixsec’        ‘@heading’
‘@subsection’  ‘@unnumberedsubsec’    ‘@appendixsubsec’     ‘@subheading’
‘@subsubsection’‘@unnumberedsubsubsec’‘@appendixsubsubsec’  ‘@subsubheading’
-----

If it's the case that @majorheading is at the same level as @top, then
it shouldn't be affected by @raisesections or @lowersections.

However, I only have the layout of the above table to go on to say this,
and it could also be viewed as a minor stylistic variant of @chapheading.

Apart from that, @majorheading is only described in terms of its output,
not its semantic structuring level:

  The ‘@majorheading’ and ‘@chapheading’ commands produce chapter-like
  headings in the body of a document.
  
     However, neither command produces an entry in the table of contents,
  and neither command causes TeX to start a new page in a printed manual.
  
     In TeX, a ‘@majorheading’ command generates a larger vertical
  whitespace before the heading than a ‘@chapheading’ command but is
  otherwise the same.
  
     In other output formats, the ‘@majorheading’ and ‘@chapheading’
  commands produce a similar output to ‘@chapter’.  The difference is the
  lack of numbering and the omission from the table of contents.  *Note
  @chapter::.

The text in the manual on @majorheading has not changed, as far as I can
tell, since it was first added.

The larger vertical space could be evidence of a more important heading at
a higher level.

I could not find much information about what the thinking was behind the
@majorheading command.

In tta/perl/Texinfo/CommandsValues.pm, it is at the same level as @chapheading:

our %command_structuring_level = (
    'top'    => '0',
    'part'    => '0',
    'chapter'    => '1',
    'majorheading'    => '1',
    'unnumbered'    => '1',
    'centerchap'    => '1',
    'chapheading'    => '1',
    'appendix'    => '1',
    'section'    => '2',

If this is correct, then I will make @majorheading subject to
@raise/lowersections in texinfo.tex.  Otherwise, texi2any should be changed.
In either case, we could clarify the status of @majorheading in the manual.

Does anyone have any further information or opinions on this?

Reply via email to