emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] Re: LaTeX export bugs?


From: Nick Dokos
Subject: Re: [Orgmode] Re: LaTeX export bugs?
Date: Fri, 03 Jul 2009 12:52:26 -0400

=?utf-8?Q?S=C3=A9bastien_Vauban?= <address@hidden> wrote:

> 
> Weird. Having done the above `add-to-list' in Emacs (with `C-x C-e'),
>  I got a different exported file than yours. But really different:
> 
> --8<---------------cut here---------------start------------->8---
> ...
> --8<---------------cut here---------------end--------------->8---
> 
> There is no text, in fact...
> Don't understand why...
> 
> 

I don't understand why either, but it may be some setting in my setup
or your setup that leads to the different behavior. In case it matters,
I use the following versions:

GNU Emacs 23.0.93.1 (i686-pc-linux-gnu, GTK+ Version 2.12.9) of 2009-05-11 on 
gamaville.dokosmarshall.org
Org-mode version 6.28trans - git latest (more or less).

Here is an even more simplified version, using a variation of Bernt
Hansen's minimal .emacs. This version of slides.org takes care of the
zapping of the TOC at the org level, and the beamer section in
minimal.emacs gets rid of the third level Notes headlines (which cannot
work this way, in any case). I checked with

       emacs -Q -l minimal.emacs slides.org

exported to latex, and ran the latex file through pdflatex a couple of
times. The resulting PDF file seems to work for me. Can you try it out?

Thanks,
Nick

Here's the minimal.emacs - you'll need to adjust the load path for your
setup:

,----
| (add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
| (add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . 
org-mode))
| (require 'org-install)
| (global-set-key "\C-cl" 'org-store-link)
| (global-set-key "\C-ca" 'org-agenda)
| (global-set-key "\C-cb" 'org-iswitchb)
| (setq org-log-done (quote time))
| (setq org-log-into-drawer t)
| 
| (load "org-exp")
| (load "org-latex")
| 
| (add-to-list 'org-export-latex-classes
|              '("beamer"
|                "\\documentclass[11pt]{beamer}
| \\usepackage[utf8]{inputenc}
| \\usepackage[T1]{fontenc}
| \\usepackage{hyperref}
| \\usepackage{verbatim}
| \\setbeameroption{show notes}
| \\usetheme{Goettingen}
| \\useoutertheme{infolines}"
|                ("\\begin{frame}\\frametitle{%s}\\begin{itemize}" 
"\\end{itemize}\\end{frame}"
|                 "\\begin{frame}\\frametitle{%s}\\begin{itemize}" 
"\\end{itemize}\\end{frame}")
|                ("\\item{%s}" . "\\item*{%s}")
|                )
|              )
`----

and here's slides.org:

,----
| #+LaTeX_CLASS: beamer
| #+TITLE: Example presentation
| #+AUTHOR: Nick Dokos \\ $<$\href{mailto:address@hidden@hp.com}$>$
| #+EMAIL: address@hidden
| #+OPTIONS: toc:nil H:2
| 
| * Why
| ** Reason 1.
|    Text explaining reason #1.
| ** Reason 2.
|    ... more explanations.
| ** Reason 3.
|    Blah, blah, blah.
|  
| ** Reason 4.
|    Why not?
| 
| * What
| ** First piece.
| ** Second piece.
| ** Third piece.
| ** Fourth piece.
`----




reply via email to

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