Re: [O] Customizing TOCs in Derived Exporters

2013-09-18 Thread Josiah Schwab

Rasmus writes:

 Josiah Schwab writes:

 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.

 I'm not sure whether this would work with md simply 'cause I haven't
 worked with the html+friends exporter(s), but perhaps you could
 replace the inner-template, i.e. write a replacement for
 org-html-inner-template.

Yes, this suggestion worked for me.  Thank you for the advice.  Little
by little I will come to understand the new exporter (not that I
understood the old one).

Independent of the confusion it caused me while trying to figure out how
things work, it seems strange that the ox-md exporter generates a
non-markdown TOC using org-html-toc.  But I will leave that for those
who really use the markdown exporter, which is neither you or me.

Best,
Josiah




Re: [O] Customizing TOCs in Derived Exporters

2013-09-18 Thread Rasmus
Josiah Schwab jsch...@gmail.com writes:

 Rasmus writes:

 Josiah Schwab writes:

 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.

 I'm not sure whether this would work with md simply 'cause I haven't
 worked with the html+friends exporter(s), but perhaps you could
 replace the inner-template, i.e. write a replacement for
 org-html-inner-template.

 Yes, this suggestion worked for me.  Thank you for the advice.  Little
 by little I will come to understand the new exporter (not that I
 understood the old one).

 Independent of the confusion it caused me while trying to figure out how
 things work, it seems strange that the ox-md exporter generates a
 non-markdown TOC using org-html-toc.  But I will leave that for those
 who really use the markdown exporter, which is neither you or me.

Is there a vanilla-markdown TOC-keyword?  My understanding is that
markdown always understand plain html, whence the html-toc is
reusable.  If there is exists a vanilla-markdown TOC perhaps it should
be used.

–Rasmus

-- 
Dung makes an excellent fertilizer



Re: [O] Customizing TOCs in Derived Exporters

2013-09-18 Thread Josiah Schwab

Rasmus writes:

 Josiah Schwab jsch...@gmail.com writes:

 Independent of the confusion it caused me while trying to figure out how
 things work, it seems strange that the ox-md exporter generates a
 non-markdown TOC using org-html-toc.  But I will leave that for those
 who really use the markdown exporter, which is neither you or me.

 Is there a vanilla-markdown TOC-keyword?  My understanding is that
 markdown always understand plain html, whence the html-toc is
 reusable.  If there is exists a vanilla-markdown TOC perhaps it should
 be used.

It sounds likely this is simply a confusion about the markdown
specification on my end then.

Thanks,
Josiah



Re: [O] Customizing TOCs in Derived Exporters

2013-09-17 Thread Rasmus
Hi Josiah,

Josiah Schwab jwsch...@berkeley.edu writes:

 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.

I'm not sure whether this would work with md simply 'cause I haven't
worked with the html+friends exporter(s), but perhaps you could
replace the inner-template, i.e. write a replacement for
org-html-inner-template.

–Rasmus

-- 
Together we'll stand, divided we'll fall




[O] Customizing TOCs in Derived Exporters

2013-09-16 Thread Josiah Schwab
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

* 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.

an html table of contents appears at the top of the exported file.

div id=table-of-contents
h2Table of Contents/h2
div id=text-table-of-contents
ul
lia href=#sec-11. Meeting Notes/a
ul
lia href=#sec-1-11.1. First Topic/a
ul
lia href=#sec-1-1-11.1.1. Subtopic 1/a/li
lia href=#sec-1-1-21.1.2. Subtopic 2/a/li
/ul
/li
lia href=#sec-1-21.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.

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