0

This is a continuation of this question. I'm sorry, I couldn't add a comment there, so I wrote this new question. Gonzalo Medina solved the problem by defining a new \Section command. This cannot work with me. I'm using Lyx to create my beamer presentation and articles. So, I cannot tell Lyx to use the new defined \Section instead of the standard \section command.

So is there a way to redefine/patch either of the \section command or the toc so that the beamer-article toc uses section full title instead of the short title?

Thanks in advance

Ahmed Rashed
  • 111
  • 1
  • 2

1 Answers1

1

I could find a solution for this question. So I'm citing it on the original question page.

The following code worked perfectly with me. It redefines the \section and the dependant \section* commands. You should put this code in the preamble of a beamerarticle document, so no need for mode specification using neither nor . Thanks for Gonzalo Medina's post above, and Christian Hupfer's post for inspiring me the following code. You can extend this code for \part, \subsection and \subsubsection as well.

\makeatletter
\let\OriginalSection\section
\newcommand{\starredsection}[1]{%
\OriginalSection*{#1}%
}

\newcommand\unstarredsection[2][]{%
\OriginalSection{#2}
}

\renewcommand{\section}{%
\@ifstar{\starredsection}{\unstarredsection}%
}%
\makeatother
Ahmed Rashed
  • 111
  • 1
  • 2