emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* beamer columns and printout
@ 2014-05-14 16:51 Seb Frank
  2014-05-15 14:43 ` Seb Frank
  0 siblings, 1 reply; 2+ messages in thread
From: Seb Frank @ 2014-05-14 16:51 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

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

[-- Attachment #2: Type: text/html, Size: 1563 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: beamer columns and printout
  2014-05-14 16:51 beamer columns and printout Seb Frank
@ 2014-05-15 14:43 ` Seb Frank
  0 siblings, 0 replies; 2+ messages in thread
From: Seb Frank @ 2014-05-15 14:43 UTC (permalink / raw)
  To: emacs-orgmode@gnu.org

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

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 <sebsfrank@gmail.com> 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
>

[-- Attachment #2: Type: text/html, Size: 3294 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-05-15 14:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-05-14 16:51 beamer columns and printout Seb Frank
2014-05-15 14:43 ` Seb Frank

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).