On Mon, Dec 23, 2024 at 08:49:20PM +0000, Frederico Muñoz wrote:
> Hello,
> 
> Patrice Dumas <pertu...@free.fr> writes:
> > On Sun, Dec 22, 2024 at 09:52:52PM +0000, Frederico Muñoz wrote:
> 
> Yes, and initially I couldn't reproduce it: its the --no-number-sections
> that makes it like that.

Actually it does not seems so.  It seems that it is rather
NODE_NAME_IN_MENU=0.  Indeed, upon testing and reading the code, my
analysis is that the leading menu symbol is not output if
NODE_NAME_IN_MENU=0 and a section is used, independetely of all the
other customizations.  It actually makes some sense, unless
--no-number-sections is passed, there is already a leading section
number that would be redundant with the MENU_SYMBOL.

> 
> #+BEGIN_SRC
> @node Top
> @top Home
> 
> Test menu options.
> 
> @node Posts
> @chapter Posts
> 
> @node FirstPost
> @nodedescription 2024-12-22
> @section First Post
> 
> One two three.
> 
> @node SecondPost
> @nodedescription 2024-12-23
> @section Second Post
> 
> Four five six.
> #+END_SRC
> 
> $ texi2any --html -o out -c MENU_SYMBOL='§&nbsp;' -c USE_NODES=1 -c 
> NODE_NAME_IN_MENU=0 -c FORMAT_MENU="menu" --no-number-sections posts.texi
> 
> - First Post: 2024-12-22
> 
> $ texi2any --html -o out -c MENU_SYMBOL='§&nbsp;' -c USE_NODES=0 -c 
> NODE_NAME_IN_MENU=0 -c FORMAT_MENU="menu" --no-number-sections posts.texi
> 
> First Post: 2024-12-22
> 
> $ texi2any --html -o out -c MENU_SYMBOL='§&nbsp;' -c USE_NODES=0 -c 
> NODE_NAME_IN_MENU=0 -c FORMAT_MENU="menu" posts.texi
> 
> 1.1 First Post: 2024-12-22
> 
> 
> Maybe this is by design, but it's not obvious to me why
> --no-number-sections should remove the menu symbol.
> 
> Best regards,
> 
> -- 
> Frederico
> 
> 

Reply via email to