emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Alan E. Davis" <lngndvs@gmail.com>
To: nicholas.dokos@hp.com
Cc: "Sébastien Vauban" <wxhgmqzgwmuf@spammotel.com>, emacs-orgmode@gnu.org
Subject: Export to LaTeX Beamer. [WAS: Re: Re: LaTeX export bugs?]
Date: Sun, 20 Sep 2009 16:03:20 +1000	[thread overview]
Message-ID: <7bef1f890909192303h462a7305u2a5aa497ed346a63@mail.gmail.com> (raw)


[-- Attachment #1.1: Type: text/plain, Size: 2904 bytes --]

Hello:

I was happy to see a simple formula for exporting to Beamer.  The following
worked initially.  However, this initialization routine was able to run only
when org-latex had already been loaded.

On Sat, Jul 4, 2009 at 2:52 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:

>
> 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}")
> |                )
> |              )
> `----
>
>
Is it possible to put this inside of a hook (say, when org-latex was loaded,
or when the document class was beamer during the export process)?

Emacs just reports the following when this code is included into the init
file:

       Symbol's value as variable is void: org-export-latex-classes

After explicitly loading the library "org-latex" the code is executed and
the procedure works for exporting the example file---given that the latex
code must be cleaned up.

I haven't yet tried the following as a heading line:

       #+OPTIONS: toc:nil

Would that solve the problem you reported?

Alan




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


Thank you for this helpful advice.

Alan Davis

You can know the name of a bird in all the languages of the world,  but when
you're finished, you'll know absolutely nothing whatever about the bird...
So let's look at the bird and see what it's doing---that's what counts.

   ----Richard Feynman

[-- Attachment #1.2: Type: text/html, Size: 4150 bytes --]

[-- Attachment #2: 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-09-20  6:03 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-09-20  6:03 Alan E. Davis [this message]
2009-09-20 21:16 ` Export to LaTeX Beamer. [WAS: Re: Re: LaTeX export bugs?] Thomas S. Dye

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://www.orgmode.org/

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

  git send-email \
    --in-reply-to=7bef1f890909192303h462a7305u2a5aa497ed346a63@mail.gmail.com \
    --to=lngndvs@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=nicholas.dokos@hp.com \
    --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
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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).