From cd8635b2113c012e23bc8361f01dabb4937e4eec Mon Sep 17 00:00:00 2001 From: Benjamin Weiss Date: Fri, 20 Feb 2015 23:12:23 +0100 Subject: [PATCH 1/2] changed title graphics position --- beamerthemem.sty | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/beamerthemem.sty b/beamerthemem.sty index 4008138..a59489a 100644 --- a/beamerthemem.sty +++ b/beamerthemem.sty @@ -59,12 +59,21 @@ \setbeamertemplate{title page} { \begin{minipage}[b][\paperheight]{\textwidth} - \vfill + \vspace*{\@mtheme@voffset} \ifx\inserttitlegraphic\@empty% \else% - {\usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par}% - \vspace*{0.5em} + { + % actual output of titlegraphic + \usebeamercolor[fg]{titlegraphic}\inserttitlegraphic\par% + % measurement and add negative vspace + \newdimen\logoheight + \setbox0=\vbox{\inserttitlegraphic}% + \logoheight=\ht0 \advance\logoheight by \dp0 % + \vspace*{-\logoheight}% + \vspace*{-1em}% I don't know why this additional negative space is needed + }% \fi% + \vfill \ifx\inserttitle\@empty% \else% {\raggedright\linespread{1.0}\usebeamerfont{title}\usebeamercolor[fg]{title}\scshape\MakeLowercase{\inserttitle}\par}% @@ -92,7 +101,7 @@ {\usebeamerfont{institute}\usebeamercolor[fg]{institute}\insertinstitute\par}% \fi% \vfill - \vspace*{5mm} + \vspace*{\@mtheme@voffset} \end{minipage} } From 629c117f745069862d82838385639629a8b689d4 Mon Sep 17 00:00:00 2001 From: Benjamin Weiss Date: Sun, 22 Feb 2015 16:31:16 +0100 Subject: [PATCH 2/2] Fixes matze/mtheme/#31 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I don’t like the manual linespacing fix. In my opinion \textsc{\MakeLowercase{…}} should be replaced by \MakeUppercase{…} and the fontsize adjusted accordingly. 2pt shift of the progress bar doesn’t make sense as I see it. I therefore removed it. --- beamerthemem.sty | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/beamerthemem.sty b/beamerthemem.sty index a59489a..36eb441 100644 --- a/beamerthemem.sty +++ b/beamerthemem.sty @@ -131,16 +131,19 @@ \divide\progressbar@tmpdim by \progressbar@tmpcountb \multiply\progressbar@tmpdim by 100 + % fixes very high linespacing introduced via \textsc{\MakeLowercase{...}} + \fontsize{1em}{1em}\selectfont + \makebox[\textwidth][c]{ \begin{tikzpicture}[tight background] - \node[anchor=west, fg, inner sep=0pt] at (0pt, 0pt) {\insertsectionHEAD}; + \node[anchor=south west, fg, inner sep=0pt, text width=\progressbar@pbwd] at (0pt, 0pt) {\insertsectionHEAD}; \draw[anchor=west, fg!20, fill=fg!20, inner sep=0pt] - (2pt, -16pt) rectangle ++ (\progressbar@pbwd, \progressbar@pbht); + (0, -1ex) rectangle ++ (\progressbar@pbwd, \progressbar@pbht); \draw[anchor=west, fg, fill=fg, inner sep=0pt] - (2pt, -16pt) rectangle ++ (\progressbar@tmpdim, \progressbar@pbht); + (0, -1ex) rectangle ++ (\progressbar@tmpdim, \progressbar@pbht); \end{tikzpicture}% } } % end usebeamercolor{palette primary}