我正在创建一个 beamer 演示文稿,其中我希望幻灯片的标题采用较大的字体,然后幻灯片的正文采用较小的字体。问题是,我目前的方法似乎导致所有文本(即使不在 \huge{} 括号中)都采用较大的字体。我的设置:
\documentclass[9pt,t]{beamer}
\usetheme{Berkeley}
\usepackage{thumbpdf}
\usepackage{wasysym}
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
\usepackage{verbatim}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{color}
\usepackage{amsfonts}
\usepackage{amsmath,amssymb,epsfig,color}
\usepackage{psfrag,subfigure}
\usepackage{times}
%\usepackage{textcomp}
%\usepackage{eurosym}
\usepackage{amsthm,amsmath,amsfonts,mathbbol,mathrsfs,stmaryrd,textcomp}
\begin{document}
\begin{frame}[t]
\huge{I want this text to be large}
\bigskip
But this text is also appearing as large. Not what I want!
\end{frame}
\end{document}
因此在 \bigskip 之后 - 我需要文本成为 \documentclass 命令中指定的正常大小的字体。
另外请原谅我,我不知道如何编译本文中的代码以显示结果。有人能给我一些提示吗?
谢谢
答案1
\documentclass[9pt,t]{beamer}
\usetheme{Berkeley}
\usepackage{thumbpdf}
\usepackage{wasysym}
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
\usepackage{verbatim}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{color}
\usepackage{amsfonts}
\usepackage{amsmath,amssymb,epsfig,color}
\usepackage{psfrag,subfigure}
\usepackage{times}
%\usepackage{textcomp}
%\usepackage{eurosym}
\usepackage{amsthm,amsmath,amsfonts,mathbbol,mathrsfs,stmaryrd,textcomp}
\begin{document}
\begin{frame}[t]
%inside the brace to limit
{\huge I want this text to be large
\bigskip}% always make sure end of para is in scope for a size change.
But this text is also appearing as large. Not what I want!
\end{frame}
\end{document}
答案2
另一种可能性是调用\normalsize
之后的文本\huge
。使用\huge
将其后的所有内容设置为\huge
,因此您可以将其扩展限制为Tarass 的回答显示,或者返回 再次关闭\normalsize
。不过这样可用性会受到限制。
\documentclass[9pt,t]{beamer}
\usetheme{Berkeley}
\usepackage{thumbpdf}
\usepackage{wasysym}
\usepackage{ucs}
\usepackage[utf8]{inputenc}
\usepackage{pgf,pgfarrows,pgfnodes,pgfautomata,pgfheaps,pgfshade}
\usepackage{verbatim}
\usepackage[utf8]{inputenc}
\usepackage{listings}
\usepackage{color}
\usepackage{amsfonts}
\usepackage{amsmath,amssymb,epsfig,color}
\usepackage{psfrag,subfigure}
\usepackage{times}
%\usepackage{textcomp}
%\usepackage{eurosym}
\usepackage{amsthm,amsmath,amsfonts,mathbbol,mathrsfs,stmaryrd,textcomp}
\begin{document}
\begin{frame}[t]
% Huge text after this
\huge{I want this text to be large}
\bigskip
% go back to normalsize here
\normalsize{But this text is also appearing as large. Not what I want!}
\end{frame}
\end{document}
这里您可以找到可用字体大小的完整列表。