From mboxrd@z Thu Jan 1 00:00:00 1970 From: Seb Frank Subject: Re: beamer columns and printout Date: Thu, 15 May 2014 15:43:16 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=001a11c1e1a446977a04f971515d Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34311) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkwsR-00039Q-CA for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:43:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WkwsP-0004Qh-PA for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:43:19 -0400 Received: from mail-ig0-x235.google.com ([2607:f8b0:4001:c05::235]:43886) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WkwsP-0004QK-Il for emacs-orgmode@gnu.org; Thu, 15 May 2014 10:43:17 -0400 Received: by mail-ig0-f181.google.com with SMTP id h3so1058258igd.14 for ; Thu, 15 May 2014 07:43:17 -0700 (PDT) In-Reply-To: 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: "emacs-orgmode@gnu.org" --001a11c1e1a446977a04f971515d Content-Type: text/plain; charset=UTF-8 I've solved the first problem, using a something similar to what has been suggested here: http://stackoverflow.com/questions/10295177/is-there-an-equivalent-of-org-modes-b-ignoreheading-for-non-beamer-documents The solution is to define #+begin_src emacs-lisp (defun sf-ignore-headline (contents backend info) "Ignore headlines with tags `ignoreheading" or `columns'." (when (and (org-export-derived-backend-p backend 'latex 'html 'ascii) (string-match "\\`.*\\(ignoreheading\\|columns\\).*\n" (downcase contents))) (replace-match "" nil nil contents))) (add-to-list 'org-export-filter-headline-functions 'sf-ignore-headline) #+end_src emacs-lisp This removes headlines with tags "columns" (or "ignoreheading", for that matter), which is what I wanted. Any ideas for the second problem? I.e., how to get rid of the BMCOL in export to latex/html/etc. while keeping the headlines/content? On Wed, May 14, 2014 at 5:51 PM, Seb Frank wrote: > Hi, > > I'm interested in using org-mode to generate beamer slides and an > article-like printout (using the article class, usepackage{beamerarticle} > and latex export) from the same source, and I am running into two problems > with the export to article when there are multiple columns. > > 1.) I often use an empty headline with B_columns tag to allow me to > specify top alignment. E.g., > > #+begin_src org > * :B_columns: > :PROPERTIES: > :BEAMER_env: columns > :BEAMER_opt: T > :END: > ** Column 1 :BMCOL: > :PROPERTIES: > :BEAMER_col: 0.35 > :END: > ** Column 2 :BMCOL: > :PROPERTIES: > :BEAMER_COL: 0.6 > :END: > #+end_src org > > In the printout, this yields an ugly empty section with a number if num:t. > Is there a better way to pass [T] to the title-less columns environment, or > (less preferably) a way to specify a title for the section without it > appearing on the beamer slide? > > 2.) In the above example, the B_columns and BMCOL tags get exported to the > latex file for the printout (with an error because the underscore is used > outside of math mode). Can these be suppressed? > > Thanks, > Seb > --001a11c1e1a446977a04f971515d Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I've solved the first problem, using a something = similar to what has been suggested here:
http://stackoverflow.com/quest= ions/10295177/is-there-an-equivalent-of-org-modes-b-ignoreheading-for-non-b= eamer-documents

The solution is to define
#+begin_src emacs-lisp
(defun sf-ignore-headline (contents backend info)=
=C2=A0 "Ignore headlines with tags `ignoreheading" or `column= s'."
=C2=A0 (when (and (org-export-derived-backend-p backend &#= 39;latex 'html 'ascii)
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (s= tring-match "\\`.*\\(ignoreheading\\|columns\\).*\n"
=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (d= owncase contents)))
=C2=A0=C2=A0=C2=A0 (replace-match "" nil n= il contents)))

(add-to-list 'org-export-filter-headline-function= s 'sf-ignore-headline)
#+end_src emacs-lisp

This removes headlines with tags "columns" (or "= ;ignoreheading", for that matter), which is what I wanted. Any ideas f= or the second problem? I.e., how to get rid of the BMCOL in export to latex= /html/etc. while keeping the headlines/content?

On Wed, May= 14, 2014 at 5:51 PM, Seb Frank <sebsfrank@gmail.com> wrot= e:
Hi,

I'm interested in using org-mode to generate beamer= slides and an article-like printout (using the article class, usepackage{b= eamerarticle} and latex export) from the same source, and I am running into= two problems with the export to article when there are multiple columns.
1.) I often use an empty headline with B_columns tag to allow me = to specify top alignment. E.g.,

#+begin_src org
*=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 :B_columns:
:PROPERTIES:
:BEAMER_env: columns
:BEAMER_opt: = T
:END:
** Column 1 =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :BMCOL:
:PROPERTIES:
:BEAMER_col: 0.35
:END:
** Column 2 =C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 :BMCOL:
:PROPERTIES:
:BEAMER_COL= : 0.6
:END:
#+end_src org

In the printout, this yields an ugly empty secti= on with a number if num:t. Is there a better way to pass [T] to the title-l= ess columns environment, or (less preferably) a way to specify a title for = the section without it appearing on the beamer slide?

2.) In the above example, the B_columns and BMCOL tags get export= ed to the latex file for the printout (with an error because the underscore= is used outside of math mode). Can these be suppressed?

Thanks,
=C2=A0 Seb

--001a11c1e1a446977a04f971515d--