[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle} {{{{TITLE}}}}

From: Luke Crook
Subject: Re: [O] #+LATEX_HEADER:\newcommand{\orgtitle} {{{{TITLE}}}}
Date: Tue, 18 Mar 2014 20:33:14 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

I tried creating a custom class and then tried creating a custom style.  But 
I found the easiest to be the following;

#+AUTHOR: <author>
#+LATEX_HEADER: \newcommand{\orgauthor}{<author>}

#+EMAIL:  <email>
#+LATEX_HEADER: \newcommand{\orgemail}{<email>}

#+TITLE: <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 #+ 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]