Org-mode mailing list
 help / color / mirror / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: =?utf-8?Q?S=C3=A9bastien_Vauban?= <wxhgmqzgwmuf@spammotel.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: LaTeX export bugs?
Date: Wed, 01 Jul 2009 22:08:39 -0400
Message-ID: <9854.1246500519@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from =?us-ascii?Q?=3D=3Futf-8=3FQ=3FS=3DC3=3DA9bastie?= =?us-ascii?Q?n=5FVauban=3F=3D?= <wxhgmqzgwmuf@spammotel.com> of "Wed\, 01 Jul 2009 22\:21\:52 +0200." <874otwduhr.fsf@mundaneum.com>

[-- Attachment #1: Type: text/plain, Size: 1640 bytes --]

=?utf-8?Q?S=C3=A9bastien_Vauban?= <wxhgmqzgwmuf@spammotel.com> wrote:

> >
> > BTW, any solution for exporting to a Beamer presentation?  I'd be
> > very very  very interested by anything in that direction. That's
> > the last piece of the whole puzzle, IMHO.
> >

I did a beamer presentation in org-mode last month (1 hour, about 20 slides).
Here is a simplified version (I'll talk about some problems at the end).

o org-export-latex-classes is augmented with a beamer element as follows:

,----
| (add-to-list 'org-export-latex-classes
|                '("beamer"
|                  "\\documentclass[11pt]{beamer}\n\\usepackage[utf8]{inputenc}\n\\usepackage[T1]{fontenc}\n\\usepackage{hyperref}\n\\usepackage{verbatim}\n\\setbeameroption{show notes}\n\\usetheme{Goettingen}\n\\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}")
|                  ("\\end{itemize}\\note{" "}")))
`----

o Here is an input file:

,----
| #+LaTeX_CLASS: beamer
| #+TITLE: Example presentation
| #+AUTHOR: Nick Dokos \\ $<$\href{mailto:nicholas.dokos@hp.com}{nicholas.dokos@hp.com}$>$
| #+EMAIL: nicholas.dokos@hp.com
| 
| * 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.
`----

o Export it to latex (and zap the TOC - see below):


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: TeX file produced by exporting the org file (and zapping the TOC) --]
[-- Type: text/x-tex, Size: 976 bytes --]

% Created 2009-07-01 Wed 21:19
\documentclass[11pt]{beamer}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{hyperref}
\usepackage{verbatim}
\setbeameroption{show notes}
\usetheme{Goettingen}
\useoutertheme{infolines}


\title{Example presentation}
\author{Nick Dokos \\ $<$\href{mailto:nicholas.dokos@hp.com}{nicholas.dokos@hp.com}$>$}
\date{01 July 2009}

\begin{document}

\maketitle

\begin{frame}\frametitle{Why}\begin{itemize}
\label{sec-1}

\item{Reason 1.}
\label{sec-1.1}

   Text explaining reason \#1.
\item{Reason 2.}
\label{sec-1.2}

   \ldots{} more explanations.
\item{Reason 3.}
\label{sec-1.3}

   Blah, blah, blah.
 
\item{Reason 4.}
\label{sec-1.4}

   Why not?

\end{itemize}\end{frame}
\begin{frame}\frametitle{What}\begin{itemize}
\label{sec-2}

\item{First piece.}
\label{sec-2.1}

\item{Second piece.}
\label{sec-2.2}

\item{Third piece.}
\label{sec-2.3}

\item{Fourth piece.}
\label{sec-2.4}



\end{itemize}\end{frame}

\end{document}

