org-manual: Fix inaccuracy about TOC placement

* doc/org-manual.org (Table of Contents): Clarify that TOC is placed
at the beginning of the file, not "before first heading".  If there is
a text before first heading, TOC will be placed before that text.

Reported-by: Kodi Arfer <kodi@arfer.net>
Link: https://orgmode.org/list/dd0ae51d-7d56-0ff6-5eb1-3786464adfe3@arfer.net
This commit is contained in:
Ihor Radchenko 2024-02-17 14:34:48 +01:00
parent 1cca1967e9
commit c9fc4c03e8
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 5 additions and 5 deletions

View File

@ -12417,11 +12417,11 @@ value.
#+end_example #+end_example
#+cindex: @samp{TOC}, keyword #+cindex: @samp{TOC}, keyword
Org normally inserts the table of contents directly before the first Org normally inserts the table of contents in front of the exported
headline of the file. To move the table of contents to a different document. To move the table of contents to a different location,
location, first turn off the default with ~org-export-with-toc~ first turn off the default with ~org-export-with-toc~ variable or with
variable or with =#+OPTIONS: toc:nil=. Then insert =#+TOC: headlines =#+OPTIONS: toc:nil=. Then insert =#+TOC: headlines N= at the desired
N= at the desired location(s). location(s).
#+begin_example #+begin_example
,#+OPTIONS: toc:nil ,#+OPTIONS: toc:nil