From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Malone Subject: Re: Latex custom Title page question Date: Wed, 23 Feb 2011 17:06:29 -0500 Message-ID: References: <5A16F06C-3C71-4FB6-93DA-0A1EB263FA70@tsdye.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1581104648==" Return-path: Received: from [140.186.70.92] (port=36375 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsNOQ-0001wN-AD for emacs-orgmode@gnu.org; Wed, 23 Feb 2011 17:41:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsMqt-0008RS-0c for emacs-orgmode@gnu.org; Wed, 23 Feb 2011 17:06:32 -0500 Received: from mail-iy0-f169.google.com ([209.85.210.169]:57412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PsMqs-0008RE-Px for emacs-orgmode@gnu.org; Wed, 23 Feb 2011 17:06:30 -0500 Received: by iyf13 with SMTP id 13so5316611iyf.0 for ; Wed, 23 Feb 2011 14:06:30 -0800 (PST) In-Reply-To: <5A16F06C-3C71-4FB6-93DA-0A1EB263FA70@tsdye.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: "Thomas S. Dye" Cc: emacs-orgmode@gnu.org, Luke Crook --===============1581104648== Content-Type: multipart/alternative; boundary=00235433371e1e6bc4049cfa4f8c --00235433371e1e6bc4049cfa4f8c Content-Type: text/plain; charset=ISO-8859-1 Hi Luke, Another (quick) fix given what you already have, is to renew the maketitle command to be empty: #+LATEX_HEADER: \renewcommand{\maketitle}{} Then after this you could put your #+begin_latex ... #+end_latex block to generate the page. Obviously, this works only for the current =org-mode= file, and Tom's suggestion of creating your own latex class would be better in the long run. HTH, Chris On Wed, Feb 23, 2011 at 3:03 PM, Thomas S. Dye wrote: > > On Feb 23, 2011, at 9:30 AM, Luke Crook wrote: > > I have successfully created a custom title page which I have used to > replace the default version created by org-mode. > Per http://orgmode.org/worg/org-tutorials/org-latex-export.html > "11.2 Titles and Title Page Layout". > > However my title page contains the document title, date and version number. > > I would rather not have to create a separate "custom-title.tex" > for each document that I create. > > Can I specify the Title etc. in org-mode in such a way that it can be > included in the custom Title page? > > I have tried moving "custom-title.tex" into org-mode sandwiched > between #+BEGIN_latex / #+END_latex commands, but this does not put > the title on the first page. > > I have included a blank > > #+TITLE > > and > > #+OPTIONS: toc:nil > > but this still generates an empty page before my custom title page. > > Thanks, > -Luke > > > > Aloha Luke, > > IIUC, you would like to have a custom title page that picks up the title, > author, date, etc. from the Org-mode file. > > One way to do this is to keep the LaTeX variables for title, author, date, > etc. in your new \maketitle, then put it in a new LaTeX class file that can > be registered with Org-mode. > > I have this in my custom class file: > > \renewcommand\@maketitle{% > \newpage > \null > \begin{center}% > \let \footnote \thanks > {\usebox{\FIRM}}% > \vskip 3em% > {\LARGE \@title \par}% > \vskip 1.5em% > {\large > \lineskip .5em% > \begin{tabular}[t]{c}% > \@author > \end{tabular}\par}% > \vskip 1em% > {\large \@date}% > \end{center}% > \par > \vskip 1.5em} > > > > where \FIRM is a company logo and @title, @author, and @date correspond to Org-mode's #+TITLE:, etc. > > hth, > Tom > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode > > --00235433371e1e6bc4049cfa4f8c Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Luke,

Another (quick) fix given what you already have, is to rene= w the maketitle command to be empty:

#+LATEX_HEADER: \renewcommand{\= maketitle}{}

Then after this you could put your #+begin_latex ... #+= end_latex block to generate the page.=A0 Obviously, this works only for the= current =3Dorg-mode=3D file, and Tom's suggestion of creating your own= latex class would be better in the long run.

HTH,
Chris

On Wed, Feb 23, 2011 at= 3:03 PM, Thomas S. Dye <tsd@tsdye.com> wrote:

On Feb 23, 2011, at 9:30 AM= , Luke Crook wrote:

I have successf= ully created a custom title page which I have used to
replace the defau= lt version created by org-mode.
Per http://orgmode.org/worg/org-tutorials/org-latex-export.h= tml
"11.2 Titles and Title Page Layout".

However m= y title page contains the document title, date and version number.
I would rather not have to create a separate "custom-title.tex" <= br>for each document that I create.

Can I specify the Title etc. in= org-mode in such a way that it can be
included in the custom Title pag= e?

I have tried moving "custom-title.tex" into org-mode sandwich= ed
between #+BEGIN_latex / #+END_latex commands, but this does not put =
the title on the first page.

I have included a blank

#+TITLE

and

#+OPTIONS: toc:nil

but this still genera= tes an empty page before my custom title page.

Thanks,
-Luke
=


Aloha Luke,

IIUC, you would like to have a custom title page that picks up t= he title, author, date, etc. from the Org-mode file.

One way to do this is to keep the LaTeX variables for title, author, dat= e, etc. in your new \maketitle, then put it in a new LaTeX class file that = can be registered with Org-mode.

I have this in my custom class file:

\renewcommand= \@maketitle{%
=A0=A0\newpage
=A0=A0\null
=A0=A0\begin{center}%
=A0= =A0\let \footnote \thanks
=A0=A0 = =A0{\usebox{\FIRM}}%
=A0=A0 =A0\vskip 3em%
=A0=A0 =A0{\LARGE \@title \par}%
=A0=A0 =A0\vskip 1.5em%
=A0=A0 =A0{\large
=A0=A0 =A0 =A0\lineskip .5em%
=A0=A0 =A0 =A0\begin{tabular}[t]{c}%
<= div>=A0=A0 =A0 =A0 =A0\@author
=A0=A0 =A0 =A0\end{tabular}\par}%
=A0=A0 =A0\vskip 1em%
=A0=A0 =A0{\large \@date}%
=A0=A0\end{center}%
=A0= =A0\par
=A0=A0\vskip 1.5em}
<= font color=3D"#144fae">
where=A0\FIRM=A0is=A0a=A0compa= ny=A0logo=A0and=A0@title,=A0@author,=A0and=A0@date=A0correspond=A0to=A0Org-= mode's=A0#+TITLE:,=A0etc.

hth,
Tom

_______________= ________________________________
Emacs-orgmode mailing list
Please use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode


--00235433371e1e6bc4049cfa4f8c-- --===============1581104648== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-orgmode mailing list Please use `Reply All' to send replies to the list. Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode --===============1581104648==--