![如何更改标题(第一个)框架中作者文本的颜色?](https://linux22.com/image/262219/%E5%A6%82%E4%BD%95%E6%9B%B4%E6%94%B9%E6%A0%87%E9%A2%98%EF%BC%88%E7%AC%AC%E4%B8%80%E4%B8%AA%EF%BC%89%E6%A1%86%E6%9E%B6%E4%B8%AD%E4%BD%9C%E8%80%85%E6%96%87%E6%9C%AC%E7%9A%84%E9%A2%9C%E8%89%B2%EF%BC%9F.png)
\documentclass[T]{beamer}
\usetheme{Frankfurt}
\usecolortheme{orchid}
\usefonttheme{structuresmallcapsserif}
\usefonttheme{serif}
\usepackage{multicol}
\usepackage{graphicx}
\title{Example Presentation}
\author{Author 1\\Author 2}
\date{\today}
\begin{document}
{\usebackgroundtemplate
{\includegraphics[width=\paperwidth,height=\paperheight]{caestitlepage}}
\begin{frame}
\titlepage
\end{frame}
\end{document}
为了使“作者文本”变成白色,我需要做哪些更改?
答案1
您只需使用适当的颜色模板(author
在本例中);例如:
\setbeamercolor{author}{fg=white}
完整示例(带有虚拟背景):
\documentclass[T]{beamer}
\usepackage{lmodern} % for font size substitution
\usetheme{Frankfurt}
\usecolortheme{orchid}
\usefonttheme{structuresmallcapsserif}
\usefonttheme{serif}
\usepackage{multicol}
\usepackage{tikz} %for dummy background
\title{Example Presentation}
\setbeamercolor{author}{fg=white}
\author{Author 1\\ Author 2}
\date{\today}
\begin{document}
\setbeamertemplate{background}{\tikz\fill[blue,opacity=0.4](0,0)rectangle(\paperwidth,\paperheight);]}
%{\usebackgroundtemplate
%{\includegraphics[width=\paperwidth,height=\paperheight]{caestitlepage}}
\begin{frame}
\titlepage
\end{frame}
\end{document}
结果:
实际上,percusse 的建议也很好;确实:
\documentclass[T]{beamer}
\usepackage{lmodern} % for font size substitution
\usetheme{Frankfurt}
\usecolortheme{orchid}
\usefonttheme{structuresmallcapsserif}
\usefonttheme{serif}
\usepackage{multicol}
\usepackage{tikz} %for dummy background
\title{Example Presentation}
\author{\textcolor{white}{Author 1}\\ \textcolor{white}{Author 2}}
\date{\today}
\begin{document}
\setbeamertemplate{background}{\tikz\fill[blue,opacity=0.4](0,0)rectangle(\paperwidth,\paperheight);]}
%{\usebackgroundtemplate
%{\includegraphics[width=\paperwidth,height=\paperheight]{caestitlepage}}
\begin{frame}
\titlepage
\end{frame}
\end{document}
提供与上面报道相同的图片。