From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Thomas S. Dye" Subject: Re: Latex custom Title page question Date: Wed, 23 Feb 2011 10:03:59 -1000 Message-ID: <5A16F06C-3C71-4FB6-93DA-0A1EB263FA70@tsdye.com> References: Mime-Version: 1.0 (Apple Message framework v936) Content-Type: multipart/mixed; boundary="===============0594451151==" Return-path: Received: from [140.186.70.92] (port=43310 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PsKwT-0005Kf-LO for emacs-orgmode@gnu.org; Wed, 23 Feb 2011 15:04:12 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PsKwS-00040B-Rx for emacs-orgmode@gnu.org; Wed, 23 Feb 2011 15:04:09 -0500 Received: from cpoproxy2-pub.bluehost.com ([67.222.39.38]:41106) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1PsKwS-0003zg-Ld for emacs-orgmode@gnu.org; Wed, 23 Feb 2011 15:04:08 -0500 In-Reply-To: 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: Luke Crook Cc: emacs-orgmode@gnu.org --===============0594451151== Content-Type: multipart/alternative; boundary=Apple-Mail-22-209176352 --Apple-Mail-22-209176352 Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit 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 --Apple-Mail-22-209176352 Content-Type: text/html; charset=US-ASCII Content-Transfer-Encoding: quoted-printable
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



Aloh= a 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&nb= sp;company logo and @title, @author, and @da= te correspond to Org-mode's #+TITLE:, etc.
<= div>
hth,
Tom
= --Apple-Mail-22-209176352-- --===============0594451151== 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 --===============0594451151==--