]> Untitled Git - articles.git/commitdiff
Правильные фоны в старом дизайне везде где надо
authorNikolay Shaplov <dhyan@nataraj.su>
Mon, 15 Jun 2026 06:55:28 +0000 (09:55 +0300)
committerNikolay Shaplov <dhyan@nataraj.su>
Mon, 15 Jun 2026 06:55:28 +0000 (09:55 +0300)
slides/0000 - LaTeX Stub/theme.nonfree/beamerinnerthemePgPro.sty

index 1a36ba0775bd2fc160423cdae72f80077bb204d9..05dbca20372d3273ec8631a4c4f07c15a8de9fe9 100644 (file)
@@ -2,13 +2,19 @@
 
 \setbeamertemplate{background}{
   \begin{tikzpicture}
+  \ifbeamer@sectionframe%
+    \node[anchor=south west, inner sep=0] at (0,0) {\includegraphics[width=\paperwidth, height=\paperheight]{theme.nonfree/bgpics/pgpro_title_bg2.png}};
+  \else
+  \ifbeamer@closingframe%
+    \node[anchor=south west, inner sep=0] at (0,0) {\includegraphics[width=\paperwidth, height=\paperheight]{theme.nonfree/bgpics/pgpro_thanks_bg.png}};
+  \else
   \ifnum\thepage=1\relax%
    \node[anchor=south west,inner sep=0] at (0,0) {\includegraphics[width=\the\paperwidth, height=\the\paperheight]{theme.nonfree/bgpics/pgpro_title_bg.png}};
    \fi
   \ifnum\thepage>1\relax%
    \node[anchor=south west, inner sep=0] at (0,0) {\includegraphics[width=\the\paperwidth, height=\the\paperheight]{theme.nonfree/bgpics/pgpro_page_bg.png}};
    \node[anchor=east] at(\textwidth+1cm,0.5cm) {\color{text}\tiny\insertframenumber};
-   \fi
+  \fi\fi\fi
   \end{tikzpicture}
 }