From: Seb Frank <sebsfrank@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: beamer columns and printout
Date: Thu, 15 May 2014 15:43:16 +0100 [thread overview]
Message-ID: <CAMF4YiMVbh305x+e0vhgm4KfbmMOOzGEs3-1mbpvR=7tBJvjYA@mail.gmail.com> (raw)
In-Reply-To: <CAMF4YiP1mzKEr82pL1mqZVNMJrUsjxAkQqPJ5wJw1uSb0Q=L1A@mail.gmail.com>
[-- 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 --]
prev parent reply other threads:[~2014-05-15 14:43 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-14 16:51 beamer columns and printout Seb Frank
2014-05-15 14:43 ` Seb Frank [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAMF4YiMVbh305x+e0vhgm4KfbmMOOzGEs3-1mbpvR=7tBJvjYA@mail.gmail.com' \
--to=sebsfrank@gmail.com \
--cc=emacs-orgmode@gnu.org \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.