Merge pull request #213 from rchurchley/bugfixes

Bugfixes
This commit is contained in:
Matthias Vogelgesang 2016-06-14 10:43:16 +02:00 committed by GitHub
commit bd55d89a03
4 changed files with 59 additions and 10 deletions

View File

@ -44,10 +44,10 @@ uninstall:
@rmdir "$(DOC_DIR)"
clean-cache:
@rm -f "$(CACHE_DIR)/*"
@rm -rf "$(CACHE_DIR)"
clean-sty:
@rm -f "$(PACKAGE_STY)"
@rm -f $(PACKAGE_STY)
ctan: $(CTAN_CONTENT) ctan-version
@tar --transform "s@\(.*\)@metropolis/\1@" -cf metropolis-$(shell date "+%Y-%m-%d").tar.gz $(CTAN_CONTENT)
@ -58,15 +58,15 @@ ctan-version:
$(CACHE_DIR):
@mkdir -p $(CACHE_DIR)
$(PACKAGE_STY): $(PACKAGE_SRC) $(INS) | $(CACHE_DIR) clean-cache
$(PACKAGE_STY): $(PACKAGE_SRC) $(INS) | clean-cache $(CACHE_DIR)
@cd $(dir $(INS)) && latex -output-directory=$(CACHE_DIR) $(notdir $(INS))
@cp $(addprefix $(CACHE_DIR)/,$(PACKAGE_STY)) .
$(DOC_PDF): $(DOC_SRC) $(PACKAGE_STY) | $(CACHE_DIR) clean-cache
$(DOC_PDF): $(DOC_SRC) $(PACKAGE_STY) | clean-cache $(CACHE_DIR)
@cd $(dir $(DOC_SRC)) && $(COMPILE_TEX) $(notdir $(DOC_SRC))
@cp $(CACHE_DIR)/$(notdir $(DOC_PDF)) $(DOC_PDF)
$(DEMO_PDF): $(DEMO_SRC) $(PACKAGE_STY) | $(CACHE_DIR) clean-cache
$(DEMO_PDF): $(DEMO_SRC) $(PACKAGE_STY) | clean-cache $(CACHE_DIR)
@cd $(dir $(DEMO_SRC)) && $(COMPILE_TEX) $(notdir $(DEMO_SRC))
@cp $(CACHE_DIR)/$(notdir $(DEMO_PDF)) $(DEMO_PDF)

View File

@ -630,6 +630,49 @@ on each slide.
\end{lstlisting}
\subsection{Standout frames with labels}
Because the |standout| frame option creates a group to restrict the colour
change to a single slide, labels defined after calling |standout| will stay
local to the group. In other words, the following may result in a ``label undefined'' error.
\begin{lstlisting}
\begin{frame}[standout, label=conclusion]{Conclusion}
Awesome slide
\end{frame}
\end{lstlisting}
To fix this problem, change the order of the keys in the frame.
\begin{lstlisting}
\begin{frame}[label=conclusion, standout]{Conclusion}
Awesome slide
\end{frame}
\end{lstlisting}
This error can be unwittingly triggered if you export your slides from Emacs
Org mode, which automatically adds labels after frame options. Alex Branham
\href{https://github.com/matze/mtheme/issues/203}{offers} the following
solution for Org mode users, using |org-set-property|.
\begin{lstlisting}
* Start of a frame
:PROPERTIES:
:BEAMER_opt: label=conclusion,standout
:END:
\end{lstlisting}
\subsection{Standout frames with Pandoc}
It is not currently possible to create standout frames if you create your
presentation with Pandoc. This is because Pandoc only supports a specific list
of frame attributes --- namely, |allowdisplaybreaks|, |allowframebreaks|, |b|,
|c|, |t|, |environment|, |label|, |plain|, and |shrink|. In other words,
Pandoc will ignore the attribute |{.standout}| instead of adding the option to
the frame.
\section{License}
\themename is licensed under a

View File

@ -369,6 +369,12 @@
\metropolis@sectiontitleformat{#1}}}}
{}
{\PackageError{beamerfontthememetropolis}{Patching section title failed}}
\patchcmd{\beamer@subsection}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{#1}}}
{\def\insertsubsectionhead{\hyperlink{Navigation\the\c@page}{%
\metropolis@sectiontitleformat{#1}}}}
{}
{\PackageError{beamerfontthememetropolis}{Patching section title failed}}
% \end{macrocode}
%
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in

View File

@ -65,7 +65,7 @@
% \end{macrocode}
% \end{macro}
%
% \begin{macro}{sectionpage}
% \begin{macro}{subsectionpage}
% Optionally add a slide marking the beginning of each subsection.
% \begin{macrocode}
\pgfkeys{
@ -251,10 +251,10 @@
\usebeamercolor[fg]{section title}
\usebeamerfont{section title}
\insertsectionhead\par
\ifx\insertsubsection\@empty\else
\ifx\insertsubsectionhead\@empty\else
\usebeamercolor[fg]{subsection title}
\usebeamerfont{subsection title}
\insertsubsection
\insertsubsectionhead
\fi
\end{center}
}
@ -267,10 +267,10 @@
\insertsectionhead\\[-1ex]
\usebeamertemplate*{progress bar in section page}
\par
\ifx\insertsubsection\@empty\else%
\ifx\insertsubsectionhead\@empty\else%
\usebeamercolor[fg]{subsection title}%
\usebeamerfont{subsection title}%
\insertsubsection
\insertsubsectionhead
\fi
\end{minipage}
\par