From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Version number via inline source in header of exported html and pdf? and Custom export name? Date: Wed, 08 Sep 2010 13:19:52 +0200 Message-ID: <4C877158.2060202@gmail.com> References: <4C875799.8000104@gmail.com> <87hbi01oou.fsf@noorul.maa.corp.collab.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=45364 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OtIh3-0004DO-Fb for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 07:19:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OtIh2-0007e1-7N for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 07:19:57 -0400 Received: from mail-wy0-f169.google.com ([74.125.82.169]:47724) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OtIh2-0007dl-3D for emacs-orgmode@gnu.org; Wed, 08 Sep 2010 07:19:56 -0400 Received: by wyb36 with SMTP id 36so8580507wyb.0 for ; Wed, 08 Sep 2010 04:19:55 -0700 (PDT) In-Reply-To: <87hbi01oou.fsf@noorul.maa.corp.collab.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Noorul Islam K M Cc: emacs-orgmode -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 08/09/10 13:04, Noorul Islam K M wrote: > Rainer M Krug writes: > >> Hi >> >> two questions: >> >> 1) is it possible to add the result of an inline code snipet (in my case >> the SVN revision number) into the title or subtitle of a document (as in >> e.g. the org manual)? >> At the moment, I am putting it into the first header, which works, but >> is not so nice. >> > > You can use svn propset to set svn:keywords for the files. Thanks Noorul, but that is exactly what I want to avoid: in this case, I have follow a sequence of commands and checkins and checkouts to get the version number in - I would prefer to use some inlne code (e.g. src_emacs-lisp[:exports results]{(vc-working-revision (or (buffer-file-name) org-current-export-file))} ) to get the version info automatically into the dociument when I export it. Rainer > > For example add something like this into the org file. > > * This file is of revision $Rev$ > > and then use the following command > > svn propset svn:keywords "Rev" orgfile.org > > then commit the file this will update the file with something like this > > * This file is of revision $Rev: 304 $ > > Similarly you can include lots of SVN information. Check out. > > http://svnbook.red-bean.com/en/1.4/svn.advanced.props.special.keywords.html > > Thanks and Regards > Noorul > - -- Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys. (Germany) Centre of Excellence for Invasion Biology Natural Sciences Building Office Suite 2039 Stellenbosch University Main Campus, Merriman Avenue Stellenbosch South Africa Tel: +33 - (0)9 53 10 27 44 Cell: +27 - (0)8 39 47 90 42 Fax (SA): +27 - (0)8 65 16 27 82 Fax (D) : +49 - (0)3 21 21 25 22 44 Fax (FR): +33 - (0)9 58 10 27 44 email: Rainer@krugs.de Skype: RMkrug -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkyHcVgACgkQoYgNqgF2egrxwACfajLQAtfluvJgFMiu8fQcXJeo 9MoAn311Nk3iD3WO5Z670MgExWiPK4Hk =xek1 -----END PGP SIGNATURE-----