Skip to content

Commit

Permalink
Fix margins
Browse files Browse the repository at this point in the history
  • Loading branch information
pcafrica committed Oct 19, 2017
1 parent 27f3fd8 commit 4547ac6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 4 deletions.
2 changes: 1 addition & 1 deletion beamerinnerthemepolimi.sty
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
\begin{tikzpicture}[overlay, remember picture]
\node (foot) at (current page.south) [anchor=south, minimum width=\paperwidth, minimum height=0.4415\paperheight, fill=bluePolimi] {};
\node at ([shift={(0, -0.1)}] foot.north) {\includegraphics[width=0.99\paperwidth]{decoration.png}};
\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);
\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);
\node at ([shift={(\xshift, 3.5)}] current page.south west) [anchor=north west, inner sep=0pt, text width=\textwidth+1cm]
{
{\color{white}\Large\bf \insertsection}
Expand Down
11 changes: 8 additions & 3 deletions beamerouterthemepolimi.sty
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
{
\ifnum\c@framenumber>0
\begin{tikzpicture}[overlay, remember picture]
\node at ([shift={(-\xshift, -1.25)}] current page.north east) [anchor=south west, inner sep=0pt]
\node at ([shift={(-0.5\xshift, -1.25)}] current page.north east) [anchor=south east, inner sep=0pt]
{
{\color{white} \tiny \insertframenumber/\inserttotalframenumber}
};
Expand All @@ -44,8 +44,13 @@
\hspace{\xshift}
{\small\color{white}\insertauthor}
\hspace*{\fill}
\includegraphics[height=\baselineskip]{logo_bandiera.png}
\hspace{1.5mm}

\begin{tikzpicture}[overlay, remember picture]
\node at ([shift={(-0.5\xshift, 0.5)}] current page.south east) [anchor=east, inner sep=0pt]
{
\includegraphics[height=\baselineskip]{logo_bandiera.png}
};
\end{tikzpicture}
\fi
\end{minipage}
}
Expand Down
12 changes: 12 additions & 0 deletions beamerthemepolimi.sty
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,15 @@
\setbeamertemplate{blocks}[rounded][shadow=true]
\setbeamertemplate{itemize items}[square]
\setbeamertemplate{itemize subitem}[triangle]

% Set margins.
\setbeamersize{text margin left=\xshift, text margin right=\xshift}
\setlength{\leftmargini}{\xshift}

\let\oldtoc\tableofcontents
\renewcommand{\tableofcontents}[1][]{%
\hspace*{0.5\xshift}
\begin{minipage}{\textwidth}
\oldtoc[#1]
\end{minipage}
}
Binary file modified demo-sectionpage.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo-slide.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified demo.pdf
Binary file not shown.

0 comments on commit 4547ac6

Please sign in to comment.