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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

Post Reply