From 3b08e613fec62176d50533c48e5b7b81aa217351 Mon Sep 17 00:00:00 2001 From: Ermin Wang Date: Fri, 25 Mar 2016 00:47:06 +0800 Subject: [PATCH] Fix the "Overfull \hbox (0.4pt too wide)" bug when using progress bar. --- source/beamerinnerthememetropolis.dtx | 6 +++--- source/beamerouterthememetropolis.dtx | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/source/beamerinnerthememetropolis.dtx b/source/beamerinnerthememetropolis.dtx index 89550ea..f312d0a 100644 --- a/source/beamerinnerthememetropolis.dtx +++ b/source/beamerinnerthememetropolis.dtx @@ -197,7 +197,7 @@ % \begin{macrocode} \setbeamertemplate{title separator}{ \begin{tikzpicture} - \draw[fg, fill=fg] (0,0) rectangle (\textwidth, 0.4pt); + \fill[fg] (0,0) rectangle (\textwidth, 0.4pt); \end{tikzpicture}% \par% } @@ -332,8 +332,8 @@ \textwidth * \ratio{\insertframenumber pt}{\inserttotalframenumber pt}% }% \begin{tikzpicture} - \draw[bg, fill=bg] (0,0) rectangle (\textwidth, 0.4pt); - \draw[fg, fill=fg] (0,0) rectangle (\metropolis@progressonsectionpage, 0.4pt); + \fill[bg] (0,0) rectangle (\textwidth, 0.4pt); + \fill[fg] (0,0) rectangle (\metropolis@progressonsectionpage, 0.4pt); \end{tikzpicture}% } % \end{macrocode} diff --git a/source/beamerouterthememetropolis.dtx b/source/beamerouterthememetropolis.dtx index 6a9044f..42e65a3 100644 --- a/source/beamerouterthememetropolis.dtx +++ b/source/beamerouterthememetropolis.dtx @@ -187,8 +187,8 @@ }% \begin{beamercolorbox}[wd=\paperwidth]{progress bar in head/foot} \begin{tikzpicture} - \draw[bg, fill=bg] (0,0) rectangle (\paperwidth, 0.4pt); - \draw[fg, fill=fg] (0,0) rectangle (\metropolis@progressinheadfoot, 0.4pt); + \fill[bg] (0,0) rectangle (\paperwidth, 0.4pt); + \fill[fg] (0,0) rectangle (\metropolis@progressinheadfoot, 0.4pt); \end{tikzpicture}% \end{beamercolorbox} }