Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Charles C. Berry
On Mon, 29 May 2017, Brett Viren wrote: "Charles C. Berry" writes: You do have that wrong. This is exactly what export filters and derived backends are for. In fact, you can use both. For an example, see http://orgmode.org/worg/exporters/filter-markup.html You will want to change `latex'

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Brett Viren
Brett Viren writes: > Or, maybe you suggest I do direct "surgery" on the TEXT argument that > gets passed in to the filter and insert the "..." that way? I guess it > could work to find the end of the "" opening tag and then insert > my "..." part. I'll try this approach. Okay, this works but

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Brett Viren
Marcin Borkowski writes: > It's been a while since I did that, but AFAIR deriving a new, slightly > midified backend may be exactly what you want, since you seem to need to > modify just one of the exporter functions. Right, by my concern is I'm copy-pasting a large function just to change basic

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Marcin Borkowski
On 2017-05-29, at 14:22, Brett Viren wrote: > I read about export filters and extending an existing back-end, but I > think these do not apply, but maybe I have that wrong. It's been a while since I did that, but AFAIR deriving a new, slightly midified backend may be exactly what you want, sinc

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Brett Viren
"Charles C. Berry" writes: > You do have that wrong. This is exactly what export filters and > derived backends are for. In fact, you can use both. For an example, > see > > http://orgmode.org/worg/exporters/filter-markup.html > > You will want to change `latex' to `html' in the > > `(or

Re: [O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Charles C. Berry
On Mon, 29 May 2017, Brett Viren wrote: Hi, I am writing a manual in Org which gets exported/published to HTML and styled with org-html-themes. I want the HTML to include a little icon next to each headline which is a direct link to the headline itself. Basically, I want to rip off what GitHub

[O] Overriding org-html-headline or other export functions?

2017-05-29 Thread Brett Viren
Hi, I am writing a manual in Org which gets exported/published to HTML and styled with org-html-themes. I want the HTML to include a little icon next to each headline which is a direct link to the headline itself. Basically, I want to rip off what GitHub does when it renders Org. First, is there