From mboxrd@z Thu Jan 1 00:00:00 1970 From: Camille persson Subject: Re: Title page in latex export Date: Fri, 4 Mar 2011 15:17:58 +0100 Message-ID: References: <20110304020505.77bc12d1@bhishma.homelinux.net> <20110304032325.2933652f@bhishma.homelinux.net> <20110304035951.57b7b1ac@bhishma.homelinux.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=20cf304346d61b08f1049da8d0c2 Return-path: Received: from [140.186.70.92] (port=60152 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PvVrU-0000my-8F for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 09:20:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PvVpO-0000r8-VW for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 09:18:00 -0500 Received: from mail-vx0-f169.google.com ([209.85.220.169]:45994) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PvVpO-0000r2-SL for emacs-orgmode@gnu.org; Fri, 04 Mar 2011 09:17:58 -0500 Received: by vxc38 with SMTP id 38so2515872vxc.0 for ; Fri, 04 Mar 2011 06:17:58 -0800 (PST) In-Reply-To: <20110304035951.57b7b1ac@bhishma.homelinux.net> 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: Suvayu Ali Cc: Lawrence Mitchell , emacs-orgmode --20cf304346d61b08f1049da8d0c2 Content-Type: text/plain; charset=ISO-8859-1 Hi Suvayu, Do you use the lastest update of org-mode ? cause it works perfectly for me without any patch actually... The following org : #+begin_org #+TITLE: My title #+AUTHOR: Camille Persson #+DATE: 2011 #+LATEX_CLASS: book #+end_org ... produce the following latex code: #+begin_latex \documentclass[11pt,letter]{book} %% package list %% .... \title{My title} \author{Camille Persson} \date{2011} \begin{document} \maketitle %.... etc #+end_latex to use your university's custom style, you need to put it in your texmf directory and use the following header lines: #+LATEX_CLASS: MyUnivThesis #+LATEX_CLASS_OPTIONS: [options...] and then customize your .emacs file (or a file in your .emacs.d/) as following (add-to-list 'org-export-latex-classes '("MyUnivThesis" "\\documentclass{univstyle}" ("\\part{%s}" . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}") ("\\section{%s}" . "\\section*{%s}") ("\\subsection{%s}" . "\\subsection*{%s}") ("\\subsubsection{%s}" . "\\subsubsection*{%s}")) See http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-6 Yours, CP 2011/3/4 Suvayu Ali > Hi Lawrence, > > On Fri, 04 Mar 2011 11:38:08 +0000 > Lawrence Mitchell wrote: > > > Try this patch to org-latex.el: > > > > diff --git a/lisp/org-latex.el b/lisp/org-latex.el > > index 19baa40..4db38d6 100644 > > --- a/lisp/org-latex.el > > +++ b/lisp/org-latex.el > > That does the trick. :) Thanks a lot. > > I am not very familiar with LaTeX, is the org default the proper syntax > and my university style is buggy? > > -- > Suvayu > > Open source is the future. It sets us free. > > --20cf304346d61b08f1049da8d0c2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hi Suvayu,

Do you use the lastest update of org-mode ?
cause it w= orks perfectly for me without any patch actually...

The following or= g :

#+begin_org
#+TITLE: My title
#+AUTHOR: Camille Persson #+DATE: 2011
#+LATEX_CLASS: book
#+end_org

... produce the following latex code:

#+begin_latex=
\documentclass[11pt,letter]{book}
%% package list
%% ....
\tit= le{My title}
\author{Camille Persson}
\date{2011}

\begin{docum= ent}

\maketitle
%.... etc
#+end_latex

to use your university= 9;s custom style, you need to put it in your texmf directory and use the fo= llowing header lines:
#+LATEX_CLASS: MyUnivThesis
#+LATEX_CLASS_OPTIO= NS: [options...]

and then customize your .emacs file (or a file in your .emacs.d/) as fo= llowing

(add-to-list 'org-expo=
rt-latex-classes
'("MyUniv= Thesis"
"\\documentclass{univstyle}&qu= ot;
("\\part{%s}&q= uot; . "\\part*{%s}") ("\\chapter{%s}" . "\\chapter*{%s}")
("\\section{%s}"= . "\\section*{%s}")
= ("\\subsection{%s}" . <= span class=3D"org-string">"\\subsection*{%s}"
)
("\\subsubsection{%s}"<= /span> . "\\subsubsection*{%s}"= ))

See http://orgmode.org/worg/org-tutorials/org-latex-export.html#sec-= 6

Yours,
CP

2011/3/4 Suvayu= Ali <fatkasuvayu+linux@gmail.com>
Hi Lawrence,

On Fri, 04 Mar 2011 11:38:08 +0000
Lawrence Mitchell <wence@gmx.li> = wrote:

> Try this patch to org-latex.el:
>
> diff --git a/lisp/org-latex.el b/lisp/org-latex.el
> index 19baa40..4db38d6 100644
> --- a/lisp/org-latex.el
> +++ b/lisp/org-latex.el

That does the trick. :) Thanks a lot.

I am not very familiar with LaTeX, is the org default the proper syntax
and my university style is buggy?

--
Suvayu

Open source is the future. It sets us free.


--20cf304346d61b08f1049da8d0c2--