[-- Attachment #3: Type: text/plain, Size: 48 bytes --]


and pdflatex it to produce the following pdf:


[-- Attachment #4: PDF produced by pdflatex --]
[-- Type: application/pdf, Size: 62868 bytes --]

[-- Attachment #5: Type: text/plain, Size: 1379 bytes --]



Some notes:

o Level 1 headlines become slide titles.

o Level 2 headlines become items in the slide and the text under the level
  2 headlines ends up as text in the item.

o Level 3 headlines (not shown in the sample document) were supposed to
  become notes, but this obviously will not work this way. I don't know
  how to make it work. In the end, I edited the tex file by hand in
  order to get the notes right.

o Moreover (and I think this is a bug in the latex exporter), I had to
  rearrange the notes by hand: they ended up in the wrong slides.
  I have had zero time to chase this however, so I am not really sure
  why this happened.

o There was a problem with the table of contents (it's empty and it pushes
  the title of the first slide down), so I manually zapped it from
  the tex file.

o Latex had some peculiar objections to the labels and I did not care
  about them, so I preprocessed them out of existence in the tex file.

After a little practice, I could edit the tex file to take care of all
the problems in about 5 minutes. Even so, after getting the bulk of the
contents of the presentation done, I did a final production of the tex
file and did the final touchups on that. One of these days, I'll have to
go back and figure out some of the problems. For now, this zeroth
approximation to a solution will have to suffice.

HTH.

Thanks,
Nick






[-- Attachment #6: Type: text/plain, Size: 204 bytes --]

_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode

  reply	other threads:[~2009-07-02  2:10 UTC|newest]

Thread overview: 101+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-26 13:34 Sébastien Vauban
2009-07-01 20:21 ` Sébastien Vauban
2009-07-02  2:08   ` Nick Dokos [this message]
2009-07-03  8:39     ` Sébastien Vauban
2009-07-03 16:52       ` Nick Dokos
2009-07-06 15:40         ` Exporting to a Beamer presentation Sébastien Vauban
2009-07-06 17:40           ` [OT] message-mark-inserted-region (was Re: Re: Exporting to a Beamer presentation) Eric S Fraga
     [not found]             ` <ucecesf@ucl.ac.uk>
2009-07-06 17:55               ` Nick Dokos
2009-07-06 19:05                 ` Eric S Fraga
2009-07-06 20:43                 ` Sébastien Vauban
2009-07-06 21:08                   ` Nick Dokos
2009-07-06 22:17                     ` Eric S Fraga
2009-07-07  7:27                     ` Sébastien Vauban
2009-07-10 16:32               ` Newbie Questions Nick Dokos
2009-07-10 17:48                 ` Nicolas Goaziou
2009-07-10 17:53                   ` Eric S Fraga
2009-07-10 17:49                 ` Eric S Fraga
2009-08-14 10:59               ` Re: DiTAA error under Ubuntu Nick Dokos
2009-08-14 11:04                 ` Nick Dokos
2010-02-04 18:24               ` Changing paragraph setting in Latex export Nick Dokos
2010-02-04 18:49                 ` Eric S Fraga
2010-08-12 14:15               ` [babel] confusion about org-confirm-babel-evaluate Nick Dokos
2010-08-12 15:07                 ` Erik Iverson
2010-08-12 16:38                   ` Nick Dokos
2010-10-07 13:29               ` Re: Bibtex and latex export Nick Dokos
2010-10-07 13:58                 ` Eric S Fraga
2010-10-07 14:22                   ` Nick Dokos
2010-10-07 14:29                     ` Eric S Fraga
2010-10-07 14:37                       ` Nick Dokos
2010-10-07 19:51                         ` Eric S Fraga
2010-10-07 20:11                           ` Nick Dokos
2010-10-08  6:23                             ` Eric S Fraga
2010-10-07 17:30                       ` Achim Gratz
2010-10-08  8:43                   ` suvayu ali
2010-10-08 11:35                     ` Eric S Fraga
2010-10-08 15:37                       ` suvayu ali
2010-10-08 15:51                       ` Nick Dokos
2010-10-08 16:44                         ` suvayu ali
2010-10-08 17:27                           ` Nick Dokos
2010-10-08 18:22                             ` Achim Gratz
2010-10-08 18:28                             ` Eric S Fraga
2010-10-08 18:03                       ` Achim Gratz
2010-10-08 18:33                         ` Nick Dokos
2010-10-08 19:18                           ` Achim Gratz
2010-10-08 12:01                     ` Bernt Hansen
2010-10-08 15:40                       ` suvayu ali
2009-07-02  7:56   ` Re: LaTeX export bugs? Carsten Dominik
2009-07-02 20:40     ` Sébastien Vauban
2009-07-03  4:36       ` Carsten Dominik
2009-07-06 20:31         ` Sébastien Vauban
     [not found]     ` <13C7ED92-A0C1-40E0-873A-F6A9143167DB-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org>
2009-09-15 12:11       ` Francesco Pizzolante
2009-09-15 13:13         ` Carsten Dominik
2009-09-16  9:43           ` Francesco Pizzolante
2009-09-17 14:52             ` Sébastien Vauban
2009-09-18  6:37               ` Carsten Dominik
2009-09-18  8:13                 ` Carsten Dominik
2009-09-18 14:42                   ` Sébastien Vauban
2009-07-02  7:19 ` Carsten Dominik
2009-07-03  8:18   ` Sébastien Vauban
2009-07-09 20:37 Newbie Questions Andrew M. Nuxoll
2009-07-09 21:04 ` Brian van den Broek
2009-07-10  3:16 ` Nick Dokos
2009-07-10  4:08   ` Andrew M. Nuxoll
2009-07-10  7:06     ` Ian Barton
2009-07-10 15:26     ` Eric S Fraga
2009-08-03  4:27   ` Carsten Dominik
2009-07-10 17:43 ` Memnon Anon
2009-08-03 20:35 ` Samuel Wales
2009-08-11 15:18 DiTAA error under Ubuntu Sébastien Vauban
2009-08-11 17:30 ` Nick Dokos
2009-08-11 17:40   ` Nick Dokos
2009-08-13  9:04     ` Sébastien Vauban
2009-08-13 15:29       ` Nick Dokos
2009-08-14  9:14       ` Eric S Fraga
2009-08-15  8:23         ` Sébastien Vauban
2009-08-17 12:48           ` Eric S Fraga
2009-08-11 19:16 ` Eric S Fraga, Eric S Fraga
2010-02-04 17:09 Changing paragraph setting in Latex export Paul Mead
2010-02-04 17:39 ` Nick Dokos
2010-02-04 17:43 ` Eric S Fraga
2010-02-04 18:03   ` Paul Mead
2010-02-04 18:48     ` Eric S Fraga
2010-08-12 12:53 [babel] confusion about org-confirm-babel-evaluate Eric S Fraga
2010-08-12 13:44 ` Erik Iverson
2010-08-12 14:07   ` Eric S Fraga
2010-08-12 14:59     ` Erik Iverson
2010-08-12 15:08       ` Eric S Fraga
2010-08-12 15:12         ` Erik Iverson
2010-08-12 15:18           ` Eric S Fraga
2010-09-15 16:00 Bibtex and latex export Rafael Calsaverini
2010-09-15 19:00 ` Rafael Calsaverini
2010-09-15 19:48   ` Erik Iverson
2010-10-06 11:30     ` Sébastien Vauban
2010-10-06 15:02       ` Eric S Fraga
2010-10-06 16:40         ` Carsten Dominik
2010-10-07  6:25           ` Eric S Fraga
2010-10-06 17:21         ` Achim Gratz
2010-10-07  7:12           ` Eric S Fraga
2010-10-07  8:43             ` Sébastien Vauban
2010-10-07 15:07               ` Eric S Fraga
2010-10-06 15:05       ` Eric S Fraga

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

  List information: https://orgmode.org

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=9854.1246500519@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=wxhgmqzgwmuf@spammotel.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

Org-mode mailing list

This inbox may be cloned and mirrored by anyone:

	git clone --mirror https://orgmode.org/list/0 list/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 list list/ https://orgmode.org/list \
		emacs-orgmode@gnu.org
	public-inbox-index list

Example config snippet for mirrors.
Newsgroups are available over NNTP:
	nntp://news.yhetil.org/yhetil.emacs.orgmode
	nntp://news.gmane.io/gmane.emacs.orgmode


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git