From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Result from evaluation of code in Title or footer (fancyhdr)? Date: Tue, 03 May 2016 12:00:33 +0200 Message-ID: References: <87bn4o744l.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:48215) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axX8V-0001kl-D9 for emacs-orgmode@gnu.org; Tue, 03 May 2016 06:01:05 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axX8J-0004Aa-0G for emacs-orgmode@gnu.org; Tue, 03 May 2016 06:00:53 -0400 Received: from mout.kundenserver.de ([212.227.126.130]:62251) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axX8I-000476-Mi for emacs-orgmode@gnu.org; Tue, 03 May 2016 06:00:46 -0400 In-Reply-To: <87bn4o744l.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Mon, 2 May 2016 18:37:30 +0100") 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: "emacs-orgmode@gnu.org" --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Eric S Fraga writes: > On Monday, 2 May 2016 at 13:41, Rainer M Krug wrote: > > [...] > >> 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)? > > Maybe something along these lines: > > @@latex:\rfoot{@@ Version src_sh{sed -n '/^Version: /s///p' ./DESCRIPTI= ON} @@latex:}@@ > > immediately after the first headline? Assumes fancyhdr. Thanks - I am combining this with Sharon's suggestion. Very nice, Rainer =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJXKHbBAAoJENvXNx4PUvmCF5EIANk5e+67GT75Wd7qSPyzSKAz 50VXGLgQaLxkTpM+PH376LKZdQ7fe7ZnPccgf3p7DVjk2wzUe5PBsHa47+MkCxfy znXkVlOygSTVr9TFX0xtEB2liZe74zTkpET6yDAbxK0crOLWaG5dSUOg/H9fR0Qn HQ2Jnr6IWRZQmOCTFnFrmTldPtW2ACVydPlwlDc9diPT5yyNLBorW9MFXyD1+mqJ ABQyME9FcH/TsceiTJ3PcaAKddUnyhiOuZztqC5mtrw4aQ0YJrScren+CfGYSfYi +aUifRGM5jDPK9Fl/2mqW5UGfvGJI8TAsT50wdA0Ri1lcIyKXkNIMRCRgiVcGiY= =T2cB -----END PGP SIGNATURE----- --=-=-=--