From: Nikolay Shaplov Date: Mon, 15 Jun 2026 06:48:11 +0000 (+0300) Subject: Выносим переопределение section в общий стиль, чтоы в старом дизайне оно тоже работало X-Git-Url: http://gitweb.nataraj.world/?a=commitdiff_plain;h=8bf7de5aa545b58ea6d41b953fcea6b1f565c38a;p=articles.git Выносим переопределение section в общий стиль, чтоы в старом дизайне оно тоже работало --- diff --git a/slides/0000 - LaTeX Stub/pgpro2025bis.theme/beamerthemePgPro2025bis.sty b/slides/0000 - LaTeX Stub/pgpro2025bis.theme/beamerthemePgPro2025bis.sty index f33a70e..a1aeb49 100644 --- a/slides/0000 - LaTeX Stub/pgpro2025bis.theme/beamerthemePgPro2025bis.sty +++ b/slides/0000 - LaTeX Stub/pgpro2025bis.theme/beamerthemePgPro2025bis.sty @@ -29,8 +29,4 @@ \setbeamertemplate{footline}{\vspace{1cm}} \setbeamersize{text margin left=1.33cm,text margin right=1.33cm} -% Переопределяем дефолтный \section на использование нашего section слайда -\let\beamer@origsection\section -\renewcommand{\section}[1]{\begin{frame}[section]{#1}\null\end{frame}} - \mode diff --git a/slides/0000 - LaTeX Stub/sty/my-common-style.sty b/slides/0000 - LaTeX Stub/sty/my-common-style.sty index 2a6eb3f..907c629 100644 --- a/slides/0000 - LaTeX Stub/sty/my-common-style.sty +++ b/slides/0000 - LaTeX Stub/sty/my-common-style.sty @@ -38,4 +38,8 @@ \setkeys{beamerframe}{plain}% } +% Переопределяем дефолтный beamer'овский \section на использование нашего section слайда +\let\beamer@origsection\section +\renewcommand{\section}[1]{\begin{frame}[section]{#1}\null\end{frame}} +