Skip to content

Commit 4547ac6

Browse files
author
elauksap
committed
Fix margins
1 parent 27f3fd8 commit 4547ac6

6 files changed

Lines changed: 21 additions & 4 deletions

File tree

beamerinnerthemepolimi.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@
7474
\begin{tikzpicture}[overlay, remember picture]
7575
\node (foot) at (current page.south) [anchor=south, minimum width=\paperwidth, minimum height=0.4415\paperheight, fill=bluePolimi] {};
7676
\node at ([shift={(0, -0.1)}] foot.north) {\includegraphics[width=0.99\paperwidth]{decoration.png}};
77-
\path let \p1 = ([shift={(0, 0.105\paperheight+0.25)}] current page.south east), \p2 = (current page.west) in (\paperwidth,\y1) edge [white, line width=0.5] (\x2,\y1);
77+
\path let \p1 = ([shift={(0, 0.105\paperheight+0.25)}] current page.south west), \p2 = (current page.east) in (\x1, \y1) edge [white, line width=0.5] (\x2, \y1);
7878
\node at ([shift={(\xshift, 3.5)}] current page.south west) [anchor=north west, inner sep=0pt, text width=\textwidth+1cm]
7979
{
8080
{\color{white}\Large\bf \insertsection}

beamerouterthemepolimi.sty

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
{
3030
\ifnum\c@framenumber>0
3131
\begin{tikzpicture}[overlay, remember picture]
32-
\node at ([shift={(-\xshift, -1.25)}] current page.north east) [anchor=south west, inner sep=0pt]
32+
\node at ([shift={(-0.5\xshift, -1.25)}] current page.north east) [anchor=south east, inner sep=0pt]
3333
{
3434
{\color{white} \tiny \insertframenumber/\inserttotalframenumber}
3535
};
@@ -44,8 +44,13 @@
4444
\hspace{\xshift}
4545
{\small\color{white}\insertauthor}
4646
\hspace*{\fill}
47-
\includegraphics[height=\baselineskip]{logo_bandiera.png}
48-
\hspace{1.5mm}
47+
48+
\begin{tikzpicture}[overlay, remember picture]
49+
\node at ([shift={(-0.5\xshift, 0.5)}] current page.south east) [anchor=east, inner sep=0pt]
50+
{
51+
\includegraphics[height=\baselineskip]{logo_bandiera.png}
52+
};
53+
\end{tikzpicture}
4954
\fi
5055
\end{minipage}
5156
}

beamerthemepolimi.sty

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,15 @@
2626
\setbeamertemplate{blocks}[rounded][shadow=true]
2727
\setbeamertemplate{itemize items}[square]
2828
\setbeamertemplate{itemize subitem}[triangle]
29+
30+
% Set margins.
31+
\setbeamersize{text margin left=\xshift, text margin right=\xshift}
32+
\setlength{\leftmargini}{\xshift}
33+
34+
\let\oldtoc\tableofcontents
35+
\renewcommand{\tableofcontents}[1][]{%
36+
\hspace*{0.5\xshift}
37+
\begin{minipage}{\textwidth}
38+
\oldtoc[#1]
39+
\end{minipage}
40+
}

demo-sectionpage.jpg

-611 Bytes
Loading

demo-slide.jpg

-6.22 KB
Loading

demo.pdf

86 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)