From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sharon Kimble Subject: Re: Result from evaluation of code in Title or footer (fancyhdr)? Date: Mon, 02 May 2016 18:58:17 +0100 Message-ID: <87mvo81gw6.fsf@skimble.plus.com> References: Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37667) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axI7K-0002jL-Cv for emacs-orgmode@gnu.org; Mon, 02 May 2016 13:58:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axI78-0005Hs-IX for emacs-orgmode@gnu.org; Mon, 02 May 2016 13:58:40 -0400 Received: from avasout01.plus.net ([84.93.230.227]:59982) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axI78-0005Fh-Ci for emacs-orgmode@gnu.org; Mon, 02 May 2016 13:58:34 -0400 In-Reply-To: (Rainer M. Krug's message of "Mon, 02 May 2016 15:41:14 +0200") 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" To: Rainer M Krug Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Rainer M Krug writes: > Hi > > I have a DESCRIPTION file, in which I store the version of the document, > which I extract with the following code: > > src_sh{sed -n '/^Version: /s///p' ./DESCRIPTION} > Have you looked at the latex package 'mversion'? I use it and have it working on my document, with it in the date place of my title it shows "Build - \version", and the "version.dat" shows '2.0;0000' meaning version 2.0 and it being increased in the '0000' field with every build. You can put it in your header or footer, whichever you want. Thanks Sharon. > > At the moment, I have one Header, which contains the version. > > * Version src_sh{sed -n '/^Version: /s///p' ./DESCRIPTION} :pa= per: > :PROPERTIES: > :header-args: :exports results > :header-args+: :tangle no > :END: > Version src_sh{sed -n '/^Version: /s///p' ./DESCRIPTION} > > Is there a way, that I can have this dynamically in the Title of the > document, or in a footer after LaTeX export (using fancyhdr)? > > Thanks, > > Rainer =2D-=20 A taste of linux =3D http://www.sharons.org.uk TGmeds =3D http://www.tgmeds.org.uk Debian 8.4, fluxbox 1.3.7, emacs 25.0.93 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJXJ5U6AAoJEDaBgBkK+INbu2sQAIJmg3WGGc3U8nkbOoAowlHK 4LHliqKdJjn6FEXKRNJNx4FN638xNA0BORBvg1FUTkTtX/DysJfomtVYi1XkkgJX ZpDCIaX3BAWW/GOXAwcAt188LsMhZ6za/eZcSJqFc11BxNvq2xTRdw8xptxkihsN JL0QBP+40NYOa2AFxGTMH4oRc3ssBl2tGE7kM2TdNvxVL1B2XvmwftapQSZRxIH4 MajXSn1D0Gkrqj8NJdZi5UAhjgwlt1IppxJJOXSr2jc4BFUghMCBuP+6IQNdCik4 V1NovmvpZAY3OWubKaFA0JNIOFL530aVBTzWsRIGJPFx+VmO7ujgn1CsQr6Ifja5 0XJSm8uPAeTQCvRi04eF+rDQlkIAaEcOxNQwt0/TLqDbpbn34/ruiteWc5kITVBV /QL/TlprHmUCFlbdjVnUzodu2dkMUiCNCAcn3YJ1fb1vsxHfztmRT2ykc16oldeY rwhEE/A2tabE4EMmbUugQqchuD7y8f7XfnVQG3HKjRawvg0ZbyCEwL/63JLwNCj5 f3L+I2Ky4iDsRfAe/l8fHq7irqax8m1V20q0l9r4JLBDNYgTprbHmH/xqsMhWdfY DB1l3q0wJA+GfX0pv7IoctjOu66PJyHTcZvAFXZZW+nr9UJomdWP0NCchZdNRvux 4dNDcxBJtwAerGjrM4qE =LYqy -----END PGP SIGNATURE----- --=-=-=--