带有内置“Segoe UI”字体的 Metro 风格 Beamer 主题

带有内置“Segoe UI”字体的 Metro 风格 Beamer 主题

有人遇到过具有 Microsoft Metro 演示风格、内置“Segoe UI”字体的 Beamer 主题吗?

答案1

继我之前基于 PowerPoint 的 Beamer 主题之后,我创建了一个 Metro 风格主题,它基于您链接。可从以下网址获取https://bitbucket.org/marczellm/beamerports

您可以通过向主题传递选项来让其加载 Microsoft 字体SegoeUI。它需要fontspec,因此使用 XeLaTeX 或 LuaLaTeX 进行编译。

代码中有趣的部分

为了使块宽度与框架标题颜色框匹配,我使用了在 Beamer 中使框架标题和块宽度相同

我需要重新定义徽标处理机制,如下所示:

\newcommand{\metro@logo}{}
\renewcommand{\logo}[1]{\renewcommand{\metro@logo}{#1}}
\AtBeginDocument{\setbeamertemplate{logo}{}}

以便能够将徽标放在不同的地方。

我使用 TikZ 和 hyperref 重现了 PowerPoint 模板中的导航符号:

\newcommand{\metro@navigation}{% this uses the commands defined in beamerbasenavigation.sty
    \ifmetronav
    \begin{tikzpicture}[white, very thick, arrows=-{Straight Barb[length=3pt]}]
    \draw circle[radius=.25];
        \draw (.18,0) -- (-.18,0);
        \node[rectangle]{\hyperlinkframeendprev{\phantom{\rule{.5cm}{.5cm}}}};
    \draw (.7,0) circle[radius=.25];
        \filldraw (.62,.08) circle[radius=.05]
                  (.78,.08) circle[radius=.05]
                  (.62,-.08) circle[radius=.05]
                  (.78,-.08) circle[radius=.05];
        \node[rectangle] at (.7,0) {\hyperlinkpresentationstart{\phantom{\rule{.5cm}{.5cm}}}};
    \draw (1.4,0) circle[radius=.25];
        \draw (1.22,0) -- (1.58,0);
        \node[rectangle] at (1.4,0) {\hyperlinkframestartnext{\phantom{\rule{.5cm}{.5cm}}}};
    \draw (2.1,0) circle[radius=.25];
        \node[cross out, draw] at (2.1,0){};
        \node[rectangle] at (2.1,0){\Acrobatmenu{FullScreen}{\phantom{\rule{.5cm}{.5cm}}}};
    \end{tikzpicture}
    \fi
}

图片:

示例框架 1 示例框架 2

相关内容