emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Identical attributes id="text-table-of-contents" of div with role="doc-t


From: Michel Damiens
Subject: Identical attributes id="text-table-of-contents" of div with role="doc-toc" when exporting to html when using tables of contents for multiple subheadings
Date: Sat, 29 Oct 2022 18:20:19 +0200

Hello,

when exporting to html this org document :

     #+OPTIONS: toc:1
     * par 1
     #+TOC: headlines 1 local
     ** par 1.1
     ** par 1.2
     * par 2
     #+TOC: headlines 1 local
     ** par 2.1
     ** par 2.2

div's for toc (with role="org-toc") in subheadings par 1 and par 2 get the same id : text-table-of-contents :

<div id="content" class="content">
     <nav id="table-of-contents" role="doc-toc">
          <h1>Table des matières</h1>
          <div id="text-table-of-contents" role="doc-toc">
               <ul>
                    <li><a href="" 1</a></li>
                    <li><a href="" 2</a></li>
               </ul>
          </div>
     </nav>
     <div id="outline-container-orge7077f6" class="outline-1">
          <h1 id="orge7077f6">par 1</h1>
          <div class="outline-text-1" id="text-orge7077f6">
              <div id="text-table-of-contents" role="doc-toc"> <------ HERE
                   <ul>
                         <li><a href="" 1.1</a></li>
                         <li><a href="" 1.2</a></li>
                   </ul>
              </div>
          </div>
          <div id="outline-container-org5bfbf2e" class="outline-2">
               <h2 id="org5bfbf2e">par 1.1</h2>
          </div>
          <div id="outline-container-orgeae3ce8" class="outline-2">
               <h2 id="orgeae3ce8">par 1.2</h2>
          </div>
     </div>
     <div id="outline-container-orgca5c174" class="outline-1">
          <h1 id="orgca5c174">par 2</h1>
          <div class="outline-text-1" id="text-orgca5c174">
               <div id="text-table-of-contents" role="doc-toc"> <------ HERE
                    <ul>
                        <li><a href="" 2.1</a></li>
                        <li><a href="" 2.2</a></li>
                    </ul>
               </div>
          </div>
          <div id="outline-container-orgc022296" class="outline-2">
               <h2 id="orgc022296">par 2.1</h2>
          </div>
          <div id="outline-container-org47cca7f" class="outline-2">
               <h2 id="org47cca7f">par 2.2</h2>
          </div>
     </div>
</div>

Is it possible to differentiate them in modifying some export option ?

Thanks for your help.
Michel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]