* How to reinject custom function into derived backend which doesn't implement it, ex : footnote in ox-slimhtml backend.
@ 2020-10-02 20:26 rey-coyrehourcq
0 siblings, 0 replies; only message in thread
From: rey-coyrehourcq @ 2020-10-02 20:26 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1637 bytes --]
Hi,
I'm trying to develop my own `publish.el` for some research project linked to reproductibility.
I chose ox-slimhtml [0] as derived backend to limit and simplify the html/css outputs generated by vanilla html
backend/publish.
Actually footnotes are not defined in ox-slimhtml, so as i read in the org documentation [1] ),
i try to add this capacity by simply calling vanilla ox-html function org-html-footnote-reference into translate-alist :
(org-export-define-derived-backend 'ox-slimhtml-publish-to-html 'slimhtml
:translate-alist '((bold . ox-slimhtml-bold)
(footnote-reference . org-html-footnote-reference)
(verse-block . org-html-
verse-block)
(special-block . org-html-special-block)))
Using the vanilla ox-html export function, everything is awesome and footnote appear in my html, normal.
:publishing-function org-blog-publish-to-html
But if i switch to ":publishing-function ox-slimhtml-publish-to-html" the function
org-html-footnote-reference is never called.
There is something i don't understand in the processing of "translate-alist", so perhaps if the derived backend doesn't
implement a footnote-reference function, i cannot extend it ?
If you have some higlight on this, or solution on this problem, i'm interested.
[0] https://github.com/balddotcat/ox-slimhtml
[1] https://orgmode.org/manual/Advanced-Export-Configuration.html
Best
--
Sébastien Rey-Coyrehourcq
Research Engineer UMR IDEES
02.35.14.69.30
{Stronger security for your email, follow EFF tutorial : https://ssd.eff.org/}
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2020-10-02 20:27 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-02 20:26 How to reinject custom function into derived backend which doesn't implement it, ex : footnote in ox-slimhtml backend rey-coyrehourcq
Org-mode mailing list
This inbox may be cloned and mirrored by anyone:
git clone --mirror https://orgmode.org/list/0 list/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 list list/ https://orgmode.org/list \
emacs-orgmode@gnu.org
public-inbox-index list
Example config snippet for mirrors.
Newsgroups are available over NNTP:
nntp://news.yhetil.org/yhetil.emacs.orgmode
nntp://news.gmane.io/gmane.emacs.orgmode
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git