* How to avoid generating the Table of Contents when exporting to markdown?
@ 2021-01-30 22:18 Rodrigo Morales
2021-01-30 22:36 ` Tim Cross
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: Rodrigo Morales @ 2021-01-30 22:18 UTC (permalink / raw)
To: emacs-orgmode
When answering questions in Emacs Stack Exchange, I usually write my answer
in Org Mode and then export it to Markdown so that I can copy it to the
answer textbox in Stack Exchange. For this reason, I don't need the
export to contain a Table of Contents because the Markdown content is
not big enough to require it.
For this reason, I don't want the Table of Contents to be included when
exporting.
--
Greetings,
Rodrigo Morales.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to avoid generating the Table of Contents when exporting to markdown?
2021-01-30 22:18 How to avoid generating the Table of Contents when exporting to markdown? Rodrigo Morales
@ 2021-01-30 22:36 ` Tim Cross
2021-01-30 22:38 ` Diego Zamboni
2021-01-30 23:14 ` Rodrigo Morales
2 siblings, 0 replies; 4+ messages in thread
From: Tim Cross @ 2021-01-30 22:36 UTC (permalink / raw)
To: emacs-orgmode
Rodrigo Morales <moralesrodrigo1100@gmail.com> writes:
> When answering questions in Emacs Stack Exchange, I usually write my answer
> in Org Mode and then export it to Markdown so that I can copy it to the
> answer textbox in Stack Exchange. For this reason, I don't need the
> export to contain a Table of Contents because the Markdown content is
> not big enough to require it.
>
> For this reason, I don't want the Table of Contents to be included when
> exporting.
You can try putting
#+OPTIONS: toc:nil
in the header of your org file. This is covered in the 'Table of
Contents' sub-section of the Exporting section of the org manual.
--
Tim Cross
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to avoid generating the Table of Contents when exporting to markdown?
2021-01-30 22:18 How to avoid generating the Table of Contents when exporting to markdown? Rodrigo Morales
2021-01-30 22:36 ` Tim Cross
@ 2021-01-30 22:38 ` Diego Zamboni
2021-01-30 23:14 ` Rodrigo Morales
2 siblings, 0 replies; 4+ messages in thread
From: Diego Zamboni @ 2021-01-30 22:38 UTC (permalink / raw)
To: Rodrigo Morales; +Cc: Org-mode
[-- Attachment #1: Type: text/plain, Size: 749 bytes --]
You can disable export of the TOC by setting the toc option to nil, with a
line like this at the top of the file:
#+options: toc:nil
See https://orgmode.org/manual/Table-of-Contents.html
--Diego
On Sat, Jan 30, 2021 at 11:21 PM Rodrigo Morales <
moralesrodrigo1100@gmail.com> wrote:
>
> When answering questions in Emacs Stack Exchange, I usually write my answer
> in Org Mode and then export it to Markdown so that I can copy it to the
> answer textbox in Stack Exchange. For this reason, I don't need the
> export to contain a Table of Contents because the Markdown content is
> not big enough to require it.
>
> For this reason, I don't want the Table of Contents to be included when
> exporting.
>
> --
> Greetings,
> Rodrigo Morales.
>
>
[-- Attachment #2: Type: text/html, Size: 1240 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: How to avoid generating the Table of Contents when exporting to markdown?
2021-01-30 22:18 How to avoid generating the Table of Contents when exporting to markdown? Rodrigo Morales
2021-01-30 22:36 ` Tim Cross
2021-01-30 22:38 ` Diego Zamboni
@ 2021-01-30 23:14 ` Rodrigo Morales
2 siblings, 0 replies; 4+ messages in thread
From: Rodrigo Morales @ 2021-01-30 23:14 UTC (permalink / raw)
To: emacs-orgmode
Thanks for the help :)
After searching the information you mentioned in the Info manual of Org
Mode, I found information on the variable =org-export-with-toc= and have
included the following in my configuration.
#+begin_src elisp
(setq org-export-with-toc nil)
#+end_src
--
Greetings,
Rodrigo Morales.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2021-01-30 23:18 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-30 22:18 How to avoid generating the Table of Contents when exporting to markdown? Rodrigo Morales
2021-01-30 22:36 ` Tim Cross
2021-01-30 22:38 ` Diego Zamboni
2021-01-30 23:14 ` Rodrigo Morales
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).