emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Chris Malone <chris.m.malone@gmail.com>
To: "Thomas S. Dye" <tsd@tsdye.com>
Cc: emacs-orgmode@gnu.org, Luke Crook <luke@balooga.com>
Subject: Re: Latex custom Title page question
Date: Wed, 23 Feb 2011 17:06:29 -0500	[thread overview]
Message-ID: <AANLkTi=+EkDcd_C84kZLeRrRMuecV4NFS1c1wCEJo02-@mail.gmail.com> (raw)
In-Reply-To: <5A16F06C-3C71-4FB6-93DA-0A1EB263FA70@tsdye.com>


[-- Attachment #1.1: Type: text/plain, Size: 2490 bytes --]

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 <tsd@tsdye.com> 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
>
>

[-- Attachment #1.2: Type: text/html, Size: 4141 bytes --]

[-- Attachment #2: Type: text/plain, Size: 201 bytes --]

_______________________________________________
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

      reply	other threads:[~2011-02-23 22:41 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-23 19:30 Latex custom Title page question Luke Crook
2011-02-23 20:03 ` Thomas S. Dye
2011-02-23 22:06   ` Chris Malone [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='AANLkTi=+EkDcd_C84kZLeRrRMuecV4NFS1c1wCEJo02-@mail.gmail.com' \
    --to=chris.m.malone@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=luke@balooga.com \
    --cc=tsd@tsdye.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).