From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: New exporter, beamer confusion Date: Tue, 05 Feb 2013 02:21:04 -0500 Message-ID: <6207.1360048864@alphaville> References: <20130204063905.GA23614@kuru.dyndns-at-home.com> <87wqun5037.fsf@gmail.com> Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([208.118.235.92]:58184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2cqC-00050p-A7 for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 02:21:17 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1U2cq9-0002hh-Mz for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 02:21:16 -0500 Received: from g5t0007.atlanta.hp.com ([15.192.0.44]:5813) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1U2cq9-0002gh-Gp for emacs-orgmode@gnu.org; Tue, 05 Feb 2013 02:21:13 -0500 In-Reply-To: Message from James Harkins of "Tue, 05 Feb 2013 08:09:47 +0800." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: jamshark70@dewdrop-world.net Cc: emacs-orgmode@gnu.org, Nicolas Goaziou James Harkins wrote: > On Feb 5, 2013 3:51 AM, "Nicolas Goaziou" 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: > > ----------------------------------------------------