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

1. repo owner

See if lastsection from current code works in the way you want.

2. reporter

lastsection doesn't work. The error message is

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

3. 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}}%

\long\def\secname{#2}%

\long\def\lastsection{#1}%

{\the\beamer@tocsectionnumber}}}%

The error still happened

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

4. repo owner

It seems to work here, can you provide a minimum breaking example?

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

\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