我想使用 Beamer 的书籍项目和\tiny
大小的文本,但下面代码中的文本“我的书”似乎在下标中。有没有办法将书籍项目和文本对齐(不使用\vspace*{}
)?
\documentclass[10pt,xcolor={dvipsnames,table}]{beamer}
\mode<article> % only for the article version
{
\usepackage{fullpage}
\usepackage{hyperref}
}
\mode<presentation>
{
%\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]
\setbeamercovered{transparent}
\usefonttheme{serif}
\usecolortheme{crane}
}
\setbeamercovered{dynamic}
\setbeamertemplate{items}[circle]
\begin{document}
\begin{frame}
{\tiny {\includegraphics[scale=.75]{beamericonbook}}~My book...}
\end{frame}
\end{document}
答案1
您可以使用该adjustbox
包来改变图像的垂直对齐方式。
如果您需要更精细的控制,可以使用\raisebox{...}{...}
将图像向上或向下移动:
\documentclass[10pt,xcolor={dvipsnames,table}]{beamer}
\mode<article> % only for the article version
{
\usepackage{fullpage}
\usepackage{hyperref}
}
\mode<presentation>
{
%\setbeamertemplate{background canvas}[vertical shading][bottom=red!10,top=blue!10]
\setbeamercovered{transparent}
\usefonttheme{serif}
\usecolortheme{crane}
}
\setbeamercovered{dynamic}
\setbeamertemplate{items}[circle]
\usepackage[export]{adjustbox}
\begin{document}
\begin{frame}
{\tiny {\includegraphics[scale=.75,valign=c]{beamericonbook}}~My book...}
{\tiny {\raisebox{-1.2ex}{\includegraphics[scale=.75]{beamericonbook}}}~My book...}
\end{frame}
\end{document}