need section commands *inside* frame environment

View: New views
1 Messages — Rating Filter:   Alert me  

need section commands *inside* frame environment

by Stefan Klinger-5 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello.

I am working on migrating an existing lecture to the Beamer class, and I came up
with the following Problem: I need the [[sub]sub]section commands to work from
*inside* the frame environment.

This is due to the structure of the lecture. There are quite some very short
subsubsections in there, which do not justify a frame on their own.
It is quite common that multiple subsubsections start on the same frame, which
is why I need the headlines appear in the midst of the frame. See example below.

Furthermore these sections are referenced from later parts of the lecture, which
is why I want to have the numbers visible.

I know that my wishes are probably not in line with the best-practice
guidelines, but I don't have a choice here.

Here is an example: First the LaTeX code, then the desired output in ASCII-Arts.

    \begin{frame}
      \section{One}
      Intro to section One.
    \end{frame}
   
    \begin{frame}
      \subsection{One-one}
      Very short intro to subsection One-one.
     
      \subsubsection{One-one-one}
      Very short subsubsection One-one-one.
   
      \subsubsection{One-one-two}
      Very short subsubsection One-one-two.
    \end{frame}
   
schould render to something like this:

    |========================================|
    |1 - One                                 |    <--infoline
    |----------------------------------------|
    |                                        |
    |                                        |
    |                                        |
    |  >>> 1 One <<<                         |    <--section header
    |                                        |
    |  Intro to section One.                 |
    |                                        |
    |                                        |
    |                                        |
    |                                        |
    |========================================|

   
    |========================================|
    |1 - One                    One-one - 1.1|
    |----------------------------------------|
    |                                        |
    |  1.1 One-one                           |    <--subsection header
    |    Very short intro to subsection      |
    |    One-one.                            |
    |                                        |
    |  1.1.1 One-one-one                     |    <--subsubsection header
    |  Very short subsubsection One-one-one. |
    |                                        |
    |  1.1.2 One-one-two                     |
    |  Very short subsubsection One-one-two. |
    |                                        |
    |========================================|


I came up with a workaround, which is not very satisying: Defining

    \newcommand{\subsubsectionput}{%
      \par%
      \textbf{\thesection.\thesubsection.\thesubsubsection\ \insertsubsubsectionhead}%
      \par%
    }
   
allows me to use ‘\subsubsectionput’ on the slide, at the point where the
headline should appear. This, however, is error prone, and does *not* work if
multiple subsubsections start on the same frame.


Any help would be appreciated here!

Kind regards
Stefan


--
Stefan Klinger                                      o/klettern
                                                    /\/  bis zum
send plaintext only - max size 32kB - no spam         \   Abfallen
http://stefan-klinger.de

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Latex-beamer-users mailing list
Latex-beamer-users@...
https://lists.sourceforge.net/lists/listinfo/latex-beamer-users