簡體   English   中英

對齊項目LaTex中的圖和文本

[英]align the figure and the text in itemization LaTex

我正在嘗試在Z25F7E525B5C0641E1EB1FB3BDEBEB15B5Z中使用“itemize”function來說明一些圖標,左邊的圖標和右邊的解釋,兩個問題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}

adjustboxexport選項允許您訪問\includegraphics中的valign ,您可以在其中指定所v的圖像相對於周圍文檔元素的垂直align方式。 您最有可能在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}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM