[Orgmode] Re: Version number via inline source in header of exported html and pdf? and Custom export name?

2010-09-08 Thread Noorul Islam K M
Rainer M Krug r.m.k...@gmail.com 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.

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


___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


[Orgmode] Re: Version number via inline source in header of exported html and pdf? and Custom export name?

2010-09-08 Thread Rainer M Krug
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On 08/09/10 13:04, Noorul Islam K M wrote:
 Rainer M Krug r.m.k...@gmail.com 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:  rai...@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-

___
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode