From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Importing text/data on export? Date: Tue, 30 Nov 2010 12:40:42 +0000 Message-ID: <877hfvf0hh.fsf@pinto.chemeng.ucl.ac.uk> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=53635 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PNemR-0002OE-SF for emacs-orgmode@gnu.org; Tue, 30 Nov 2010 23:59:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PNPVr-00078U-JD for emacs-orgmode@gnu.org; Tue, 30 Nov 2010 07:40:52 -0500 Received: from vscani-d2.ucl.ac.uk ([144.82.108.133]:34354) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PNPVr-00077o-DH for emacs-orgmode@gnu.org; Tue, 30 Nov 2010 07:40:51 -0500 In-Reply-To: (Luke Crook's message of "Mon, 29 Nov 2010 10:15:02 +0000 (UTC)") 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: Luke Crook Cc: emacs-orgmode@gnu.org Luke Crook writes: > I would like to create some technical specifications in a format of > (a) Cover Page, (b) Title Page, (c) Revision History, (d) TOC, > (e) List of Tables, (f) List of Figures, and (g) Actual specifications/text/etc. > > A-C might be part of each org-mode document, or might only be included on export. > However there are fields in these sections that are document specific that must > be updated on export, for example; title, doc number, revision number. > In addition, the Cover Page has to be of the approved format having space > for the appropriate signoff signatures for the author and several approvers. > Is org-mode capable of this, or is this something that has to be done outside > of org-mode? > > For the revision history, I think creating this table on export by > including the commit text from git would be great. Does anyone have any > pointers on how to accomplish this? > > -Luke Luke, I guess it all depends on what export target you are aiming for. If you want latex (+pdf), much of this can be captured with actual latex commands (\listoffigures, say). Independent of the export target, the revision history could be generated using babel with the appropriate log command depending on the version control system you use, as in --8<---------------cut here---------------start------------->8--- #+begin_src sh :results output :exports results git log -10 --oneline #+end_src --8<---------------cut here---------------end--------------->8--- HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.99.g9db0.dirty)