From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kyle Meyer Subject: Re: Export datetree item subtree with its date, not the file's Date: Wed, 21 Oct 2015 01:50:00 -0400 Message-ID: <87k2qgn52v.fsf@kyleam.com> References: <87zj01a9d6.fsf@gkayaalp.com> <87mvvi9cgb.fsf@kyleam.com> <87wpuhsih8.fsf@gkayaalp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZomHq-0002G0-D4 for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 01:50:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZomHl-0002zx-Cn for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 01:50:10 -0400 Received: from mail-qk0-f176.google.com ([209.85.220.176]:36624) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZomHl-0002zR-91 for emacs-orgmode@gnu.org; Wed, 21 Oct 2015 01:50:05 -0400 Received: by qkca6 with SMTP id a6so21683471qkc.3 for ; Tue, 20 Oct 2015 22:50:04 -0700 (PDT) In-Reply-To: <87wpuhsih8.fsf@gkayaalp.com> (=?utf-8?B?IkfDtmt0dcSf?= Kayaalp"'s message of "Tue, 20 Oct 2015 17:49:23 +0300") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: =?utf-8?B?R8O2a3R1xJ8=?= Kayaalp Cc: Org-mode mailing list G=C3=B6ktu=C4=9F Kayaalp writes: > Hello, > > Thanks for your response. As you suggest, I switched to using the > EXPORT_DATE property. It works as expected. > > Now a little problem that I have is that I cannot have timestamps like > =C2=AB10 September 2015=C2=BB in my exports, but a literal inactive times= tamp. > This is because in the related capture template, I have to use `%u' to > add a timestamp, which adds an inactive timestamp, reusing the date that > I entered into the datetree prompt. There is the %<...> directive for > the capture templates which allows me to put in a time format, as in > `format-time-string', but it gets its value from `current-time', not > from the date of the datetree prompt. Now I do not know if this is a > feature or a bug, but if I want to copy over lecture notes from some > time ago, it's a problem. Perhaps someone can suggest a better method, but what about adding an export filter that formats inactive timestamps the way you want? Something like (setq org-latex-inactive-timestamp-format "%s") =20=20=20=20 (defun u/format-inactive-timestamp (text backend info) (when (org-export-derived-backend-p backend 'latex) (format-time-string "%D" (apply #'encode-time (org-parse-time-string text))))) =20=20=20=20 (add-to-list 'org-export-filter-timestamp-functions 'u/format-inactive-timestamp) -- Kyle