Document Classes[Beamer] Custom headline in split outer theme

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
kliput
Posts: 2
Joined: Sat Nov 14, 2009 9:59 pm

[Beamer] Custom headline in split outer theme

Post by kliput »

Hello!

I want to make some changes in headline navigation (sections and subsections navigation) in split theme. I've tried to add this to my document to override default style:

Code: Select all

\setbeamertemplate{headline}
{%
  \leavevmode%
  \@tempdimb=2.4375ex%
	\@beamer@sectionmax=2
	\@beamer@subsectionmax=2
  \ifnum\beamer@subsectionmax<\beamer@sectionmax%
    \multiply\@tempdimb by\beamer@sectionmax%
  \else%
    \multiply\@tempdimb by\beamer@subsectionmax%
  \fi%
  \ifdim\@tempdimb>0pt%
    \advance\@tempdimb by 1.125ex%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{section in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsectionnavigation{.5\paperwidth}\vfil}%
    \end{beamercolorbox}%
    \begin{beamercolorbox}[wd=.5\paperwidth,ht=\@tempdimb]{subsection in head/foot}%
      \vbox to\@tempdimb{\vfil\insertsubsectionnavigation{.5\paperwidth}\vfil}%
    \end{beamercolorbox}%
  \fi%
}
This code is similiar to code in beamerouterthemesplit.sty, but without "compressed mode" code.

When I try to compile it, I get an error:

Code: Select all

! Undefined control sequence.
\beamer@@tmpl@headline ...ionmax=2 \ifnum \beamer
                                                  @subsectionmax<\beamer @ se...
What I'm doing wrong? When I'm trying to copy whole content of "beamerouterthemesplit.sty" to another file (ex. "beamerouterthememytheme.sty"), and do some modifications, it doesn't work too.

Thanks in advance for help!

PS. Sorry for my mistakes in English, I'm not native speaker.
Last edited by kliput on Sun Nov 15, 2009 1:26 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

And: Currently, Packt sells ebooks for $4.99 each if you buy 5 of their over 1000 ebooks. If you choose only a single one, $9.99. How about combining 3 LaTeX books with Python, gnuplot, mathplotlib, Matlab, ChatGPT or other AI books? Epub and PDF. Bundle (3 books, add more for higher discount): https://packt.link/MDH5p

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

[Beamer] Custom headline in split outer theme

Post by gmedina »

Hi,

the code that you are trying to modify contains the special charecter @. To handle this character appropriately in .tex files you should enclose the code using

Code: Select all

\makeatletter
...(code)...
\makeatother
1,1,2,3,5,8,13,21,34,55,89,144,233,...
kliput
Posts: 2
Joined: Sat Nov 14, 2009 9:59 pm

Re: [Beamer] Custom headline in split outer theme

Post by kliput »

Thank You very much! It works.

Also, I've tried to move whole style definitions to another file in my working directory (ex. "beamerthememystyle.sty"), and it works too, without code You wrote. Strange... but earlier I've used /useoutertheme in my theme file, maybe there was a problem.
Post Reply