From: John Hendy <jw.hendy@gmail.com>
To: nicholas.dokos@hp.com
Cc: Emacs-orgmode@gnu.org, Steve Prud'Homme <sprudhom@gmail.com>
Subject: Re: Custom title page in org-mode
Date: Wed, 21 Dec 2011 16:23:20 -0600 [thread overview]
Message-ID: <CA+M2ft9VdD+MpAUeUykkSiPOaBUuwU=a=5-A=dm15zyi5sbaKw@mail.gmail.com> (raw)
In-Reply-To: <8088.1324505746@alphaville.americas.hpqcorp.net>
[-- Attachment #1: Type: text/plain, Size: 2949 bytes --]
On Wed, Dec 21, 2011 at 4:15 PM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> Steve Prud'Homme <sprudhom@gmail.com> wrote:
>
> > Ok so i use emacs for school work.
> > I was trying to make a custom title page because, the default latex
> > custom page do not respect my teacher standard
> >
> > So my org-file look like that :
>
>
[...]
> If I were you, what I would do is make my own LaTeX class. Start from
> the one closest to the desired result (probably article), incorporate
> whatever changes you want from report.cls (in particular, the page
> breaks you want), make whatever changes you want to the \title, \author
> etc. macros, save the result as myarticle.cls in the same directory as
> your org file, and add an entry for it to org-export-latex-classes. Then
> add a
>
> #+LaTeX_CLASS: myarticle
>
>
[...]
> 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.
John
> Nick
>
> Footnotes:
>
> [fn:1] Bastien is right that redefining \baselinestretch is better than
> mucking around with the \baselineskip as I suggested (see
> e.g. http://www.tex.ac.uk/cgi-bin/texfaq2html?label=linespace )
>
> It's probably even better to do it like this however:
>
> --8<---------------cut here---------------start------------->8---
> #+LaTeX_HEADER: \usepackage{setspace}\doublespacing
> --8<---------------cut here---------------end--------------->8---
>
> or
>
> --8<---------------cut here---------------start------------->8---
> #+LaTeX_HEADER: \usepackage{setspace}\onehalfspacing
> --8<---------------cut here---------------end--------------->8---
>
> or if you don't like the built-in factors, choose your own:
>
> --8<---------------cut here---------------start------------->8---
> #+LaTeX_HEADER: \usepackage{setspace}\setstretch{1.3}
> --8<---------------cut here---------------end--------------->8---
>
> BTW, I think the factors are logarithmic: doublespacing is about 1.66
> and onehalfspacing is 1.25 or so (depending on the font size).
>
>
[-- Attachment #2: Type: text/html, Size: 5200 bytes --]
next prev parent reply other threads:[~2011-12-21 22:23 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <sprudhom@gmail.com>
2011-12-21 18:17 ` Custom title page in org-mode Steve Prud'Homme
2011-12-21 22:15 ` Nick Dokos
2011-12-21 22:23 ` John Hendy [this message]
2011-12-21 23:25 ` Nick Dokos
2011-12-21 23:52 ` Nick Dokos
2011-12-22 2:03 ` John Hendy
2011-12-22 3:01 ` Nick Dokos
2011-12-23 12:54 ` Bastien
2012-10-07 18:34 ` Problem orgmode, beamer and macport Steve Prud'Homme
2012-10-07 22:55 ` Nick Dokos
2012-10-07 23:06 ` Steve Prud'Homme
2012-10-07 23:38 ` Nick Dokos
2012-10-07 23:42 ` Nick Dokos
2012-10-08 17:08 ` cberry
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CA+M2ft9VdD+MpAUeUykkSiPOaBUuwU=a=5-A=dm15zyi5sbaKw@mail.gmail.com' \
--to=jw.hendy@gmail.com \
--cc=Emacs-orgmode@gnu.org \
--cc=nicholas.dokos@hp.com \
--cc=sprudhom@gmail.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 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.