From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: #+LATEX_HEADER:\newcommand{\orgtitle}{{{{TITLE}}}} Date: Wed, 19 Mar 2014 11:30:09 +0100 Message-ID: <878us6lbv2.fsf@gmx.us> References: <87y507fs5b.fsf@bzg.ath.cx> <87ppli4mdt.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:55081) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQDjW-0001zE-7w for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 06:28:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WQDjQ-000771-Up for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 06:28:26 -0400 Received: from plane.gmane.org ([80.91.229.3]:57071) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WQDjQ-00076k-NS for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 06:28:20 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1WQDjN-0002y2-Ms for emacs-orgmode@gnu.org; Wed, 19 Mar 2014 11:28:17 +0100 Received: from 109.201.154.152 ([109.201.154.152]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Mar 2014 11:28:17 +0100 Received: from rasmus by 109.201.154.152 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 19 Mar 2014 11:28:17 +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 Eric S Fraga writes: > Luke Crook writes: > >> 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}{} > > [...] > >> Works very well, apart from the duplication of author, email, date etc. > > You could always use the new command in the org directive, assuming you > only use LaTeX export: > > #+LATEX_HEADER: \newcommand{\orgauthor}{} > #+AUTHOR: \orgauthor > > This would avoid duplication. I've used this snip to recover such fields \makeatletter \let\Title\@title \let\Author\@author \let\Date\@date \makeatother Obviously, this is only good for LaTeX. -- There are known knowns; there are things we know that we know