From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?G=C3=B6ktu=C4=9F_Kayaalp?= Subject: Re: Export datetree item subtree with its date, not the file's Date: Tue, 20 Oct 2015 17:49:23 +0300 Message-ID: <87wpuhsih8.fsf@gkayaalp.com> References: <87zj01a9d6.fsf@gkayaalp.com> <87mvvi9cgb.fsf@kyleam.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]:46348) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoY3v-0000aM-NB for emacs-orgmode@gnu.org; Tue, 20 Oct 2015 10:38:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZoY3r-0005f8-EK for emacs-orgmode@gnu.org; Tue, 20 Oct 2015 10:38:51 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:34060) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZoY3r-0005dv-AJ for emacs-orgmode@gnu.org; Tue, 20 Oct 2015 10:38:47 -0400 In-Reply-To: <87mvvi9cgb.fsf@kyleam.com> (Kyle Meyer's message of "Sat, 17 Oct 2015 03:33:08 -0400") 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: Kyle Meyer Cc: Org-mode mailing list 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 timesta= mp. 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. -gk On Sat, Oct 17 2015 at 10:33:08 am EEST, Kyle Meyer wrote: > Hello, > > self@gkayaalp.com (G=C3=B6ktu=C4=9F Kayaalp) writes: > >> Hi, >> >> This is my first post to this group, so I'm sorry if I'm skipping any >> conventions. > > Welcome to the list. Sorry for the lack of responses to your post. > It's a high traffic list, and sometimes posts fall through. > >> My overall structure is like this: > [...] >> #+DATE: >> * 2015 >> ** 2015-09 September >> *** 2015-09-16 Wednesday >> **** =C4=B0talyanca Dil Uygulamalar=C4=B1 I :2015_2016:ITDE2016: >> [2015-09-16 Wed] > [...] >> When I export-subtree the bottommost entry, I want the date in the >> exported pdf to be 2015-09-16, not today, nor the date in "#+DATE:", >> which is deliberately empty to not let a wrong date to appear in the >> exported file. >> >> I tried setting a date property which didn't have an effect, and also >> adding a "#+DATE: [a date...]" under every lecture note entry heading, >> in which case the date of the last entry in the file got used, so if I >> exported the notes from 2015-09-16, and the last time I added a note was >> the 19th, the exported file had the date 2015-09-19. > > Have you tried the EXPORT_DATE property? I believe it'd look something > like this > > * 2015 > ** 2015-09 September > *** 2015-09-16 Wednesday > **** =C4=B0talyanca Dil Uygulamalar=C4=B1 I :2015_2016:ITDE2016: > :PROPERTIES: > :EXPORT_DATE: 2015-09-16 > :END: > > which you could export using with export scope set to "subtree". > > -- > Kyle --=20 =C4=B0. G=C3=B6ktu=C4=9F Kayaalp. http://gkayaalp.com/