1. Vedran Miletić
  2. beamer
  3. Issues
Issue #38 resolved

How to invoke short section name

said
created an issue

In beamer we can defined section as \section< mode specification >[ short section name ]{ section name }

I want to invoke the "short section name" in the frame title. As I know, \secname can invoke the " section name", \subsecname the "subsection name" and \lastsubsection the "short subsection name". However, I didn't find a method for invoking the "short section name".

Any suggestion is appreciate.

Comments (10)

  1. said reporter

    Now I modified the /usr/share/texmf/tex/latex/beamer/base/beamerbasesection.sty as the following:

    line 174

    % {\long\def\secname{#1}}%

    {\long\def\secname{#1}\long\def\lastsection{#1}}%

    {\advance\beamer@tocsectionnumber by 1\relax%

    % \long\def\secname{#2}\addtocontents{toc}{\protect\beamer@sectionintoc{\the\c@section}{#2}{\the\c@page}{\the\c@part}%

    \long\def\secname{#2}%

    \long\def\lastsection{#1}%

    \addtocontents{toc}{\protect\beamer@sectionintoc{\the\c@section}{#2}{\the\c@page}{\the\c@part}%

    {\the\beamer@tocsectionnumber}}}%

    The error still happened

    ! Undefined control sequence. \insertframetitle ->{\lastsection

  2. said reporter

    I am sorry for a stupid mistake I made.

    Actually working code is in my home directory and I modified the file in /usr/share

    Anyway the code works very well.

    Thanks for you help.

  3. Anonymous

    \lastsection works beautifully to invoke the "short section name" (paired with \section<mode specification>[short section name]{section name} \providecommand\lastsection {} as you suggested in another forum)

    but the name \lastsection per se is a bit misleading (took me whole day + peeking into the .sty code to figure it out). why such a name and not just \shortsection ???

    iren

  4. Log in to comment