emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Title page in latex export


From: Camille persson
Subject: Re: [O] Title page in latex export
Date: Fri, 4 Mar 2011 15:17:58 +0100

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 <address@hidden>
Hi Lawrence,

On Fri, 04 Mar 2011 11:38:08 +0000
Lawrence Mitchell <address@hidden> 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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]