* Version number via inline source in header of exported html and pdf? and Custom export name?
@ 2010-09-08 9:30 Rainer M Krug
2010-09-08 11:04 ` Noorul Islam K M
0 siblings, 1 reply; 3+ messages in thread
From: Rainer M Krug @ 2010-09-08 9:30 UTC (permalink / raw)
To: emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
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.
2) Is it possible to change the export file name, as can be done when
only exporting a subtree via EXPORT_FILE_NAME, for the export of the
whole org document? I would like to include the revision number in the
name of the exported file as I would like to upload them to a website,
and selected previous versions should be available as well.
Thanks,
Rainer
- --
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/
iEYEARECAAYFAkyHV5kACgkQoYgNqgF2egrdAQCeL1/7sw0Ez1ZxnI8zM5d+UEn8
8X4An1jiVhGXAhxsgVliee4bZ72yx3LB
=HnBT
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Version number via inline source in header of exported html and pdf? and Custom export name?
2010-09-08 9:30 Version number via inline source in header of exported html and pdf? and Custom export name? Rainer M Krug
@ 2010-09-08 11:04 ` Noorul Islam K M
2010-09-08 11:19 ` Rainer M Krug
0 siblings, 1 reply; 3+ messages in thread
From: Noorul Islam K M @ 2010-09-08 11:04 UTC (permalink / raw)
To: Rainer M Krug; +Cc: emacs-orgmode
Rainer M Krug <r.m.krug@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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Version number via inline source in header of exported html and pdf? and Custom export name?
2010-09-08 11:04 ` Noorul Islam K M
@ 2010-09-08 11:19 ` Rainer M Krug
0 siblings, 0 replies; 3+ messages in thread
From: Rainer M Krug @ 2010-09-08 11:19 UTC (permalink / raw)
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 <r.m.krug@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: 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-----
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-09-08 11:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-08 9:30 Version number via inline source in header of exported html and pdf? and Custom export name? Rainer M Krug
2010-09-08 11:04 ` Noorul Islam K M
2010-09-08 11:19 ` Rainer M Krug
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).