加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
beamerfontthemesthlm.sty 2.09 KB
一键复制 编辑 原始数据 按行查看 历史
Rik 提交于 2021-07-09 16:25 . demo.tex
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% FONT FAMILES
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
\ProvidesPackage{beamerfontthememsthlm}
% NEWPX FONT (Latex)
\if@donewPxFont%
% Load newPx Font %
\usefonttheme{professionalfonts}
\usefonttheme{serif}
\RequirePackage[T1]{fontenc}
\RequirePackage[full]{textcomp}
\RequirePackage[osf]{newpxtext} % osf for text, not math
\RequirePackage{cabin} % sans serif
\RequirePackage[varqu,varl]{inconsolata} % sans serif mono font
\RequirePackage[bigdelims,vvarbb]{newpxmath} % bb from STIX
\RequirePackage[cal=boondoxo]{mathalfa} % This package provides a standard means of setting math alphabets associated with the macros \mathcal, \mathbb, \mathfrak
\fi%
% PROPRIETARY STOCKHOLM STAD FONTS (XeTeX)
\if@dosthlmStadFont%
% Load sthlmStad Fonts %
\usefonttheme{professionalfonts}
\RequirePackage[no-math]{fontspec}
\defaultfontfeatures{Mapping=tex-text}
\setsansfont[BoldFont={Sarasa Gothic SC}]{Source Han Serif CN}
\AtBeginEnvironment{tabular}{\setsansfont[BoldFont={Sarasa Gothic SC}, Numbers={Monospaced}]{WenQuanYi Micro Hei Mono Light}}
\fi%
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% FONT ASSIGMENTS
%-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
% Title Page
\setbeamerfont{title}{family=\sffamily, series=\scshape, size=\huge}
\setbeamerfont{subtitle}{size=\normalsize}
\setbeamerfont{date}{size=\normalsize}
\setbeamerfont{author}{size=\large}
\setbeamerfont{institute}{size=\large}
% Section
\setbeamerfont{section title}{size=\Large}
% Content
\setbeamerfont{frametitle}{family=\sffamily, size=\Large}
\setbeamerfont{copyright text}{size=\tiny}
\setbeamerfont{block title}{series=\sffamily, size=\large}
\setbeamerfont{block title alerted}{family=\sffamily, size=\large}
\setbeamerfont{alerted text}{series=\scshape}
\setbeamerfont{block title example}{family=\sffamily, size=\large}
\setbeamerfont{example text}{series=\scshape}
\setbeamerfont{caption}{size=\small}
\setbeamerfont{caption name}{family=\small}
\setbeamerfont{page number in head/foot}{size=\scriptsize}
\setbeamerfont{section in toc}{series=\sffamily, size=\large}
\linespread{1.15}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化