emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Michel Damiens <michel.damiens@gmail.com>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <CAF8NEi06GgUwJhO2+YC_LQCbh1s1k1Q5A0vGceaw4+XbbG8Ssg@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 2370 bytes --]

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="#orge7077f6">par 1</a></li>
                    <li><a href="#orgca5c174">par 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="#org5bfbf2e">par 1.1</a></li>
                         <li><a href="#orgeae3ce8">par 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="#orgc022296">par 2.1</a></li>
                        <li><a href="#org47cca7f">par 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

[-- Attachment #2: Type: text/html, Size: 3663 bytes --]

             reply	other threads:[~2022-10-29 16:21 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-29 16:20 Michel Damiens [this message]
2022-10-30  2:43 ` 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 Ihor Radchenko
2024-04-14 10:34   ` Ihor Radchenko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAF8NEi06GgUwJhO2+YC_LQCbh1s1k1Q5A0vGceaw4+XbbG8Ssg@mail.gmail.com \
    --to=michel.damiens@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).