Document ClassesHorizontal flush of subsection dots, Berlin theme

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Horizontal flush of subsection dots, Berlin theme

Post by m.carrara3 »

I'm using Berlin theme and I want the subsection's dots in outer theme to be horizontally aligned instead of vertically;
Any suggestion?

Thank you in advance!

Recommended reading 2024:

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

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

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

Re: Horizontal flush of subsection dots, Berlin theme

Post by gmedina »

Hi,

can you please post some code that allows me to form and idea about your problem?
1,1,2,3,5,8,13,21,34,55,89,144,233,...
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Re: Horizontal flush of subsection dots, Berlin theme

Post by m.carrara3 »

Hey! Here's an exemple which can make you understand it pretty well and clear

in the headline outer section I have 2 boxes one blue (where section are printed) and one light blue (where subsection are printed); now, one the blue box under the section title, if you filled code with subsection you have a circled dot for each one, right?
This dots are ordered vertically and I want them to be ordered horizontally.

Get it? I hope so; I can't provide you code 'cause I have no idea how to instruct Tex to do this. And the style with vertical dots is pre-defined in Berlin theme...

Thank you so much...

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

Horizontal flush of subsection dots, Berlin theme

Post by gmedina »

Hi,

you could use the compress option for the Berlin theme:

Code: Select all

\documentclass{beamer}
\usetheme[compress]{Berlin}

\begin{document}

\section{Sec. One}
\subsection{Subsec One One}

\begin{frame}
  Just a test frame.
\end{frame}

\subsection{Subsec One Two}

\begin{frame}
  Another test frame.
\end{frame}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Re: Horizontal flush of subsection dots, Berlin theme

Post by m.carrara3 »

Thank you so much, it works properly!!! I have one more question (I hope not to bother you so much...) How can I erase the bright blue bar in the headline? I just want the section bar.

I know I have to use the beamercolorbox, but I don't know how... I'm just a beginner... :oops:

Thank you very much

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

Horizontal flush of subsection dots, Berlin theme

Post by gmedina »

m.carrara3 wrote:Thank you so much, it works properly!!! I have one more question (I hope not to bother you so much...) How can I erase the bright blue bar in the headline? I just want the section bar.

I know I have to use the beamercolorbox, but I don't know how... I'm just a beginner... :oops:

Thank you very much

M
Do not worry. However, you can do some reading on your own. Here's the link to the beamer user guide.

And here's a possible solution to your problem (notice that I didn't used the Berlin theme, but rather I imitate it):

Code: Select all

\documentclass[compress]{beamer}
\mode<presentation>

\useoutertheme[footline=authorinstitutetitle,subsection=false]{miniframes}
\usecolortheme{whale}
\usecolortheme{orchid}
\useinnertheme{rectangles}

\setbeamerfont{block title}{size={}}

\begin{document}

\section{Sec. One}
\subsection{Subsec One One}

\begin{frame}
  Just a test frame.
\end{frame}

\subsection{Subsec One Two}

\begin{frame}
  Another test frame.
\end{frame}

\subsection{Subsec One Two}

\begin{frame}
  Another test frame.
\end{frame}

\end{document}
1,1,2,3,5,8,13,21,34,55,89,144,233,...
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Horizontal flush of subsection dots, Berlin theme

Post by Stefan Kottwitz »

Hi,

using the Berlin theme directly this setting of an internal macro would work in the preamble:

Code: Select all

\makeatletter
\beamer@theme@subsectionfalse
\makeatother
Stefan
LaTeX.org admin
m.carrara3
Posts: 21
Joined: Mon Sep 08, 2008 7:13 pm

Re: Horizontal flush of subsection dots, Berlin theme

Post by m.carrara3 »

All works properly! Thanks...

But... Where did you learn all these commands??? You're a genius!!!
User avatar
Stefan Kottwitz
Site Admin
Posts: 10323
Joined: Mon Mar 10, 2008 9:44 pm

Re: Horizontal flush of subsection dots, Berlin theme

Post by Stefan Kottwitz »

By reading a lot, beside documentation also source codes of classes and packages, it comes over the time, also through supporting users. There's no need to keep everything perfectly in mind because you always can look into docs and sources.

Stefan
LaTeX.org admin
Post Reply