Presentations and Postershow to numerate subsection/ subsubsection beamer

Beamer, Powerdot and KOMA-Script presentations, Conference posters (a0poster, baposter, tikzposter)
Post Reply
caheo1294
Posts: 10
Joined: Wed Aug 18, 2021 2:10 am

how to numerate subsection/ subsubsection beamer

Post by caheo1294 »

Hi, does anyone know how to add the subsection and subsection numbers into each slide using Beamer? I am looking for something like "1.1 Subsection 1.1" in each slide that belongs to Section 1.1. Thank you!!!

Code: Select all

Code, edit and compile here:
\documentclass[compress,12pt]{beamer}
\usepackage{amsmath,amssymb}
\usecolortheme[RGB={0,0,205}]{structure}
\usepackage{color, colortbl, graphics, graphicx}
\usepackage{pgfarrows,pgfnodes}
\usepackage{url}
\usepackage{textcomp}
\usepackage[vcentermath]{youngtab}
\usepackage{pgf}
\usepackage{bbm}
\usepackage[flushleft]{threeparttable}
\usepackage{xcolor}
\usepackage{color}
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{rotating}
\usepackage{geometry}
\usepackage{lscape}
\usepackage{subfig}
\usepackage{tikz}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{ragged2e} \usepackage[authoryear]{natbib}
\hypersetup{
colorlinks,%
citecolor=blue,%
filecolor=red,%
linkcolor=black,%
urlcolor=black
}
\renewcommand<>{\hl}[1]{\only#2{\beameroriginal{\hl}}{#1}}
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}
\newtheorem{conjecture}{Conjecture}[section]
\newtheorem{remark}{Remark}[section]
\newtheorem{findings}{Findings}[section]
\newtheorem{methodology}{Methodology}[section]
\newtheorem{simulation}{Simulation design}[section]
\newtheorem{puzzles}{Puzzles}[section]
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

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

Ijon Tichy
Posts: 640
Joined: Mon Dec 24, 2018 10:12 am

how to numerate subsection/ subsubsection beamer

Post by Ijon Tichy »

I'm not sure, that I understand your question. But beamer has `\insertsectionnumber` and `\insertsection` to print the current section number and section title. So you could use, e.g.:

Code: Select all

Code, edit and compile here:
\documentclass[compress,12pt]{beamer}
\usepackage{amsmath,amssymb}
\usecolortheme[RGB={0,0,205}]{structure}
\usepackage{color, colortbl, graphics, graphicx}% color, graphics, graphicx does not make sense
\usepackage{pgfarrows,pgfnodes}
\usepackage{url}% does not make sense
\usepackage{textcomp}
\usepackage[vcentermath]{youngtab}
\usepackage{pgf}% does not make sense
\usepackage{bbm}
\usepackage[flushleft]{threeparttable}
\usepackage{xcolor}% does not make sense
\usepackage{color}% does not make sense
\usepackage{amsthm}
\usepackage{mathrsfs}
\usepackage{rotating}
\usepackage{geometry}% does not make sense
\usepackage{lscape}
\usepackage{subfig}
\usepackage{tikz}
\usepackage{tabularx}
\usepackage{booktabs}
\usepackage{array}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{ragged2e} \usepackage[authoryear]{natbib}
\hypersetup{
colorlinks,%
citecolor=blue,%
filecolor=red,%
linkcolor=black,%
urlcolor=black
}
\renewcommand<>{\hl}[1]{\only#2{\beameroriginal{\hl}}{#1}}
\newcommand{\hilight}[1]{\colorbox{yellow}{#1}}
\newtheorem{conjecture}{Conjecture}[section]
\newtheorem{remark}{Remark}[section]
\newtheorem{findings}{Findings}[section]
\newtheorem{methodology}{Methodology}[section]
\newtheorem{simulation}{Simulation design}[section]
\newtheorem{puzzles}{Puzzles}[section]
 
 
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
And please try to make more minimal examples. You are loading several packages, that are already loaded by beamer. Some packages you are loading more than once, which is almost never a good idea.
Sorry, but I can no longer participate here as the administrator is trampling on my wishes on one of his other platforms. :cry:
Post Reply