From: Brett Viren <bv@bnl.gov>
To: "Charles C. Berry" <ccberry@ucsd.edu>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: Overriding org-html-headline or other export functions?
Date: Mon, 29 May 2017 16:34:43 -0400 [thread overview]
Message-ID: <86bmqb1jx8.fsf@bnl.gov> (raw)
In-Reply-To: <86poer1q4t.fsf@bnl.gov> (Brett Viren's message of "Mon, 29 May 2017 14:20:34 -0400")
Brett Viren <bv@bnl.gov> 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 "<hN...>" opening tag and then insert
> my "..." part. I'll try this approach.
Okay, this works but relies on searching through the HTML to find the
end of "<hN...>" tag. This feels like it will be error prone but so far
it seems to work when processing my manual.
In case it might help others, here is my filter:
https://github.com/WireCell/wire-cell-docs/blob/master/manuals/publish.el#L7
My Elisp is bad, so maybe this is not done well....
And, for completeness there is now also the export-as-html,
export-to-html and publish-to-html functions copied from ox-html and
tweaked for this custom backend.
Thanks for the nudges and help!
-Brett.
next prev parent reply other threads:[~2017-05-29 20:34 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-29 12:22 Overriding org-html-headline or other export functions? Brett Viren
2017-05-29 17:38 ` Charles C. Berry
2017-05-29 18:20 ` Brett Viren
2017-05-29 20:34 ` Brett Viren [this message]
2017-05-29 20:35 ` Charles C. Berry
2017-05-29 18:33 ` Marcin Borkowski
2017-05-29 19:14 ` Brett Viren
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
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86bmqb1jx8.fsf@bnl.gov \
--to=bv@bnl.gov \
--cc=ccberry@ucsd.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 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).