[LaTeX] Beamer 中文字体

发布于 2023-11-13  108 次阅读


Please refresh the page if equations are not rendered correctly.
---------------------------------------------------------------

内容为转载,测试了不少方法,这个在Overleaf上是有效的。

documentclass{beamer}
\usepackage{ctex}

\setCJKmainfont{FandolKai}   % 设置中文衬线字体格式
\setCJKsansfont{FandolFang}  % 设置中文无衬线字体格式
\setCJKmonofont{FandolHei}   % 设置中文等宽字体格式

\begin{document}

\section{前言}

\begin{frame}{前言}

    This is English font.

    {\songti 宋体}

    {\heiti 黑体}

    {\fangsong 仿宋}

    {\kaishu 楷书}

    \rmfamily  Roman Family 罗马字体

    \sffamily Sans Serif Family 无衬线字体

    \ttfamily Typewriter Family 打字机字体
\end{frame}

\end{document}

输出如下:

原文地址: LaTeX中的中英文字体设置、混排_latex英文字体_gsgbgxp的博客-CSDN博客

届ける言葉を今は育ててる
最后更新于 2023-11-13