From mboxrd@z Thu Jan 1 00:00:00 1970 From: Luke Crook Subject: Re: #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}} Date: Tue, 18 Mar 2014 20:33:14 +0000 (UTC) Message-ID: References: <87y507fs5b.fsf@bzg.ath.cx> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51314) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ0hp-00072J-Hc for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 16:33:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQ0hi-0006tI-8G for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 16:33:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:48638) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQ0hi-0006t4-2S for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 16:33:42 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WQ0hf-0001KR-QJ for emacs-orgmode@gnu.org; Tue, 18 Mar 2014 21:33:40 +0100 Received: from 147.21.8.1 ([147.21.8.1]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Mar 2014 21:33:39 +0100 Received: from luke by 147.21.8.1 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Mar 2014 21:33:39 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I tried creating a custom class and then tried creating a custom style. But I found the easiest to be the following; #+AUTHOR: #+LATEX_HEADER: \newcommand{\orgauthor}{} #+EMAIL: #+LATEX_HEADER: \newcommand{\orgemail}{} #+TITLE: #+LATEX_HEADER: \newcommand{\orgtitle}{<Title>} #+DATE: <Date> #+LATEX_HEADER: \newcommand{\orgdate}{<Date>} Then in my custom Latex title page; #+LATEX_HEADER: \input{template} I use \orgauthor{} etc. for the relevant fields. Works very well, apart from the duplication of author, email, date etc. It would be great if org-mode added support for substitution to the #+ fields.