From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Custom title page in org-mode Date: Wed, 21 Dec 2011 20:03:04 -0600 Message-ID: References: <8088.1324505746@alphaville.americas.hpqcorp.net> <10553.1324509921@alphaville.americas.hpqcorp.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0015175cad146a1a1004b4a4b30c Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41232) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdXzv-0002c8-7j for Emacs-orgmode@gnu.org; Wed, 21 Dec 2011 21:03:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdXzt-00066Z-Rc for Emacs-orgmode@gnu.org; Wed, 21 Dec 2011 21:03:07 -0500 Received: from mail-ey0-f169.google.com ([209.85.215.169]:47962) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdXzt-00066U-JT for Emacs-orgmode@gnu.org; Wed, 21 Dec 2011 21:03:05 -0500 Received: by eabm6 with SMTP id m6so6886935eab.0 for ; Wed, 21 Dec 2011 18:03:04 -0800 (PST) In-Reply-To: <10553.1324509921@alphaville.americas.hpqcorp.net> 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: nicholas.dokos@hp.com Cc: Emacs-orgmode@gnu.org, Steve Prud'Homme --0015175cad146a1a1004b4a4b30c Content-Type: text/plain; charset=UTF-8 On Wed, Dec 21, 2011 at 5:25 PM, Nick Dokos wrote: > John Hendy wrote: > > > That's all that's needed to produce separate title and TOC pages and > > keep the rest of the article class intact. If you don't like the > > titlepage format, you can modify it to your heart's content: you will > > need to figure out the LaTeX part to do that, but that's not as > > difficult as you might think it is at first sight - and I guarantee > that > > you will have an easier time this way than fighting the org latex > > exporter, a fight that you will probably lose :-) IMO, of course. > > > > I just did this and took a different method. I simply added: > > > > --- > > #+text: \input{./title.tex} > > --- > > > > to the beginning of my document. Then I created a separate .tex file > > with the title. If something is recurring, maybe it's worth the > > separate article class file. If not, I think it *might* be simpler to > > just define a custom title page and do as above. I think I just > > followed > > this: > http://en.wikibooks.org/wiki/LaTeX/Title_Creation#Custom_Title_Pages > > > > Up to you! I can't guarantee this is right; I'm on a work computer and > did this on my home one. > > > > ... but you have to do something (or perhaps *not* do something) in order > to convince > the org latex exporter not to produce a title page, right? Is it something > simple > like omitting #+TITLE and #+AUTHOR? > > Good point. Yes. Now that I'm back at home I looked at the document and the header stuff in the document in which I used this technique is: ---- #+OPTIONS: toc:nil TeX:t LaTeX:t H:4 f:t todo:nil num:nil tags:nil #+BIND: org-export-latex-title-command "" #+text: \input{./title-page.tex} * first headline ---- Neat tip about just doing "#+title: "; hadn't realized a blank would do the same as the bind entry! John > Nick > --0015175cad146a1a1004b4a4b30c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

On Wed, Dec 21, 2011 at 5:25 PM, Nick Do= kos <nicholas= .dokos@hp.com> wrote:
John Hendy <jw.hendy@gmail.com= > wrote:

> =C2=A0 =C2=A0 That's all that's needed to produce separate tit= le and TOC pages and
> =C2=A0 =C2=A0 keep the rest of the article class intact. If you don= 9;t like the
> =C2=A0 =C2=A0 titlepage format, you can modify it to your heart's = content: you will
> =C2=A0 =C2=A0 need to figure out the LaTeX part to do that, but that&#= 39;s not as
> =C2=A0 =C2=A0 difficult as you might think it is at first sight - and = I guarantee that
> =C2=A0 =C2=A0 you will have an easier time this way than fighting the = org latex
> =C2=A0 =C2=A0 exporter, a fight that you will probably lose :-) IMO, o= f course.
>
> I just did this and took a different method. I simply added:
>
> ---
> #+text:=C2=A0\input{./title.tex}
> ---
>
> to the beginning of my document. Then I created a separate .tex file > with the title. If something is recurring, maybe it's worth the > separate article class file. If not, I think it *might* be simpler to<= br> > just define a custom title page and do as above. I think I just
> followed
> this:=C2=A0http://en.wikibooks.org/wiki/LaTeX/= Title_Creation#Custom_Title_Pages
>
> Up to you! I can't guarantee this is right; I'm on a work comp= uter and did this on my home one.
>

... but you have to do something (or perhaps *not* do something) in order t= o convince
the org latex exporter not to produce a title page, right? Is it something = simple
like omitting #+TITLE and #+AUTHOR?


Good point. Yes. Now that I'm back at home I loo= ked at the document and the header stuff in the document in which I used th= is technique is:
----
#+OPTIONS: =C2=A0 toc:nil TeX:t LaTeX:t H:4 f:t to= do:nil num:nil tags:nil
#+BIND: org-export-latex-title-command &q= uot;"
#+text: \input{./title-page.tex}

<= div> * first headline
----

Neat tip about jus= t doing "#+title: "; hadn't realized a blank would do the sam= e as the bind entry!

John


=C2=A0
Nick

--0015175cad146a1a1004b4a4b30c--