From: Josiah Schwab <jwschwab@berkeley.edu>
To: emacs-orgmode@gnu.org
Subject: Customizing TOCs in Derived Exporters
Date: Mon, 16 Sep 2013 13:11:47 -0700 [thread overview]
Message-ID: <87li2wbk70.fsf@berkeley.edu> (raw)
[-- Attachment #1: Type: text/plain, Size: 167 bytes --]
Hi All,
I'm working on writing a derived exporter and I've been using ox-md.el
as a template/guide.
If I use the markdown exporter to export the following org file
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: example.org --]
[-- Type: text/x-org, Size: 207 bytes --]
* Meeting Notes
** First Topic
*** Subtopic 1
+ a point
+ an *important* point
*** Subtopic 2
+ another point
+ an /interesting/ point
** Second Topic
One long announcement without any particular structure.
[-- Attachment #3: Type: text/plain, Size: 69 bytes --]
an html table of contents appears at the top of the exported file.
[-- Attachment #4: example.md --]
[-- Type: text/plain, Size: 615 bytes --]
<div id="table-of-contents">
<h2>Table of Contents</h2>
<div id="text-table-of-contents">
<ul>
<li><a href="#sec-1">1. Meeting Notes</a>
<ul>
<li><a href="#sec-1-1">1.1. First Topic</a>
<ul>
<li><a href="#sec-1-1-1">1.1.1. Subtopic 1</a></li>
<li><a href="#sec-1-1-2">1.1.2. Subtopic 2</a></li>
</ul>
</li>
<li><a href="#sec-1-2">1.2. Second Topic</a></li>
</ul>
</li>
</ul>
</div>
</div>
# Meeting Notes
## First Topic
### Subtopic 1
- a point
- an **important** point
### Subtopic 2
- another point
- an *interesting* point
## Second Topic
One long announcement without any particular structure.
[-- Attachment #5: Type: text/plain, Size: 271 bytes --]
How does one go about overriding org-html-toc, which unlike something
like org-html-bold, does not appear in org-export-define-backend? I
don't want the TOC not to appear, rather want it to be generated by
another function, org-md-toc or what have you.
Thanks,
Josiah
next reply other threads:[~2013-09-16 20:12 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-09-16 20:11 Josiah Schwab [this message]
2013-09-17 13:49 ` Customizing TOCs in Derived Exporters Rasmus
2013-09-18 21:15 ` Josiah Schwab
2013-09-18 22:12 ` Rasmus
2013-09-18 22:53 ` Josiah Schwab
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87li2wbk70.fsf@berkeley.edu \
--to=jwschwab@berkeley.edu \
--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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.