* Latex custom Title page question @ 2011-02-23 19:30 Luke Crook 2011-02-23 20:03 ` Thomas S. Dye 0 siblings, 1 reply; 3+ messages in thread From: Luke Crook @ 2011-02-23 19:30 UTC (permalink / raw) To: emacs-orgmode 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Latex custom Title page question 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 0 siblings, 1 reply; 3+ messages in thread From: Thomas S. Dye @ 2011-02-23 20:03 UTC (permalink / raw) To: Luke Crook; +Cc: emacs-orgmode [-- Attachment #1.1: Type: text/plain, Size: 1770 bytes --] 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 [-- Attachment #1.2: Type: text/html, Size: 3891 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Latex custom Title page question 2011-02-23 20:03 ` Thomas S. Dye @ 2011-02-23 22:06 ` Chris Malone 0 siblings, 0 replies; 3+ messages in thread From: Chris Malone @ 2011-02-23 22:06 UTC (permalink / raw) To: Thomas S. Dye; +Cc: emacs-orgmode, Luke Crook [-- 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 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-02-23 22:41 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.