From mboxrd@z Thu Jan 1 00:00:00 1970 From: self@gkayaalp.com (=?utf-8?B?R8O2a3R1xJ8=?= Kayaalp) Subject: Export datetree item subtree with its date, not the file's Date: Fri, 02 Oct 2015 12:49:09 +0300 Message-ID: <87zj01a9d6.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]:37943) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhwop-0004RK-RZ for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 05:40:00 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zhwom-0008LB-Ln for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 05:39:59 -0400 Received: from out2-smtp.messagingengine.com ([66.111.4.26]:49751) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zhwom-0008Kd-DJ for emacs-orgmode@gnu.org; Fri, 02 Oct 2015 05:39:56 -0400 Received: from xenophon (unknown [78.180.231.151]) by mail.messagingengine.com (Postfix) with ESMTPA id 4477F6801D2 for ; Fri, 2 Oct 2015 05:39:54 -0400 (EDT) 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: Org-mode mailing list Hi, This is my first post to this group, so I'm sorry if I'm skipping any conventions. And sorry for the dense subject line, I didn't want it to be too long. Thanks a lot for the hard work on org-mode. I have started recently to organise my lecture notes into a datetree. Every now and then I have to export my notes, usually to pdfs, in order to share them with friends, or study/read myself in printed form. Now, when I export to pdf an item, the "\maketitle" header contains the date from the file's "#+DATE:" thing[1]. I'd like it to contain the date for the current item, i.e. if it is under the "*** 2015-09-16 Wednesday" heading, the pdf to have "16 Sep 2015". Now I guess that I can do some temporary-buffer hack to make this happen, but I wonder if there already exist a /normal/ way to achieve this. My overall structure is like this: # $Id: Italianistica.org,v 1.5 2015/09/30 18:08:27 gk Exp gk $ #+TITLE: Appunti di Italianistica #+STARTUP: contents #+OPTIONS: toc:nil tags:nil #+LaTeX_CLASS: gk-appunto #+DATE: * 2015 ** 2015-09 September *** 2015-09-16 Wednesday **** =C4=B0talyanca Dil Uygulamalar=C4=B1 I :2015_2016:ITDE2016: [2015-09-16 Wed] =20=20=20=20 amare \ne voler bene =20=20=20=20 _amare_ si usa quasi sempre _all'interno di una coppia_ =20=20=20=20 _voler bene_ si usa tra _amici, parenti, ecc._ 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. So how can I, if I can at all, achieve what I want without tucking the tree into a temp buffer, adding the correct #+DATE into it, copying the org header and exporting? Is there a standard way to achieve this? Thanks in advance, -goktug [1] Property? I don't really know what these are called.