【问题标题】:align the figure and the text in itemization LaTex在逐项 LaTex 中对齐图形和文本
【发布时间】:2020-12-14 13:56:11
【问题描述】:

我正在尝试使用latex中的“itemize”功能来说明一些图标,左边的图标和右边的解释,两个问题1)左图与右文字不对齐,文字总是低于图。 2)整个items块离左边缘太近,为整个itemize块添加左边的空间?

\begin{itemize}

    \item[{\includegraphics[width=7em]{ui_t_1.jpg}}] \textbf{Home}\\ Select to go to the Main Menu screen.\\
    \item[{\includegraphics[width=7em]{ui_t_2.jpg}}] \textbf{History}\\ Select to check the running history.\\
    \item[{\includegraphics[width=7em]{ui_t_3.jpg}}] \textbf{System}\\ Select to set up the system parameters.\\
    \item[{\includegraphics[width=7em]{ui_t_4.jpg}}] \textbf{Log Off}\\ Select to log off or shut down the system.\\
\end{itemize}

【问题讨论】:

标签: latex


【解决方案1】:

adjustboxexport 选项允许您访问\includegraphics 内的valign,您可以在其中指定您所包含的与周围文档元素相关的图像的vertical alignment .你很可能在valign=c之后。

\documentclass{article}

\usepackage[export]{adjustbox}

\begin{document}

\begin{itemize}
  \item[{\includegraphics[width=2em,valign=B]{example-image-a}}] \textbf{Home}
  
  Select to go to the Main Menu screen.
  
  \item[{\includegraphics[width=2em,valign=c]{example-image-b}}] \textbf{History}
  
  Select to check the running history.
  
  \item[{\includegraphics[width=2em,valign=t]{example-image-c}}] \textbf{System}
  
  Select to set up the system parameters.
  
  \item[{\includegraphics[width=2em,valign=c]{example-image}}]  \textbf{Log Off}
  
  Select to log off or shut down the system.
\end{itemize}

\end{document}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-09
    • 1970-01-01
    相关资源
    最近更新 更多