5

I recently upgraded my org-mode from 8.2 to 8.3. So far all works well, but I ran into the following problem: when creating a LaTeX Beamer presentation in org-mode I used to be able to do the following to get a block without a title:

**                                  :B_block:
   :PROPERTIES:
   :BEAMER_env: block
   :END:
   Text in block without title

With Org 8.3 I get the text :B_block: as title of the block instead of not title at all.

Here is a MWE:

#+OPTIONS: toc:nil
#+TITLE: A title
#+DATE: 2015-09-17
#+AUTHOR: The Presenter

#+LATEX_CLASS: beamer
#+BEAMER_THEME: Madrid

# The following line gives access to the C-c C-b key for headings
#+startup: beamer


* Introduction
** A block                              :B_block:
   :PROPERTIES:
   :BEAMER_env: block
   :END:
   Some text in the block.
**                                  :B_block:
   :PROPERTIES:
   :BEAMER_env: block
   :END:
   Text in block without title

With Org 8.2 this gives the following slide: What I used to get and what I like to have

And Org 8.3 gives: What I currently get

I didn't find anything related in the Changelog. Did I miss something or have I found a bug? Or have I made some practical use of a bug that has now been 'fixed' ;-)?

3

I think it works ok if you remove the :B_block: from your headlines.

* Introduction
** A block                            
   :PROPERTIES:
   :BEAMER_env: block
   :END:
   Some text in the block.
** 
:PROPERTIES:
:BEAMER_env: block
:END:
   Text in block without title

leads to:

enter image description here

  • Indeed, removing the :B_block: works, in principle. However, in my .emacs I have added a before-save-hook that cleans whitespace. And for your suggestion to work, I need at least one space after the ** header. So, while your suggestion is OK in general, I would like to find a way that works with my setup. – ph0t0nix Sep 21 '15 at 19:37
1

The answer that @Lgen gave works as far as the export is concerned, but it breaks visibility cycling (the headline level is lifted). As the thread on the org-mode mailing list suggests, empty headlines are considered evil. So I'd propose to insert something that has no effects export-wise, for example @@latex:@@. With this, you can also keep the tag, which I find useful as a visual marker of blocks in beamer.

** @@latex:@@                     :B_block:
:PROPERTIES:
:BEAMER_env: block
:END:
   Text in block without title

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.