I'm attempting to modify the formatting of timestamps when they are exported to either HTML or TeX/pdf. I have tried two different ways, neither one of which works. The first way was here and I put that code in my dotemacs file. However, I get a symbol's value is void error for org-export-filter-timestamp-functions
when I open emacs.
The second way I tried, which also does not work is to attempt the example in the manual under "defining filters for individual files." I copy/pasted the text into the beginning of my org document, but this does not change the formatting of timestamps at all.
#+BIND: org-export-filter-timestamp-functions (tmp-f-timestamp)
#+BIND: org-export-filter-strike-through-functions (tmp-f-strike-through)
#+begin_src emacs-lisp :exports results :results none
(defun tmp-f-timestamp (s backend info)
(replace-regexp-in-string "&[lg]t;\\|[][]" "" s))
(defun tmp-f-strike-through (s backend info) "")
#+end_src
org-export-filter-timestamp-functions
is a quite new variable oforg-mode
. Presumably, it is introduced inorg-mode
8.3. What is yourorg-version
? For modifying time-stamps see also stackoverflow.com/questions/23297422. /org-mode-timestamp-format-when-exported. Note that the solution usingorg-export-filter-timestamp-functions
is from the year 2015. Myorg-version
is 8.2.5h and I don't haveorg-export-filter-timestamp-functions
either.org-export.el
was incontrib
and not in the main org-mode branch according to this link: github.com/tkf/org-mode/blob/master/contrib/lisp/org-export.el , That git entry seems to be from year 2012.org-export-filter-timestamp-functions
inorg-mode
8.3.