commit
bd55d89a03
10
Makefile
10
Makefile
|
@ -44,10 +44,10 @@ uninstall:
|
||||||
@rmdir "$(DOC_DIR)"
|
@rmdir "$(DOC_DIR)"
|
||||||
|
|
||||||
clean-cache:
|
clean-cache:
|
||||||
@rm -f "$(CACHE_DIR)/*"
|
@rm -rf "$(CACHE_DIR)"
|
||||||
|
|
||||||
clean-sty:
|
clean-sty:
|
||||||
@rm -f "$(PACKAGE_STY)"
|
@rm -f $(PACKAGE_STY)
|
||||||
|
|
||||||
ctan: $(CTAN_CONTENT) ctan-version
|
ctan: $(CTAN_CONTENT) ctan-version
|
||||||
@tar --transform "s@\(.*\)@metropolis/\1@" -cf metropolis-$(shell date "+%Y-%m-%d").tar.gz $(CTAN_CONTENT)
|
@tar --transform "s@\(.*\)@metropolis/\1@" -cf metropolis-$(shell date "+%Y-%m-%d").tar.gz $(CTAN_CONTENT)
|
||||||
|
@ -58,15 +58,15 @@ ctan-version:
|
||||||
$(CACHE_DIR):
|
$(CACHE_DIR):
|
||||||
@mkdir -p $(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))
|
@cd $(dir $(INS)) && latex -output-directory=$(CACHE_DIR) $(notdir $(INS))
|
||||||
@cp $(addprefix $(CACHE_DIR)/,$(PACKAGE_STY)) .
|
@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))
|
@cd $(dir $(DOC_SRC)) && $(COMPILE_TEX) $(notdir $(DOC_SRC))
|
||||||
@cp $(CACHE_DIR)/$(notdir $(DOC_PDF)) $(DOC_PDF)
|
@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))
|
@cd $(dir $(DEMO_SRC)) && $(COMPILE_TEX) $(notdir $(DEMO_SRC))
|
||||||
@cp $(CACHE_DIR)/$(notdir $(DEMO_PDF)) $(DEMO_PDF)
|
@cp $(CACHE_DIR)/$(notdir $(DEMO_PDF)) $(DEMO_PDF)
|
||||||
|
|
||||||
|
|
|
@ -630,6 +630,49 @@ on each slide.
|
||||||
\end{lstlisting}
|
\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}
|
\section{License}
|
||||||
|
|
||||||
\themename is licensed under a
|
\themename is licensed under a
|
||||||
|
|
|
@ -369,6 +369,12 @@
|
||||||
\metropolis@sectiontitleformat{#1}}}}
|
\metropolis@sectiontitleformat{#1}}}}
|
||||||
{}
|
{}
|
||||||
{\PackageError{beamerfontthememetropolis}{Patching section title failed}}
|
{\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}
|
% \end{macrocode}
|
||||||
%
|
%
|
||||||
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in
|
% Similarly, to make the |\MakeLowercase| and |\MakeUppercase| macros work in
|
||||||
|
|
|
@ -65,7 +65,7 @@
|
||||||
% \end{macrocode}
|
% \end{macrocode}
|
||||||
% \end{macro}
|
% \end{macro}
|
||||||
%
|
%
|
||||||
% \begin{macro}{sectionpage}
|
% \begin{macro}{subsectionpage}
|
||||||
% Optionally add a slide marking the beginning of each subsection.
|
% Optionally add a slide marking the beginning of each subsection.
|
||||||
% \begin{macrocode}
|
% \begin{macrocode}
|
||||||
\pgfkeys{
|
\pgfkeys{
|
||||||
|
@ -251,10 +251,10 @@
|
||||||
\usebeamercolor[fg]{section title}
|
\usebeamercolor[fg]{section title}
|
||||||
\usebeamerfont{section title}
|
\usebeamerfont{section title}
|
||||||
\insertsectionhead\par
|
\insertsectionhead\par
|
||||||
\ifx\insertsubsection\@empty\else
|
\ifx\insertsubsectionhead\@empty\else
|
||||||
\usebeamercolor[fg]{subsection title}
|
\usebeamercolor[fg]{subsection title}
|
||||||
\usebeamerfont{subsection title}
|
\usebeamerfont{subsection title}
|
||||||
\insertsubsection
|
\insertsubsectionhead
|
||||||
\fi
|
\fi
|
||||||
\end{center}
|
\end{center}
|
||||||
}
|
}
|
||||||
|
@ -267,10 +267,10 @@
|
||||||
\insertsectionhead\\[-1ex]
|
\insertsectionhead\\[-1ex]
|
||||||
\usebeamertemplate*{progress bar in section page}
|
\usebeamertemplate*{progress bar in section page}
|
||||||
\par
|
\par
|
||||||
\ifx\insertsubsection\@empty\else%
|
\ifx\insertsubsectionhead\@empty\else%
|
||||||
\usebeamercolor[fg]{subsection title}%
|
\usebeamercolor[fg]{subsection title}%
|
||||||
\usebeamerfont{subsection title}%
|
\usebeamerfont{subsection title}%
|
||||||
\insertsubsection
|
\insertsubsectionhead
|
||||||
\fi
|
\fi
|
||||||
\end{minipage}
|
\end{minipage}
|
||||||
\par
|
\par
|
||||||
|
|
Loading…
Reference in New Issue