[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] New exporter, beamer confusion
From: |
Nick Dokos |
Subject: |
Re: [O] New exporter, beamer confusion |
Date: |
Tue, 05 Feb 2013 02:21:04 -0500 |
James Harkins <address@hidden> wrote:
> On Feb 5, 2013 3:51 AM, "Nicolas Goaziou" <address@hidden> wrote:
> > In particular, "All frames children become block environments". So in
> > your example Third-level is a block environment and Fourth-level is
> > a block within it. There's no flattening going on (look at the tex file
> > to convince yourself).
>
> Thanks for pointing me to the comments in the .el source file.
>
> So here's my situation. I have a year's worth of lecture slides that render
> nicely using the old
> exporter. In the new exporter, the clear hierarchies of "enumerate"
> environments disappear, replaced
> by flat blocks. This new behavior is not useful to me.
>
> The comments in the source don't say anything about how I can modify the
> default "block" behavior.
> As a result, if the new exporter is fundamentally incompatible with the old
> and the only way is to
> insert properties by hand under every headline (across all of my files, I'd
> guess the count is in
> the high hundreds, if not >1000)... then the new beamer exporter is not
> useful to me.
>
Customizing org-e-beamer-environments-extra should do the trick. I was
experimenting using the *scratch* buffer, so the following are temporary
settings, cribbed from those experiments: restart emacs and they
disappear.
Something like the following perhaps (very lightly tested - nb: I really
haven't played with the new exporter very much at all):
--8<---------------cut here---------------start------------->8---
(setq blockenv '("block" "b" "\\begin{itemize}\\item %h" "\\end{itemize}"))
(add-to-list 'org-e-beamer-environments-extra blockenv t)
--8<---------------cut here---------------end--------------->8---
I added a beamer entry to org-e-latex-classes as indicated in
http://thread.gmane.org/gmane.emacs.orgmode/61497/focus=61536
by just copying the article entry and modifying it slightly (again, I
have no idea if the sectioning stuff matters or not, and whether it leads
to problems - improvements/corrections would be welcome):
--8<---------------cut here---------------start------------->8---
(setq beamerclass '("beamer" "\\documentclass[11pt]{beamer}"
("\\section{%s}" . "\\section*{%s}")
("\\subsection{%s}" . "\\subsection*{%s}")
("\\subsubsection{%s}" . "\\subsubsection*{%s}")
("\\paragraph{%s}" . "\\paragraph*{%s}")
("\\subparagraph{%s}" . "\\subparagraph*{%s}")))
(add-to-list 'org-e-latex-classes beamerclass t)
--8<---------------cut here---------------end--------------->8---
That's enough to export your ECM I think - no guarantees for
anything more complicated.
Nick
> Is there an existing feature request for this? If not, would it help if I
> logged one? (Even if I
> didn't have existing files -- I like bullet points on slides, not flat text.
> I don't understand why
> I shouldn't be able to set that as a global or per-file preference.)
>
> I don't mean to be harsh. I'm glad for the new exporter and I'll use it for
> the next article I
> write. For beamer, though, currently it sounds like a lot of work to get a
> result that used to be
> easy.
>
> hjh
>
>
> ----------------------------------------------------
> Alternatives:
>
> ----------------------------------------------------
- [O] New exporter, beamer confusion, James Harkins, 2013/02/03
- Re: [O] New exporter, beamer confusion, Suvayu Ali, 2013/02/04
- Re: [O] New exporter, beamer confusion, James Harkins, 2013/02/04
- Re: [O] New exporter, beamer confusion, Nicolas Goaziou, 2013/02/04
- Re: [O] New exporter, beamer confusion, James Harkins, 2013/02/04
- Re: [O] New exporter, beamer confusion,
Nick Dokos <=
- Re: [O] New exporter, beamer confusion, James Harkins, 2013/02/05
- Re: [O] New exporter, beamer confusion, Sebastien Vauban, 2013/02/05
- Re: [O] New exporter, beamer confusion, Nick Dokos, 2013/02/05
- Re: [O] New exporter, beamer confusion, Nicolas Goaziou, 2013/02/05
- Re: [O] New exporter, beamer confusion, Eric S Fraga, 2013/02/05
- Re: [O] New exporter, beamer confusion, Nicolas Goaziou, 2013/02/06
- Re: [O] New exporter, beamer confusion, Eric S Fraga, 2013/02/06
- Re: [O] New exporter, beamer confusion, Nicolas Goaziou, 2013/02/07
- Message not available
- Message not available
- Re: [O] New exporter, beamer confusion, Vincent Beffara, 2013/02/07
- Re: [O] New exporter, beamer confusion, Nicolas Goaziou, 2013/02/07