![Beamer 中的书本图标与小尺寸文本的对齐](https://linux22.com/image/464337/Beamer%20%E4%B8%AD%E7%9A%84%E4%B9%A6%E6%9C%AC%E5%9B%BE%E6%A0%87%E4%B8%8E%E5%B0%8F%E5%B0%BA%E5%AF%B8%E6%96%87%E6%9C%AC%E7%9A%84%E5%AF%B9%E9%BD%90.png)
我想使用 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}