Document ClassesBeamer: label/reference to sections and subsections

Information and discussion about specific document classes and how to create your own document classes.
Post Reply
nieproszenieja
Posts: 9
Joined: Tue Jul 08, 2008 10:25 pm

Beamer: label/reference to sections and subsections

Post by nieproszenieja »

Hello,
is there a way to create a label/reference in Beamer for a section/subsection number (like in a \documentclass{article}) instead of reference to frame number?
e.g:

Code: Select all

\section{Smth} \label{s:smth}
\subsection{anth} \label{ss:anth}
\begin{frame}{First frame}
  \ref{s:smth} % output: 1
  \ref{ss:smth} %output : 1.1
\end{frame}
Thank you.
nieproszenieja

Recommended reading 2024:

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

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

Post Reply